mountlist: Merge two .m4 files.
[gnulib.git] / ChangeLog
blobc1cc195d7adcb3e71a13692bd5b0f6676fd7038e
1 2019-01-27  Bruno Haible  <bruno@clisp.org>
3         mountlist: Merge two .m4 files.
4         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
5         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
6         * m4/ls-mntd-fs.m4: Remove file.
7         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
9 2019-01-27  Bruno Haible  <bruno@clisp.org>
11         tests: Enable Linux specific tests on Android.
12         * tests/test-flock.c (main): Treat Android like Linux.
13         * tests/test-openat-safer.c (main): Likewise.
15 2019-01-27  Bruno Haible  <bruno@clisp.org>
17         relocatable-prog: Use Linux code on Android.
18         * lib/progreloc.c: Treat Android like Linux.
20 2019-01-26  Bruno Haible  <bruno@clisp.org>
22         getloadavg: Add support for Android.
23         * lib/getloadavg.c: Treat Android like Linux.
25 2019-01-26  Bruno Haible  <bruno@clisp.org>
27         vma-iter: Add support for Android.
28         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
29         * lib/vma-iter.c: Treat Android like Linux.
30         * lib/get-rusage-data.c (get_rusage_data): Likewise.
32 2019-01-26  Bruno Haible  <bruno@clisp.org>
34         fts: Optimize on Android.
35         * lib/fts.c: Treat Android like Linux.
37 2019-01-26  Bruno Haible  <bruno@clisp.org>
39         fts: Add support for Android.
40         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
41         defined by this module and the ones in libc.
42         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
44 2019-01-26  Bruno Haible  <bruno@clisp.org>
46         mountlist: Use Linux code on Android.
47         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
48         (unescape_tab, read_file_system_list): Enable Linux code on Android
49         as well.
50         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
51         and endmntent.
52         * modules/mountlist (Depends-on): Add 'getline'.
54 2019-01-26  Bruno Haible  <bruno@clisp.org>
56         localename tests: Fix test failure on Android.
57         * modules/localename-tests (Depends-on): Add 'setlocale'.
59 2019-01-26  Bruno Haible  <bruno@clisp.org>
61         mountlist: Port better to Android.
62         * lib/mountlist.c (MOUNTED): Redefine on Android.
63         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
64         Android.
66 2019-01-26  Bruno Haible  <bruno@clisp.org>
68         striconveh: Fix use of uninitialized iconv_t.
69         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
70         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
71         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
73 2019-01-26  Bruno Haible  <bruno@clisp.org>
75         nonblocking-socket-tests: Fix test failure on Android 4.3.
76         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
77         also on Android.
79 2019-01-26  Bruno Haible  <bruno@clisp.org>
81         sh-filename: Add support for Android 4.3.
82         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
84 2019-01-26  Bruno Haible  <bruno@clisp.org>
86         ptsname_r: Work around bug on Android 4.3.
87         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
88         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
89         correct.
90         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
91         is defined, just fix the return value.
92         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
93         The behaviour of musl libc is nothing to be "fixed", since it is
94         compliant with the next POSIX standard.
96 2019-01-26  Bruno Haible  <bruno@clisp.org>
98         ttyname_r: Work around bug on Android 4.3.
99         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
100         * lib/ttyname_r.c (ttyname_r): Implement for Android.
101         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
102         * doc/posix-functions/ttyname.texi: Likewise.
104 2019-01-25  Bruno Haible  <bruno@clisp.org>
106         getprogname: Port to Android 4.3.
107         * lib/getprogname.c (getprogname): On Android, take only the last
108         component of __progname.
110 2019-01-25  Bruno Haible  <bruno@clisp.org>
112         wcrtomb: Work around bug on Android 4.3.
113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
114         the C locale.
115         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
116         which does not have the 'wctomb' function.
117         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
118         * tests/test-wcrtomb.c (main): Accept argument '5'.
119         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
121 2019-01-25  Bruno Haible  <bruno@clisp.org>
123         setlocale: Work around bug on Android 4.3.
124         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
125         the "C" locale.
126         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
127         * doc/posix-functions/setlocale.texi: Mention the Android bug.
129 2019-01-24  Bruno Haible  <bruno@clisp.org>
131         memchr: Work around bug on Android <= 5.0.
132         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
133         * doc/posix-functions/memchr.texi: Mention the Android bug.
135 2019-01-24  Bruno Haible  <bruno@clisp.org>
137         random: Fix compilation error on Android 4.3.
138         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
139         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
140         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
141         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
142         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
144         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
145         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
146         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
147         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
148         REPLACE_INITSTATE, REPLACE_SETSTATE.
149         * doc/posix-functions/random.texi: Correct the description of the
150         situation on Android.
151         * doc/posix-functions/srandom.texi: Likewise.
152         * doc/posix-functions/rand.texi: Likewise.
153         * doc/posix-functions/srand.texi: Likewise.
155 2019-01-24  Bruno Haible  <bruno@clisp.org>
157         mbtowc: Fix compilation error on Android 4.3.
158         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
159         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
160         HAVE_MBTOWC.
161         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
162         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
163         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
164         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
165         * doc/posix-functions/mbtowc.texi: Mention the change.
167 2019-01-24  Bruno Haible  <bruno@clisp.org>
169         fdatasync: Fix compilation error on Android 4.3.
170         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
171         test whether fdatasync() exists.
173 2019-01-24  Bruno Haible  <bruno@clisp.org>
175         unlinkat: Fix compilation error on Android 4.3.
176         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
177         also on Android.
178         * doc/posix-functions/unlinkat.texi: Mention the issue.
180 2019-01-24  Bruno Haible  <bruno@clisp.org>
182         renameat: Fix compilation error on Android 4.3.
183         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
184         * doc/posix-functions/renameat.texi: Mention the issue.
186 2019-01-24  Bruno Haible  <bruno@clisp.org>
188         fchownat: Fix compilation error on Android 4.3.
189         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
190         use.
191         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
192         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
193         * doc/posix-functions/fchownat.texi: Mention the issue.
195 2019-01-23  Bruno Haible  <bruno@clisp.org>
197         gnulib-tool: Support running testdirs on Android.
198         * build-aux/test-driver.diff: New file.
199         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
200         build-aux/test-driver after running automake.
202 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
204         relocatable-prog: avoid warnings from Automake
205         * modules/relocatable-prog: Don't declare PHONY dependencies in
206         Automake conditionals.
208 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
210         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
211         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
213 2019-01-23  Bruno Haible  <bruno@clisp.org>
215         threadlib: Revert commit from 2018-06-25. We now have a better fix.
216         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
217         preceding -Wl,--as-needed option. Don't check whether the linker
218         supports --as-needed/--no-as-needed and --push-state/--pop-state.
220 2019-01-23  Bruno Haible  <bruno@clisp.org>
222         thread: Force linking with -lpthread, even when --as-needed is in use.
223         Reported by Richard W.M. Jones <rjones@redhat.com> in
224         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
225         * lib/glthread/thread.h (pthread_create): Don't declare weak.
227 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
228             Bruno Haible  <bruno@clisp.org>
230         relocatable: avoid compiler warnings (-Wshadow)
231         * lib/relocatable.c (compute_curr_prefix): Rename local variables
232         to avoid name collisions with global variables.
234 2019-01-22  Bruno Haible  <bruno@clisp.org>
236         vasnprintf: Don't use %n on Android.
237         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
238         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
239         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
241 2019-01-22  Bruno Haible  <bruno@clisp.org>
243         *printf: Support cross-compilation to Android.
244         * m4/printf.m4: Add cross-compilation guesses for Android.
246 2019-01-21  Bruno Haible  <bruno@clisp.org>
248         diacrit: Mark deprecated.
249         * modules/diacrit (Status, Notice): Mark as deprecated.
250         * NEWS: Mention it.
252 2019-01-20  Bruno Haible  <bruno@clisp.org>
254         rintl: Override broken implementation on NetBSD.
255         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
256         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
257         REPLACE_RINTL.
258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
259         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
260         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
261         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
263 2019-01-20  Bruno Haible  <bruno@clisp.org>
265         log10l: Work around inaccurate implementation on NetBSD.
266         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
267         * lib/log10l.c: Comment out too simplistic override.
268         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
270 2019-01-20  Bruno Haible  <bruno@clisp.org>
272         logl: Work around inaccurate implementation on NetBSD.
273         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
274         * lib/logl.c: Comment out unused code.
275         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
277 2019-01-20  Bruno Haible  <bruno@clisp.org>
279         expm1l: Work around inaccurate implementation on NetBSD.
280         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
281         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
282         REPLACE_EXPM1L.
283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
284         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
285         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
286         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
288 2019-01-20  Bruno Haible  <bruno@clisp.org>
290         expl: Work around inaccurate implementation on NetBSD.
291         * lib/math.in.h (expl): Test also REPLACE_EXPL.
292         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
293         REPLACE_EXPL.
294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
295         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
296         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
297         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
299 2019-01-20  Bruno Haible  <bruno@clisp.org>
301         exp2l: Work around inaccurate implementation on NetBSD.
302         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
303         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
305 2019-01-20  Bruno Haible  <bruno@clisp.org>
307         floor, floorl: Avoid autoconf warnings.
308         * modules/floor (configure.ac): Use AC_REQUIRE.
309         * modules/floorl (configure.ac): Likewise.
311 2019-01-20  Bruno Haible  <bruno@clisp.org>
313         Defeat current GCC optimizations in math autoconf tests.
314         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
315         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
316         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
317         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
318         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
319         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
320         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
321         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
322         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
323         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
324         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
325         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
326         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
327         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
328         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
329         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
330         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
331         * m4/log.m4 (gl_FUNC_LOG): Likewise.
332         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
333         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
334         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
335         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
336         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
337         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
338         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
339         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
340         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
341         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
342         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
343         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
344         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
345         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
346         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
347         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
349         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
350         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
351         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
353 2019-01-19  Pádraig Brady  <P@draigBrady.com>
355         gettext: support disabling use of VLAs
356         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
358 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
360         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
361         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
363 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
365         fcntl: Fix syntax error (regression from 2018-10-05).
366         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
368 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
370         relocatable: improve documentation.
371         * doc/relocatable-maint.texi (Supporting Relocation): For
372         substitutions performed by config.status, we need more variables
373         (for instance datarootdir defaults to '${prefix}/share' so we need
374         prefix).
376 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
378         backup: update dependencies
379         * modules/backup-rename (Depends-on): It now depends on opendirat
380         instead of opendir.  It also uses stdint, and xalloc-oversized.
381         But no longer dirfd.
382         * modules/backupfile (Depends-on): Add xalloc-oversized.
384 2019-01-13  Bruno Haible  <bruno@clisp.org>
386         getcwd: Fix test failure when building on a Linux 9p file system.
387         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
388         EINVAL from mkdir like ENAMETOOLONG.
389         * tests/test-getcwd.c (test_long_name): Likewise.
391 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
393         Fix typos found by codespell.
394         * lib/*.[hc]: Fix typos in comments.
395         * pygnulib/*.py: Fix typos in error messages and comments.
397 2019-01-12  Bruno Haible  <bruno@clisp.org>
399         doc: Fix documentation about container data types.
400         Reported by Werner Lemberg <wl@gnu.org>.
401         * doc/containers.texi (Container data types): Fix typo.
403 2019-01-10  Bruno Haible  <bruno@clisp.org>
405         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
406         Reported by Reuben Thomas <rrt@sc3d.org>.
407         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
409 2019-01-06  Bruno Haible  <bruno@clisp.org>
411         maintainer-makefile: Make the configure.ac section optional.
412         * top/maint.mk (GREP, SED): Define if not defined.
414 2019-01-06  Bruno Haible  <bruno@clisp.org>
416         localename: Assume setlocale function.
417         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
418         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
420 2019-01-06  Bruno Haible  <bruno@clisp.org>
422         doc: Add documentation about container data types.
423         * doc/containers.texi: New file.
424         * doc/gnulib.texi (Particular Modules): Include it.
426 2019-01-06  Bruno Haible  <bruno@clisp.org>
428         doc: Update documentation about 'progname' module.
429         * doc/progname.texi: Rename from doc/error.texi. Change node name and
430         title. Rewrite.
431         * doc/gnulib.texi (Particular Modules): Update.
433 2019-01-06  Bruno Haible  <bruno@clisp.org>
435         doc: Document the xstdopen and *-safer modules.
436         * doc/xstdopen.texi: New file.
437         * doc/gnulib.texi (Particular Modules): Include it.
439 2019-01-06  Bruno Haible  <bruno@clisp.org>
441         xstdopen: Add tests.
442         * tests/test-xstdopen.c: New file.
443         * tests/test-xstdopen.sh: New file.
444         * modules/xstdopen-tests: New file.
446         xstdopen: New module.
447         * lib/xstdopen.h: New file.
448         * lib/xstdopen.c: New file.
449         * modules/xstdopen: New file.
451 2019-01-06  Bruno Haible  <bruno@clisp.org>
453         stdopen: Fix compilation error with IRIX cc.
454         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
456 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
458         xfreopen need not include stdio--.h
459         * lib/xfreopen.c: Do not include stdio--.h.
461         xfreopen need not depend on freopen-safer
462         * modules/xfreopen (Depends-on):
463         Depend on freopen, not freopen-safer.
465         stdopen: modernize and simplify
466         * lib/stdopen.c: Update copyright date
467         Do not include sys/types.h; no longer needed these days.
468         (stdopen): Use C99-style decl in loop.  Return int errno
469         value, rather than just a bool.  Do not worry about fd mismatches,
470         since the caller cares only if 0, 1, 2 are occupied.
471         * lib/stdopen.h: No need to include <stdbool.h>.
472         * m4/stdopen.m4: Remove.
473         * modules/stdopen: New file.
475         stdopen: copy from last use in coreutils
476         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
477         New files, taken from their last commit in coreutils
478         2007-07-23T12:35:58Z!jim@meyering.net
479         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
481 2019-01-05  Bruno Haible  <bruno@clisp.org>
483         argp: Don't pass an invalid argument to dgettext().
484         Reported by He X <xw897002528@gmail.com>.
485         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
486         dgettext().
488 2019-01-05  Bruno Haible  <bruno@clisp.org>
490         argp: Don't pass an invalid argument to dgettext().
491         Reported by He X <xw897002528@gmail.com>.
492         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
493         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
494         dgettext().
496 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
498         stdioext: port to newer 32-bit Android
499         Problem reported by Tom Yan in:
500         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
501         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
502         (fp_) [__ANDROID__]: Use it.
504 2019-01-04  Bruno Haible  <bruno@clisp.org>
506         lock: Fix link error with --enable-threads=pth.
507         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
508         Mark as weak.
510 2019-01-04  Bruno Haible  <bruno@clisp.org>
512         Fix link errors in unit tests.
513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
514         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
515         * modules/array-map-tests (Makefile.am): Link test-array_map against
516         libintl.
517         * modules/array-set-tests (Makefile.am): Link test-array_set against
518         libintl.
519         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
520         libintl.
521         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
522         libintl.
523         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
524         against libintl.
525         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
526         against libintl.
528 2019-01-04  Bruno Haible  <bruno@clisp.org>
530         Fix incorrect 'Link' sections.
531         * modules/regex (Link): Mention the link requirement of module 'lock'.
532         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
534 2019-01-04  Bruno Haible  <bruno@clisp.org>
536         Fix some 'Link' sections.
537         * modules/c-stack (Link): Add link directive from the 'gettext-h'
538         dependency.
539         * modules/getaddrinfo (Link): Likewise.
541 2019-01-04  Bruno Haible  <bruno@clisp.org>
543         Remove redundant 'Link' sections.
544         * modules/canon-host (Link): Remove section.
545         * modules/timevar (Link): Likewise.
547 2019-01-04  Bruno Haible  <bruno@clisp.org>
549         Remove incorrect 'Link' sections.
550         * modules/acl (Link): Remove section. Use combined 'Link' sections from
551         the dependencies instead.
552         * modules/crypto/md5 (Link): Likewise.
553         * modules/crypto/sha1 (Link): Likewise.
554         * modules/crypto/sha256 (Link): Likewise.
555         * modules/crypto/sha512 (Link): Likewise.
556         * modules/faccessat (Link): Likewise.
557         * modules/fdutimensat (Link): Likewise.
558         * modules/iconv_open-utf (Link): Likewise.
559         * modules/propername (Link): Likewise.
560         * modules/qacl (Link): Likewise.
561         * modules/unicodeio (Link): Likewise.
562         * modules/utimecmp (Link): Likewise.
563         * modules/utimensat (Link): Likewise.
564         * modules/xstriconv (Link): Likewise.
565         * modules/xstriconveh (Link): Likewise.
567 2019-01-04  Bruno Haible  <bruno@clisp.org>
569         gnulib-tool: New option --extract-recursive-link-directive.
570         * gnulib-tool (func_usage): Document the new options
571         --extract-recursive-dependencies, --extract-recursive-link-directive.
572         (func_verify_module): Document output variables.
573         (func_get_dependencies_recursively): New function.
574         (func_get_link_directive_recursively): New function.
575         Use them to implement the new options
576         --extract-recursive-dependencies, --extract-recursive-link-directive.
577         * doc/gnulib-tool.texi (Link-time requirements): New section.
579 2019-01-04  Bruno Haible  <bruno@clisp.org>
581         Clarify meaning of 'Link' section in module description.
582         * doc/gnulib.texi (Module description): Clarify the meaning of the
583         'Link' section versus the one of the dependencies.
584         * NEWS: Mention the change.
586 2019-01-04  Bruno Haible  <bruno@clisp.org>
588         pselect: Fix module description.
589         * modules/pselect (Link): Put one link option per line.
591 2019-01-04  Bruno Haible  <bruno@clisp.org>
593         cosl: Fix module description.
594         * modules/cosl (Link): Fix typo.
595         * modules/mathl (configure.ac): Likewise.
597 2019-01-04  Bruno Haible  <bruno@clisp.org>
599         c-xvasprintf: Fix module dependencies.
600         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
602 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
604         bootstrap: die when some submodules are not initialized
605         * build-aux/bootstrap: Make sure all submodules are initialized.
607 2019-01-04  Bruno Haible  <bruno@clisp.org>
609         bitsetv: Fix module dependencies.
610         * lib/bitsetv.c: Include xalloc.h.
611         * modules/bitsetv (Depends-on): Add 'xalloc'.
613 2019-01-04  Bruno Haible  <bruno@clisp.org>
615         xmemdup0: Remove redundant code.
616         * lib/xmemdup0.h (xalloc_die): Remove declaration.
618 2019-01-04  Bruno Haible  <bruno@clisp.org>
620         backupfile: Fix module dependencies.
621         * modules/backupfile (Depends-on): Add 'xalloc'.
623 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
625         bitset, crypto/gc: fix conflicts with Solaris 11
626         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
627         avoid clash with Solaris 11 <sys/bitset.h>.
628         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
629         with Solaris 11 <xorg/gc.h>.
631 2019-01-04  Bruno Haible  <bruno@clisp.org>
633         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
634         Reported by Andy Fiddaman <andy@omniosce.org>.
635         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
637 2019-01-03  Eric Blake  <eblake@redhat.com>
639         maintainer-makefile: fix typo in previous patch
640         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
641         of Roman's work.
643 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
645         maintainer-makefile: prefer $(GREP) over grep
646         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
647         defined.
648         * top/maint.mk: Use it everywhere.
650         maintainer-makefile: split long argument lines
651         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
652         it would be too long for exec limits on BSD.
654 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
656         mkfifo: bring back HAVE_MKFIFO macro
657         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
658         Problem reported by Andrew Janke in:
659         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
661 2018-12-21  Bruno Haible  <bruno@clisp.org>
663         Assume Autoconf >= 2.63.
664         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
665         versions < 2.60.
667 2018-12-21  Bruno Haible  <bruno@clisp.org>
669         memcmp: Mention the clang bug.
670         * tests/test-memcmp.c: Add comment about a known test failure.
671         * doc/posix-functions/memcmp.texi: Mention the clang bug.
673 2018-12-20  Jim Meyering  <meyering@fb.com>
675         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
676         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
677           echo '123-x'|LC_ALL=C grep -E '.\bx'
678         The goal is to revert the first, but reverting it requires to restore
679         the function deleted in the second. I ran this to restore the deleted
680         function:
681           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
682             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
683             | patch -R -p1
684         * lib/dfa.c (charclass_context): Restore deleted function.
685         Reverting the primary commit removes this change:
686         dfa: Simplify a building state
687         * lib/dfa.c (build_state): Simplify a building state.
689 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
691         version-etc: allow zero authors
692         * lib/version-etc.c (version_etc_arn): If no authors are given,
693         omit authorship info instead of dumping core.
695 2018-12-19  Bruno Haible  <bruno@clisp.org>
697         lchown tests: Be more permissive regarding errno values.
698         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
699         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
700         alternative to ENOSYS.
701         * modules/lchown-tests (Depends-on): Add 'errno'.
702         * modules/fchownat-tests (Depends-on): Likewise.
704 2018-12-18  Bruno Haible  <bruno@clisp.org>
706         duplocale: Avoid test failure on AIX 7.
707         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
708         (configure.ac): Invoke gt_FUNC_USELOCALE.
709         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
710         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
711         works.
713 2018-12-18  Bruno Haible  <bruno@clisp.org>
715         localename: Fix test failure on AIX 7.
716         Reported by Assaf Gordon in
717         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
718         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
719         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
720         instead of ac_cv_func_uselocale.
721         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
722         HAVE_USELOCALE.
723         * lib/localename-table.h: Likewise.
724         * lib/localename-table.c: Likewise.
725         * tests/test-localename.c: Likewise.
726         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
728 2018-12-18  Bruno Haible  <bruno@clisp.org>
730         localename: Update comments regarding Cygwin.
731         * lib/localename.c: Update comment.
732         * doc/posix-functions/uselocale.texi: Update platforms list.
733         * doc/posix-functions/newlocale.texi: Likewise.
734         * doc/posix-functions/duplocale.texi: Likewise.
735         * doc/posix-functions/freelocale.texi: Likewise.
737 2018-12-16  Bruno Haible  <bruno@clisp.org>
739         c-stack: Fix for Linux/sparc.
740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
741         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
743 2018-12-16  Bruno Haible  <bruno@clisp.org>
745         localename: Avoid test failure on some glibc systems.
746         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
747         Unset environment variables that might disturb the first setlocale call,
748         and verify that this setlocale call succeeds.
750 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
752         random: Fix build error on native Windows (regression from 2018-06-21).
753         * lib/random.c (__srandom, __initstate, __setstate, __random,
754         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
755         to the symbols without '__' prefix.
757 2018-12-16  Bruno Haible  <bruno@clisp.org>
759         obstack, libc-config: Support HP-UX cc in C99 mode.
760         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
761         compiler, even when in C99 mode.
762         * lib/cdefs.h (__flexarr): Likewise.
763         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
765 2018-12-16  Bruno Haible  <bruno@clisp.org>
767         localename: Fix test failure on OpenBSD >= 6.2.
768         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
769         locale system. Define HAVE_FAKE_LOCALES in this case.
770         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
771         HAVE_USELOCALE.
772         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
773         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
774         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
775         platforms list.
776         * doc/posix-functions/newlocale.texi: Likewise.
777         * doc/posix-functions/duplocale.texi: Update platforms list.
778         * doc/posix-functions/freelocale.texi: Likewise.
780 2018-12-16  Bruno Haible  <bruno@clisp.org>
782         duplocale tests: Re-enable the test on platforms without <monetary.h>.
783         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
784         of the test, on platforms without <monetary.h>.
786 2018-12-16  Bruno Haible  <bruno@clisp.org>
788         localename: Update comments.
789         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
791 2018-12-15  Jim Meyering  <meyering@fb.com>
793         regex: fix indentation
794         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
796 2018-12-15  Bruno Haible  <bruno@clisp.org>
798         openat-safer tests: Avoid test failure on NetBSD 8.
799         * tests/test-openat-safer.c (main): Execute a Linux specific test only
800         on Linux.
802 2018-12-15  Jim Meyering  <meyering@fb.com>
804         regex: work around a bug in glibc-2.27 and prior
805         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
806         assertion for /0|()0|\1|0/.
807         * tests/test-regex.c (main): Add the same test here.
809 2018-12-15  Bruno Haible  <bruno@clisp.org>
811         localename: Fix use of uninitialized shell variable.
812         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
813         gt_cv_locale_solaris114 always before use. Remove assignment without
814         effect.
816 2018-12-15  Bruno Haible  <bruno@clisp.org>
818         dfa tests: Avoid test failure on Alpine Linux.
819         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
820         command found on Alpine Linux.
822 2018-12-15  Jim Meyering  <meyering@fb.com>
824         dfa: avoid new warnings from gcc
825         These would prevent building with -Werror and a Dec snapshot of gcc.
826         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
827         Rename each inner instance to "p".
828         (charclass_context): Remove unused static function.
830 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
832         mkdir-p: improve diagnostic for FUSE mounts
833         Problem reported by Niklas Hambüchen in:
834         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
835         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
836         errno to mkdir errno if the stat errno is likely more interesting.
838 2018-12-14  Bruno Haible  <bruno@clisp.org>
840         hash-map: Add tests.
841         * tests/test-hash_map.c: New file.
842         * modules/hash-map-tests: New file.
844         linkedhash-map: Add tests.
845         * tests/test-linkedhash_map.c: New file.
846         * modules/linkedhash-map-tests: New file.
848         array-map: Add tests.
849         * tests/test-array_map.c: New file.
850         * modules/array-map-tests: New file.
852         xmap: New module.
853         * lib/gl_xmap.h: New file.
854         * lib/gl_xmap.c: New file.
855         * modules/xmap: New file.
857         hash-map: New module.
858         * lib/gl_hash_map.h: New file.
859         * lib/gl_hash_map.c: New file.
860         * modules/hash-map: New file.
862         linkedhash-map: New module.
863         * lib/gl_linkedhash_map.h: New file.
864         * lib/gl_linkedhash_map.c: New file.
865         * lib/gl_anyhash1.h: Update comments.
866         * lib/gl_anyhash2.h: Likewise.
867         * modules/linkedhash-map: New file.
869         array-map: New module.
870         * lib/gl_array_map.h: New file.
871         * lib/gl_array_map.c: New file.
872         * modules/array-map: New file.
874         map: New module.
875         * lib/gl_map.h: New file.
876         * lib/gl_map.c: New file.
877         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
878         conflict with gl_map.h.
879         * modules/map: New file.
881 2018-12-13  Bruno Haible  <bruno@clisp.org>
883         select tests: Avoid test failure on Cygwin.
884         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
886 2018-12-13  Bruno Haible  <bruno@clisp.org>
888         localtime-buffer: Avoid endless recursion in localtime and gmtime.
889         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
891 2018-12-13  Bruno Haible  <bruno@clisp.org>
893         localeconv tests: Avoid test failure on Cygwin.
894         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
895         'mon_grouping' tests.
897 2018-12-11  Bruno Haible  <bruno@clisp.org>
899         omap: Don't dispose the old value when the function returns it.
900         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
901         here.
902         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
903         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
904         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
905         here.
907         array-omap, avltree-omap, rbtree-omap: Tweak style.
908         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
909         false.
910         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
912         rbtree-omap: Add tests.
913         * tests/test-rbtree_omap.c: New file.
914         * modules/rbtree-omap-tests: New file.
916         avltree-omap: Add tests.
917         * tests/test-avltree_omap.c: New file.
918         * modules/avltree-omap-tests: New file.
920         array-omap: Add tests.
921         * tests/test-array_omap.c: New file.
922         * modules/array-omap-tests: New file.
924         xomap: New module.
925         * lib/gl_xomap.h: New file.
926         * lib/gl_xomap.c: New file.
927         * modules/xomap: New file.
929         rbtree-omap: New module.
930         * lib/gl_rbtree_omap.h: New file.
931         * lib/gl_rbtree_omap.c: New file.
932         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
933         Parameterize.
934         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
935         * modules/rbtree-omap: New file.
936         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
937         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
939         avltree-omap: New module.
940         * lib/gl_avltree_omap.h: New file.
941         * lib/gl_avltree_omap.c: New file.
942         * lib/gl_avltree_ordered.h: Code moved to here from
943         lib/gl_avltree_oset.c. Parameterize.
944         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
945         * lib/gl_anytree_omap.h: New file.
946         * modules/avltree-omap: New file.
947         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
948         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
950         array-omap: New module.
951         * lib/gl_array_omap.h: New file.
952         * lib/gl_array_omap.c: New file.
953         * modules/array-omap: New file.
955         omap: New module.
956         * lib/gl_omap.h: New file.
957         * lib/gl_omap.c: New file.
958         * modules/omap: New file.
960 2018-12-11  Bruno Haible  <bruno@clisp.org>
962         hash-set, linkedhash-set: Reduce code duplication.
963         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
964         lib/gl_anyhash_set1.h.
965         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
966         lib/gl_anyhash_set2.h. Parameterize.
967         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
968         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
969         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
970         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
971         * lib/gl_rbtreehash_list.c: Likewise.
972         * lib/gl_linkedhash_list.c: Likewise.
973         (hash_resize_after_add): Remove function.
974         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
975         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
976         * gl_hash_set.c: Likewise.
977         * modules/avltreehash-list (Files, Makefile.am): Update file list.
978         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
979         * modules/linkedhash-list (Files, Makefile.am): Likewise.
980         * modules/linkedhash-set (Files, Makefile.am): Likewise.
981         * modules/hash-set (Files, Makefile.am): Likewise.
983 2018-12-11  Bruno Haible  <bruno@clisp.org>
985         array-set: Optimize.
986         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
987         outside the loop, not inside the loop.
989 2018-12-11  Bruno Haible  <bruno@clisp.org>
991         times: Fix tests.
992         * tests/test-times.c (doublecmp): Implement a total order.
994 2018-12-11  Bruno Haible  <bruno@clisp.org>
996         array-set, linkedhash-set, hash-set: Fix tests.
997         * tests/test-array_set.c (cmp_objects_in_array): New function.
998         (check_equals): Use it.
999         * tests/test-hash_set.c: Likewise.
1000         * tests/test-linkedhash_set.c: Likewise.
1002 2018-12-08  Bruno Haible  <bruno@clisp.org>
1004         Fix comments.
1005         * lib/gl_list.h (gl_list_free): Clarify what it does.
1006         * lib/gl_oset.h (gl_oset_free): Likewise.
1007         * lib/gl_set.h (gl_set_free): Likewise.
1008         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
1009         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
1010         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
1011         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
1013 2018-12-03  Bruno Haible  <bruno@clisp.org>
1015         hash-set: Add tests.
1016         * tests/test-hash_set.c: New file.
1017         * modules/hash-set-tests: New file.
1019         linkedhash-set: Add tests.
1020         * tests/test-linkedhash_set.c: New file.
1021         * modules/linkedhash-set-tests: New file.
1023         array-set: Add tests.
1024         * tests/test-array_set.c: New file.
1025         * modules/array-set-tests: New file.
1027         xset: New module.
1028         * lib/gl_xset.h: New file.
1029         * lib/gl_xset.c: New file.
1030         * modules/xset: New file.
1032         hash-set: New module.
1033         * lib/gl_hash_set.h: New file.
1034         * lib/gl_hash_set.c: New file.
1035         * modules/hash-set: New file.
1037         linkedhash-set: New module.
1038         * lib/gl_linkedhash_set.h: New file.
1039         * lib/gl_linkedhash_set.c: New file.
1040         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
1041         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
1042         * lib/gl_anyhash_primes.h: New file, extracted from
1043         lib/gl_anyhash_list2.h.
1044         * lib/gl_anyhash_list2.h: Include it.
1045         (primes, next_prime): Remove definitions.
1046         * modules/linkedhash-set: New file.
1047         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
1048         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1049         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
1050         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1051         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
1052         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1054         array-set: New module.
1055         * lib/gl_array_set.h: New file.
1056         * lib/gl_array_set.c: New file.
1057         * modules/array-set: New file.
1059         set: New module.
1060         * lib/gl_set.h: New file.
1061         * lib/gl_set.c: New file.
1062         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
1063         gl_set.h.
1064         * modules/set: New file.
1066 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
1068         bison: don't force the Yacc mode
1069         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
1070         errors when Bison features are used in the grammar file.  Some of
1071         these features (such as %expect) were flagged non-yacc recently.  Most
1072         of the time, -y is actually used to please Automake's ylwrap which
1073         expects the output to be y.tab.c.
1074         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
1076 2018-12-01  Bruno Haible  <bruno@clisp.org>
1078         gnupload: Document short options.
1079         * build-aux/gnupload (usage): Document the short options.
1081 2018-11-28  Ben Elliston  <bje@gnu.org>
1083         gnupload: Support option -h as alias of --help.
1084         * build-aux/gnupload: Support -h.
1086 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1088         memrchr: port better to clang
1089         * lib/memrchr.c (__memrchr): Cast to void * instead of to
1090         longword *, to pacify clang -Wcast-align (Bug#33544).
1092 2018-11-29  Eric Blake  <eblake@redhat.com>
1094         docs: mention printf %m considerations
1095         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
1096         is not portable, and is easy enough to work around.
1097         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
1098         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
1099         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
1100         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
1101         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1102         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1103         * doc/posix-functions/printf.texi (printf): Likewise.
1104         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
1105         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
1106         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
1107         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1108         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1109         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1110         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1111         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1112         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
1113         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
1114         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1115         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1117 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
1119         bitset: rename ebitset/expandable.* as tbitset/table.*
1120         See
1121         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
1122         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
1123         * lib/bitset/table.h, lib/bitset/table.c: these.
1124         Rename all the ebitset* symbols as tbitset*.
1125         Adjust dependencies.
1127 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1129         bitset: check the operations
1130         * tests/test-bitset.c (bitset_random): New.
1131         Use it.
1132         * lib/bitset/expandable.c (ebitset_not): Fix typo.
1134 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1136         bitset: properly use false/true instead of 0/1 for Booleans
1137         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
1138         0/1, as Booleans.
1140 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1142         bitset: rename BITSET_VARRAY as BITSET_VECTOR
1143         For consistency with the name of the file.
1144         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
1145         * lib/bitset/stats.c, lib/bitset/vector.c
1146         (BITSET_VARRAY): Rename as...
1147         (BITSET_VECTOR): this.
1149 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1151         strerror_r-posix: memmove, not memcpy
1152         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
1153         since the source and destination might overlap in the call
1154         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
1155         Simplify.
1157 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1159         bitsetv: new module
1160         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
1162 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1164         bitset: add tests and doc
1165         First stabs at providing a documentation and test for the bitset
1166         module.
1167         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
1169 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1171         bitset: new module
1172         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
1173         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
1174         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
1175         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
1176         * lib/bitset/vector.h, modules/bitset:
1177         New.
1179 2018-11-23  Bruno Haible  <bruno@clisp.org>
1181         localename: Fix gettext test failures on mingw.
1182         * lib/localename.c (gl_locale_name_posix): Convert the result of
1183         gl_locale_name_environ to XPG syntax.
1185 2018-11-23  Karl Berry  <karl@freefriends.org>
1187         * config/srclistvars.txt,
1188         * config/srclist.txt: remove all gettext references;
1189         the gettext maintainers will sync as needed.
1191 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1193         mktime: add libc-config dependency
1194         I missed this when we synced from glibc.
1195         * modules/mktime (Depends-on): Add libc-config.
1197 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1199         longlong: fix comment typo
1200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
1202 2018-11-11  Bruno Haible  <bruno@clisp.org>
1204         havelib: Remove the need to include asm-underscore.m4.
1205         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
1206         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
1207         gl_HOST_CPU_C_ABI.
1208         * modules/havelib (Files): Add host-cpu-c-abi.m4.
1209         (Depends-on): Remove host-cpu-c-abi.
1211 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1213         parse-datetime: simplify test for mktime failure
1214         * lib/parse-datetime.y (mktime_ok): Simplify.
1215         Remove args TZ and T; no longer needed.  Callers changed.
1217         posixtm: simplify test for mktime failure
1218         * lib/posixtm.c (posixtime): Simplify.
1220         nstrftime: simplify test for mktime failure
1221         * lib/nstrftime.c (__strftime_internal): Simplify.
1223 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1225         gnulib-common.m4: port _Noreturn to C++
1226         Problem reported by Akim Demaille in:
1227         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
1228         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
1229         Merge adjustments from _Noreturn.h and from glibc into the non-C++
1230         version.
1231         * lib/_Noreturn.h: Match gnulib-common.
1233 2018-10-30  Bruno Haible  <bruno@clisp.org>
1235         gnu-make: Fix for NetBSD 8 'make'.
1236         Reported by Reuben Thomas in
1237         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
1238         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
1239         output, ignoring exit codes.
1241 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
1243         maintainer-makefile: fix syntax-check rule for "same.h"
1244         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
1245         for 'same_nameat', too.
1247 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1249         havelib: fix nested ‘configure’ chatter
1250         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
1251         AC_CACHE_CHECK calls, which resulted in confusing output like
1252         “checking for the common suffixes of directories in the library
1253         search path... checking for 64-bit host... no lib,lib”.
1255         backupfile: tweak for better code
1256         * lib/backupfile.c: Sort include directives, and remove
1257         unnecessary <limits.h> include.
1258         (FALLTHROUGH): New macro, copied from other modules.
1259         (backupfile_internal): Use it to avoid code duplication.
1260         This lets GCC 8.2.1 generate better code by inlining the
1261         call to check_extension.
1263 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1265         backupfile: new dir_fd args
1266         New module opendirat with code taken from fts.
1267         Use this module to let backupfile use a directory file descriptor.
1268         * NEWS: Document the incompatible change.
1269         * lib/backup-find.c (find_backup_file_name):
1270         * lib/backup-rename.c (backup_file_rename):
1271         New arg DIR_FD.
1272         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
1273         (SIZE_MAX): Remove.
1274         Include opendirat.h rather than dirent--.h.
1275         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
1276         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
1277         (backupfile_internal): New arg DIR_FD.  All callers changed.
1278         * lib/fts.c: Include opendirat.h.
1279         (opendirat): Move to opendirat.c.
1280         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
1281         * modules/backupfile (Depends-on): Remove dirfd, opendir.
1282         Add opendirat.
1283         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
1284         Add opendirat.
1286 2018-10-23  Bruno Haible  <bruno@clisp.org>
1288         localename: Simplify support for per-thread locales on Solaris 11.4.
1289         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
1290         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
1291         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
1292         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
1293         specific code.
1294         * lib/localename-table.h: Update comments.
1295         * lib/localename-table.c: Update comments.
1296         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
1297         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
1298         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
1299         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
1300         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
1301         HAVE_NAMELESS_LOCALES here.
1302         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
1303         m4/intlsolaris.m4.
1304         * modules/gettext (Files): Likewise.
1306 2018-10-22  Bruno Haible  <bruno@clisp.org>
1308         std-gnu11: Support Autoconf versions < 2.64.
1309         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
1310         when _AC_DO_LIMIT does not exist.
1312 2018-10-22  Bruno Haible  <bruno@clisp.org>
1314         Assume Autoconf >= 2.63.
1315         * DEPENDENCIES: Mention the requirement.
1317         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
1318         (func_get_filelist): Don't list m4/onceonly.m4 any more.
1319         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
1320         * m4/onceonly.m4: Remove file.
1322         * m4/openmp.m4: Remove file.
1323         * modules/openmp (Files): Remove m4/openmp.m4.
1325         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
1326         htmldir, dvidir, pdfdir, psdir, localedir.
1327         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
1329         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
1330         Autoconf < 2.60.
1331         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
1332         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
1334         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
1335         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
1336         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
1338         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
1339         exists.
1340         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
1342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
1343         Autoconf < 2.61.
1345         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
1346         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
1347         Autoconf >= 2.52.
1349         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
1350         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
1351         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
1353 2018-10-22  Bruno Haible  <bruno@clisp.org>
1355         Assume Automake >= 1.11.
1356         * m4/configmake.m4: Update comments.
1357         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1358         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1359         of 'eval'.
1360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1361         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1362         requires Automake >= 1.11.
1364 2018-10-22  Bruno Haible  <bruno@clisp.org>
1366         localename: Fix typo in comment.
1367         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1369 2018-10-22  Bruno Haible  <bruno@clisp.org>
1371         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1372         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1374 2018-10-21  Bruno Haible  <bruno@clisp.org>
1376         locale: Ease integration with GNU libintl.
1377         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1378         GNULIB_defined_freelocale): New macros.
1380 2018-10-21  Bruno Haible  <bruno@clisp.org>
1382         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1383         * lib/localename-table.h: New file, extracted from lib/localename.c.
1384         * lib/localename-table.c: Likewise.
1385         * lib/localename.c: Include localename-table.h.
1386         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1387         locale_hash_function instead of pointer_hash.
1388         * modules/localename (Files): Add lib/localename-table.h,
1389         lib/localename-table.c.
1390         (lib_SOURCES): Add localename-table.c.
1391         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1392         for Solaris 11.4 locale system only on Solaris. Test for it
1393         independently whether getlocalename_l exists.
1394         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1395         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1396         HAVE_NAMELESS_LOCALES.
1397         * modules/gettext (Files): Add m4/intlsolaris.m4.
1399 2018-10-21  Bruno Haible  <bruno@clisp.org>
1401         Small update from gettext.
1402         * m4/intl.m4: Update from gettext:
1403         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1404         mode on AIX.
1405         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1406         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1408 2018-10-16  Bruno Haible  <bruno@clisp.org>
1410         mountlist: Remove support for Cray with UNICOS 9.
1411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1412         MOUNTED_LISTMNTENT.
1413         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1415 2018-10-16  Bruno Haible  <bruno@clisp.org>
1417         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1418         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1419         STAT_STATFS2_FS_DATA.
1420         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1422         MOUNTED_GETMNT.
1423         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1424         * lib/getloadavg.c (decstation): Remove definition and case.
1425         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1426         * lib/getgroups.c: Likewise.
1427         * doc/posix-functions/getgroups.texi: Likewise.
1428         * lib/time.in.h: Update comments.
1430 2018-10-16  Bruno Haible  <bruno@clisp.org>
1432         getloadavg: Remove support for ConvexOS.
1433         * lib/getloadavg.c: Remove convex case.
1435 2018-10-16  Bruno Haible  <bruno@clisp.org>
1437         getloadavg: Remove support for Sony NEWS.
1438         * lib/getloadavg.c: Remove sony_news case.
1440 2018-10-16  Bruno Haible  <bruno@clisp.org>
1442         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1443         * lib/fsusage.c: Remove _SEQUENT_ case.
1444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1445         * lib/mountlist.c: Don't test for MNTTABNAME.
1446         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1447         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1448         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1449         * lib/stat-size.h: Don't mention the Sequent bug.
1450         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1452 2018-10-16  Bruno Haible  <bruno@clisp.org>
1454         fsusage: Remove support for AIX 3.
1455         * lib/fsusage.c: Remove code for AIX 3.
1456         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1458 2018-10-16  Bruno Haible  <bruno@clisp.org>
1460         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1461         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1462         * lib/fsusage.c: Remove code for AIX PS/2.
1463         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1464         * lib/getloadavg.c: Likewise.
1466 2018-10-16  Bruno Haible  <bruno@clisp.org>
1468         getloadavg: Remove support for HP-UX on m68k.
1469         * lib/getloadavg.c: Remove hp9000s300 case.
1471 2018-10-16  Bruno Haible  <bruno@clisp.org>
1473         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1474         * lib/fsusage.c: Remove DOLPHIN case.
1475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1476         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1478 2018-10-16  Bruno Haible  <bruno@clisp.org>
1480         getloadavg: Remove support for Alliant FX/2800.
1481         * lib/getloadavg.c: Remove alliant case.
1483 2018-10-16  Bruno Haible  <bruno@clisp.org>
1485         getloadavg: Remove support for tek4300.
1486         * lib/getloadavg.c: Remove tek4300 case.
1488 2018-10-16  Bruno Haible  <bruno@clisp.org>
1490         getloadavg: Remove support for Ardent.
1491         * lib/getloadavg.c: Remove ardent case.
1493 2018-10-16  Bruno Haible  <bruno@clisp.org>
1495         mountlist: Remove support for SVR2.
1496         Reported by Andrew Borodin <aborodin@vmail.ru> in
1497         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1498         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1499         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1500         MOUNTED_FREAD.
1502 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1504         libc-config: merge from glibc
1505         * lib/cdefs.h (__glibc_has_attribute): New macro.
1507         regex: depend on libc-config
1508         * modules/regex (Depends-on): Add libc-config.
1509         This is needed after the recent autoupdate from glibc.
1511 2018-10-14  Bruno Haible  <bruno@clisp.org>
1513         localename: Add support for per-thread locales on Solaris 11.4.
1514         * lib/locale.in.h (newlocale, freelocale): New declarations.
1515         (duplocale): Declare also when the 'localename' module requests it.
1516         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1517         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1518         (struniq): Update.
1519         (struct locale_categories_names, struct locale_hash_node): New types.
1520         (LOCALE_HASH_TABLE_SIZE): New constant.
1521         (locale_hash_table, locale_lock): New variables.
1522         (pointer_hash, get_locale_t_name): New functions.
1523         (newlocale, duplocale, freelocale): New overridden functions.
1524         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1525         * m4/intlsolaris.m4: New file.
1526         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1527         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1528         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1529         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1530         declared.
1531         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1532         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1533         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1534         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1535         * modules/localename (Files): Add intlsolaris.m4.
1536         (Depends-on): Add 'locale'.
1537         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1538         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1539         the signatures.
1541 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1543         timevar: use gethrxtime to get wall clock time
1544         clock_gettime is not portable.  gethrxtime takes the best available
1545         option to get the wall clock time, including clock_gettime (monotonic
1546         clock), and gettime (non monotonic).
1547         Also, using xtime_t instead of float preserves the precision.
1548         Suggested by Bruno Haible.
1549         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1550         * modules/timevar (Depends-on): We need gethrxtime.
1551         We no longer use times().
1552         (Link): Update.
1553         * lib/timevar.h (timevar_time_def): Use xtime_t.
1554         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1555         (timevar_print): Instead of checking whether the timings themselves
1556         are large enough for the timevar to be printed, check the percentages.
1558 2018-10-14  Bruno Haible  <bruno@clisp.org>
1560         wcsnrtombs: Work around Solaris 11.4 bug.
1561         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1562         macro.
1563         (gl_FUNC_WCSNRTOMBS): Invoke it.
1564         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1566 2018-10-14  Bruno Haible  <bruno@clisp.org>
1568         mbsnrtowcs: Work around Solaris 11.4 bug.
1569         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1570         macro.
1571         (gl_FUNC_MBSNRTOWCS): Invoke it.
1572         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1574 2018-10-14  Bruno Haible  <bruno@clisp.org>
1576         doc: Update for Solaris 11.4.
1577         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1578         mention Solaris 11.4.
1579         * m4/printf.m4: Update comments about Solaris.
1580         * m4/log.m4: Likewise.
1581         * m4/log10.m4: Likewise.
1582         * m4/logb.m4: Likewise.
1583         * m4/logbf.m4: Likewise.
1584         * m4/logbl.m4: Likewise.
1585         * m4/rename.m4: Likewise.
1586         * m4/wcrtomb.m4: Likewise.
1587         * m4/hostent.m4: Likewise.
1588         * m4/servent.m4: Likewise.
1590 2018-10-14  Bruno Haible  <bruno@clisp.org>
1592         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1593         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1594         pointer.
1595         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1596         pointer.
1597         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1598         pointer.
1599         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1600         pointer.
1601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1602         pointer.
1604 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1606         bootstrap: fix wget command for po files.
1607         * build-aux/bootstrap (po_download_command_format): Fix comment,
1608         and adjust callers.
1610 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1612         timevar: improve the output format
1613         Suggested by Bruno Haible.
1614         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1615         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1616         wall, since its resolution is much higher.
1618 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1620         timevar: expect that getrusage is available.
1621         Don't keep both times and getrusage as backend: both are guaranteed by
1622         gnulib, a single one suffices.  Using getrusage is open to possibly
1623         tracking other types of resources in the future.
1624         * modules/timevar (Depends-on): Add getrusage.
1625         (configure.ac): Remove gl_TIMEVAR.
1626         (Files): Remove m4/timevar.m4.
1627         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1628         * lib/timevar.h (timevar_enabled): Clarify documentation.
1629         * lib/timevar.c: Remove all the code about times.
1630         Remove all the CPP guards about getrusage: expect it to be present
1631         (courtesy of gnulib).
1633 2018-10-12  Bruno Haible  <bruno@clisp.org>
1635         mountlist: Improve support for Solaris in 64-bit mode.
1636         Reported by David Wood <David.Wood@deshaw.com> in
1637         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1639         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1640         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1642 2018-10-12  Bruno Haible  <bruno@clisp.org>
1644         mountlist: Add support for Minix.
1645         Reported by Assaf Gordon in
1646         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1648         AC_CHECK_FUNCS to check for 'getmntinfo'.
1649         * lib/mountlist.c: Update comments.
1651 2018-10-12  Bruno Haible  <bruno@clisp.org>
1653         Make better use of Autoconf.
1654         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1655         * m4/manywarnings.m4: Likewise.
1656         * m4/manywarnings-c++.m4: Likewise.
1657         * m4/socklen.m4: Likewise.
1658         * m4/sockpfaf.m4: Likewise.
1659         * m4/stdarg.m4: Likewise.
1660         * m4/visibility.m4: Likewise.
1661         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1662         indentation.
1663         * m4/ls-mntd-fs.m4: Likewise.
1665 2018-10-11  Bruno Haible  <bruno@clisp.org>
1667         mountlist: Modernize platform lists.
1668         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1669         platforms, deemphasizing the obsolete ones.
1670         * lib/mountlist.c: Likewise.
1672 2018-10-11  Bruno Haible  <bruno@clisp.org>
1674         getprogname: Add support for 32-bit programs on HP-UX.
1675         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1676         try the similar functions 32-bit programs on 64-bit HP-UX.
1678 2018-10-11  Bruno Haible  <bruno@clisp.org>
1680         getprogname: Work around program name truncation when possible.
1681         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1682         possibly use pst_cmd instead.
1684 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1686         fts: cleanup after FTS_NOATIME removal
1687         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1688         (FTS_STOP): Shrink to minimal values.  We don’t need to
1689         worry about binary compatibility in Gnulib, and the old way
1690         of doing things had a hole in the user options that caused
1691         FTS_OPTIONMASK to not work as desired.
1693 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1695         fts: remove FTS_NOATIME
1696         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1697         We cannot guarantee that O_NOATIME works: e.g. openat fails
1698         with EPERM if the effective user ID of the caller does not match
1699         the owner of the file and the caller is not privileged.
1700         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1701         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1702         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1703         (FTS_OPTIONMASK): Adjust.
1704         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1705         (fd_ring_check): Likewise.
1707 2018-10-08  Bruno Haible  <bruno@clisp.org>
1709         csharpcomp*, csharpexec*: Remove support for pnet.
1710         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1711         HAVE_CSCC.
1712         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1713         Don't test HAVE_CSCC.
1714         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1715         (compile_csharp_class): Don't invoke it.
1716         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1717         HAVE_ILRUN.
1718         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1719         Don't test HAVE_ILRUN.
1720         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1721         (execute_csharp_program): Don't invoke it.
1722         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1723         any more.
1725 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1727         renameatu: prefer renameat2 to syscall
1728         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1729         Use renameat2 instead of syscall (Bug#32796).
1730         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1732 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1734         bootstrap, gnulib-tool: use https instead of insecure rsync
1735         * build-aux/bootstrap (download_po_files, po_download_command_format):
1736         Don't try using rsync; always use wget over https to fetch PO files.
1737         * gnulib-tool (func_import): Likewise.
1738         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1740 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1742         bootstrap, gnulib-tool: correct the translations wget command
1743         * build-aux/bootstrap (po_download_command_format2): Restrict
1744         recursion to a single level.
1745         * gnulib-tool (func_import): Likewise.
1746         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1748 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1750         doc: the gnulib snapshots are not maintained
1751         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1753 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1755         timevar: add to lib_SOURCES
1756         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1758 2018-10-07  Bruno Haible  <bruno@clisp.org>
1760         dirent: Update documentation.
1761         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1763 2018-10-05  Bruno Haible  <bruno@clisp.org>
1765         strpbrk: Make it possible to namespace the defined symbol.
1766         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1768 2018-10-05  Bruno Haible  <bruno@clisp.org>
1770         strcspn: Make it possible to namespace the defined symbol.
1771         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1773 2018-10-05  Bruno Haible  <bruno@clisp.org>
1775         raise: Make it possible to namespace the defined symbol.
1776         * lib/raise.c (raise): Undefine only after the replacement function has
1777         been defined.
1778         (raise): Renamed from rpl_raise.
1779         (raise_nothrow): Move to the end of the compilation unit.
1781 2018-10-05  Bruno Haible  <bruno@clisp.org>
1783         memcmp: Make it possible to namespace the defined symbol.
1784         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1786 2018-10-05  Bruno Haible  <bruno@clisp.org>
1788         explicit_bzero: Make it possible to namespace the defined symbol.
1789         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1790         glibc.
1792 2018-10-05  Bruno Haible  <bruno@clisp.org>
1794         mkdir-p: Depend on 'mkdir'.
1795         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1797 2018-10-05  Bruno Haible  <bruno@clisp.org>
1799         tempname: Depend on 'mkdir'.
1800         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1801         at <https://savannah.gnu.org/bugs/?33379>.
1802         * modules/tempname (Depends-on): Add 'mkdir'.
1804 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1806         timevar: rely on gnulib modules for time portability.
1807         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1808         * m4/timevar.m4: Don't check for clock_t and struct tms,
1809         guaranteed by gnulib.
1810         * lib/timevar.h: Use extern "C" protection.
1811         Include <stdio.h> for FILE.
1812         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1813         they are guaranteed by gnulib.
1814         Remove uses of clock as (now useless) fallback.
1816 2018-10-04  Bruno Haible  <bruno@clisp.org>
1818         sh-filename: New module.
1819         * m4/sh-filename.m4: New file.
1820         * modules/sh-filename: New file.
1821         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1822         "/bin/sh".
1823         * tests/test-posix_spawn1.c (main): Likewise.
1824         * tests/test-posix_spawn2.c (main): Likewise.
1825         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1826         is_envjavac_gcj43): Likewise.
1827         * lib/javaexec.c (execute_java_class): Likewise.
1828         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1829         * modules/posix_spawnp-tests (Depends-on): Likewise.
1830         * modules/javacomp (Depends-on): Likewise.
1831         * modules/javaexec (Depends-on): Likewise.
1833 2018-10-04  Bruno Haible  <bruno@clisp.org>
1835         spawn-pipe tests: Avoid test failure on native Windows.
1836         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1837         that fd 2 is closed.
1839 2018-10-04  Bruno Haible  <bruno@clisp.org>
1841         fcntl: Make it possible to namespace the defined symbol.
1842         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1843         been defined.
1844         (fcntl): Renamed from rpl_fcntl.
1845         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1846         from fcntl.
1847         (klibc_fcntl): Move to the end of the compilation unit.
1849 2018-10-02  Bruno Haible  <bruno@clisp.org>
1851         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1852         * tests/test-vasnprintf.c (test_function): Change the test added on
1853         2018-09-23 to check only the 18 most significant digits.
1855         vasnprintf tests: Avoid test failure on Cygwin.
1856         * tests/test-vasnprintf.c (test_function): Change the test added on
1857         2018-09-23 to check only the 42 most significant digits.
1859 2018-10-01  Bruno Haible  <bruno@clisp.org>
1861         mkostemp, mkostemps: Update documentation.
1862         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1863         * doc/glibc-functions/mkostemps.texi: Likewise.
1865 2018-10-01  Tom Tromey  <tom@tromey.com>
1867         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1868         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1869         on OS X.
1871 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1873         hmac-*: refactor to remove repetitive code
1874         * lib/hmac.c: A new parameterized single implementation.
1875         * lib/hmac-md5.c: Define parameters and include implementation.
1876         * lib/hmac-sha1.c: Likewise.
1877         * lib/hmac-sha256.c: Likewise.
1878         * lib/hmac-sha512.c: Likewise.
1879         * modules/crypto/hmac-md5: Reference the new implementation file.
1880         * modules/crypto/hmac-sha1: Likewise.
1881         * modules/crypto/hmac-sha256: Likewise.
1882         * modules/crypto/hmac-sha512: Likewise.
1883         * tests/test-hmac-md5.c: Refactor common code to a single function.
1884         * tests/test-hmac-sha1.c: Likewise.
1885         * tests/test-hmac-sha256.c: Likewise.
1886         * tests/test-hmac-sha512.c: Likewise.
1888 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1890         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1891         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1892         key length to that output by sha512, not the blocksize.
1893         Otherwise uninitialized data from the stack
1894         is used when computing the hash.
1895         * tests/test-hmac-sha512.c: Add a shortened key test case.
1896         Reported at https://github.com/coreutils/gnulib/pull/5
1898 2018-09-30  Bruno Haible  <bruno@clisp.org>
1900         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1901         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1902         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1903         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1904         'unsigned int' before comparison with an unsigned value.
1906 2018-09-30  Bruno Haible  <bruno@clisp.org>
1908         grantpt: Remove unnecessary dependency.
1909         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1911 2018-09-30  Bruno Haible  <bruno@clisp.org>
1913         timevar: Small tweaks.
1914         * lib/timevar.h: Fix comments. Add parameter names to function
1915         declarations.
1916         * lib/timevar.c: Include timevar.h immediately after config.h.
1917         * lib/timevar.def: Fix comments.
1918         * modules/timevar (Maintainer): List Akim Demaille.
1920 2018-09-30  Bruno Haible  <bruno@clisp.org>
1922         timevar: Include documentation in gnulib manual.
1923         * doc/timevar.texi: Change node and section name to 'Profiling of
1924         program phases'.
1925         In the code snippets, tweak the #includes and use GNU coding style.
1926         * doc/gnulib.texi: Include timevar.texi.
1928 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1930         timevar: import from Bison.
1931         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1932         New files.
1933         * lib/timevar.def: New file.
1934         * doc/timevar.texi: New file.
1936 2018-09-26  Bruno Haible  <bruno@clisp.org>
1938         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1939         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1940         * lib/javacomp.c (default_target_version): Likewise.
1942 2018-09-26  Bruno Haible  <bruno@clisp.org>
1944         javacomp-script, javacomp: Add support for Java 11.
1945         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1946         target-version 11.
1947         * lib/javaversion.h: Update comments.
1948         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1949         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1950         TARGET_VERSION_BOUND, target_version_index,
1951         corresponding_classfile_version): Accept source_version 11 and
1952         target_version 11.
1953         * lib/javacomp.h: Update comments accordingly.
1955 2018-09-23  Bruno Haible  <bruno@clisp.org>
1957         vasnprintf: Fix heap memory overrun bug.
1958         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1959         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1960         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1961         memory.
1962         * tests/test-vasnprintf.c (test_function): Add another test.
1964 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1966         maint: mktime.c now shared with glibc
1967         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1968         are now the same in Gnulib and glibc.
1970         mktime: fix _LIBC typo
1971         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1973 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1975         dfa: optimization for state merge
1976         * lib/dfa.c (merge2): New function.
1977         (merge_nfa_state): Use it.
1979 2018-09-18  Jim Meyering  <meyering@fb.com>
1981         dfa: trivial comment fix: s/is/if/
1982         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1984 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1986         dfa: use more-informative function name
1987         * lib/dfa.c (maybe_disable_superset_dfa):
1988         Rename from dfautf8noss.  Use change.
1990         dfa: tweak allocation performance
1991         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1992         Prefer ptrdiff_t for indexes some more.
1993         Use char for flags, as it’s wide enough.
1994         Allocate queue and flags together, with one malloc call.
1995         No need to use xnmalloc since the multiplication and
1996         addition cannot overflow (it’s already been checked by
1997         earlier allocation).  Prefer memset to open-coding.
1999         dfa: prune states as we go
2000         * lib/dfa.c (prune): Remove.
2001         dfa: reorder enum for efficiency
2002         (merge_nfa_state): Prune as we go instead of at the end.
2003         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
2005         * lib/dfa.c (END): Now -1 again.  Reorder other elements
2006         of the enumeration to make it easier for GCC to generate
2007         efficient code by using fewer comparisons to check for
2008         ranges of values.
2009         (atom): Take advantage of the reordering.
2011 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2013         dfa: optimize alternation in NFA
2014         Even when similar states exist in alternation, the DFA treats them
2015         as separate items, which may complicate the transition in NFA and
2016         cause slowdown.  This change assembles the states into one.  For
2017         example, ab|ac is changed into a(b|c).  This change speeds-up
2018         matching for many branched patterns.  For example, grep speeds up
2019         more than 30× in:
2021           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
2022           time -p env LC_ALL=C grep -vf in in
2024         * lib/dfa.c (prune): New function.
2025         (merge_nfa_state): New function.  It merges similar NFA states.
2026         (dfaoptimize): New function.  It seeks merged and removed nodes.
2027         (dfaanalyze): Call new function.
2028         (dfautf8noss): Change name from dfaoptimize because of addition of new
2029         function.
2030         (dfacomp): Update caller.
2032         dfa: simplify initial state
2033         Simplifying the initial state enables easier optimization of the NFA.
2034         * lib/dfa.c (enum token): Add new element BEG.
2035         (prtok): Adjust due to adding element BEG.
2036         (dfaparse): Put BEG at a head of tokens.
2037         (state_index): Adjust due to adding element BEG.
2038         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
2039         build initial state.
2040         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
2042 2018-09-18  Bruno Haible  <bruno@clisp.org>
2044         file-has-acl: Fix test failure on Cygwin 2.9.
2045         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
2046         * lib/acl-internal.h: Likewise.
2047         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
2048         * lib/acl-internal.c: Update comments regarding Cygwin.
2049         * lib/acl_entries.c: Likewise.
2050         * lib/file-has-acl.c: Likewise.
2051         (file_has_acl): For Cygwin, use a different way to determine whether
2052         the "default" ACL of a directory is nontrivial.
2053         * lib/get-permissions.c: Update comments regarding Cygwin.
2054         * lib/set-permissions.c: Likewise.
2056 2018-09-18  Bruno Haible  <bruno@clisp.org>
2058         stat-time tests: Fix test failure on Cygwin.
2059         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
2061 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2063         doc: OS X 10.11 lacked ns time functions
2064         According to <https://github.com/zeromq/libzmq/issues/2175>,
2065         nanosecond-resolution timestamp functions were introduced
2066         in macOS 10.12, so document the last version (OS X 10.11)
2067         where they were absent.
2069         gettime: nanotime never existed
2070         Problem reported by Bruno Haible in:
2071         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
2072         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
2073         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
2075 2018-09-18  Bruno Haible  <bruno@clisp.org>
2077         doc: Update statement about target platforms.
2078         Reported by Simon Sobisch.
2079         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
2080         restrictions on MSVC versions.
2082 2018-09-18  Bruno Haible  <bruno@clisp.org>
2084         posix_spawn tests: Fix link error on 64-bit Cygwin.
2085         * tests/test-posix_spawn1.c (environ): Remove declaration.
2086         * tests/test-posix_spawn2.c (environ): Likewise.
2087         * tests/test-posix_spawn3.c (environ): Likewise.
2088         * tests/test-posix_spawn4.c (environ): Likewise.
2089         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
2090         * modules/posix_spawnp-tests (Depends-on): Likewise.
2092 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2094         timespec: new function current_timespec
2095         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
2096         and don’t worry about it failing on a CLOCK_REALTIME arg.
2097         POSIX requires it to succeed and I don’t know of any
2098         counterexamples where the fallbacks would work.
2099         (current_timespec): New function, taken from Emacs.  It is more
2100         convenient than gettime, and can help register allocation.
2101         * lib/timespec.h: Include arg-nonnull.h.
2102         (current_timespec): New declaration.
2103         (gettime, settime): Declare args to be nonnull.
2104         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
2106 2018-09-16  Bruno Haible  <bruno@clisp.org>
2108         setlocale: Improve locale handling on macOS 10.12 or newer.
2109         * lib/setlocale.c: Include header files for CoreFoundation. Declare
2110         gl_locale_name_canonicalize.
2111         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
2112         and LC_MESSAGES.
2113         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
2115 2018-09-16  Bruno Haible  <bruno@clisp.org>
2117         Update list of locale names with scripts on macOS.
2118         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
2119         match Mac OS X 10.13 and recent glibc.
2121 2018-09-16  Bruno Haible  <bruno@clisp.org>
2123         gettext: Use newer macOS APIs when possible.
2124         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
2125         CFLocaleCopyPreferredLanguages.
2127 2018-09-16  Bruno Haible  <bruno@clisp.org>
2129         localename: Revisit macOS specific code.
2130         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
2131         Fix comments about Mac OS X versions.
2133 2018-09-15  Bruno Haible  <bruno@clisp.org>
2135         setlocale: Improve support for locales not supported by libc.
2136         Reported by Dapeng Gao <peter@dpgao.cc> at
2137         <https://savannah.gnu.org/bugs/?54479>.
2138         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
2139         (libintl_setlocale): Use a more error-tolerant strategy when the locale
2140         to be set is not supported by libc: Emit warnings instead of failing.
2142 2018-09-15  Bruno Haible  <bruno@clisp.org>
2144         strstr, strcasestr: Add workaround against glibc-2.28 bug.
2145         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
2146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
2147         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
2148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
2149         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
2150         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
2151         * doc/glibc-functions/strcasestr.texi: Likewise.
2153 2018-09-14  Bruno Haible  <bruno@clisp.org>
2155         doc: Fix bottom of top-level page.
2156         Reported by Akim Demaille <akim.demaille@gmail.com> in
2157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
2158         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
2159         mode.
2160         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
2161         accordingly.
2163 2018-09-12  Bruno Haible  <bruno@clisp.org>
2165         Add test case from a recent glibc bug.
2166         * tests/test-strstr.c (main): Add test of long needle.
2167         * tests/test-strcasestr.c (main): Likewise.
2168         * tests/test-c-strstr.c (main): Likewise.
2169         * tests/test-c-strcasestr.c (main): Likewise.
2170         * tests/test-memmem.c (main): Likewise.
2172 2018-09-12  Bruno Haible  <bruno@clisp.org>
2174         Apply Eric Blake's improvements from 2011-02-25 to more tests.
2175         * tests/test-c-strstr.c (main): Add the same tests here as well.
2177 2018-09-12  Bruno Haible  <bruno@clisp.org>
2179         Apply Jim Meyering's fix from 2015-01-11 to more tests.
2180         * tests/test-memmem.c (main): Free haystack.
2181         * tests/test-strcasestr.c (main): Likewise.
2182         * tests/test-c-strcasestr.c (main): Likewise.
2184 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
2186         xstrtol: fix missing-TYPE_SIGNED typo
2187         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
2189 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2191         timespec: fix resolution confusion
2192         In normal usage, clock resolution is given in seconds, but the
2193         code was mistakenly using inverse seconds and calling it
2194         “resolution”.  Fix this, partly by renaming two identifiers.
2195         The old names will be kept for a bit, to ease transition.
2196         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
2197         New constants, replacing TIMESPEC_RESOLUTION and
2198         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
2199         All uses changed.
2201 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2203         mktime: simplify in prep for glibc merge
2204         * lib/mktime.c, lib/timegm.c [_LIBC]:
2205         Include mktime-internal.h (a small file just for glibc)
2206         instead of using a typedef.
2208 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2210         intprops: minor clarification of code
2211         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
2212         Use _GL_INT_CONVERT rather than reinventing it.
2214 2018-09-07  Bruno Haible  <bruno@clisp.org>
2216         Fix a comment.
2217         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
2219 2018-09-07  Bruno Haible  <bruno@clisp.org>
2221         posix_spawn_file_actions_addchdir: Add tests.
2222         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
2223         * tests/test-posix_spawn4.c: New file.
2224         * modules/posix_spawn_file_actions_addchdir-tests: New file.
2226 2018-09-07  Bruno Haible  <bruno@clisp.org>
2228         posix_spawn_file_actions_addchdir: New module.
2229         Suggested by Eric Blake in
2230         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
2231         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
2232         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
2233         union member 'chdir_action'.
2234         * lib/spawn_faction_addchdir.c: New file.
2235         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
2236         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
2237         HAVE_WORKING_POSIX_SPAWN.
2238         * lib/spawn_faction_adddup2.c: Likewise.
2239         * lib/spawn_faction_addopen.c: Likewise.
2240         * m4/posix_spawn_faction_addchdir.m4: New file.
2241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
2242         'posix_spawn_file_actions_addchdir' is present and whether
2243         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
2244         instead of HAVE_WORKING_POSIX_SPAWN.
2245         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
2246         posix_spawn_file_actions_addchdir is declared.
2247         (gl_SPAWN_H_DEFAULTS): Initialize
2248         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2249         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2250         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2251         * modules/spawn (Makefile.am): Substitute
2252         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2253         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2254         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2255         * modules/posix_spawn_file_actions_addchdir: New file.
2256         * modules/posix_spawn_file_actions_addclose (Depends-on,
2257         configure.ac): Test also REPLACE_POSIX_SPAWN.
2258         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
2259         configure.ac): Likewise.
2260         * modules/posix_spawn_file_actions_addopen (Depends-on,
2261         configure.ac): Likewise.
2262         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
2263         signature.
2264         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2265         * doc/posix-functions/posix_spawnp.texi: Likewise.
2267 2018-09-06  Bruno Haible  <bruno@clisp.org>
2269         stddef: Override max_align_t on NetBSD 8.0/x86.
2270         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
2271         the value of __alignof__ (max_align_t).
2272         * doc/posix-headers/stddef.texi: Mention the issue.
2274 2018-09-06  Bruno Haible  <bruno@clisp.org>
2276         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
2277         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
2278         system fcntl.
2279         * doc/posix-functions/fcntl.texi: Document the issue.
2281 2018-09-06  Bruno Haible  <bruno@clisp.org>
2283         count-trailing-zeros tests: Rely on limits-h module.
2284         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
2285         definition.
2286         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
2288 2018-09-06  Bruno Haible  <bruno@clisp.org>
2290         count-leading-zeros tests: Rely on limits-h module.
2291         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
2292         definition.
2293         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
2295 2018-09-06  Bruno Haible  <bruno@clisp.org>
2297         count-one-bits tests: Rely on limits-h module.
2298         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
2299         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
2301 2018-09-06  Bruno Haible  <bruno@clisp.org>
2303         xstrtoll: Rely on limits-h module.
2304         * lib/xstrtol.c: Don't include intprops.h.
2305         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2306         * modules/xstrtol (Depends-on): Remove 'intprops'.
2307         * modules/xstrtoll (Depends-on): Add 'limits-h'.
2309 2018-09-06  Bruno Haible  <bruno@clisp.org>
2311         strtoll, strtoull: Rely on limits-h module.
2312         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
2313         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2314         * modules/strtoll (Depends-on): Add limits-h.
2315         * modules/strtoull (Depends-on): Likewise.
2317 2018-09-06  Bruno Haible  <bruno@clisp.org>
2319         intprops tests: Fix compilation error with pre-C99 compiler.
2320         * tests/test-intprops.c (verify_stmt): New macro.
2321         (VERIFY, main): Use it.
2323 2018-09-06  Bruno Haible  <bruno@clisp.org>
2325         limits-h: Provide numerical limits macros.
2326         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
2327         IRIX and for GCC.
2328         (WORD_BIT, LONG_BIT): Define.
2329         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
2330         <limits.h> does not define LLONG_MAX or WORD_BIT.
2331         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
2332         TYPE_MAXIMUM): New macros, from intprops.h.
2333         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
2334         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
2335         provides.
2337 2018-09-05  Bruno Haible  <bruno@clisp.org>
2339         fcntl: Don't access nonexistent optional argument.
2340         Reported by Frank Busse <f.busse@imperial.ac.uk> in
2341         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
2342         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
2343         don't consume an argument. For actions that take an 'int' argument,
2344         consume an 'int' argument.
2346 2018-09-05  Eric Blake  <eblake@redhat.com>
2348         doc: mention environ pitfall
2349         * doc/posix-functions/environ.texi (environ): Assigning NULL to
2350         environ is a glibc extension.
2352 2018-09-03  Bruno Haible  <bruno@clisp.org>
2354         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
2355         Reported by Antoine Luong <antoine.luong@c-s.fr> in
2356         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2357         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2358         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2359         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2361 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2363         mktime: fix unlikely race+overflow bug
2364         Problem reported by Alexandre Oliva in:
2365         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2366         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2367         to avoid an unlikely race if the compiler delays a load and
2368         if this cascades into a signed integer overflow.
2370 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2372         mktime, timegm: simplify glibc time64_t
2373         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2374         Now long int, not time_t, since long int is the longstanding type
2375         for this in glibc and there is no need to change it even if time_t
2376         becomes 64 bits - even int would do, though this would be a change
2377         to the glibc generated code.  When this change is merged into
2378         glibc, it should simplify the time_t vs time64_t situation.
2380         mktime, timegm: simplify merge to glibc
2381         Move code around to make a merge to glibc easier to audit.
2382         This should not change behavior.
2383         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2384         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2385         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2386         simplify later conditionals; default the others to zero.  In uses
2387         of these conditionals, explicitly spell out how _LIBC affects
2388         things, so it’s easier to review from a glibc viewpoint.
2389         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2390         compartmentalize tzset issues.  Move system-dependent tzsettish
2391         code here from mktime.
2392         (mktime): Move tzsettish code to my_tzset, and move
2393         localtime_offset to within mktime so that it doesn’t
2394         need a separate ifdef.
2396 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2398         intprops: avoid evaluation of some expressions
2399         This makes EXPR_SIGNED (e) easier to use, as it no longer
2400         evaluates the expression E.  Formerly, E was required to be free
2401         of side effects.
2402         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2403         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2404         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2406 2018-08-23  Bruno Haible  <bruno@clisp.org>
2408         getcwd: Add cross-compilation guesses.
2409         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2410         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2411         Based on a patch by Paul Eggert.
2412         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2413         guesses for all GNU systems.
2415 2018-08-19  Bruno Haible  <bruno@clisp.org>
2417         glob-h: Formalize side effects from other modules.
2418         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2419         * m4/glob.m4 (gl_GLOB): Invoke it.
2421         fnmatch-h: Formalize side effects from other modules.
2422         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2423         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2425         limits-h: Formalize side effects from other modules.
2426         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2427         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2429 2018-08-19  Bruno Haible  <bruno@clisp.org>
2431         getpass: Move declaration to <unistd.h>.
2432         * lib/unistd.in.h (getpass): New declaration.
2433         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2434         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2435         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2436         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2437         On glibc systems, don't set REPLACE_GETPASS to 1.
2438         * modules/getpass (Depends-on): Add 'unistd'.
2439         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2440         (Include): Specify <unistd.h> instead of "getpass.h".
2441         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2442         (configure.ac): Sync with the configure.ac section of modules/getpass.
2443         (Include): Specify <unistd.h> instead of "getpass.h".
2444         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2445         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2446         REPLACE_GETPASS.
2447         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2448         REPLACE_GETPASS.
2449         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2450         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2451         and musl.
2452         * NEWS: Mention the change.
2454 2018-08-19  Bruno Haible  <bruno@clisp.org>
2456         glob: Fix over-optimization due to attribute __nonnull__.
2457         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2459 2018-08-19  Bruno Haible  <bruno@clisp.org>
2461         glob: Fix another compilation error when glob.h is not replaced.
2462         Reported by Reuben Thomas <rrt@sc3d.org> in
2463         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2464         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2465         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2467 2018-08-18  Bruno Haible  <bruno@clisp.org>
2469         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2470         Reported by Reuben Thomas <rrt@sc3d.org> in
2471         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2472         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2473         in config.h.
2475 2018-08-18  Bruno Haible  <bruno@clisp.org>
2477         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2478         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2479         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2480         Solution proposed by Eli Zaretskii.
2481         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2482         * lib/gettimeofday.c (GetProcAddress): Likewise.
2483         * lib/link.c (GetProcAddress): Likewise.
2484         * lib/physmem.c (GetProcAddress): Likewise.
2485         * lib/poll.c (GetProcAddress): Likewise.
2486         * lib/select.c (GetProcAddress): Likewise.
2487         * lib/stat-w32.c (GetProcAddress): Likewise.
2489 2018-08-18  Bruno Haible  <bruno@clisp.org>
2491         glob: Fix another compilation error when glob.h is not replaced.
2492         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2493         * lib/globfree.c: Include <libc-config.h>.
2495 2018-08-18  Bruno Haible  <bruno@clisp.org>
2497         glob: Fix compilation error when glob.h is not replaced.
2498         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2499         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2500         * lib/glob_pattern_p.c: Include <libc-config.h>.
2501         * modules/glob (Depends-on): Add libc-config.
2503 2018-08-18  Bruno Haible  <bruno@clisp.org>
2505         scratch_buffer: Add tests.
2506         * tests/test-scratch-buffer.c: New file.
2507         * modules/scratch_buffer-tests: New file.
2509 2018-08-18  Bruno Haible  <bruno@clisp.org>
2511         scratch_buffer: Fix include file.
2512         Reported by Reuben Thomas <rrt@sc3d.org> in
2513         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2514         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2515         double-inclusion guard.
2517 2018-08-18  Bruno Haible  <bruno@clisp.org>
2519         glob-h: Revert Paul Eggert's revert.
2520         * m4/glob_h.m4: Revert to previous state.
2521         * modules/glob-h: Likewise.
2523 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2525         glob-h: always build glob.h
2526         This works around a problem reported by Reuben Thomas in:
2527         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2528         This workaround always builds glob.h, even on platforms that
2529         do not need it; perhaps this could be improved someday.
2530         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2531         is always created now.
2532         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2534 2018-08-13  Bruno Haible  <bruno@clisp.org>
2536         monetary: Simplify m4 code.
2537         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2538         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2540 2018-08-13  Bruno Haible  <bruno@clisp.org>
2542         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2543         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2544         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2545         and by Paul J. Lucas <paul@lucasmail.org> in
2546         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2547         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2549 2018-08-11  Bruno Haible  <bruno@clisp.org>
2551         setlocale: Trivial simplification.
2552         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2554 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2556         verify: port 'assume' to traditional tools
2557         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2558         and other tools that use /*NOTREACHED*/ comments.
2560 2018-08-10  Bruno Haible  <bruno@clisp.org>
2562         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2563         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2564         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2565         'fnmatch-gnu' is in use.
2567 2018-08-07  Bruno Haible  <bruno@clisp.org>
2569         glob-h: Add tests.
2570         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2571         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2572         tests/test-glob-h.c.
2573         * modules/glob-h-tests: New file.
2574         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2575         conditions.
2576         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2577         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2579 2018-08-07  Bruno Haible  <bruno@clisp.org>
2581         glob-h: New module.
2582         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2583         replacements.
2584         * lib/glob.c: Include <config.h>.
2585         * m4/glob_h.m4: New file.
2586         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2587         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2588         REPLACE_GLOB_PATTERN_P as appropriate.
2589         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2590         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2591         * modules/glob-h: New file.
2592         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2593         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2594         lstat, sys_stat. Change conditions.
2595         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2596         REPLACE_GLOB_PATTERN_P. Set module indicator.
2597         (Makefile.am): Remove code that is moved to glob-h.
2598         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2599         * modules/posixcheck (Depends-on): Add glob-h.
2601 2018-08-06  Bruno Haible  <bruno@clisp.org>
2603         Force generation of substitute .h file when C++ support is enabled.
2604         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2605         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2606         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2607         FNMATCH_H to non-empty.
2608         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2609         ICONV_H to non-empty.
2610         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2611         MONETARY_H to non-empty.
2612         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2613         non-empty.
2615 2018-08-06  Bruno Haible  <bruno@clisp.org>
2617         fnmatch-h: Fix test compilation error on mingw (regression from today).
2618         * lib/fnmatch.in.h: Fix conditions.
2620 2018-08-06  Bruno Haible  <bruno@clisp.org>
2622         sys_resource: Relicense under LGPLv2+.
2623         John Malmberg's approval is in
2624         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2625         * modules/sys_resource (License): Change to LGPLv2+.
2627 2018-08-06  Bruno Haible  <bruno@clisp.org>
2629         fnmatch-h: Add tests.
2630         * tests/test-fnmatch-h.c: New file.
2631         * modules/fnmatch-h-tests: New file.
2632         * tests/test-fnmatch-h-c++.cc: New file.
2633         * modules/fnmatch-h-c++-tests: New file.
2635 2018-08-06  Bruno Haible  <bruno@clisp.org>
2637         fnmatch-h: New module.
2638         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2639         replacements.
2640         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2641         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2642         'posixcheck' warning.
2643         * m4/fnmatch_h.m4: New file.
2644         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2645         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2646         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2647         as appropriate.
2648         * modules/fnmatch-h: New file.
2649         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2650         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2651         conditions.
2652         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2653         indicator.
2654         (Makefile.am): Remove code that is moved to fnmatch-h.
2655         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2656         REPLACE_FNMATCH.
2657         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2658         * modules/posixcheck (Depends-on): Add fnmatch-h.
2660 2018-08-06  Bruno Haible  <bruno@clisp.org>
2662         Enable more C++ tests.
2663         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2664         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2665         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2666         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2667         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2669 2018-08-06  Bruno Haible  <bruno@clisp.org>
2671         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2672         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2673         getopt.h.
2674         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2676 2018-08-05  Bruno Haible  <bruno@clisp.org>
2678         utime-h: Generate header file when module 'posixcheck' is in use.
2679         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2680         UTIME_H to non-empty.
2682 2018-08-05  Bruno Haible  <bruno@clisp.org>
2684         monetary: Generate header file when module 'posixcheck' is in use.
2685         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2686         use, set MONETARY_H to non-empty.
2688 2018-08-05  Bruno Haible  <bruno@clisp.org>
2690         iconv-h: Generate header file when module 'posixcheck' is in use.
2691         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2692         set ICONV_H to non-empty.
2694 2018-08-05  Bruno Haible  <bruno@clisp.org>
2696         Optimize the "checking whether ... is declared without a macro" checks.
2697         Suggested by Paul Eggert in
2698         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2699         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2700         Gnulib module 'posixcheck' is not in use.
2702 2018-08-05  Bruno Haible  <bruno@clisp.org>
2704         iconv-h: Enable 'posixcheck' warnings.
2705         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2706         iconv_open.
2707         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2709 2018-08-05  Bruno Haible  <bruno@clisp.org>
2711         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2712         * m4/extern-inline.m4: Add more comments.
2713         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2714         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2715         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2717 2018-08-04  Bruno Haible  <bruno@clisp.org>
2719         New module 'posixcheck'.
2720         * modules/posixcheck: New file.
2721         * m4/posixcheck.m4: New file.
2722         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2723         (Which modules?): Reference it.
2725 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2727         dfa: fix memory leak
2728         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2730 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2732         ieee754-h: new module
2733         It looks like Emacs can use this for some NaN processing.
2734         Emacs uses it only on double NaNs so it should be safe.
2735         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2736         * config/srclist.txt: Mention ieee754.h in a comment.
2737         * doc/glibc-headers/ieee754.texi (ieee754.h):
2738         Gnulib now has a substitute that should work
2739         except for long double and for non-IEEE platforms.
2740         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2741         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2743 2018-07-27  Bruno Haible  <bruno@clisp.org>
2745         iswcntrl: Mention minor problem on macOS.
2746         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2748 2018-07-26  Colin Watson  <cjwatson@debian.org>
2750         bootstrap, gnulib-tool: fix translations rsync
2751         Previously, we created files such as $pobase/Makefile.in.in and then the
2752         subsequent rsync would immediately delete them.
2753         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2754         non-.po files in target directory when rsyncing translations.
2755         * gnulib-tool (func_import): Likewise.
2756         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2758 2018-07-25  Jim Meyering  <meyering@fb.com>
2760         bootstrap: reinstate definition fo gnulib_mk.
2761         That variable is used at least by cppi.
2762         * build-aux/bootstrap (gnulib_mk): Restore definition.
2763         This reverts the deletion from v0.1-1844-gc66dba9ba.
2765 2018-07-23  Bruno Haible  <bruno@clisp.org>
2767         doc: For module names, use texinfo markup @code{} or @samp{}.
2768         * doc/alloca.texi: Mark gnulib module names with @code.
2769         * doc/alloca-opt.texi: Likewise.
2770         * doc/quote.texi: Likewise.
2771         * doc/posix-functions/freopen.texi: Likewise.
2772         * doc/posix-functions/open.texi: Likewise.
2773         * doc/posix-functions/readlink.texi: Likewise.
2774         * doc/posix-functions/readlinkat.texi: Likewise.
2775         * doc/posix-functions/stdout.texi: Likewise.
2776         * doc/posix-functions/stderr.texi: Likewise.
2777         * doc/posix-functions/unlink.texi: Likewise.
2778         * doc/posix-functions/unlinkat.texi: Likewise.
2779         * doc/posix-functions/utime.texi: Likewise.
2780         * doc/posix-functions/utimensat.texi: Likewise.
2781         * doc/posix-functions/utimes.texi: Likewise.
2782         * doc/posix-headers/stdint.texi: Likewise.
2783         * doc/glibc-functions/futimesat.texi: Likewise.
2784         * doc/glibc-functions/lutimes.texi: Likewise.
2785         * doc/glibc-functions/memmem.texi: Likewise.
2787 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2789         doc: Avoid some overfull lines in the TeX output.
2790         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2791         @example.
2792         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2793         newline before the long URL.
2794         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2795         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2796         Add line breaks in code snippets.
2798 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2800         hard-locale: simplify by removing hard-locale.m4
2801         * m4/hard-locale.m4: Remove.
2802         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2803         (configure.ac): Do not call gl_HARD_LOCALE.
2805         gnulib-tool: limit line length for git send-email
2806         * gnulib-tool (func_import): Break actioncmd log line
2807         into multiple lines.
2809 2018-07-16  Bruno Haible  <bruno@clisp.org>
2811         ffs: Ensure declaration on mingw.
2812         Reported by Daniel P. Berrangé <berrange@redhat.com>
2813         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2814         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2815         also declared.
2817 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2819         regex-tests: add dependency
2820         * modules/regex-tests (Depends-on): Add gettext-h.
2821         This is needed given the recent changes to regex,
2822         which no longer depends on gettext-h.
2824 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2826         regex: now in sync with glibc
2827         * config/srclist.txt: Gnulib and glibc regex code
2828         are synchronized again.
2830 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2832         renameatu: rename from renameat2
2833         It's looking like Glibc will add a renameat2 function
2834         that is incompatible with Gnulib renameat2; see:
2835         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2836         To help avoid future confusion, rename renameat2 to something else.
2837         Use the name 'renameatu', as the Gnulib function is close to the
2838         Glibc function.  Perhaps someday there will also be a renameat2
2839         Gnulib module, which mimicks the future glibc renameat2, but that
2840         can wait as nobody seems to need such a module now.
2841         * NEWS: Mention this.
2842         * lib/renameatu.c: Rename from lib/renameat2.c.
2843         * lib/renameatu.h: Rename from lib/renameat2.h.
2844         * modules/renameatu: Rename from modules/renameat2.
2845         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2846         All uses of "renameat2" in identifiers or file name
2847         changed to "renameatu", except for two instances in
2848         lib/renameatu.c that deal with the Linux kernel's
2849         renameat2 syscall.
2851 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2853         gnulib-tool: minor tweaks for --gnu-make
2854         * gnulib-tool: Do not allow --gnu-make in test modes,
2855         since they all require automake.
2856         (func_emit_lib_Makefile_am): Don’t emit automake comment
2857         if --gnu-make.
2859         regex: work around conditional-dependencies glitch
2860         * modules/regex (Depends-on): Add langinfo.
2861         Without this change, I had problems building an experimental
2862         version of GNU Emacs.  The symptom of the bug was a message
2863         ‘./configure: line 12726: test: =: unary operator expected’.
2864         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2865         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2866         was unset.  Although gl_FUNC_NL_LANGINFO has
2867         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2868         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2869         --conditional-dependencies sometimes arranges for the
2870         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2871         code.  Since the regex code includes <langinfo.h> it should be
2872         depending on the langinfo module anyway, and this happens to work
2873         around the bug, so install that as a workaround for now.  To
2874         reproduce the original problem, run the following shell script on
2875         the version of Gnulib just before this patch was installed.
2876                 rm -fr foo
2877                 mkdir foo
2878                 cat >foo/configure.ac <<'EOF'
2879                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2880                 gl_EARLY
2881                 gl_INIT
2882                 AC_OUTPUT
2883                 EOF
2884                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2885                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2886                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2887                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2888                 cd foo
2889                 aclocal -I m4
2890                 autoconf
2891                 ./configure --with-included-regex
2893 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2895         wchar: fix bug when checking for ‘inline’
2896         I discovered this when looking into using the regex module
2897         with Emacs.
2898         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2899         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2900         conftest1.c and conftest2.c but these files were not created.
2901         As far as I can see, this check never worked and nobody reported
2902         it until now, which is a bit worrisome.
2904 2018-06-30  Jim Meyering  <meyering@fb.com>
2906         bootstrap: s/--option val/--option=val/
2907         * build-aux/bootstrap (gnulib_tool_options): Change the
2908         spelling of "--option val" pairs to "--option=val", for
2909         aesthetics, and also so that this file no longer triggers
2910         a common help2man syntax-check warning when copied into
2911         projects like grep, gzip, etc.
2913 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2915         manywarnings: omit -Wswitch-default
2916         This should make things more consistent, as we already ignore
2917         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2918         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2919         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2920         Add -Wswitch-default.
2921         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2922         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2923         Remove -Wswitch-default.
2925         regex: revert most trimming
2926         Problems reported by Bruno Haible in:
2927         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2928         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2929         and wctype back in.  lock because regex users shouldn’t
2930         need to know that regex needs locking, and the rest because
2931         gnulib-tool should ordinarily ignore them anyway.
2933 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2935         regex: trim module dependencies
2936         * modules/regex (Depends-on): Remove gettext-h and lock,
2937         since the regex code should work OK without these modules,
2938         and Emacs uses it that way.  Also remove memcmp, memmove,
2939         and wctype, as these modules are obsolete and should not be
2940         needed any more.
2942 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2944         regex: glibc does not use intprops.h
2945         Maybe we can talk glibc into using intprops.h someday, but
2946         now doesn’t seem to be a good time.
2947         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2948         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2949         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2951 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2953         regex: port to recently proposed glibc regex merge
2954         This patch is inspired by Adhemerval Zanella's recent proposal
2955         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2956         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2957         the glibc side, without keeping Gnulib portable.
2958         * lib/regex.h: Fix a problem with glibc installed-header checking,
2959         as follows:
2960         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2961         (_Restrict_arr_): Prefer __restrict_arr if defined,
2962         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2963         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2964         (build_wcs_upper_buffer, build_upper_buffer)
2965         (re_string_translate_buffer, re_string_context_at):
2966         Move decls here from lib/regex_internal.h, for glibc internal tests.
2967         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2968         glibc BZ #18496.
2969         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2970         -Wunused-value.
2971         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2972         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2973         (bitset_mask): Now static inline, and without any __attribute__
2974         ((unused)) decoration, for glibc internal tests.
2976 2018-06-25  Bruno Haible  <bruno@clisp.org>
2978         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2979         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2980         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2981         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2982         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2983         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2984         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2985         / -lthread / -lpth does not get optimized away by a preceding
2986         --as-needed option.
2988 2018-06-25  Bruno Haible  <bruno@clisp.org>
2990         Continue to use spaces for indentation, not tabs.
2991         * MODULES.html.sh: Untabify.
2992         * doc/regex.texi: Likewise.
2993         * lib/acl-internal.c: Likewise.
2994         * lib/dfa.c: Likewise.
2995         * lib/exclude.c: Likewise.
2996         * lib/exclude.h: Likewise.
2997         * lib/get-permissions.c: Likewise.
2998         * lib/gettimeofday.c: Likewise.
2999         * lib/parse-datetime.y: Likewise.
3000         * lib/pselect.c: Likewise.
3001         * lib/set-permissions.c: Likewise.
3002         * lib/time.in.h: Likewise.
3003         * m4/canonicalize.m4: Likewise.
3004         * m4/gc.m4: Likewise.
3005         * m4/gnulib-common.m4: Likewise.
3006         * m4/pthread_sigmask.m4: Likewise.
3007         * m4/vararrays.m4: Likewise.
3008         * tests/test-digest.h: Likewise.
3009         * tests/test-fcntl-h.c: Likewise.
3010         * tests/test-timespec.c: Likewise.
3011         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
3013 2018-06-25  Bruno Haible  <bruno@clisp.org>
3015         manywarnings: Don't enable -Wjump-misses-init warnings by default.
3016         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
3017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
3018         -Wjump-misses-init.
3020 2018-06-25  Jim Meyering  <meyering@fb.com>
3022         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
3023         * lib/acl-internal.h (free_permission_context): Remove that
3024         attribute directive.  Otherwise, it would provoke this from GCC 9:
3025         lib/acl-internal.h:300:3: error: 'const' attribute on function \
3026           returning 'void' [-Werror=attributes]
3028 2018-06-24  Jim Meyering  <meyering@fb.com>
3030         parse-datetime: accommodate gcc-4.8.5
3031         Bruno Haible reported the build failure in
3032         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
3033         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
3034         on declaration of new local.
3036 2018-06-24  Bruno Haible  <bruno@clisp.org>
3038         af_alg: Fail in continuable manner on Linux/powerpc64le.
3039         Reported by Assaf Gordon <assafgordon@gmail.com>
3040         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
3041         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
3042         byte send() as the first round.
3044 2018-06-24  Bruno Haible  <bruno@clisp.org>
3046         af_alg: Fix state of stream after sendfile() succeeds.
3047         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
3048         the stream is correctly positioned afterwards.
3049         * modules/crypto/af_alg (Depends-on): Add fflush.
3050         * tests/test-digest.h (test_digest_on_files): Verify that after the
3051         operation the stream is positioned at end of file.
3053 2018-06-24  Jim Meyering  <meyering@fb.com>
3055         canon-host: take GCC9's advice rather than ignoring warning
3056         Pádraig Brady suggested not to ignore this GCC9 advice.
3057         * lib/canon-host.c: Undo preceding change.
3058         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
3060         parse-datetime.y: avoid spurious GCC 9 warning
3061         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
3062         a function local prior to the first "goto fail".  The prior use would
3063         evoke this:
3064         parse-datetime.y: In function 'parse_datetime2':
3065         parse-datetime.y:1791:19: error: jump skips variable initialization \
3066           [-Werror=jump-misses-init]
3067         parse-datetime.y:2385:2: note: label 'fail' defined here
3068         parse-datetime.y:188:43: note: '({anonymous})' declared here
3069         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
3071         canon-host.c: avoid spurious GCC 9 warning
3072         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
3074         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
3075         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
3076         * m4/manywarnings.m4: Remove them.
3077         Otherwise, building coreutils, I would see this:
3078         cc1: error: deprecated command line option '-Wchkp' [-Werror]
3079         cc1: error: -Wabi won't warn about anything [-Werror=abi]
3080         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
3081           which is also used by default
3082         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
3084 2018-06-24  Bruno Haible  <bruno@clisp.org>
3086         af_alg tests: Add another test.
3087         * tests/test-digest.h (test_digest_on_files): Also check a large file
3088         with a skipped header.
3089         * tests/test-md5.c: Include macros.h.
3090         * tests/test-sha1.c: Likewise.
3091         * tests/test-sha256.c: Likewise.
3092         * tests/test-sha512.c: Likewise.
3093         * modules/crypto/md5-tests (Files): Add tests/macros.h.
3094         * modules/crypto/sha1-tests (Files): Likewise.
3095         * modules/crypto/sha256-tests (Files): Likewise.
3096         * modules/crypto/sha512-tests (Files): Likewise.
3098 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3100         maint: clarify comments about sticky EOF
3101         * lib/af_alg.c: Be more direct that we can't
3102         assume stickiness of EOF for portability reasons.
3103         * lib/md5.c: Clarify that this isn't just a glibc issue.
3104         * lib/sha1.c: Likewise.
3105         * lib/sha256.c: Likewise.
3106         * lib/sha512.c: Likewise.
3108 2018-06-24  Bruno Haible  <bruno@clisp.org>
3110         af_alg: Comment and style improvements.
3111         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
3112         (afalg_buffer, afalg_stream): Improve comments.
3114 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3116         af_alg: disable kernel hash functions by default
3117         All the kernel routines were seen to be significantly slower
3118         with these relatively recent components on an i3-2310M system:
3119           kernel-4.10.6-200.fc25.x86_64
3120           openssl-1.0.2m-1.fc25.x86_64
3121         sha1 was nearly twice as slow in the kernel for example.
3122         Further considerations why this should not be the default, at:
3123         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
3125         * m4/af_alg.m4: Require --with-linux-crypto to enable.
3126         * m4/gl-openssl.m4: Tweak accordingly.
3128 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3130         af_alg: avoid hangs when reading from streams
3131         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
3132         and thus avoid doing a fread() when feof() is set.
3133         * lib/md5.c: Ensure feof() is called before fread().
3134         * lib/sha1.c: Likewise.
3135         * lib/sha256.c: Likewise.
3136         * lib/sha512.c: Likewise.
3138 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3140         af_alg: fix error handling when hash not returned
3141         * lib/af_alg.c (afalg_stream): Handle the case where we've
3142         successfully written data to the kernel in the read/write loop,
3143         but the kernel doesn't respond with the hash.
3145 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3147         libc-config: merge from glibc
3148         * lib/cdefs.h (__inline, __restrict):
3149         Copy from current glibc.  This fixes glibc bug 17721,
3150         which Gnulib had already fixed in a different way.
3151         (__nonnull): Lessen the distance from glibc by using the
3152         glibc definition inside an ‘#ifndef __nonnull’.
3153         (__attribute_nonstring__): New macro, copied from
3154         current glibc.
3155         * lib/libc-config.h (__attribute_nonstring__): New undef.
3156         (__restrict): Remove; workaround no longer needed.
3157         Keep the __inline workaround, though, as it uses HAVE___INLINE to
3158         support more compilers than the glibc __inline can.
3160 2018-06-24  Bruno Haible  <bruno@clisp.org>
3162         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
3163         * lib/mbrtowc.c (enc_t): New enum type.
3164         (locale_enc, locale_enc_cached): New functions.
3165         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
3166         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
3167         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
3168         instead.
3169         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
3170         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
3171         * modules/wcwidth (configure.ac): Invoke it.
3173 2018-06-24  Bruno Haible  <bruno@clisp.org>
3175         wchar-single: Fix test failure in wcwidth tests.
3176         * tests/test-wcwidth.c (main): If the wchar-single module is present,
3177         skip the tests in the C locale.
3179 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3181         crypto: mention --without-linux-crypto in --with-openssl --help
3182         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
3183         routines take precedence in --with-openssl help output.
3185 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3187         wchar-single: a new module to enable optimizations in wchar replacements
3188         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
3189         GNULIB_WCHAR_SINGLE is enabled.
3190         * lib/wcwidth.c (wcwidth): Likewise.
3192 2018-06-23  Bruno Haible  <bruno@clisp.org>
3194         libc-config: Fix conflict with FreeBSD include files.
3195         * lib/cdefs.h (__nonnull): Remove definition.
3196         * lib/libc-config.h (__nonnull): Remove undefinition.
3198 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3200         random_r: do not crash if state is unaligned
3201         Problem reported by Bruce Korb in:
3202         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
3203         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
3204         with 'cc -O2 -xmemalign=8s'.
3205         * lib/random_r.c: Include string.h, for memcpy.
3206         (get_int32, set_int32): New functions.
3207         (__srandom_r, __initstate_r, __setstate_r, __random_r):
3208         Use them to avoid assumption that state pointer is aligned.
3209         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
3210         * tests/test-random_r.c (test_failed): New function.
3211         (main): Use it, to test for alignment bugs.
3213         random_r: omit unnecessary include
3214         * lib/random_r.c: Do not include limits.h.
3216         random, random_r: merge from glibc
3217         * lib/random.c, lib/random_r.c:
3218         Include libc-config.h if !_LIBC, not config.h unilaterally.
3219         * lib/random.c:
3220         Do not include stdint.h or time.h; not needed.
3221         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
3222         (unsafe_state): Rename from generator.  All uses changed.
3223         Use C99-style initializers.
3224         (__random, __srandom, __initstate, __setstate): Rename from
3225         non-underscored version, but define it to non-underscored version
3226         on Gnulib.  Add a lock.
3227         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
3228         Likewise.
3229         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
3230         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
3231         (__srandom_r): Use int32_t instead of long int where int32_t will do.
3232         (__random_r): Use uint32 to fix glibc bug 17343.
3233         * modules/random, modules/random_r (Depends-on): Add libc-config.
3234         Depend on stdint only if $HAVE_RANDOM = 0.
3236 2018-06-19  Jim Meyering  <meyering@fb.com>
3238         README-release: also run any check-very-expensive tests
3239         * top/README-release: Adjust instructions so they run the
3240         check-very-expensive tests when there is such a target.
3242 2018-06-18  Bruno Haible  <bruno@clisp.org>
3244         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
3245         * m4/pthread_rwlock_rdlock.m4: Add comment.
3246         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
3247         are reader-preferring in glibc.
3248         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
3249         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
3251 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3253         crypto: use byteswap
3254         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3255         * lib/sm3.c: Include <byteswap.h>.
3256         (SWAP): Use its macros rather than reinventing the wheel.
3257         * modules/crypto/md4, modules/crypto/md5-buffer:
3258         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
3259         * modules/crypto/sha512-buffer, modules/crypto/sm3:
3260         (Depends-on): Add byteswap.
3262 2018-06-17  Pádraig Brady  <P@draigBrady.com>
3264         gendocs.sh: fix support for legacy --texi2html
3265         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
3266         to the default makeinfo invocation.
3267         Reported by Bruce Korb
3269 2018-06-17  Bruno Haible  <bruno@clisp.org>
3271         gettext po infrastructure: Update from current gettext git.
3272         Reported by Akim Demaille <akim@lrde.epita.fr>.
3273         * build-aux/po/Makefile.in.in: Update from current gettext git.
3274         * build-aux/po/remove-potcdate.sin: Likewise.
3275         * config/srclist.txt: Temporarily disable sync for these files.
3277 2018-06-17  Bruno Haible  <bruno@clisp.org>
3279         getloadavg: Return 0 on Windows without Cygwin.
3280         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
3282 2018-06-17  Paul Smith  <psmith@gnu.org>
3284         getloadavg: Allow building on Windows without Cygwin
3285         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
3286         * m4/getloadavg.m4: Check for unistd.h.
3288 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3290         Port crypto/af_alg to GCC 4.8.4
3291         Problem reported by Peter Simons in:
3292         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
3293         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
3295 2018-05-27  Colin Watson  <cjwatson@debian.org>
3297         bootstrap: document source fetching in --help
3298         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
3300 2018-04-09  Colin Watson  <cjwatson@debian.org>
3302         bootstrap: allow non-submodule control of gnulib
3303         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
3304         bootstrap.conf when fetching gnulib using "git clone" or via
3305         GNULIB_SRCDIR.
3307 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3309         crypto: omit stream ops Emacs doesn’t need
3310         * lib/md5.c (md5_stream):
3311         * lib/sha1.c (sha1_stream):
3312         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
3313         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3314         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
3315         defined.  Emacs needs this, as it does not use the stream
3316         operations and doesn’t need all the af_alg stuff we’ve recently
3317         added.  Perhaps a similar change is needed to the other crypto
3318         modules, but this patch changes only those needed for Emacs.
3319         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
3320         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
3321         New modules, used by Emacs.
3322         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3323         * modules/crypto/sha512: Rewrite to depend on the new modules.
3325 2018-05-20  Pádraig Brady  <P@draigBrady.com>
3327         fts: avoid a memory leak edge case
3328         * lib/fts.c (fts_open): Set an appropriate fts_level
3329         so that an immediate fts_close() will free the allocation.
3330         * tests/test-fts.c (fts_dealloc): Add a test case which
3331         will trigger under valgrind or address sanitizer.
3332         Fixes https://bugs.gnu.org/31439
3334 2018-05-20  Bruno Haible  <bruno@clisp.org>
3336         wcwidth tests: Fix link error.
3337         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
3338         $(LIBUNISTRING).
3340 2018-05-20  Bruno Haible  <bruno@clisp.org>
3342         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
3343         * modules/regex (Files): Add m4/glibc21.m4.
3345 2018-05-20  Bruno Haible  <bruno@clisp.org>
3347         localcharset: Optimize.
3348         * lib/localcharset.c (alias_table): Comment out no-op mappings for
3349         platforms where these don't matter. This reduces the table size,
3350         which in turn reduces the lookup time.
3352 2018-05-19  Bruno Haible  <bruno@clisp.org>
3354         localcharset: Map the locale encodings found in newer OSes.
3355         * lib/localcharset.c (alias_table): Add mapping for locale encodings
3356         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3357         IRIX 6.5, Minix 3.3.
3358         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3360 2018-05-19  Bruno Haible  <bruno@clisp.org>
3362         localcharset: Move mapping tables into the code. Use a binary search.
3363         * lib/localcharset.h: Document the GNU canonical names for character
3364         encodings here.
3365         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3366         relocatable.h, configmake.h.
3367         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3368         macros.
3369         (charset_aliases): Remove variable.
3370         (get_charset_aliases): Remove function.
3371         (struct table_entry): New type.
3372         (alias_table, locale_table): New constants.
3373         (locale_charset): Use the alias_table or locale_table to get the
3374         canonicalized encoding name.
3375         * lib/config.charset: Remove file.
3376         * lib/ref-add.sin: Remove file.
3377         * lib/ref-del.sin: Remove file.
3378         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3379         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3380         * modules/localcharset (Notice): Remove.
3381         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3382         glibc21.m4.
3383         (Depends-on): Remove configmake.
3384         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3385         (Makefile.am): Simplify.
3386         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3388 2018-05-19  Bruno Haible  <bruno@clisp.org>
3390         localcharset: Add a manual test.
3391         * tests/test-localcharset.c: New file.
3392         * modules/localcharset-tests: New file.
3394 2018-05-19  Bruno Haible  <bruno@clisp.org>
3396         localcharset: Remove support for obsolete platforms.
3397         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3398         Mac OS X 10.2. Comment out dubious entry for Solaris.
3400 2018-05-19  Jim Meyering  <meyering@fb.com>
3402         gnupload: adjust comment
3403         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3404         more likely we'll remove the just-added code in a year or two.
3406 2018-05-19  Bruno Haible  <bruno@clisp.org>
3408         gnupload: Fix "gpg-agent is not available in this session" error.
3409         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3411 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3413         crypto/af_alg: fix --help
3414         * m4/af_alg.m4: Avoid spurious newline in --help output.
3416 2018-05-13  Bruno Haible  <bruno@clisp.org>
3418         nl_langinfo: Fix compilation error on Android.
3419         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3420         INT_CURR_SYMBOL, etc. only if these items are defined.
3422 2018-05-13  Bruno Haible  <bruno@clisp.org>
3424         truncate: Fix compilation error on Android.
3425         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3426         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3427         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3428         HAVE_TRUNCATE.
3429         * modules/truncate: Likewise.
3430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3431         not HAVE_TRUNCATE.
3432         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3433         HAVE_TRUNCATE.
3434         * doc/posix-functions/truncate.texi: Mention the issue.
3436 2018-05-13  Bruno Haible  <bruno@clisp.org>
3438         pthread: Fix compilation error on Android.
3439         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3440         recursive inclusion of this file.
3442 2018-05-13  Bruno Haible  <bruno@clisp.org>
3444         posix_spawn: Fix compilation error on Android.
3445         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3446         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3447         (posix_spawn_file_actions_t): Consider also the case
3448         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3450 2018-05-13  Bruno Haible  <bruno@clisp.org>
3452         tsearch: Move from K&R C to ANSI C.
3453         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3455 2018-05-13  Bruno Haible  <bruno@clisp.org>
3457         tsearch: Fix compilation error on Android.
3458         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3459         is 0.
3460         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3461         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3462         GNULIB_defined_tsearch is true.
3463         (twalk): Define only if GNULIB_defined_twalk is true.
3464         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3465         is 0.
3466         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3467         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3468         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3470 2018-05-13  Bruno Haible  <bruno@clisp.org>
3472         imaxdiv: Fix compilation error on Android.
3473         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3474         is not defined.
3475         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3476         HAVE_DECL_IMAXDIV, is 0.
3477         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3478         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3480 2018-05-13  Bruno Haible  <bruno@clisp.org>
3482         Support selective inclusion mechanism of recent mingw.org header files.
3483         Reported by Eli Zaretskii <eliz@gnu.org>.
3484         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3485         __need_ssize_t, or __need_time_t is defined, just include the system's
3486         <sys/types.h>.
3487         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3488         include the system's <locale.h>.
3490 2018-05-13  Bruno Haible  <bruno@clisp.org>
3492         Avoid compilation error due to 'mmap' on Android.
3493         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3494         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3495         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3496         Undefine on Android.
3498 2018-05-13  Bruno Haible  <bruno@clisp.org>
3500         Add cross-compilation guesses for Linux systems without glibc.
3501         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3503         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3504         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3505         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3506         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3507         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3508         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3509         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3510         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3511         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3512         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3513         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3514         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3515         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3516         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3517         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3518         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3520 2018-05-13  Bruno Haible  <bruno@clisp.org>
3522         getpagesize: Fix compilation error on Android.
3523         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3524         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3525         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3526         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3527         HAVE_GETPAGESIZE accordingly.
3528         * modules/getcwd (Files): Add m4/getpagesize.m4.
3530 2018-05-13  Bruno Haible  <bruno@clisp.org>
3532         tcgetsid: Fix compilation error on Android.
3533         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3534         AC_CHECK_FUNC.
3536 2018-05-13  Bruno Haible  <bruno@clisp.org>
3538         getpass: Fix configure test for Android.
3539         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3540         AC_CHECK_FUNC.
3542 2018-05-13  Bruno Haible  <bruno@clisp.org>
3544         ffs: Fix compilation error on Android.
3545         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3547 2018-05-13  Bruno Haible  <bruno@clisp.org>
3549         mkfifo: Fix compilation error on Android.
3550         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3551         AC_CHECK_FUNC.
3553 2018-05-13  Bruno Haible  <bruno@clisp.org>
3555         c-strtod: Fix configure test for Android.
3556         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3557         AC_CHECK_FUNC.
3559 2018-05-13  Bruno Haible  <bruno@clisp.org>
3561         random: Fix compilation error on Android.
3562         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3563         AC_CHECK_FUNC.
3565 2018-05-13  Bruno Haible  <bruno@clisp.org>
3567         grantpt: Fix compilation error on Android.
3568         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3569         AC_CHECK_FUNC.
3571 2018-05-13  Bruno Haible  <bruno@clisp.org>
3573         stdioext: Fix compilation errors with newer Android headers.
3574         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3575         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3576         fallbacks for Android.
3577         * lib/fpending.c: Update comments.
3578         * lib/fpurge.c: Likewise.
3579         * lib/freadable.h: Likewise.
3580         * lib/freadable.c: Likewise.
3581         * lib/freadahead.c: Likewise.
3582         * lib/freading.h: Likewise.
3583         * lib/freadptr.c: Likewise.
3584         * lib/fseterr.c: Likewise.
3585         * lib/fwritable.h: Likewise.
3586         * lib/fwritable.c: Likewise.
3587         * lib/fwriting.h: Likewise.
3588         * lib/fwriting.c: Likewise.
3590 2018-05-13  Bruno Haible  <bruno@clisp.org>
3592         doc: Add info about Android versions 2.0 to 8.1.
3593         * doc/**/*.texi: Add info about functions in all released versions of
3594         Bionic.
3596 2018-05-12  Bruno Haible  <bruno@clisp.org>
3598         fseeko: On mingw, don't use the hidden function _fseeki64.
3599         Reported by Eli Zaretskii <eliz@gnu.org>.
3600         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3601         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3603 2018-05-12  Bruno Haible  <bruno@clisp.org>
3605         glob: Choose 'dirent_type' in a way that works better on mingw.
3606         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3607         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3609 2018-05-12  Bruno Haible  <bruno@clisp.org>
3611         execute, spawn-pipe: Avoid warning about redefining 'close'.
3612         Reported by Eli Zaretskii <eliz@gnu.org>.
3613         * lib/execute.c: Undefine 'close' before redefining it.
3614         * lib/spawn-pipe.c: Likewise.
3616 2018-05-12  Bruno Haible  <bruno@clisp.org>
3618         nanosleep: Avoid test failure on mingw when it has nanosleep.
3619         Reported by Eli Zaretskii <eliz@gnu.org>.
3620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3621         If it does not exist, use a simpler test program that does not call
3622         alarm().
3624 2018-05-10  Bruno Haible  <bruno@clisp.org>
3626         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3627         Reported by Devin Hussey <husseydevin@gmail.com>.
3628         Based on a patch by Paul Eggert.
3629         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3630         as witness of libpthread.
3631         * lib/glthread/cond.h (pthread_in_use): Likewise.
3632         * lib/glthread/thread.h (pthread_in_use): Likewise.
3633         * lib/glthread/tls.h (pthread_in_use): Likewise.
3635 2018-05-10  Bruno Haible  <bruno@clisp.org>
3637         cond tests: Fix compilation error on Solaris.
3638         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3639         macro.
3641 2018-05-10  Bruno Haible  <bruno@clisp.org>
3643         doc: Add partial info about Android 4.3.
3644         * doc/*-functions/*.texi: Add info about functions that were added
3645         to Bionic between Android 4.3 and Android 9.0.
3647 2018-05-10  Bruno Haible  <bruno@clisp.org>
3649         doc: Add info about Android 9.0.
3650         * doc/**/*.texi: Add info about functions and headers in Bionic from
3651         Android 9.0.
3653 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3655         af_alg: fix my typo in afalg_buffer
3656         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3657         (afalg_stream): Simplify and avoid the need for a runtime test
3658         at the end.
3660         af_alg: recover better from crypto failures
3661         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3662         input stream is seekable, by repositioning the stream back to
3663         where it was, possibly by just calling sendfile with an offset
3664         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3665         cases, which lets our callers try again with user-mode code.
3666         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3667         instead of on fflush and lseek.
3669         af_alg: distiguish I/O errors better
3670         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3671         not -EIO, if it’s OK for the caller to try again with user-mode code.
3672         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3673         some other error number) if fflush fails, as the caller should not
3674         try again that case.
3676         af_alg: avoid gotos
3677         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3678         gotos, as they were a source of unreliability and made the code a
3679         bit harder to follow.
3681         af_alg: don’t leak file descriptors into children
3682         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3683         This code should be compiled only on recent GNU/Linux platforms
3684         so we shouldn’t have to also depend on the accept4 module.
3686         af_alg: coalesce socket creation
3687         * lib/af_alg.c (alg_socket): New function.
3688         (afalg_buffer, afalg_stream): Use it.  This avoids some
3689         code duplication and gotos.
3691         af_alg: fix file descriptor leak
3692         * lib/af_alg.c (afalg_stream): Close leak.
3694         af_alg: Pacify --enable-gcc-warnings on GCC 8
3695         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3696         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3698 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3700         af_alg: Pacify --enable-gcc-warnings
3701         Problem reported by Assaf Gordon in:
3702         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3703         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3704         gcc -Wjump-misses-init.
3705         * lib/sha512.c (shaxxx_stream): Now static.
3707 2018-05-06  Bruno Haible  <bruno@clisp.org>
3709         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3710         * lib/af_alg.h (afalg_buffer): New declaration.
3711         * lib/af_alg.c (afalg_buffer): New function.
3713 2018-05-06  Bruno Haible  <bruno@clisp.org>
3715         af_alg: Avoid warnings.
3716         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3717         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3719 2018-05-06  Bruno Haible  <bruno@clisp.org>
3721         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3722         * tests/bench-digest.h: New file.
3723         * tests/bench-md5.c: New file.
3724         * tests/bench-sha1.c: New file.
3725         * tests/bench-sha224.c: New file.
3726         * tests/bench-sha256.c: New file.
3727         * tests/bench-sha384.c: New file.
3728         * tests/bench-sha512.c: New file.
3729         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3730         tests/bench-digest.h.
3731         (Depends-on): Add getrusage, gettimeofday.
3732         (Makefile.am): Add variables to build bench-md5.
3733         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3734         tests/bench-digest.h.
3735         (Depends-on): Add getrusage, gettimeofday.
3736         (Makefile.am): Add variables to build bench-sha1.
3737         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3738         tests/bench-sha256.c, tests/bench-digest.h.
3739         (Depends-on): Add getrusage, gettimeofday.
3740         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3741         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3742         tests/bench-sha512.c, tests/bench-digest.h.
3743         (Depends-on): Add getrusage, gettimeofday.
3744         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3746 2018-05-06  Bruno Haible  <bruno@clisp.org>
3748         af_alg: Fix a resource leak.
3749         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3750         New local variable 'result'.
3752 2018-05-06  Bruno Haible  <bruno@clisp.org>
3754         af_alg: Fix bug with streams that are not at position 0.
3755         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3756         assume that the stream is positioned at position 0.
3757         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3758         of the stream.
3759         * lib/md5.h (md5_stream): Likewise.
3760         * lib/sha1.h (sha1_stream): Likewise.
3761         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3762         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3763         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3765         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3766         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3767         stream that is not positioned at the beginning.
3769 2018-05-06  Bruno Haible  <bruno@clisp.org>
3771         af_alg: Add configure option to enable/disable use of Linux crypto API.
3772         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3773         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3774         USE_LINUX_CRYPTO_API.
3775         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3776         * lib/af_alg.c: Likewise.
3778 2018-05-06  Bruno Haible  <bruno@clisp.org>
3780         Followup to 'af_alg: New module.'.
3781         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3782         * modules/crypto/sha1 (Depends-on): Likewise.
3783         * modules/crypto/sha256 (Depends-on): Likewise.
3784         * modules/crypto/sha512 (Depends-on): Likewise.
3786 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3788         crypto/{md5,sha1,sha256,sha512}: simplify
3789         * lib/md5.c (md5_stream):
3790         * lib/sha1.c (sha1_stream):
3791         * lib/sha256.c (shaxxx_stream):
3792         Simplify, partly by assuming C99.
3793         * lib/sha256.c (shaxxx_stream):
3794         New function, which implements both sha256 and sha224.
3795         Simplify, partly by assuming C99.
3796         (sha256_stream, sha224_stream):
3797         Use it to avoid code duplication, removing a FIXME.
3798         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3799         Likewise.
3801         af_alg: Improve comments.
3802         * lib/af_alg.h: Use imperatives and tighten up wording.
3804 2018-05-05  Bruno Haible  <bruno@clisp.org>
3806         af_alg: Improve comments.
3807         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3809 2018-05-05  Bruno Haible  <bruno@clisp.org>
3811         af_alg: New module.
3812         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3813         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3814         * lib/md5.c: Include "af_alg.h" unconditionally.
3815         (md5_stream): Invoke afalg_stream unconditionally.
3816         * lib/sha1.c: Include "af_alg.h" unconditionally.
3817         (sha1_stream): Invoke afalg_stream unconditionally.
3818         * lib/sha256.c: Include "af_alg.h" unconditionally.
3819         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3820         * lib/sha512.c: Include "af_alg.h" unconditionally.
3821         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3822         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3823         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3824         * modules/crypto/af_alg: New file.
3825         * modules/crypto/md5 (Files): Remove files that are now in the
3826         'crypto/af_alg' module.
3827         (Depends-on): Add crypto/af_alg.
3828         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3829         (Makefile.am): Don't mention af_alg.c here.
3830         * modules/crypto/sha1 (Files): Remove files that are now in the
3831         'crypto/af_alg' module.
3832         (Depends-on): Add crypto/af_alg.
3833         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3834         (Makefile.am): Don't mention af_alg.c here.
3835         * modules/crypto/sha256 (Files): Remove files that are now in the
3836         'crypto/af_alg' module.
3837         (Depends-on): Add crypto/af_alg.
3838         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3839         (Makefile.am): Don't mention af_alg.c here.
3840         * modules/crypto/sha512 (Files): Remove files that are now in the
3841         'crypto/af_alg' module.
3842         (Depends-on): Add crypto/af_alg.
3843         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3844         (Makefile.am): Don't mention af_alg.c here.
3846 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3848         crypto tests: pacify GCC
3849         * tests/test-digest.h (test_digest_on_files):
3850         Don’t assume digest size fits in int (!).
3852         af_alg: minor style improvements
3853         * lib/af_alg.c (afalg_stream): Prefer C99 style
3854         decl-after-statement, since we’re already assuming C99.  Clarify
3855         by strengthening the bind test and omit unnecessary assignment.
3857 2018-05-05  Bruno Haible  <bruno@clisp.org>
3859         af_alg: Fix bug on empty files.
3860         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3861         stream is empty.
3863 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3865         sys-limits.h: new file for crypto and safe I/O
3866         * lib/af_alg.c: Include sys-limits.h.
3867         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3868         (afalg_stream): Also reject negative sizes for sendfile; they
3869         should not happen and the code is a bit cleaner and faster this way.
3870         * lib/safe-read.c: Include sys-limits.h.
3871         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3872         * lib/sys-limits.h: New file, with values and commentary derived
3873         from the old safe-read.c and from GNU Emacs sysdep.c.
3874         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3875         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3876         Add lib/sys-limits.h to Files section.
3878 2018-05-05  Bruno Haible  <bruno@clisp.org>
3880         af_alg: Improve function signature.
3881         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3882         * lib/af_alg.c (afalg_stream): Likewise.
3883         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3885 2018-05-05  Bruno Haible  <bruno@clisp.org>
3887         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3888         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3889         * modules/crypto/sha1 (Depends-on): Likewise.
3890         * modules/crypto/sha256 (Depends-on): Likewise.
3891         * modules/crypto/sha512 (Depends-on): Likewise.
3893 2018-05-05  Bruno Haible  <bruno@clisp.org>
3895         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3896         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3897         * modules/crypto/sha1 (Depends-on): Likewise.
3898         * modules/crypto/sha256 (Depends-on): Likewise.
3899         * modules/crypto/sha512 (Depends-on): Likewise.
3901 2018-05-05  Bruno Haible  <bruno@clisp.org>
3903         af_alg: Add documentation.
3904         * lib/af_alg.h: Add comments.
3906 2018-05-05  Bruno Haible  <bruno@clisp.org>
3908         sha512: Add tests.
3909         * tests/test-sha512.c: New file.
3910         * modules/crypto/sha512-tests: New file.
3912 2018-05-05  Bruno Haible  <bruno@clisp.org>
3914         sha256: Add tests.
3915         * tests/test-sha256.c: New file.
3916         * modules/crypto/sha256-tests: New file.
3918 2018-05-05  Bruno Haible  <bruno@clisp.org>
3920         sha1 tests: Add test for sha1_stream.
3921         * tests/test-sha1.c: Include test-digest.h.
3922         (main): Invoke test_digest_on_files on 'sha1_stream'.
3923         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3925 2018-05-05  Bruno Haible  <bruno@clisp.org>
3927         md5 tests: Add test for md5_stream.
3928         * tests/test-digest.h: New file.
3929         * tests/test-md5.c: Include test-digest.h.
3930         (main): Invoke test_digest_on_files on 'md5_stream'.
3931         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3933 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3935         md5sum: Use AF_ALG when available.
3936         * lib/md5.c: Include af_alg.h.
3937         (md5_stream): Use afalg_stream when available.
3938         * modules/crypto/md5 (Files): Add the af_alg files.
3939         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3940         (Makefile.am): Add af_alg.c.
3942 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3944         sha512sum: Use AF_ALG when available.
3945         * lib/sha512.c: Include af_alg.h.
3946         (sha512_stream, sha384_stream): Use afalg_stream when available.
3947         * modules/crypto/sha512 (Files): Add the af_alg files.
3948         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3949         (Makefile.am): Add af_alg.c.
3951 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3953         sha256sum: Use AF_ALG when available.
3954         * lib/sha256.c: Include af_alg.h.
3955         (sha256_stream, sha224_stream): Use afalg_stream when available.
3956         * modules/crypto/sha256 (Files): Add the af_alg files.
3957         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3958         (Makefile.am): Add af_alg.c.
3960 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3962         sha1sum: Use AF_ALG when available.
3963         * lib/af_alg.h: New file.
3964         * lib/af_alg.c: New file.
3965         * lib/sha1.c: Include af_alg.h.
3966         (sha1_stream): Use afalg_stream when available.
3967         * m4/linux-if-alg.m4: New file.
3968         * modules/crypto/sha1 (Files): Add the new files.
3969         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3970         (Makefile.am): Add af_alg.c.
3972 2018-05-05  Bruno Haible  <bruno@clisp.org>
3974         all: Replace more http URLs by https URLs.
3975         * lib/localename.c: Use https: URL.
3976         * lib/timespec.h: Likewise.
3978 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3980         maint: port more modules to GCC 8
3981         * lib/dirname.h (base_name):
3982         * lib/exclude.h (new_exclude):
3983         * lib/xstrndup.h (xstrndup):
3984         Add malloc attribute.
3985         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3986         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3987         This pacifies GCC 8.
3988         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3989         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3991 2018-05-03  Bruno Haible  <bruno@clisp.org>
3993         Simplify code. Drop support for Borland C++ on Windows.
3994         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3995         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3996         'defined _WIN32'.
3997         * lib/canonicalize-lgpl.c: Likewise.
3998         * lib/classpath.c: Likewise.
3999         * lib/clean-temp.c: Likewise.
4000         * lib/csharpexec.c: Likewise.
4001         * lib/ctime.c: Likewise.
4002         * lib/dosname.h: Likewise.
4003         * lib/dup2.c: Likewise.
4004         * lib/errno.in.h: Likewise.
4005         * lib/error.c: Likewise.
4006         * lib/euidaccess.c: Likewise.
4007         * lib/execute.c: Likewise.
4008         * lib/fcntl.in.h: Likewise.
4009         * lib/fcntl.c: Likewise.
4010         * lib/filename.h: Likewise.
4011         * lib/findprog.c: Likewise.
4012         * lib/flock.c: Likewise.
4013         * lib/fopen.c: Likewise.
4014         * lib/freopen.c: Likewise.
4015         * lib/fstat.c: Likewise.
4016         * lib/fsync.c: Likewise.
4017         * lib/gc-gnulib.c: Likewise.
4018         * lib/get-rusage-data.c: Likewise.
4019         * lib/getaddrinfo.c: Likewise.
4020         * lib/getdelim.c: Likewise.
4021         * lib/getdtablesize.c: Likewise.
4022         * lib/gethostname.c: Likewise.
4023         * lib/getlogin.c: Likewise.
4024         * lib/getlogin_r.c: Likewise.
4025         * lib/getopt.c: Likewise.
4026         * lib/getpagesize.c: Likewise.
4027         * lib/getpass.c: Likewise.
4028         * lib/getrusage.c: Likewise.
4029         * lib/gettimeofday.c: Likewise.
4030         * lib/glob.c: Likewise.
4031         * lib/inttypes.in.h: Likewise.
4032         * lib/isapipe.c: Likewise.
4033         * lib/javaexec.c: Likewise.
4034         * lib/link.c: Likewise.
4035         * lib/localcharset.c: Likewise.
4036         * lib/localename.h: Likewise.
4037         * lib/localename.c: Likewise.
4038         * lib/localtime.c: Likewise.
4039         * lib/lseek.c: Likewise.
4040         * lib/mbsinit.c: Likewise.
4041         * lib/mkdir.c: Likewise.
4042         * lib/msvc-nothrow.h: Likewise.
4043         * lib/nanosleep.c: Likewise.
4044         * lib/nl_langinfo.c: Likewise.
4045         * lib/nonblocking.c: Likewise.
4046         * lib/nproc.c: Likewise.
4047         * lib/open.c: Likewise.
4048         * lib/openpty.c: Likewise.
4049         * lib/pathmax.h: Likewise.
4050         * lib/pipe-filter-aux.c: Likewise.
4051         * lib/pipe-filter-gi.c: Likewise.
4052         * lib/pipe-filter-ii.c: Likewise.
4053         * lib/pipe.c: Likewise.
4054         * lib/pipe2.c: Likewise.
4055         * lib/poll.c: Likewise.
4056         * lib/popen.c: Likewise.
4057         * lib/posix_openpt.c: Likewise.
4058         * lib/printf-parse.c: Likewise.
4059         * lib/progreloc.c: Likewise.
4060         * lib/putenv.c: Likewise.
4061         * lib/read.c: Likewise.
4062         * lib/relocatable.c: Likewise.
4063         * lib/rename.c: Likewise.
4064         * lib/same-inode.h: Likewise.
4065         * lib/secure_getenv.c: Likewise.
4066         * lib/select.c: Likewise.
4067         * lib/sethostname.c: Likewise.
4068         * lib/setlocale.c: Likewise.
4069         * lib/sigaction.c: Likewise.
4070         * lib/sigprocmask.c: Likewise.
4071         * lib/sleep.c: Likewise.
4072         * lib/spawn-pipe.h: Likewise.
4073         * lib/spawn-pipe.c: Likewise.
4074         * lib/spawni.c: Likewise.
4075         * lib/stat-time.h: Likewise.
4076         * lib/stat-w32.c: Likewise.
4077         * lib/stat.c: Likewise.
4078         * lib/stdio.in.h: Likewise.
4079         * lib/stdio-impl.h: Likewise.
4080         * lib/stdio-read.c: Likewise.
4081         * lib/stdio-write.c: Likewise.
4082         * lib/stdlib.in.h: Likewise.
4083         * lib/strerror_r.c: Likewise.
4084         * lib/strftime-fixes.c: Likewise.
4085         * lib/sys_stat.in.h: Likewise.
4086         * lib/sys_types.in.h: Likewise.
4087         * lib/sys_wait.in.h : Likewise.
4088         * lib/system-quote.h: Likewise.
4089         * lib/system-quote.c: Likewise.
4090         * lib/tmpdir.c: Likewise.
4091         * lib/tzset.c: Likewise.
4092         * lib/uname.c: Likewise.
4093         * lib/unistd.in.h: Likewise.
4094         * lib/utime.in.h: Likewise.
4095         * lib/utime.c: Likewise.
4096         * lib/utimecmp.c: Likewise.
4097         * lib/utimens.c: Likewise.
4098         * lib/vasnprintf.c: Likewise.
4099         * lib/vma-iter.h: Likewise.
4100         * lib/vma-iter.c: Likewise.
4101         * lib/wait-process.c: Likewise.
4102         * lib/wcsftime.c: Likewise.
4103         * lib/wctype.in.h: Likewise.
4104         * lib/write.c: Likewise.
4105         * tests/nap.h: Likewise.
4106         * tests/test-cloexec.c: Likewise.
4107         * tests/test-dup-safer.c: Likewise.
4108         * tests/test-dup2.c: Likewise.
4109         * tests/test-dup3.c: Likewise.
4110         * tests/test-fcntl.c: Likewise.
4111         * tests/test-get-rusage-data.c: Likewise.
4112         * tests/test-getaddrinfo.c: Likewise.
4113         * tests/test-getlogin.h: Likewise.
4114         * tests/test-isatty.c: Likewise.
4115         * tests/test-localename.c: Likewise.
4116         * tests/test-mbrtowc-w32.c: Likewise.
4117         * tests/test-nonblocking.c: Likewise.
4118         * tests/test-nonblocking-pipe-main.c: Likewise.
4119         * tests/test-nonblocking-socket-main.c: Likewise.
4120         * tests/test-nonblocking-socket.h: Likewise.
4121         * tests/test-pipe.c: Likewise.
4122         * tests/test-pipe2.c: Likewise.
4123         * tests/test-poll.c: Likewise.
4124         * tests/test-pthread_sigmask1.c: Likewise.
4125         * tests/test-select.h: Likewise.
4126         * tests/test-sethostname2.c: Likewise.
4127         * tests/test-sigprocmask.c: Likewise.
4128         * tests/test-spawn-pipe-child.c: Likewise.
4129         * tests/test-stat-time.c: Likewise.
4130         * tests/test-system-quote-main.c: Likewise.
4131         * tests/test-utimens-common.h: Likewise.
4132         * tests/test-wcrtomb-w32.c: Likewise.
4133         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4134         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4135         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4136         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4137         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
4138         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4139         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4140         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4142         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4143         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
4144         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
4145         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4146         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4147         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
4148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4150 2018-05-02  Bruno Haible  <bruno@clisp.org>
4152         localename: Fix test failures on mingw.
4153         * lib/localename.c (gl_locale_name_thread): Remove code specific to
4154         native Windows.
4155         (gl_locale_name_posix): Move code specific to native Windows here.
4156         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
4157         Accept result without charset suffix, as it appears on mingw.
4159 2018-04-28  Paul Smith  <psmith@gnu.org>
4161         bootstrap: Avoid gnulib operations if not needed
4162         * build-aux/bootstrap: Remove unused variable gnulib_mk.
4163         Set $gnulib_extra_files early so it can be overridden in .conf.
4164         Remove redundant --import flag from $gnulib_tool_options.
4165         Set $use_gnulib to false if no gnulib modules or files are needed.
4166         If $use_gnulib is false, don't do anything related to gnulib.
4167         A lot of this is just whitespace (indentation) changes.
4169 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
4171         manywarnings: port to GCC 8.0
4172         * build-aux/gcc-warning.spec: Add -Wcatch-value,
4173         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
4174         fact that the GCC help message now mentions operands for
4175         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
4176         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
4177         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
4178         and -Wunused-const-variable.
4179         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
4180         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
4181         -Wmissing-attributes, -Wmultistatement-macros,
4182         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
4183         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
4185 2018-04-24  Bruno Haible  <bruno@clisp.org>
4187         sys_socket: Make SO_REUSEPORT available across platforms.
4188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4189         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
4190         * doc/posix-headers/sys_socket.texi: Mention the issue.
4191         * tests/test-poll.c (SO_REUSEPORT): Remove.
4192         * tests/test-select.h: Include <sys/socket.h>.
4193         (SO_REUSEPORT): Remove.
4194         * modules/select-tests (Depends-on): Add 'sys_socket'.
4196 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
4198         localcharset: short-circuit the search for an alias on a Mac
4199         * lib/localcharset.c (get_charset_aliases): Add a tautological
4200         UTF-8 entry to speed up the search for this case.
4201         Most machines default to a UTF-8 locale nowadays, so begin the
4202         list of aliases with a dummy UTF-8 entry so it will be found
4203         immediately and a time-consuming search through the rest of
4204         the list is avoided.
4206 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
4208         fts: add comment
4209         * lib/fts.c (fts_build): Explain why ==, not >.
4210         See remark by Bernhard Voelker in:
4211         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
4213         fts: fix bug in find across filesystems
4214         This fixes a bug I introduced last summer.
4215         Problem reported by Kamil Dudka in:
4216         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
4217         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
4218         (leaf_optimization):
4219         New arg for file descriptor.  All callers changed.
4220         (fts_build): Check for whether inodes should be sorted
4221         before closing the directory.
4223 2018-04-07  Bruno Haible  <bruno@clisp.org>
4225         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
4226         Reported by Genki Sky <sky@genki.is>.
4227         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
4228         version 0.9.10 or newer.
4229         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
4230         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
4231         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
4232         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
4233         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
4235 2018-04-07  Bruno Haible  <bruno@clisp.org>
4237         execute: Update comment.
4238         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
4240 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4242         fts: treat CIFS like NFS
4243         Problem reported by Kamil Dudka in:
4244         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
4245         * lib/fts.c (S_MAGIC_CIFS): New macro.
4246         (dirent_inode_sort_may_be_useful, leaf_optimization):
4247         Treat CIFS like NFS.
4249 2018-03-28  Bruno Haible  <bruno@clisp.org>
4251         c-stack: Fix possible build failure on some platforms.
4252         * lib/c-stack.c (die): Define whenever this function is referenced.
4254 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
4256         time_rz: fix workaround for Mac OS X 10.6 infloop
4257         Problems reported by Charles A. Roelli (Bug#27736#117).
4258         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
4259         Also, discard output, which clutters the 'configure' log.
4261 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4263         havelib: port to Solaris 10 /bin/sh
4264         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
4265         instead of '! test EXPR'.
4267 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4269         time_rz: work around Mac OS X 10.6 infloop
4270         * doc/posix-functions/localtime.texi:
4271         * doc/posix-functions/localtime_r.texi: Mention the bug.
4272         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
4273         better to fix localtime and localtime_r instead, but that would be
4274         more work and is not needed to fix the Emacs problem.
4275         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
4277 2018-03-24  Jim Meyering  <meyering@fb.com>
4279         test-version-etc.sh: don't use diff directly: use init.sh's compare
4280         We'd rather not sacrifice readable "diff -u" output even for
4281         "diff -c" output (not supported by busybox) or for even less
4282         readable ed-style "diff" output.  So use init.sh's compare function
4283         * tests/test-version-etc.sh: Source init.sh and add "." to path.
4284         Remove "./" from invocation of test-version-etc, so we use path.
4285         And s/diff/compare/.
4286         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
4287         to get init.sh.
4288         Prompted by Eric Blake's comments in
4289         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
4291 2018-03-24  Bruno Haible  <bruno@clisp.org>
4293         javacomp-script, javacomp: Add support for Java 10.
4294         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
4295         target-version 10.
4296         * lib/javaversion.h: Update comments.
4297         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4298         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4299         TARGET_VERSION_BOUND, target_version_index,
4300         corresponding_classfile_version): Accept source_version 10 and
4301         target_version 10.
4302         * lib/javacomp.h: Update comments accordingly.
4304 2018-03-24  Bruno Haible  <bruno@clisp.org>
4306         javacomp-script, javacomp: Update comments.
4307         * m4/javacomp.m4: Update comments regarding gcj.
4308         * lib/javacomp.h: Likewise.
4310 2018-03-24  Bruno Haible  <bruno@clisp.org>
4312         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
4313         * lib/javaversion.h: Update comments.
4314         * lib/javacomp.h: Likewise.
4315         * lib/javacomp.c (default_target_version, source_version_index,
4316         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
4317         "1.9".
4318         (TARGET_VERSION_BOUND): Bump to 9.
4319         (target_version_index, corresponding_classfile_version): Recognize "9"
4320         instead of "1.9".
4321         (get_source_version_for_javac): New function.
4322         (is_envjavac_nongcj_usable, is_javac_usable): Add
4323         source_version_for_javac argument.
4324         (compile_java_class): Determine and pass source_version_for_javac.
4325         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
4326         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
4327         appropriate.
4329 2018-03-23  Jim Meyering  <meyering@fb.com>
4331         test-version-etc.sh: port to diff without -c
4332         * tests/test-version-etc.sh: Don't use diff's -c option.
4333         This caused spurious test failure on Alpine Linux, which
4334         uses busybox's diff. Reported by Assaf Gordon in
4335         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
4337 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4339         c-stack: port to recent GCC build
4340         Problem reported by The Fireplace (Bug#30913).
4341         * lib/c-stack.c (die): Define only if used.
4343 2018-03-20  Bruno Haible  <bruno@clisp.org>
4345         euidaccess: Port to native Windows.
4346         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
4347         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
4349 2018-03-19  Bruno Haible  <bruno@clisp.org>
4351         javacomp: Add support for Java 7, 8, 9.
4352         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4353         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4354         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
4355         and target_version 1,7, 1.8, 1.9.
4356         * lib/javacomp.h: Update comments accordingly.
4358 2018-03-19  Bruno Haible  <bruno@clisp.org>
4360         javacomp-script: Add support for Java 9.
4361         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4362         target-version 1.9.
4364 2018-03-16  Bruno Haible  <bruno@clisp.org>
4366         glob: Don't compile replacements on recent glibc systems.
4367         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4368         REPLACE_GLOB is 0, include the system's <glob.h> and use
4369         _GL_CXXALIAS_SYS.
4370         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4371         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4372         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4373         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4374         Remove snippet/warn-on-use.
4375         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4376         (Makefile.am): Create glob.h always. Update list of substitutions in
4377         glob.h. Don't depend on $(WARN_ON_USE_H).
4379 2018-03-16  Bruno Haible  <bruno@clisp.org>
4381         glob: Fix link error on native Windows.
4382         * modules/glob (Depends-on): Add 'lstat'.
4384 2018-03-15  Bruno Haible  <bruno@clisp.org>
4386         glob: Fix compilation error in C++ mode.
4387         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4389 2018-03-15  Bruno Haible  <bruno@clisp.org>
4391         host-cpu-c-abi: Support for RISC-V CPU.
4392         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4393         riscv32 and riscv64 ABIs.
4394         References:
4395         https://github.com/riscv/riscv-toolchain-conventions
4396         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4397         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4399 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4401         fflush: be more paranoid about libio.h change
4402         Suggested by Eli Zaretskii in:
4403         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4404         * lib/fbufmode.c (fbufmode):
4405         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4406         (disable_seek_optimization, rpl_fflush):
4407         * lib/fpending.c (__fpending):
4408         * lib/fpurge.c (fpurge):
4409         * lib/freadable.c (freadable):
4410         * lib/freadahead.c (freadahead):
4411         * lib/freading.c (freading):
4412         * lib/freadptr.c (freadptr):
4413         * lib/freadseek.c (freadptrinc):
4414         * lib/fseeko.c (fseeko):
4415         * lib/fseterr.c (fseterr):
4416         * lib/fwritable.c (fwritable):
4417         * lib/fwriting.c (fwriting):
4418         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4420 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4422         maint: write-file-hooks -> before-save-hook
4423         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4424         it's time to use the recommended replacement.
4425         Problem reported by Glenn Morris in:
4426         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4427         * build-aux/announce-gen, build-aux/bootstrap:
4428         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4429         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4430         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4431         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4432         * build-aux/update-copyright, build-aux/useless-if-before-free:
4433         * build-aux/vc-list-files:
4434         Update hook usage for files where Gnulib is the canonical source.
4436 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4438         binary-io: pacify gcc -Wunused-parameter
4439         Problem reported by Reuben Thomas in:
4440         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4441         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4442         Use _GL_UNUSED where appropriate.
4444         fflush: adjust to glibc 2.28 libio.h removal
4445         Problem reported by Daniel P. Berrangé in:
4446         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4447         * lib/fbufmode.c (fbufmode):
4448         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4449         (disable_seek_optimization, rpl_fflush):
4450         * lib/fpending.c (__fpending):
4451         * lib/fpurge.c (fpurge):
4452         * lib/freadable.c (freadable):
4453         * lib/freadahead.c (freadahead):
4454         * lib/freading.c (freading):
4455         * lib/freadptr.c (freadptr):
4456         * lib/freadseek.c (freadptrinc):
4457         * lib/fseeko.c (fseeko):
4458         * lib/fseterr.c (fseterr):
4459         * lib/fwritable.c (fwritable):
4460         * lib/fwriting.c (fwriting):
4461         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4462         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4463         Define if not already defined.
4465 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4467         environ: fix link error on 32-bit Cygwin
4468         Problem reported for GNU Emacs by Ken Brown in:
4469         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4470         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4472 2018-02-24  Bruno Haible  <bruno@clisp.org>
4474         mbrtowc tests: Fix regression on glibc.
4475         Reported by Bernhard Voelker.
4476         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4478 2018-02-24  Bruno Haible  <bruno@clisp.org>
4480         striconveha, uniconv/*: Avoid test failures on musl libc.
4481         * tests/iconvsupport.c: New file.
4482         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4483         does not support the ISO-2022-JP-2 encoding.
4484         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4485         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4486         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4487         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4488         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4489         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4490         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4491         (Makefile.am): Link test-striconveha with iconvsupport.o.
4492         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4493         tests/iconvsupport.c.
4494         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4495         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4496         tests/iconvsupport.c.
4497         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4498         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4499         tests/iconvsupport.c.
4500         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4501         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4502         tests/iconvsupport.c.
4503         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4504         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4505         tests/iconvsupport.c.
4506         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4507         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4508         tests/iconvsupport.c.
4509         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4511 2018-02-24  Bruno Haible  <bruno@clisp.org>
4513         localename: Add support for musl libc.
4514         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4515         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4516         on Linux platforms which define NL_LOCALE_NAME.
4518 2018-02-24  Bruno Haible  <bruno@clisp.org>
4520         mbrtowc tests: Don't make assumptions about the charset the C locale.
4521         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4522         particular mapping in the C locale.
4524 2018-02-24  Bruno Haible  <bruno@clisp.org>
4526         ptsname_r: Don't expect that this function sets errno.
4527         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4528         from ptsname_r().
4529         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4531 2018-02-23  Bruno Haible  <bruno@clisp.org>
4533         xmalloca: pacify gcc -Wbad-function-cast
4534         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4536 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4538         nl_langinfo: pacify gcc -Wunused-function
4539         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4540         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4541         this case.  Without this change, I got a diagnostic when building
4542         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4544         same: pacify gcc -Wunused-variable
4545         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4546         Omit unused variable.
4548         malloca: pacify gcc -Wbad-function-cast
4549         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4550         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4551         To pacify GCC, I had to cast alloca’s result to some type other
4552         than void * before casting that to uintptr_t.
4554 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4556         utimecmp: new function utimecmpat
4557         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4558         Do not include utimens.h.
4559         (utimecmpat): New function, generalizing utimecmp.
4560         (utimecmp): Now a thin layer around utimecmpat.
4561         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4562         utimensat instead of on lstat and utimens.
4564         same: new function same_nameat
4565         * lib/same.c: Include fcntl.h.
4566         * lib/same.c (same_nameat): New function, generalizing same_name.
4567         (same_name): Now a thin layer around same_nameat.
4568         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4569         * modules/same (Depends-on): Depend on fstatat, openat.
4571 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4573         warnings: Add support for Objective C.
4574         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4575         macro.
4577 2018-02-17  Bruno Haible  <bruno@clisp.org>
4579         lock: Fix test-once1 crash on FreeBSD11.
4580         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4581         'pthread_create', not 'pthread_cancel'.
4583 2018-02-17  Bruno Haible  <bruno@clisp.org>
4585         lock: Add test of gl_once.
4586         * tests/test-once.c: New file.
4587         * modules/lock-tests (Files): Add it.
4588         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4590 2018-02-17  Bruno Haible  <bruno@clisp.org>
4592         thread: Fix compilation error on IRIX.
4593         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4594         needed; include it outside the C++ extern "C" {} block.
4595         * doc/posix-headers/pthread.texi: Mention the problem with
4596         pthread_atfork on IRIX.
4598 2018-02-04  Bruno Haible  <bruno@clisp.org>
4600         nl_langinfo: Override the system's nl_langinfo() when needed.
4601         Reported by Jim Meyering.
4602         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4603         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4605 2018-02-04  Bruno Haible  <bruno@clisp.org>
4607         signal-h, monetary, strings: Fix build failure in some cases.
4608         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4609         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4610         as delimiter in sed command, not '|'.
4611         * modules/monetary (Makefile.am): Likewise.
4612         * modules/strings (Makefile.am): Likewise.
4614 2018-02-03  Jim Meyering  <meyering@fb.com>
4616         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4617         * top/maint.mk (sc_file_system): Don't complain about
4618         "/proc/filesystems".
4620 2018-02-03  Bruno Haible  <bruno@clisp.org>
4622         stdlib: Fix compilation error on OpenIndiana.
4623         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4624         <sys/time.h>.
4625         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4626         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4628 2018-02-03  Bruno Haible  <bruno@clisp.org>
4630         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4631         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4632         and use $EGREP instead of 'grep -E'.
4633         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4634         'grep -E'.
4636 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4638         malloca: Add a compile-time verification.
4639         * lib/malloca.c (small_t): Verify that it is wide enough.
4640         * modules/malloca (Depends-on): Add verify.
4642 2018-02-02  Bruno Haible  <bruno@clisp.org>
4644         malloca: Add an argument check.
4645         Suggested by Paul Eggert.
4646         * lib/malloca.c (freea): Check against an invalid argument.
4648 2018-02-02  Bruno Haible  <bruno@clisp.org>
4650         localename: Add support for OpenIndiana.
4651         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4652         Solaris 11 variants with uselocale() but without getlocalename_l().
4654 2018-02-02  Bruno Haible  <bruno@clisp.org>
4656         malloca, xmalloca: Make multithread-safe.
4657         Reported by Florian Weimer <fweimer@redhat.com>.
4658         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4659         * lib/malloca.h (malloca): In the stack allocation case, return a
4660         pointer that is a multiple of 2 * sa_alignment_max.
4661         (sa_increment): Remove enum item.
4662         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4663         a pointer that is a multiple of 2 * sa_alignment_max.
4664         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4665         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4666         HASH_TABLE_SIZE, mmalloca_results): Remove.
4667         (small_t): New type.
4668         (mmalloca, free): Rewritten.
4669         * lib/malloca.valgrind: Remove file.
4670         * modules/malloca (Files): Remove it.
4671         (Depends-on): Remove verify.
4673 2018-01-31  Bruno Haible  <bruno@clisp.org>
4675         environ: Fix link error on 64-bit Cygwin.
4676         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4677         __declspec(dllimport) attribute.
4678         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4680 2018-01-30  Bruno Haible  <bruno@clisp.org>
4682         get-rusage-data: Add support for Minix 3.
4683         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4685 2018-01-30  Bruno Haible  <bruno@clisp.org>
4687         vma-iter: Add support for Minix 3.
4688         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4689         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4691 2018-01-27  Bruno Haible  <bruno@clisp.org>
4693         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4694         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4695         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4696         _HPUX_ALT_XOPEN_SOCKET_API.
4697         * modules/accept (Depends-on): Add 'extensions'.
4698         * modules/getpeername (Depends-on): Likewise.
4699         * modules/getsockname (Depends-on): Likewise.
4700         * modules/getsockopt (Depends-on): Likewise.
4701         * modules/recvfrom (Depends-on): Likewise.
4702         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4703         * doc/posix-functions/getpeername.texi: Likewise.
4704         * doc/posix-functions/getsockname.texi: Likewise.
4705         * doc/posix-functions/getsockopt.texi: Likewise.
4706         * doc/posix-functions/recvfrom.texi: Likewise.
4708 2018-01-27  Bruno Haible  <bruno@clisp.org>
4710         getsockname tests: More tests.
4711         * tests/test-getsockname.c (open_server_socket): New function, mostly
4712         copied from test-poll.c.
4713         (main): Check that getsockname fills in addr.
4714         * modules/getsockname-tests (Depends-on): Add the necessary
4715         dependencies.
4716         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4718 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4720         manywarnings: fix maintainer comment
4721         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4722         it does not mistakenly think that ‘-1)’ is an option.
4724 2018-01-26  Bruno Haible  <bruno@clisp.org>
4726         langinfo: Fix last commit.
4727         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4728         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4730 2018-01-24  Bruno Haible  <bruno@clisp.org>
4732         langinfo, nl_langinfo: Add support for alternative month names.
4733         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4734         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4735         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4736         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4737         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4738         * doc/posix-functions/nl_langinfo.texi: Likewise.
4740 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4742         Merge strftime.c changes from glibc
4743         This incorporates:
4744         2017-11-14 [BZ #10871] Implement alternative month names
4745         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4746         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4747         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4748         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4749         Use locale_t, not __locale_t.
4750         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4751         (__strftime_internal): Add support for alternate months.
4753 2018-01-23  Bruno Haible  <bruno@clisp.org>
4755         doc: Mention another prerequisite for using Gnulib.
4756         Reported at <https://stackoverflow.com/questions/48378214/>.
4757         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4758         AC_CONFIG_HEADERS.
4760 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4762         build: GuixSD doesn't have /bin/bash
4763         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4765 2018-01-21  Bruno Haible  <bruno@clisp.org>
4767         Avoid test failures on Microsoft Windows Subsystem for Linux.
4768         * tests/test-fcntl.c (main): Allow a different errno.
4769         * tests/test-rename.h (test_rename): Likewise.
4770         * tests/test-renameat.c (main): Likewise.
4771         * tests/test-renameat2.c (main): Likewise.
4773 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4775         filenamecat: make base a suffix of result
4776         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4777         (mfile_name_concat): Always make BASE a suffix of the result, as
4778         cp expects this.  To implement this, separate with '.' instead of
4779         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4780         * tests/test-filenamecat.c (main): Adjust tests to match
4781         current behavior.  Check that BASE_IN_RESULT points to
4782         a copy of BASE and is a suffix of the resultk, and that DIR
4783         is a prefix of the result that is no longer than the prefix
4784         indicated by BASE_IN_RESULT.
4786 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4788         update-copyright: Handle use of ©
4789         * build-aux/update-copyright ($circle_c_re): Update regex to
4790         handle use of © in headers.
4792 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4794         Fix -Wundef warning in user-included header lib/cdefs.h.
4795         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4797 2018-01-04  Bruno Haible  <bruno@clisp.org>
4799         pthread_sigmask: Avoid compilation error on mingw.
4800         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4801         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4802         macro.
4804 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4806         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4807         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4808         Suggested by Bob Proulx (Bug#29968).
4809         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4811 2018-01-02  Eric Blake  <eblake@redhat.com>
4813         stat-time: silence -Wunused-parameter regression
4814         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4815         Prefer attribute over cast-to-void.
4816         (stat_time_normalize): Mark st as potentially unused.
4818 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4820         test-framework-sh: avoid netstat
4821         Problem reported by Kristýna Streitová (Bug#29947).
4822         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4823         deprecated on SuSE and it's not that important anyway.
4825 2018-01-01  Jim Meyering  <meyering@fb.com>
4827         update-copyright: add code to handle more special cases
4828         After running "make update-copyright" this year, five files
4829         required additional manual changes.  Automate those adjustments
4830         for next year.
4831         * Makefile (_year_and_prev): Define.
4832         (update-copyright): Add perl commands to induce this year's post-
4833         update-copyright adjustments.
4835 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4837         version-etc: new year
4838         * build-aux/gendocs.sh (version):
4839         * doc/gendocs_template:
4840         * doc/gendocs_template_min:
4841         * doc/gnulib.texi:
4842         * lib/version-etc.c (COPYRIGHT_YEAR):
4843         Update copyright dates by hand in templates and the like.
4845         maint: fix 'make update-copyright'
4846         * Makefile (update-copyright): Adjust to 2016-11-23 change
4847         to config/srclist-update, which changed the format of srclist.txt.
4849 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4851         chdir-safer: remove this module
4852         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4853         * NEWS: Document removal.
4854         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4855         * modules/chdir-safer: Remove these files.
4857 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4859         Add cross-compilation results for GNU/Hurd.
4860         * m4/calloc.m4: Add GNU/Hurd guess.
4861         * m4/cbrtl.m4: Likewise.
4862         * m4/ceil.m4: Likewise.
4863         * m4/ceilf.m4: Likewise.
4864         * m4/ceill.m4: Likewise.
4865         * m4/chown.m4: Likewise.
4866         * m4/duplocale.m4: Likewise.
4867         * m4/exp2l.m4: Likewise.
4868         * m4/expm1.m4: Likewise.
4869         * m4/fchdir.m4: Likewise.
4870         * m4/floor.m4: Likewise.
4871         * m4/floorf.m4: Likewise.
4872         * m4/fmod.m4: Likewise.
4873         * m4/fmodf.m4: Likewise.
4874         * m4/fmodl.m4: Likewise.
4875         * m4/getcwd.m4: Likewise.
4876         * m4/getgroups.m4: Likewise.
4877         * m4/gettimeofday.m4: Likewise.
4878         * m4/hypot.m4: Likewise.
4879         * m4/hypotf.m4: Likewise.
4880         * m4/hypotl.m4: Likewise.
4881         * m4/link-follow.m4: Likewise.
4882         * m4/link.m4: Likewise.
4883         * m4/linkat.m4: Likewise.
4884         * m4/log.m4: Likewise.
4885         * m4/log10.m4: Likewise.
4886         * m4/log10f.m4: Likewise.
4887         * m4/log1p.m4: Likewise.
4888         * m4/log1pf.m4: Likewise.
4889         * m4/log1pl.m4: Likewise.
4890         * m4/log2.m4: Likewise.
4891         * m4/log2f.m4: Likewise.
4892         * m4/logf.m4: Likewise.
4893         * m4/lstat.m4: Likewise.
4894         * m4/malloc.m4: Likewise.
4895         * m4/mbrlen.m4: Likewise.
4896         * m4/mbrtowc.m4: Likewise.
4897         * m4/mkdir.m4: Likewise.
4898         * m4/mkfifo.m4: Likewise.
4899         * m4/mknod.m4: Likewise.
4900         * m4/mkstemp.m4: Likewise.
4901         * m4/modf.m4: Likewise.
4902         * m4/modff.m4: Likewise.
4903         * m4/modfl.m4: Likewise.
4904         * m4/printf.m4: Likewise.
4905         * m4/pselect.m4: Likewise.
4906         * m4/ptsname.m4: Likewise.
4907         * m4/putenv.m4: Likewise.
4908         * m4/readlink.m4: Likewise.
4909         * m4/realloc.m4: Likewise.
4910         * m4/remainder.m4: Likewise.
4911         * m4/remainderf.m4: Likewise.
4912         * m4/remainderl.m4: Likewise.
4913         * m4/rmdir.m4: Likewise.
4914         * m4/round.m4: Likewise.
4915         * m4/roundf.m4: Likewise.
4916         * m4/roundl.m4: Likewise.
4917         * m4/select.m4: Likewise.
4918         * m4/setenv.m4: Likewise.
4919         * m4/signbit.m4: Likewise.
4920         * m4/sleep.m4: Likewise.
4921         * m4/stat.m4: Likewise.
4922         * m4/strerror.m4: Likewise.
4923         * m4/strtok_r.m4: Likewise.
4924         * m4/symlink.m4: Likewise.
4925         * m4/symlinkat.m4: Likewise.
4926         * m4/trunc.m4: Likewise.
4927         * m4/truncf.m4: Likewise.
4928         * m4/truncl.m4: Likewise.
4929         * m4/tzset.m4: Likewise.
4930         * m4/ungetc.m4: Likewise.
4931         * m4/usleep.m4: Likewise.
4932         * m4/wcwidth.m4: Likewise.
4934 2017-12-28  Bruno Haible  <bruno@clisp.org>
4936         gnulib-tool: Make --conditional-dependencies work better.
4937         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4938         * gnulib-tool (Options): Don't reject the combination of
4939         --conditional-dependencies with --with-tests.
4940         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4941         Don't reference $modules.
4942         (func_import, func_create_testdir): Pass it.
4944 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4946         regex: use re_malloc etc. consistently
4947         Problem and original patch reported by Arnold Robbins in:
4948         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4949         * lib/regcomp.c (re_comp):
4950         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4951         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4953 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4954             Paul Eggert  <eggert@cs.ucla.edu>
4956         glob: Silence warning about void pointer arithmetic.
4957         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4958         arithmetic.
4960 2017-12-15  Bruno Haible  <bruno@clisp.org>
4962         spawn-pipe: Silence a clang warning.
4963         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4964         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4965         in this file.
4967 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4969         explicit_bzero: port to macOS + Clang 9.0.0
4970         Problem reported by Marcus Johnson (Bug#29658).
4971         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4972         Don’t use asm.
4974 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4976         doc: Improve explanation of supporting relocatable libraries.
4977         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4978         properly how to build the relocatable module for
4979         libraries. (Method and example code from Bruno Haible.)
4981 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4983         doc: Use better texinfo tags in a few cases.
4984         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4985         instead of @samp in a few places.
4987 2017-12-11  Bruno Haible  <bruno@clisp.org>
4989         unistr/base: Update comment.
4990         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4992 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4994         test-faccessat.c: unlink temp file to avoid subsequent test failure
4995         * tests/test-faccessat.c: Remove the file to avoid failure
4996         to open the file on subsequent runs due to being created
4997         with no permissions.
4999 2017-12-10  Bruno Haible  <bruno@clisp.org>
5001         doc: New sect. "Modifying the build rules of a Gnulib import directory".
5002         * doc/gnulib-tool.texi (Modified build rules): New node.
5004 2017-12-10  Bruno Haible  <bruno@clisp.org>
5006         doc: Tweak wording.
5007         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
5008         "binaries".
5010 2017-12-05  Sam Steingold  <sds@gnu.org>
5011             Bruno Haible  <bruno@clisp.org>
5013         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
5014         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
5015         AC_EGREP_CPP pattern.
5017 2017-12-03  Bruno Haible  <bruno@clisp.org>
5019         all: Replace more http URLs by https URLs.
5020         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
5021         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
5022         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
5023         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
5025 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5027         Port better to CentOS 5
5028         Problems reported by Tom G. Christensen in:
5029         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
5030         * doc/glibc-functions/strverscmp.texi (strverscmp):
5031         Document strverscmp bug with glibc 2.9 and earlier.
5032         * doc/posix-functions/tzset.texi (tzset):
5033         Document that TZ with angle brackets is POSIX-2001 and later.
5034         * tests/test-nstrftime.c: Include unistd.h.
5035         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
5036         (TZ): Use it to skip tests with angle brackets in TZ,
5037         for older systems.
5039         stat: add missing module dependencies
5040         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
5041         Add stat-time.
5043 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
5045         stat: fix compilation failure on macOS Sierra
5046         Reported by Marius Schamschula <mschamschula@gmail.com> in:
5047         https://savannah.gnu.org/bugs/?52546
5048         * lib/stat.c: Add missing include of stat-time.h.
5050 2017-11-28  Jim Meyering  <meyering@fb.com>
5052         test-faccessat.c: correct BASE definition to avoid parallel test failure
5053         * tests/test-faccessat.c (BASE): Define using this file's name, not
5054         that of test-lstat.c.  Using the latter caused this test to fail
5055         sometimes when run concurrently with test-lstat.
5057 2017-11-27  Daiki Ueno  <ueno@gnu.org>
5059         unicase: fix VPATH build
5060         * modules/unicase/special-casing (Makefile.am): Ensure that the
5061         base directory is created when generating
5062         unicase/special-casing.h.
5064 2017-11-27  Daiki Ueno  <ueno@gnu.org>
5066         libunistring: update to Unicode 9.0.0
5067         * lib/gen-uni-tables.c (fill_properties): Recognize
5068         Sentence_Terminal and Prepended_Concatenation_Mark.
5069         (is_property_default_ignorable_code_point): Exclude U+08E2.
5070         (fill_arabicshaping): Allow missing whitespace when parsing;
5071         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
5072         (output_blocks): Increase the element size of the level1 table to
5073         accommodate more blocks.
5074         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
5075         Update each class according to the standard.
5076         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
5077         E_Base_GAZ characters.
5078         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
5079         Glue_After_Zwj, and E_Base_GAZ characters.
5080         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
5081         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
5082         enum value.
5083         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
5084         value.
5085         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
5086         LBP_ZWJ, LBP_EB, and LBP_EM.
5087         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
5088         enum value.
5089         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
5090         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
5091         declaration.
5092         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
5093         (uniwbrk_table): Implement WB14.
5094         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
5095         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
5096         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
5097         uc-is-grapheme-break.
5098         * modules/unigbrk/uc-grapheme-breaks: New module.
5099         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
5100         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
5101         enum value.
5102         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
5103         * lib/unigbrk/u-grapheme-breaks.h: New file.
5104         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
5105         u-grapheme-breaks.h instead of uc_is_grapheme_break.
5106         * lib/unigbrk/uc-grapheme-breaks.c: New file.
5107         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
5108         29.
5109         * tests/unigbrk/test-uc-gbrk-prop.c
5110         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
5111         GBP_GAZ, and GBP_EBG.
5112         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
5113         * tests/unigbrk/test-uc-is-grapheme-break.c
5114         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
5115         GBP_GAZ, and GBP_EBG.
5116         (main): Skip unsupported rules involving 3 or more characters,
5117         namely GB10, GB12, and GB13.
5118         * lib/uniwidth/width.c (nonspacing_table_data): Update.
5119         * all generated files under lib/uni* and tests/uni*: Regenerate.
5120         * all the affected modules: Bump version.
5122 2017-11-26  Bruno Haible  <bruno@clisp.org>
5124         strfmon_l: Fix compilation error with glibc 2.5.
5125         Reported by Tom G. Christensen <tgc@jupiterrise.com>
5126         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
5127         * lib/monetary.in.h: Include also <locale.h>.
5129 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5131         posixtm: remove PDS_LEADING_YEAR
5132         This changes the API slightly, in a hopefully-innocuous way.
5133         Without this change the code had undefined behavior when a
5134         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
5135         Problem reported by Pádraig Brady in:
5136         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
5137         * NEWS: Mention this.
5138         * lib/posixtm.c (posix_time_parse): Treat the absence of
5139         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
5140         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
5141         present, but define it as zero, for compatibility with existing
5142         source code).  All other PDS_* values moved up.
5143         * tests/test-posixtm.c (LY): New macro.
5144         (T): Use it.  Do not expect a particular numeric encoding
5145         for PDS_CENTURY etc.
5147 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
5149         stat: work around Solaris bug with tv_nsec < 0
5150         * doc/posix-functions/fstat.texi (fstat):
5151         * doc/posix-functions/fstatat.texi (fstatat):
5152         * doc/posix-functions/lstat.texi (lstat):
5153         * doc/posix-functions/stat.texi (stat):
5154         Mention Solaris 11 bug.
5155         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
5156         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
5157         * lib/lstat.c (rpl_lstat):
5158         * lib/stat.c (rpl_stat):
5159         Normalize resulting timestamps.
5160         * lib/fstatat.c (normal_fstatat): New function.
5161         (rpl_fstatat): Use it.
5162         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
5163         (stat_time_normalize): New function.
5164         * m4/fstat.m4 (gl_FUNC_FSTAT):
5165         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
5166         * m4/lstat.m4 (gl_FUNC_LSTAT):
5167         * m4/stat.m4 (gl_FUNC_STAT):
5168         Replace on Solaris.
5169         * modules/fstat (Depends-on):
5170         * modules/fstatat (Depends-on):
5171         Add stat-time.
5172         * modules/stat-time (Depends-on): Add errno, intprops.
5174 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5176         regex: merge from glibc
5177         * lib/regcomp.c (init_word_char): Add comments.
5179 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5181         regex: merge from glibc
5182         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
5183         * lib/regex_internal.h (internal_function): Remove.
5184         All uses removed.
5186 2017-11-20  Bruno Haible  <bruno@clisp.org>
5188         crypto/gc-sm3: Fix buffer overrun.
5189         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
5190         Reported by Coverity.
5192 2017-11-12  Jim Meyering  <meyering@fb.com>
5194         maint: shorten https://lists.gnu.org/archive/html/... links
5195         Each /archive/html/ part can be replace with /r/.
5196         Run this to induce the change:
5197         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
5198         * ChangeLog: Perform that substitution.
5199         * Makefile: Likewise.
5200         * STATUS-libposix: Likewise.
5201         * build-aux/bootstrap: Likewise.
5202         * doc/maintain.texi: Likewise.
5203         * gnulib-tool: Likewise.
5204         * lib/allocator.h: Likewise.
5205         * lib/argp-ba.c: Likewise.
5206         * lib/argp-pv.c: Likewise.
5207         * lib/canon-host.c: Likewise.
5208         * lib/canonicalize-lgpl.c: Likewise.
5209         * lib/float.in.h: Likewise.
5210         * lib/fstat.c: Likewise.
5211         * lib/getdelim.c: Likewise.
5212         * lib/getprogname.c: Likewise.
5213         * lib/glthread/thread.h: Likewise.
5214         * lib/intprops.h: Likewise.
5215         * lib/mbsrtowcs-state.c: Likewise.
5216         * lib/safe-read.c: Likewise.
5217         * lib/signal.in.h: Likewise.
5218         * lib/stat.c: Likewise.
5219         * lib/stdbool.in.h: Likewise.
5220         * lib/stdio-impl.h: Likewise.
5221         * lib/stdio.in.h: Likewise.
5222         * lib/sysexits.in.h: Likewise.
5223         * lib/timespec.h: Likewise.
5224         * lib/wcsrtombs-state.c: Likewise.
5225         * m4/alloca.m4: Likewise.
5226         * m4/extern-inline.m4: Likewise.
5227         * m4/fstatat.m4: Likewise.
5228         * m4/gnulib-common.m4: Likewise.
5229         * m4/lib-ignore.m4: Likewise.
5230         * m4/printf.m4: Likewise.
5231         * m4/regex.m4: Likewise.
5232         * m4/stat-size.m4: Likewise.
5233         * m4/std-gnu11.m4: Likewise.
5234         * m4/stdbool.m4: Likewise.
5235         * m4/sys_types_h.m4: Likewise.
5236         * m4/threadlib.m4: Likewise.
5237         * m4/vararrays.m4: Likewise.
5238         * pygnulib/GLImport.py: Likewise.
5239         * tests/test-exp.h: Likewise.
5240         * tests/test-exp2.h: Likewise.
5241         * tests/test-expm1.h: Likewise.
5242         * tests/test-fflush2.c: Likewise.
5243         * tests/test-getopt_long.h: Likewise.
5244         * tests/test-intprops.c: Likewise.
5245         * tests/test-log.h: Likewise.
5246         * tests/test-log10.h: Likewise.
5247         * tests/test-log1p.h: Likewise.
5248         * tests/test-log2.h: Likewise.
5249         * tests/test-printf-posix.h: Likewise.
5250         * tests/test-regex.c: Likewise.
5251         * tests/test-snprintf-posix.h: Likewise.
5252         * tests/test-sprintf-posix.h: Likewise.
5253         * tests/test-stdalign.c: Likewise.
5254         * tests/test-stdbool.c: Likewise.
5255         * tests/test-vasnprintf-posix.c: Likewise.
5256         * tests/test-vasprintf-posix.c: Likewise.
5257         * top/maint.mk: Likewise.
5259 2017-11-12  Bruno Haible  <bruno@clisp.org>
5261         faccessat: Make the last change more robust.
5262         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
5263         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
5265 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5267         faccessat: port to macOS (Bug#29231)
5268         macOS faccessat has the same bug that lstat does: if the file
5269         name ends in '/' it ignores the trailing slash.
5270         Problem reported for Emacs by Vincent Zhang.
5271         * doc/posix-functions/faccessat.texi (faccessat): Document this.
5272         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
5273         around the initial includes.  Include errno.h, string.h, sys/stat.h.
5274         (orig_faccessat) [HAVE_FACCESSAT]: New function.
5275         Include "unistd.h" after defining it.
5276         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
5277         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
5278         Handle in the usual way.
5279         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
5280         lstat dereferences symlinks, since faccessat is likely to
5281         have the same problem.
5282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
5283         * modules/faccessat (Depends-on): Add fstatat.
5284         Depend if REPLACE_FACCESSAT is 1, too.
5285         (configure.ac): Link if REPLACE_FACCESSAT is 1.
5286         * modules/faccessat-tests (Depends-on): Add symlink.
5287         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
5288         * tests/test-faccessat.c (main): Test for the bug.
5290 2017-11-11  Bruno Haible  <bruno@clisp.org>
5292         getprogname: Fix compilation error on IRIX.
5293         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
5294         'namesize'.
5296 2017-11-11  Bruno Haible  <bruno@clisp.org>
5298         year2038: Tweak last patch.
5299         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
5301 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5303         year2038: be more insistent about 64-bit time_t
5304         Applications requiring access to arbitrary files should not be
5305         built with 32-bit time_t on hosts that have 64-bit timestamps,
5306         as this can lead to real trouble at runtime.
5307         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
5308         Check on all systems, not just MinGW.  Use a heuristic involving
5309         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
5310         output a failure or just a warning, to make it more likely that
5311         builders will select 64-bit time_t.
5313 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5315         havelib: fix typo in previous change
5316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
5318         Don’t use AC_EGREP_CPP if affected by CFLAGS
5319         * m4/float_h.m4 (gl_FLOAT_H):
5320         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
5321         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
5322         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
5323         * m4/year2038.m4 (gl_YEAR2038):
5324         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
5325         likely to be affected by the choice of CFLAGS, since CFLAGS are
5326         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
5327         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
5329         fstatat: pacify GCC on unusual platform
5330         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
5331         Omit, as it’s unused in this case.
5333 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
5335         timespec: prefer ‘assume’ to ‘assure’
5336         This avoids some runtime tests.  The rest of the module makes
5337         similar assumptions and there is little point to testing here.
5338         * lib/timespec.h: Include verify.h instead of assure.h.
5339         (timespec_cmp): Use ‘assume’, not ‘assure’.
5340         Also, remove an unnecessary cast to ‘int’, as lots of other
5341         code in this module now causes -Wconversion to complain, and
5342         this is a problem with -Wconversion not with the code.
5344         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
5346         Port recent gnulib-tool change to Dash
5347         * gnulib-tool (func_create_testdir): Don't assume that the shell
5348         retokenizes after expanding "$@" inside the call to
5349         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
5351 2017-10-27  Jim Meyering  <meyering@fb.com>
5353         timespec.h: use "assure" to avoid a spurious warning
5354         * lib/timespec.h: Include "assure.h" and use it to help
5355         gcc7's -Wstrict-overflow avoid a false positive warning
5356         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5357         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5358         * modules/timespec (Depends-on): Add assure.
5360 2017-10-29  Bruno Haible  <bruno@clisp.org>
5362         Avoid several test failures with traditional locales on Haiku.
5363         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5364         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5365         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5367         LOCALE_ZH_CN=none.
5369 2017-10-29  Bruno Haible  <bruno@clisp.org>
5371         strerror_r-posix: Fix behaviour and test failure on Haiku.
5372         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5373         are positive. Work around return value 0 instead of ERANGE on Haiku.
5374         For unknown error numbers, use a format string consistent with perror().
5375         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5376         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5377         are positive.
5379 2017-10-29  Bruno Haible  <bruno@clisp.org>
5381         get-rusage-data: Avoid crash on Haiku.
5382         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5384 2017-10-29  Bruno Haible  <bruno@clisp.org>
5386         get-rusage-as: Avoid crash on Haiku.
5387         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5389 2017-10-29  Bruno Haible  <bruno@clisp.org>
5391         ilogbl: Ensure replacement on Haiku.
5392         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5393         REPLACE_ILOGBL if ilogbl does not work.
5394         (gl_FUNC_ILOGBL_WORKS): New macro.
5395         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5397         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5398         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5399         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5401 2017-10-29  Bruno Haible  <bruno@clisp.org>
5403         expl: Ensure replacement on Haiku.
5404         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5405         zero.
5406         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5408 2017-10-29  Bruno Haible  <bruno@clisp.org>
5410         math: Fix test failure on Haiku.
5411         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5412         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5413         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5414         * doc/posix-headers/math.texi: Mention the Haiku problem.
5416 2017-10-29  Bruno Haible  <bruno@clisp.org>
5418         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5419         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5420         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5422 2017-10-29  Bruno Haible  <bruno@clisp.org>
5424         crypto/*: Verify that the header file is self-contained.
5425         * tests/test-gc-*.c: Include the module's header file immediately after
5426         <config.h>.
5427         * tests/test-hmac-*.c: Likewise.
5428         * tests/test-arcfour.c: Likewise.
5429         * tests/test-arctwo.c: Likewise.
5430         * tests/test-des.c: Likewise.
5431         * tests/test-md2.c: Likewise.
5432         * tests/test-md4.c: Likewise.
5433         * tests/test-md5.c: Likewise.
5434         * tests/test-rijndael.c: Likewise.
5435         * tests/test-sha1.c: Likewise.
5436         * tests/test-sm3.c: Likewise.
5438 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5439             Bruno Haible  <bruno@clisp.org>
5441         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5442         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5444 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5446         New module: crypto/gc-sm3
5447         * lib/gc.h: Declare SM3-related stuffs.
5448         * lib/gc-gnulib.c: Support sm3 in internal functions.
5449         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5450         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5451         * modules/crypto/gc-sm3: Define gc-sm3 module.
5452         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5453         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5454         * MODULES.html.sh: List gc-sm3 module.
5456 2017-10-29  Bruno Haible  <bruno@clisp.org>
5458         random, random_r: Mention different prototypes on Haiku.
5459         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5460         * doc/glibc-functions/random_r.texi: Likewise.
5461         * doc/glibc-functions/initstate_r.texi: Likewise.
5462         * doc/glibc-functions/setstate_r.texi: Likewise.
5464 2017-10-28  Bruno Haible  <bruno@clisp.org>
5466         posix_spawn: Avoid spurious message in configure output.
5467         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5468         'cmp' command.
5470 2017-10-28  Bruno Haible  <bruno@clisp.org>
5472         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5473         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5474         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5476 2017-10-28  Bruno Haible  <bruno@clisp.org>
5478         ioctl: Override non-POSIX declaration on Haiku.
5479         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5480         * lib/sys_ioctl.in.h: Add comment about Haiku.
5481         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5482         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5484 2017-10-28  Bruno Haible  <bruno@clisp.org>
5486         crypto/sm3: Add overview documentation to the .h file.
5487         * lib/sm3.h: Add comments.
5489 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5491         New module: crypto/sm3
5492         This new module can be used to compute SM3 message digest of files or
5493         memory blocks according to the specification GM/T 004-2012
5494         Cryptographic Hash Algorithm SM3, published by State Cryptography
5495         Administration, China.
5496         The official SM3 cryptographic hash algorithm specification is
5497         available at
5498         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5499         * lib/sm3.h: Declare the APIs of sm3 module.
5500         * lib/sm3.c: Implement SM3 hash algorithm.
5501         * m4/sm3.m4: m4 file for sm3 module.
5502         * modules/crypto/sm3: Define sm3 module.
5503         * tests/test-sm3.c: Implement SM3 test case.
5504         * modules/crypto/sm3-tests: Define sm3 test module.
5505         * MODULES.html.sh: List sm3 module.
5507 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5509         gc-libgcrypt: fix undefined enum type in switch statement
5510         Resolve the following build failure:
5511         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5512         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5513         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5514              case 0:
5515              ^~~~
5516         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5517         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5519 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5521         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5522         Resolve the following build failure:
5523         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5524         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5525         in signedness [-Werror=pointer-sign]
5526             digest = gcry_md_read (ctx->gch, 0);
5527                    ^
5528         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5530 2017-10-26  Bruno Haible  <bruno@clisp.org>
5532         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5533         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5534         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5536 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5538         glob: fix another heap buffer overflow
5539         Problem reported by Tim Rühsen in:
5540         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5541         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5543 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5545         quotearg: pacify compiler re unsigned
5546         * lib/quotearg.c (quotearg_n_options):
5547         Rewrite to avoid diagnostic from overly-picky compiler.
5548         Problem reported by Sami Kerola in:
5549         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5551         glob: fix heap buffer overflow
5552         * lib/glob.c (glob): Fix off-by-one error introduced into
5553         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5554         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5555         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5556         Fix suggested by Bruno Haible.
5558 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5560         glob: pacify fuzzer for mempcpy
5561         Problem reported by Tim Rühsen in:
5562         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5563         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5565 2017-10-12  Bruno Haible  <bruno@clisp.org>
5567         doc: Fix syntax error (regression from 2017-10-03).
5568         * doc/posix-functions/strncpy.texi: Fix syntax error.
5570 2017-10-12  Bruno Haible  <bruno@clisp.org>
5572         doc: Update for Solaris 11.3.
5573         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5574         mention Solaris 11.3.
5575         * m4/log2.m4: Fix comments.
5576         * m4/log2f.m4: Likewise.
5577         * m4/printf.m4: Update comments.
5578         * m4/rename.m4: Likewise.
5579         * m4/strncat.m4: Likewise.
5581         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5583 2017-10-10  Bruno Haible  <bruno@clisp.org>
5585         doc: Improve doc about ioctl.
5586         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5587         prototype.
5589 2017-10-09  Bruno Haible  <bruno@clisp.org>
5591         wcwidth: Don't use obsolete syntax of 'test'.
5592         Reported by Eric Blake.
5593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5594         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5596 2017-10-09  Bruno Haible  <bruno@clisp.org>
5598         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5599         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5600         and Daniel P. Berrange <berrange@redhat.com>.
5601         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5602         on glibc systems. The getopt-pfx-core.h file declares exactly what
5603         unistd.h needs, nothing more.
5605 2017-10-08  Bruno Haible  <bruno@clisp.org>
5607         vma-iter: Improve support for FreeBSD.
5608         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5609         vma_iterate.
5610         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5612 2017-10-08  Bruno Haible  <bruno@clisp.org>
5614         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5615         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5617 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5619         test-framework-sh: Fix 'invalid path dir' error.
5620         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5621         separator between a drive letter and directory parts.
5622         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5623         treated as an invalid path dir.
5624         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5625         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5626         instead of hard coded ':'.
5628 2017-10-07  Bruno Haible  <bruno@clisp.org>
5630         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5631         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5632         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5633         (rof_open): On Linux, do multiple read() calls and make sure
5634         MIN_LEFTOVER bytes are left when read() returns.
5636 2017-10-07  Bruno Haible  <bruno@clisp.org>
5638         vma-iter: Improve support for GNU/Hurd.
5639         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5640         API, not the /proc file system.
5642 2017-10-07  Bruno Haible  <bruno@clisp.org>
5644         test-framework-sh: Don't require bash on Windows and OS/2.
5645         Reported by KO Myung-Hun.
5646         * tests/test-init.sh: Use 'shopt' only when running in bash.
5648 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5650         wcwidth: check a macro version of wcwidth () as well
5651         * lib/wchar.in.h: Revert commit from 2016-01-14.
5652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5654 2017-10-06  Bruno Haible  <bruno@clisp.org>
5656         getopt-posix: Clarify copyright header.
5657         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5658         * lib/getopt-pfx-core.h: Likewise.
5659         * lib/getopt-pfx-ext.h: Likewise.
5660         * lib/getopt-cdefs.in.h: Likewise.
5662 2017-10-03  Bruno Haible  <bruno@clisp.org>
5664         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5665         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5666         gl_HOST_CPU_C_ABI.
5668 2017-10-03  Bruno Haible  <bruno@clisp.org>
5670         doc: warn about misuse of strncpy and wcsncpy.
5671         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5672         memory allocation.
5673         * doc/posix-functions/wcscpy.texi: Likewise.
5674         * doc/posix-functions/strncpy.texi: Describe what this function is not
5675         useful for.
5676         * doc/posix-functions/wcsncpy.texi: Likewise.
5678 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5680         fsuage: fix typo in previous change
5681         * lib/fsusage.c: Remove stray include of full-read.h.
5682         Problem reported by Sam Steingold for macOS (Bug#28669).
5684 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5686         fsusage: remove SVR2 support
5687         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5688         and its code was getting in the way of use of this module by
5689         Emacs, which has its own ‘read’ function anyway.
5690         * lib/fsusage.c: Do not include sys/filsys.h.
5691         (get_fs_usage): Remove SVR2-specific code.
5692         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5693         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5694         * modules/fsusage (Depends-on): Do not depend on full-read.
5696         Simplify autoupdate of licenses
5697         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5698         place.
5700 2017-10-01  Bruno Haible  <bruno@clisp.org>
5702         vma-iter: Add support for GNU/Hurd.
5703         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5704         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5706 2017-09-30  Bruno Haible  <bruno@clisp.org>
5708         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5709         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5710         fail when module 'largefile' is in use.
5711         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5712         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5713         Don't test HAVE_SYS_PROCFS_H.
5715 2017-09-30  Bruno Haible  <bruno@clisp.org>
5717         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5718         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5719         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5720         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5722 2017-09-30  Bruno Haible  <bruno@clisp.org>
5724         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5725         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5726         scope of local variables.
5728 2017-09-28  Bruno Haible  <bruno@clisp.org>
5730         string: code style
5731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5732         substitutable variables.
5733         * modules/string (Makefile.am): Likewise.
5735 2017-09-26  Bruno Haible  <bruno@clisp.org>
5737         uniname/uniname-tests: Tighten code.
5738         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5739         local variables into one.
5741 2017-09-26  Bruno Haible  <bruno@clisp.org>
5743         vma-iter: Improvements for Linux and BSD platforms.
5744         - Add support for DragonFly BSD.
5745         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5746         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5747         Read the entire file into memory in a single system call.
5748         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5749         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5751 2017-09-26  Bruno Haible  <bruno@clisp.org>
5753         vma-iter: Provide the protection flags on FreeBSD.
5754         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5755         skip three fields between the addresses and the protection flags.
5757 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5759         glob: remove bogus extern decl
5760         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5761         extern declaration.  Problem reported by Adhemerval Zanella in:
5762         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5764 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5766         uniname/uniname-tests: integer overflow fix
5767         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5768         Check for integer overflow.
5770         duplocale-tests: fix unlikely crash
5771         * tests/test-duplocale.c (get_locale_dependent_values):
5772         Don’t crash with absurdly long month names.
5774         maint: fix overflow checking in nap.h
5775         * modules/chown-tests:
5776         * modules/fchownat-tests, modules/fdutimensat-tests:
5777         * modules/futimens-tests, modules/lchown-tests:
5778         * modules/stat-time-tests, modules/utime-tests:
5779         * modules/utimens-tests, modules/utimensat-tests:
5780         Depend on intprops.
5781         * tests/nap.h: Include intprops.h.
5782         (diff_timespec): Handle overflow properly.
5784         sys_types: update URL
5785         * m4/sys_types_h.m4: Use https: URL.
5787         parse-datetime: fix dependency
5788         * modules/parse-datetime (Depends-on): Depend
5789         on nstrftime, not strftime.
5791         parse-datetime, posixtm: avoid uninit access
5792         * lib/parse-datetime.y (parse_datetime2):
5793         * lib/posixtm.c (posixtime):
5794         Do not access uninitialized storage, even though the resulting
5795         value is never used.
5797 2017-09-25  Bruno Haible  <bruno@clisp.org>
5799         vma-iter: Improvements for BSD platforms.
5800         - Add support for GNU/kFreeBSD.
5801         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5802         - Speed up on OpenBSD.
5803         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5804         (vma_iterate_bsd): New function.
5805         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5806         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5807         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5808         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5810 2017-09-23  Bruno Haible  <bruno@clisp.org>
5812         strfmon_l: New module.
5813         * modules/strfmon_l: New file.
5814         * lib/strfmon_l.c: New file.
5815         * m4/strfmon_l.m4: New file.
5816         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5817         * modules/strfmon_l-tests: New file.
5818         * tests/test-strfmon_l.c: New file.
5820         monetary: New module.
5821         * modules/monetary: New file.
5822         * lib/monetary.in.h: New file.
5823         * m4/monetary_h.m4: New file.
5824         * doc/posix-headers/monetary.texi: Mention the new module.
5825         * modules/monetary-tests: New file.
5826         * tests/test-monetary.c: New file.
5827         * modules/monetary-c++-tests: New file.
5828         * tests/test-monetary-c++.cc: New file.
5829         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5831 2017-09-23  Bruno Haible  <bruno@clisp.org>
5833         duplocale tests: Fix test crash on Linux/x86.
5834         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5835         locale from the current thread before freeing it.
5837 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5839         mktime: port to OpenVMS
5840         Problem reported by John E. Malmberg in:
5841         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5842         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5844 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5846         manywarnings: port to GCC on 64-bit MS-Windows
5847         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5848         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5849         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5851 2017-09-13  Bruno Haible  <bruno@clisp.org>
5853         all: Replace many more http URLs by https URLs. Update stale URLs.
5854         * users.txt: Remove mention of 'newts'.
5855         * lib/localename.c: Update comment about LANG_SOTHO.
5857 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5859         all: Replace many http URLs by https URLs.
5861 2017-09-12  Bruno Haible  <bruno@clisp.org>
5863         doc: Prefer https URLs where possible.
5864         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5865         * doc/ld-output-def.texi: Remove unavailable URL.
5867 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5869         maintainer-makefile: FTP -> HTTPS
5870         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5871         of FTP, which is planned to be decommissioned on 2017-11-01.
5873 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5875         libc-config: Fix __GNUC_PREREQ macro.
5876         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5877         __GNUC_MINOR.
5879 2017-09-09  Bruno Haible  <bruno@clisp.org>
5881         gnulib-tool: Simplify commit from 2015-08-20.
5882         * gnulib-tool (func_add_or_update): Remove local variable
5883         is_binary_file.
5885 2017-09-08  Bruno Haible  <bruno@clisp.org>
5887         stddef: Avoid conflict with system-defined max_align_t.
5888         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5889         Reported by Werner Lemberg <wl@gnu.org> in
5890         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5891         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5892         (max_align_t): Define as a macro.
5893         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5894         definitions of rpl_max_align_t in different copies of gnulib-generated
5895         <stddef.h>.
5897 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5899         libc-config: port to MSVC
5900         Problems reported by Gisle Vanem in:
5901         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5902         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5903         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5904         * m4/__inline.m4: New file.
5905         * modules/libc-config (Files): Add it.
5906         (Depends-on): Use it.
5908         glob: Use enum for __glob_pattern_type result
5909         From a patch proposed by Adhemerval Zanella in:
5910         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5911         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5912         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5913         * lib/glob_internal.h (__glob_pattern_type):
5914         * lib/glob.c (glob):
5915         * lib/glob_pattern_p.c (__glob_pattern_p):
5916         Use them.
5918         glob: fix for use in glibc
5919         Problem reported by Adhemerval Zanella in:
5920         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5921         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5922         Do not redefine if _LIBC.
5924 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5926         glob: fix bugs with long login names
5927         Problem reported by Adhemerval Zanella in:
5928         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5929         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5930         (glob): Use the same scratch buffer for both getlogin_r and
5931         getpwnam_r.  Don’t require preallocation of the login name.  This
5932         simplifies storage allocation, and corrects the handling of
5933         long login names.
5935 2017-09-02  Bruno Haible  <bruno@clisp.org>
5937         dirent: Update doc.
5938         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5940 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5942         glob: fix getpwnam_r errno typo
5943         * lib/glob.c (glob): Fix longstanding misuse of errno after
5944         getpwnam_r, which returns an error number rather than setting
5945         errno.
5947         glob: fix typo in recent change
5948         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5949         Fix recently-introduced typo.
5951 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5953         glob: don't save and restore errno unnecessarily
5954         * lib/glob.c (glob): Don't save and restore errno
5955         merely because we have getpwnam_r.
5957         glob: don't assume getpwnam_r
5958         * lib/glob.c (glob): Port recent patches to platforms
5959         lacking getpwnam_r.
5961         scratch_buffer: don’t use private glibc API
5962         Suggested by Florian Weimer in:
5963         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5964         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5965         * lib/scratch_buffer_grow.c: Rename to
5966         lib/malloc/scratch_buffer_grow.c.
5967         * lib/scratch_buffer_grow_preserve.c: Rename to
5968         lib/malloc/scratch_buffer_grow_preserve.c.
5969         * lib/scratch_buffer_set_array_size.c: Rename to
5970         lib/malloc/scratch_buffer_set_array_size.c.
5971         * lib/scratch_buffer.h: New file.
5972         * modules/scratch_buffer (Files, Makefile.am):
5973         Adjust to source-file renaming.
5975 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5977         glob: use scratch_buffer instead of extend_alloca
5978         Much of the lib/glob.c part of this patch comes from a glibc patch
5979         proposed by Adhemerval Zanella in:
5980         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5981         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5982         included via glob.h, does this for us now.
5983         (__set_errno): Remove, as libc-config does this for us now.
5984         Include <scratch_buffer.h>.
5985         (GETPW_R_SIZE_MAX): Remove.
5986         (glob): Use struct scratch_buffer instead of extend_alloca.
5987         * lib/glob.in.h: Include libc-config.h rather than
5988         including <sys/cdefs.h> conditionally.
5989         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5990         (__glibc_unlikely, __restrict, weak_alias):
5991         Remove, as libc-config does this for us now.
5992         * m4/glob.m4 (gl_PREREQ_GLOB):
5993         Remove sys/cdefs.h tests; no longer needed.
5994         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5995         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5997         scratch_buffer: new module
5998         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5999         * lib/scratch_buffer_grow_preserve.c:
6000         * lib/scratch_buffer_set_array_size.c:
6001         New files, copied from glibc with very minor changes that can be
6002         copied back.
6003         * modules/scratch_buffer: New file.
6005         libc-config: new module
6006         * MODULES.html.sh: Add libc-config.
6007         * lib/cdefs.h: New file, copied from the GNU C Library with very
6008         minor changes that can be copied back.
6009         * lib/libc-config.h, modules/libc-config: New files.
6011 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6013         glob: match dangling symlinks
6014         This fixes a bug I inadvertently introduced to Gnulib when I
6015         merged glibc glob back into gnulib on 2007-10-16.  This fix is
6016         inspired by a patch proposed for glibc by Adhemerval Zanella in:
6017         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
6018         * doc/posix-functions/glob.texi: Update list of affected platforms.
6019         * lib/glob.c (__lstat64): New macro.
6020         (is_dir): New function.
6021         (glob, glob_in_dir): Match symlinks even if they are dangling.
6022         (link_stat, link_exists_p): Remove.  All uses removed.
6023         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
6024         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
6025         * modules/glob-tests (Depends-on): Add symlink.
6026         * tests/test-glob.c: Include errno.h, unistd.h.
6027         (BASE): New macro.
6028         (main): Test dangling symlinks, if symlinks are supported.
6030         glob, backupfile: inode 0 is a valid inode number
6031         * doc/posix-functions/readdir.texi (readdir):
6032         * doc/posix-headers/dirent.texi (dirent.h):
6033         Document more readdir portability issues.
6034         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
6035         (numbered_backup): Don’t treat inode 0 any differently from
6036         other inode values.
6037         * lib/glob.c (struct readdir_result): Remove skip_entry member.
6038         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6039         All uses removed.
6040         * modules/glob (Depends-on): Remove d-ino.
6042         glob: simplify symlink detection
6043         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
6044         uint8_t, as C99 does not require uint8_t.
6045         (struct readdir_result): Use it.  Do not define skip_entry unless
6046         it is needed; this saves a byte on platforms lacking d_ino.
6047         (readdir_result_type, readdir_result_skip_entry):
6048         New functions, replacing ...
6049         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6050         ... these functions, which were removed.  This makes the callers
6051         easier to read.  All callers changed.
6052         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6054 2017-08-30  Pádraig Brady  <P@draigBrady.com>
6056         fts-tests: tag as a longrunning-test so not included by default
6057         * modules/fts-tests: This test takes about 20s on current systems,
6058         and uses about 285M of space on ext4.
6060 2017-08-30  Pádraig Brady  <P@draigBrady.com>
6062         renameat2: fix compilation on alpine linux
6063         * m4/renameat.m4: Check for <linux/fs.h> presence.
6064         * lib/renameat2.h: Only include <linux/fs.h> if present.
6065         Reported by Assaf Gordon on Alpine Linux.
6067 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6069         glob: try to port recent changes to MS-Windows
6070         Problem reported by Bruno Haible in:
6071         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
6072         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
6073         * lib/glob.in.h (__glob_pattern_p): ... to here.
6075 2017-08-24  Eric Blake  <eblake@redhat.com>
6077         warnings: fix compilation with old autoconf
6078         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
6079         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
6080         AC_DEFUN.
6081         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
6082         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
6084 2017-08-24  Bruno Haible  <bruno@clisp.org>
6086         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
6087         * modules/glob (Depends-on): Add c99.
6089 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6091         glob: fix typo that broke platforms lacking d_ino
6092         This typo also hurt performance on GNU/Linux and similar hosts.
6093         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
6094         in previous change.
6096 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6098         glob: merge from glibc with Zanella glob changes
6099         Merge glob from glibc, with changes for glob proposed
6100         by Adhemerval Zanella in the thread starting here:
6101         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
6102         plus some fixes for this merge.
6103         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
6104         New files, ported from glibc.
6105         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
6106         with __restrict.
6107         (__size_t): Remove.  All uses replaced by size_t.
6108         (size_t): Define by defining __need_size_t and including <stddef.h>.
6109         This should work even in non-glibc platforms, where any name
6110         pollution is OK.
6111         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
6112         (struct stat64): Don’t worry about __GLOB_GNULIB.
6113         (glob, globfree, glob_pattern_p): Remove macros for
6114         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
6115         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
6116         but set errno.
6117         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
6118         removed since the glibc behavior works on null pointers.
6119         Do not include stdio.h; old SunOS is irrelevant now.
6120         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
6121         Include glob_internal.h.
6122         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
6123         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
6124         worked only coincidentally.
6125         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
6126         Remove macros; now done in glob.in.h.
6127         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
6128         (glob): Properly initialize glob structure with
6129         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
6130         Remove old code using SHELL since Bash no longer
6131         uses this.
6132         (glob, prefix_array): Separate MS code better.
6133         (glob, glob_in_dir): Use C99 decls before statements when glibc
6134         does.
6135         (glob_in_dir): Remove old Amiga and VMS code.
6136         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6137         separate files.
6138         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
6139         (__glibc_unlikely):
6140         Move here from glob.c.
6141         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
6142         (weak_alias): New macro.
6143         (__size_t): Remove.  All uses replaced by size_t.
6144         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
6145         * modules/glob (Files): Add +lib/glob_internal.h,
6146         lib/glob_pattern_p.c, lib/globfree.c.
6147         (Depends-on): Remove snippet/arg-nonnull.
6149 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
6151         glob: port to clang's Undefined Sanitizer
6152         Problem reported by Tim Rühsen in:
6153         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
6154         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
6155         (glob_in_dir): Do not rely on undefined behavior in accessing
6156         struct members beyond their bounds.  Use a flexible array member
6157         instead.
6159 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
6161         vc-list-files: port to Solaris 10
6162         * build-aux/vc-list-files: Don't assume test -e works.
6164 2017-08-21  Karl Berry  <karl@freefriends.org>
6166         * doc/posix-functions/srandom.texi (srandom): typo }.
6168 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6170         git-version-gen: port to Solaris 10
6171         Problem reported by Dagobert Michelsen in:
6172         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
6173         * build-aux/git-version-gen (v_from_git):
6174         Use expr instead of shell substitution.
6176 2017-08-19  Bruno Haible  <bruno@clisp.org>
6178         host-cpu-c-abi: Improve detection of MIPS ABI.
6179         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
6180         _MIPS_SIM.
6182 2017-08-17  Bruno Haible  <bruno@clisp.org>
6184         hypot tests: Fix test failure on FreeBSD 11.0/x86.
6185         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
6187 2017-08-17  Bruno Haible  <bruno@clisp.org>
6189         float: Fix LDBL_MIN value on FreeBSD/x86.
6190         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
6192 2017-08-17  Bruno Haible  <bruno@clisp.org>
6194         random: Fix test compilation failure on Cygwin 1.5.25.
6195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
6196         HAVE_DECL_SETSTATE.
6197         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
6198         declared.
6199         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
6200         HAVE_DECL_SETSTATE.
6201         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
6202         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
6203         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
6204         * doc/posix-functions/random.texi: Likewise.
6205         * doc/posix-functions/setstate.texi: Likewise.
6206         * doc/posix-functions/srandom.texi: Likewise.
6208 2017-08-16  Bruno Haible  <bruno@clisp.org>
6210         stdnoreturn: Fix test compilation failure on Cygwin.
6211         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
6212         <stdnoreturn.h> replacement.
6213         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
6214         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
6216 2017-08-16  Bruno Haible  <bruno@clisp.org>
6218         thread: Fix conflict with pthread_sigmask module.
6219         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
6220         it's defined as a macro.
6221         * modules/thread (Depends-on): Add pthread_sigmask.
6223 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6225         rename: port better to NetBSD
6226         * doc/posix-functions/rename.texi (rename): NetBSD 7
6227         does not have the link-count bug.
6228         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
6229         broken merely because rename ("a", "b") removes "a" when the two
6230         names are hard links to the same file.
6232 2017-08-16  Bruno Haible  <bruno@clisp.org>
6234         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
6235         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
6236         the target file names with '$(srcdir)/'.
6237         * modules/unicase/locale-language (Makefile.am): Likewise.
6238         * modules/unicase/special-casing (Makefile.am): Likewise.
6239         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
6240         * modules/unictype/category-byname (Makefile.am): Likewise.
6241         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6242         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6243         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6244         * modules/unictype/property-byname (Makefile.am): Likewise.
6245         * modules/unictype/scripts (Makefile.am): Likewise.
6246         * modules/uninorm/composition (Makefile.am): Likewise.
6248 2017-08-16  Bruno Haible  <bruno@clisp.org>
6250         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
6251         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
6252         value for OpenBSD.
6254 2017-08-16  Bruno Haible  <bruno@clisp.org>
6256         rename, renameat: Update doc regarding NetBSD.
6257         * doc/posix-functions/rename.texi: Clarify that when using
6258         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
6259         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
6260         version.
6262 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6264         renameat2: port better to macOS
6265         * lib/renameat2.c (renameat2): Use renameatx_np if available.
6267         futimens: don’t assume struct timespec layout
6268         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
6269         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
6270         * tests/test-fdutimensat.c (main):
6271         * tests/test-futimens.h (test_futimens):
6272         * tests/test-lutimens.h (test_lutimens):
6273         * tests/test-utimens.h (test_utimens):
6274         * tests/test-utimensat.c (main):
6275         Don’t assume that struct timespec is a two-member structure in
6276         tv_sec, tv_nsec order.  Although this is true on all platforms we
6277         know about, POSIX does not guarantee it.
6279         rename: document+test NetBSD rename
6280         Test failure reported by Bruno Haible in:
6281         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
6282         This is an area where NetBSD is better-behaved than POSIX,
6283         so allow the NetBSD behavior in tests.
6284         * doc/posix-functions/rename.texi:
6285         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
6286         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
6288 2017-08-15  Bruno Haible  <bruno@clisp.org>
6290         renameat: Ensure declaration in <stdio.h> on NetBSD.
6291         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
6292         * doc/posix-functions/renameat.texi: Mention this problem.
6294 2017-08-15  Bruno Haible  <bruno@clisp.org>
6296         duplocale: Work around NetBSD 7.0 bug.
6297         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
6298         * lib/duplocale.c: Add comment about NetBSD problem.
6299         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
6301 2017-08-15  Bruno Haible  <bruno@clisp.org>
6303         duplocale tests: Verify use with *_l functions.
6304         * modules/duplocale-tests (configure.ac): Test for uselocale and
6305         some *_l functions.
6306         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
6307         from main.
6308         (get_locale_dependent_values_from, test_with_locale_parameter): New
6309         functions.
6310         (main): Test both test_with_uselocale and test_with_locale_parameter.
6312 2017-08-15  Bruno Haible  <bruno@clisp.org>
6314         extensions: Enable NetBSD specific extensions.
6315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
6317 2017-08-14  Bruno Haible  <bruno@clisp.org>
6319         open, openat: Update doc about O_CLOEXEC.
6320         * doc/posix-functions/open.texi: More concrete list of platforms.
6321         * doc/posix-functions/openat.texi: Likewise.
6323 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6325         open: support O_CLOEXEC
6326         * NEWS, doc/posix-functions/open.texi:
6327         * doc/posix-functions/openat.texi: Document this.
6328         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
6329         (GNULIB_defined_O_CLOEXEC): New symbol.
6330         * lib/open.c: Include cloexec.h.
6331         (open): Support O_CLOEXEC.
6332         * lib/openat.c: Include cloexec.h.
6333         (rpl_openat): Support O_CLOEXEC.
6334         * lib/popen-safer.c: Do not include cloexec.h.
6335         (open_noinherit): Remove.
6336         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
6337         * lib/save-cwd.c: Do not include cloexec.h.
6338         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
6339         * m4/open-cloexec.m4: New file.
6340         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
6341         Replace 'open' if O_CLOEXEC is not present.
6342         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
6343         Replace 'openat' if O_CLOEXEC is not present.
6344         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
6345         * modules/open (Files): Add m4/open-cloexec.m4.
6346         (Depends-on): Depend on cloexec if replacing 'open'.
6347         * modules/openat (Files): Add m4/open-cloexec.m4.
6348         (Depends-on): Depend on cloexec if replacing openat.
6349         * modules/popen-safer (Depends-on): Remove cloexec.
6350         * modules/save-cwd (Depends-on): Remove cloexec, and add
6351         fd-safer-flag and 'open'.
6353 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
6355         reallocarray: minor fixes
6356         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6357         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6358         * modules/reallocarray (License): Change from GPL to LGPL.
6359         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6360         Indent properly and don't use tabs.
6362 2017-08-13  Darshit Shah  <darnir@gnu.org>
6364         reallocarray: New module
6365         reallocarray is a new function in glibc 2.26 to safely allocate an array
6366         of memory locations with integer overflow protection.
6367         * MODULES.html.sh: Add reallocarray.
6368         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6369         * lib/reallocarray.c: New file to implement module reallocarray.
6370         * lib/stdlib.in.h: Add function declarations for reallocarray.
6371         * m4/reallocarray.m4: New file.
6372         * m4/stdlib_h.m4: Declare reallocarray.
6373         * modules/reallocarray: New file.
6374         * modules/reallocarray-test: New file.
6375         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6376         * tests/test-reallocarray.c: New test.
6378 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6380         dirent-safer: fix cloexec race
6381         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6382         (opendir_safer): Use F_DUPFD_CLOEXEC.
6383         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6384         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6385         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6386         instead of dup_safer.
6388         fts: fix cloexec races
6389         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6390         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6391         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6392         (fd_ring_check): Set cloexec flag on new file descriptors.
6393         (fts_build, fd_ring_check): While we’re at it, make sure the
6394         resulting file descriptor is not 0, 1, or 2, since that is easy.
6396 2017-08-11  Bruno Haible  <bruno@clisp.org>
6398         fts tests: Fix link error.
6399         Reported by Tom G. Christensen in
6400         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6401         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6403 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6405         fts: port recent changes to CentOS 6
6406         Problem reported by Tom G. Christensen in:
6407         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6408         * lib/fts.c (fsword): New type.
6409         (struct dev_type, filesystem_type): Use it.
6410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6411         Also, check for f_type only if fstatfs and sys/vfs.h work.
6413 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6415         tempname: do not depend on secure_getenv
6416         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6417         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6418         * modules/tempname (Depends-on): Remove secure_getenv.
6420 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6422         extensions: add _OPENBSD_SOURCE
6423         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6425 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6426             Bruno Haible  <bruno@clisp.org>
6428         manywarnings: Add support for C++.
6429         * build-aux/g++-warning.spec: New file.
6430         * m4/manywarnings-c++.m4: New file.
6431         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6432         redirects to manywarnings-c++.m4.
6433         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6435 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6437         git-version-gen: another fix for tags with "-"
6438         * build-aux/git-version-gen: Improve fix for tags containing "-".
6439         Suggested by Markus Armbruster in:
6440         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6442 2017-08-06  Bruno Haible  <bruno@clisp.org>
6444         warnings, manywarnings: Add support for multiple languages, not just C.
6445         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6446         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6447         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6448         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6449         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6450         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6451         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6452         of the current language. If C++ is the current language, modify
6453         WARN_CXXFLAGS instead of WARN_CFLAGS.
6454         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6455         gl_MANYWARN_ALL_GCC.
6456         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6458 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6460         git-version-gen: Fix for tags containing '-'
6462         Really old versions of git-describe (before v1.5.0, Feb 2007)
6463         don't have the number of commits in their long format output,
6464         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6465         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6466         recognizes both patterns, and normalizes the old format to the new one.
6468         Unfortunately, this normalization code gets confused when the tag
6469         contains '-'.  Reproducer:
6471             $ git-tag -m test v0.2-rc1
6472             $ build-aux/git-version-gen .tarball-version; echo
6473             build-aux/git-version-gen: WARNING: git rev-list failed
6474             UNKNOWN
6476         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6477         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6478         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6480         * git-version-gen: We could perhaps drop support for versions from
6481         more than a decade ago.  But tightening the pattern match is easy
6482         enough, so do that.  Still breaks when you use version tags ending in
6483         something matching -g????, but you arguably get what you deserve then.
6485 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6487         valgrind-tests: use ls, and cache
6488         * m4/valgrind-tests.m4: Test ls, not bash.
6489         Problem reported by Reuben Thomas.
6490         Also, cache the result so that it can be overridden.
6492 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6494         manywarnings: port to 64-bit GCC builds of Emacs
6495         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6496         object size rather than hardwiring 2147483647.  This is needed to
6497         build GNU Emacs, which has one conditional (and used
6498         only-in-theory) call to malloc with a literal greater than
6499         2147483647.
6501 2017-08-04  Bruno Haible  <bruno@clisp.org>
6503         Relax the license of some modules with no runtime code.
6504         * modules/std-gnu11 (License): Set to 'unlimited'.
6505         * modules/c99 (License): Likewise.
6506         Reported by Reuben Thomas <rrt@sc3d.org>.
6507         * modules/d-ino (License): Set to 'LGPL'.
6508         * modules/host-os (License): Likewise.
6509         * modules/longlong (License): Likewise.
6511 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6513         renameat2: port to RHEL 7 + NFS
6514         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6515         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6516         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6518 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6520         renameat2: port to non-renameat platforms
6521         Problem reported for MSVC-2015 by Gisle Vanem in:
6522         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6523         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6524         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6526 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6528         manywarnings: port to 32-bit GCC bug
6529         Problem reported by Pino Toscano in:
6530         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6531         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6532         not 2**63 - 1, to work around the following GCC bug:
6533         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6535 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6537         backupfile: new function to validate backup suffix
6538         * lib/backupfile.c (set_simple_backup_suffix): New function.
6539         (backupfile_internal): Use it.
6541         canonicalize: fix EOVERFLOW commentary
6542         Problem reported by Bruno Haible in:
6543         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6544         * lib/canonicalize.c (canonicalize_filename_mode):
6545         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6547         Don't interpret EOVERFLOW to mean nonexistence
6548         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6549         may be EOVERFLOW; this is likely more useful than reporting the
6550         stat errno.
6551         * lib/glob.c (link_stat): Rename from link_exists2_p and
6552         return -1/0 instead of 0/1.  Caller changed.
6553         * lib/glob.c (link_exists_p):
6554         * lib/renameat2.c (rename_noreplace, renameat2):
6555         * lib/tempname.c (try_nocreate):
6556         If errno == EOVERFLOW then the directory entry exists, so do not
6557         act as if it does not exist.
6559         backup-rename: new module
6560         It is like backupfile, except it avoids some race conditions,
6561         and it does not output to stderr or exit.
6562         * MODULES.html.sh: Add backup-rename.
6563         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6564         * modules/backup-rename: New files.
6565         * lib/backupfile.c: Turn this into an internals file, which
6566         contains code common to backupfile and backup_rename.  Include
6567         backupfile-internal.h instead of backupfile.h.  Do not include
6568         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6569         renameat2.h and fcntl.h.
6570         (BACKUP_NOMEM): New constant.
6571         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6572         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6573         (backupfile_internal): Rename from find_backup_file_name.
6574         Support new arg RENAME.
6575         (backup_args, backup_types, get_version, xget_version):
6576         Move to lib/backup-find.c.
6577         * lib/backupfile.h (backup_file_rename): New decl.
6578         * modules/backupfile (Files): Add lib/backup-internal.h,
6579         lib/backup-find.c.
6580         (Depends-on): Add dirfd, fcntl, renameat2.
6581         (lib_SOURCES): Add backup-find.c.
6583         renameat2: port better to older Solaris
6584         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6585         Add goto to use a label, to silence picky compilers.
6587         fts-tests: port to gcc -Wwrite-strings
6588         * tests/test-fts.c (base, base_d): New static vars.
6589         (argv, remove_tree, main): Use them.
6591 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6593         relocatable-lib{,-lgpl}: improve documentation
6594         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6595         Various other updates.
6597 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6598             Bruno Haible  <bruno@clisp.org>
6600         relocatable-lib{,-lgpl}: add Valgrind suppressions
6601         * lib/relocatable.valgrind: New file.
6602         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6603         * modules/relocatable-lib-lgpl: Likewise.
6605 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6607         relocatable: Make the license on the sources the GPL.
6608         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6609         LGPL, which was a special case so that the relocatable source files
6610         could be used without gnulib-tool, to GPL. They can still be used under
6611         the LGPL, using the --lgpl option to gnulib-tool.
6613 2017-07-30  Bruno Haible  <bruno@clisp.org>
6615         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6616         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6617         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6618         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6619         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6621 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6623         faccessat: document AT_SYMLINK_NOFOLLOW issue
6624         * doc/posix-functions/faccessat.texi: Modernize platform list.
6625         Document AT_SYMLINK_NOFOLLOW limitation.
6627         renameat2: port to Solaris 10
6628         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6629         with AT_SYMLINK_NOFOLLOW (which is not portable).
6630         (renameat): Undef before using, to avoid endless recursion when
6631         the replacement renameat calls renameat2 which calls the
6632         replacement renameat.
6633         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6634         * modules/renameat2 (Depends-on): Remove faccessat.
6635         * modules/renameat-tests (test_renameat_LDADD):
6636         * modules/renameat2-tests (test_renameat2_LDADD):
6637         Remove $(LIB_EACCESS).
6639         renameat2: new module
6640         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6641         useful to have access to its RENAME_NOREPLACE flag.
6642         * MODULES.html.sh (func_all_modules): Add renameat2.
6643         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6644         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6645         * lib/renameat.c (renameat): Move most of the implementation
6646         to renameat2, and just call renameat2.
6647         * modules/renameat (Files): Remove lib/at-func2.c.
6648         (Depends-on): Depend only on renameat2.
6649         (Include): Remove <fcntl.h>.
6650         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6651         since renameat (via renameat2) might use faccessat.
6653 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6655         vc-list-files: Adjust the script to support git worktrees
6656         * build-aux/vc-list-files: Require existence, not directory.
6658 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6660         doc: bring MODULES.html.sh up to date
6661         Somehow a few months ago we stopped updating MODULES.html.sh.
6662         I don’t recall explicitly deciding this, so I updated it now.
6663         Alternatively I suppose we could remove it.
6664         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6665         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6666         truncate, utime, utime-h, windows-stat-inodes,
6667         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6669 2017-07-26  Jim Meyering  <meyering@fb.com>
6671         fprintftime: fix build-break caused by recent renaming
6672         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6673         "strftime.c".
6674         * modules/fprintftime: Depend directly on nstrftime.
6676 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6678         regex: work with GCC7's -Werror=implicit-fallthrough=
6679         * lib/regex_internal.h (FALLTHROUGH): New macro.
6680         * lib/regcomp.c (peek_token_bracket, parse_expression):
6681         * lib/regexec.c (check_node_accept): Use it.
6683 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6685         fts: simplify fts_build
6686         * lib/fts.c (fts_build): Simplify, and be lazier about
6687         calling leaf_optimization.
6689         fts: three levels of leaf optimization
6690         * lib/fts.c (enum leaf_optimization): New type with three values.
6691         (S_MAGIC_AFS): New macro.  Sort them.
6692         (leaf_optimization): Rename from leaf_optimization_applies, and
6693         return enum leaf_optimization instead of bool.  All uses changed.
6694         Add cases for unknown type and for AFS.
6695         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6697         fts: cache dirent_inode_sort_may_be_useful too
6698         * lib/fts.c (struct dev_type): New struct.
6699         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6700         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6701         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6702         Now takes FTSENT const *, not int.  All uses changed.  Use
6703         filesystem_type to cache.
6704         (link_count_optimize_ok): Remove.  Caller changed to use
6705         leaf_optimization_applies, which now uses shared cache.
6707         fts: introduce MIN_DIR_NLINK
6708         * lib/fts.c (MIN_DIR_NLINK): New constant.
6709         Use it instead of 2, whenever we are talking about link counts.
6711         fts: nlink_t signedness fixups
6712         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6713         so that root need not be a special case later.
6714         (fts_read): Remove now-redundant test for fts_level.
6715         Do not assume that nlink_t is signed.
6716         (fts_build): Remove useless decrement of nlinks.
6717         (fts_stat): Avoid unlikely signed integer overflow later, if
6718         nlink_t is signed.
6720         fts-tests: new module
6721         * modules/fts-tests, tests/test-fts.c: New files.
6723 2017-07-23  Bruno Haible  <bruno@clisp.org>
6725         Rename module 'strftime' to 'nstrftime'.
6726         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6727         * lib/nstrftime.c: Renamed from lib/strftime.c.
6728         * modules/nstrftime: Renamed from modules/strftime.
6729         (Files, Makefile.am): Update.
6730         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6731         Fix comment.
6732         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6733         (Files, Makefile.am): Update.
6734         * modules/strftime: New file, an obsolete indirection.
6735         * doc/posix-functions/strftime.texi: Update reference.
6736         * config/srclist.txt: Update info.
6737         * NEWS: Mention the change.
6739 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6741         malloca: Silence a warning from clang's memory sanitizer.
6742         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6743         (freea): Use it.
6745 2017-07-18  Bruno Haible  <bruno@clisp.org>
6747         host-cpu-c-abi: Fix detection of MIPS ABI.
6748         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6749         ABI, not the CPU instruction set.
6751 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6753         explicit_bzero: new module
6754         The explicit_bzero function has been added to glibc.
6755         This module is intended to supports its use in GNU programs.
6756         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6757         * m4/explicit_bzero.m4, modules/explicit_bzero:
6758         New files.
6759         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6760         * lib/string.in.h (explicit_bzero): Declare.
6761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6762         * modules/string (string.h): Substitute its vars.
6764 2017-07-16  Bruno Haible  <bruno@clisp.org>
6766         threadlib: Support static linking.
6767         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6768         set gl_cv_have_weak to 'no'.
6770 2017-07-16  Bruno Haible  <bruno@clisp.org>
6772         unicase/locale-language: Fix link dependencies.
6773         * modules/unicase/locale-language (Link): New section.
6774         * modules/unicase/locale-language-tests (Makefile.am): Link
6775         test-locale-language program with $(LIBTHREAD).
6777 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6779         sys_socket: Add support for OpenVMS.
6780         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6781         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6783 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6785         sys_resource: Add support for OpenVMS.
6786         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6787         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6789 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6790             Bruno Haible  <bruno@clisp.org>
6792         math: Add support for OpenVMS.
6793         * lib/math.in.h [__VMS]: Include <fp.h>.
6794         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6796 2017-07-15  Bruno Haible  <bruno@clisp.org>
6798         getdtablesize: Add minimal support for OpenVMS.
6799         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6800         * modules/getdtablesize (Description): Fix.
6801         * lib/getdtablesize.c: Fix comment.
6802         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6803         getdtablesize() function, even though the test fails.
6804         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6805         limitation on OpenVMS.
6807 2017-07-13  Bruno Haible  <bruno@clisp.org>
6809         Revisit cross-compilation guesses.
6810         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6812 2017-07-13  Bruno Haible  <bruno@clisp.org>
6814         Improve cross-compilation guesses for native Windows.
6815         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6816         Windows.
6817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6818         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6819         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6820         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6821         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6822         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6823         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6824         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6825         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6826         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6827         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6828         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6829         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6830         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6831         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6832         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6833         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6835         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6836         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6837         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6838         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6839         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6840         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6841         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6842         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6843         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6844         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6845         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6846         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6847         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6849         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6850         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6851         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6852         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6853         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6854         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6855         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6856         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6857         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6858         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6859         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6860         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6861         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6862         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6863         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6864         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6865         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6866         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6867         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6868         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6869         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6870         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6871         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6872         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6873         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6874         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6875         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6876         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6878         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6879         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6880         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6881         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6883         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6884         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6885         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6886         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6887         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6888         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6889         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6890         * m4/regex.m4 (gl_REGEX): Likewise.
6891         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6892         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6893         gl_FUNC_REMAINDERF_WORKS): Likewise.
6894         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6895         gl_FUNC_REMAINDERL_WORKS): Likewise.
6896         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6897         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6898         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6899         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6901         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6902         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6903         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6904         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6905         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6906         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6907         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6908         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6909         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6911         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6912         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6914         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6915         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6916         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6917         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6918         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6919         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6920         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6922         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6923         Likewise.
6924         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6925         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6926         Windows. Enable also on Autoconf 2.70.
6927         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6928         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6929         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6930         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6931         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6932         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6933         for native Windows.
6934         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6935         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6937 2017-07-13  Bruno Haible  <bruno@clisp.org>
6939         Improve cross-compilation guesses for native Windows.
6940         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6941         Windows.
6942         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6943         memchr.m4.
6944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6946 2017-07-13  Bruno Haible  <bruno@clisp.org>
6948         Improve cross-compilation guesses for native Windows.
6949         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6950         native Windows.
6951         (gl_FUNC_FFLUSH): Update accordingly.
6952         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6953         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6955 2017-07-11  Bruno Haible  <bruno@clisp.org>
6957         More systematic m4 quoting and indentation.
6958         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6960         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6962         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6963         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6964         gl_WINSIZE_IN_PTEM): Likewise.
6965         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6966         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6967         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6968         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6969         Correct indentation.
6970         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6972         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6973         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6974         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6975         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6977 2017-07-10  Bruno Haible  <bruno@clisp.org>
6979         round, roundf: Avoid compiler warning in configure test.
6980         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6983 2017-07-10  Bruno Haible  <bruno@clisp.org>
6985         getlogin tests: Avoid #ifdefs when sharing code between modules.
6986         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6987         * modules/getlogin-tests (Files): Likewise. Remove
6988         tests/test-getlogin_r.c.
6989         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6990         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6991         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6992         getlogin().
6994 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6996         getlogin: don’t assume one name per uid
6997         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6998         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6999         (ttyname): Remove test.
7000         * modules/getlogin_r-tests (ttyname): Remove test.
7001         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
7002         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
7003         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
7004         getlogin rather than getlogin_r.  This avoids code duplication.
7005         (main): Use isatty and fstat rather than ttyname and stat.
7006         Use getpwnam instead of getpwuid, to be portable to test platforms
7007         that have multiple login names for the same uid.
7009 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
7010             Bruno Haible  <bruno@clisp.org>
7012         glob: Fix more memory leaks.
7013         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
7014         returning.
7015         Reported by Tim Rühsen.
7017 2017-07-10  Bruno Haible  <bruno@clisp.org>
7019         Make sure $host and $host_os are defined when used.
7020         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
7021         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
7022         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
7023         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7024         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7025         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7026         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
7027         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
7028         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7029         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
7030         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
7031         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
7032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7033         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
7034         m4_ifdef block.
7036 2017-07-09  Bruno Haible  <bruno@clisp.org>
7038         *printf: Fix cross-compilation guess for Solaris.
7039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
7040         2010-12-21.
7042 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7043             Bruno Haible  <bruno@clisp.org>
7045         vasnprintf: port to macOS 10.13
7046         Problem reported by comex in:
7047         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
7048         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
7050 2017-07-06  Bruno Haible  <bruno@clisp.org>
7052         imaxdiv tests: Fix logic.
7053         * tests/test-imaxdiv.c (main): Use == instead of =.
7054         Reported by Coverity.
7056 2017-07-06  Bruno Haible  <bruno@clisp.org>
7058         uninorm/filter: Fix use-after-free bug.
7059         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
7060         sortbuf == filter->sortbuf invariant.
7061         Reported by Coverity.
7063 2017-07-06  Bruno Haible  <bruno@clisp.org>
7065         glob: Fix more memory leaks.
7066         * lib/glob.c (glob): Free dirname before returning.
7067         Reported by Coverity and Tim Rühsen.
7069 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7071         parse-datetime: fix uninit var bug
7072         Reported by Bruno Haible in:
7073         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
7074         * lib/parse-datetime.y (parse_datetime2): Do not use
7075         uninitialized.
7077 2017-07-05  Bruno Haible  <bruno@clisp.org>
7079         doc: Update for MSVC 14.
7080         * doc/posix-headers/*.texi: Add info about MSVC 14.
7081         * doc/posix-functions/*.texi: Likewise.
7082         * doc/pastposix-functions/*.texi: Likewise.
7083         * doc/glibc-headers/*.texi: Likewise.
7084         * doc/glibc-functions/*.texi: Likewise.
7086 2017-07-05  Bruno Haible  <bruno@clisp.org>
7088         sched: Fix build failure on native Windows (regression from 2017-06-19).
7089         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
7091 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
7093         stdioext: Port to OpenVMS.
7094         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
7095         * lib/fpending.c (fpending): Remove non-working VMS specific code.
7096         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
7097         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
7098         * lib/fpurge.c (fpurge): Likewise.
7099         * lib/freadable.c (freadable): Likewise.
7100         * lib/freadahead.c (freadahead): Likewise.
7101         * lib/freading.c (freading): Likewise.
7102         * lib/freadptr.c (freadptr): Likewise.
7103         * lib/freadseek.c (freadseek): Likewise.
7104         * lib/fseeko.c (fseeko): Likewise.
7105         * lib/fseterr.c (fseterr): Likewise.
7106         * lib/fwritable.c (fwriteable): Likewise.
7107         * lib/fwriting.c (fwriting): Likewise.
7109 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
7111         glob: Declare variables at the very start of their scope.
7112         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
7113         its separate scope, so the functions will compile on Haiku.
7115 2017-07-01  Bruno Haible  <bruno@clisp.org>
7117         logbl: Work around a glibc bug on PowerPC64LE.
7118         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
7119         numbers.
7120         * doc/posix-functions/logbl.texi: Update.
7122 2017-06-29  Bruno Haible  <bruno@clisp.org>
7124         stat, fstat: Compile stat-w32.c only on platforms that need it.
7125         Suggested by Paul Eggert.
7126         * modules/stat (configure.ac): Request stat-w32.o only on native
7127         Windows.
7128         * modules/fstat (configure.ac): Likewise.
7130 2017-06-25  Bruno Haible  <bruno@clisp.org>
7132         stat: Improve last change.
7133         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
7135 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7137         stat: port to xlc 12.01
7138         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
7139         12.01 complains "Compilation unit is empty."
7141 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7143         xalloc-oversized: port to icc
7144         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
7145         __builtin_mul_overflow if ICC is defined, as this results in
7146         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
7147         20170213.
7149 2017-06-19  Bruno Haible  <bruno@clisp.org>
7151         classpath: Avoid including config.h twice, as it produces warnings.
7152         Reported by John E. Malmberg <wb8tyw@gmail.com>.
7153         * lib/classpath.h: Conditionalize the include of config.h.
7155 2017-06-19  Bruno Haible  <bruno@clisp.org>
7156             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
7158         sched: Fix compilation failure on OpenVMS.
7159         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
7160         test whether <pthread.h> exists and defines struct sched_param.
7161         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
7163 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7165         diffseq: port to GCC 7 with --enable-gcc-warnings
7166         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
7167         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
7168         not complain about big_snake being defined but not used.
7170 2017-06-15  Bruno Haible  <bruno@clisp.org>
7172         gettext-h: Update theoretical condition for use of variable size arrays.
7173         Reported by Paul Eggert.
7174         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
7175         to include the theoretical condition for availability of variable size
7176         arrays, if we could trust the value of __STDC_VERSION__.
7178 2017-06-12  Bruno Haible  <bruno@clisp.org>
7180         Relicense some modules under LGPLv2+.
7181         Daiki Ueno's approval is in
7182         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
7183         * modules/uniwidth/base (License): Change to LGPLv2+.
7184         * modules/uniwidth/width (License): Likewise.
7186 2017-06-11  Bruno Haible  <bruno@clisp.org>
7188         localename: Fix test failure on DragonFly BSD.
7189         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
7190         like FreeBSD.
7192 2017-06-11  Bruno Haible  <bruno@clisp.org>
7194         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
7195         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
7196         * lib/float.in.h: Likewise.
7197         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
7199 2017-06-11  Bruno Haible  <bruno@clisp.org>
7201         gnulib-tool: Clean up after autotools.
7202         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
7203         useless directory left over by the Autotools.
7205 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7207         getopt-posix: port to glibc 2.25.90
7208         Problem reported by Daniel P. Berrange in:
7209         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
7210         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
7211         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
7212         #undef if __GETOPT_PREFIX is defined.
7214 2017-06-11  Bruno Haible  <bruno@clisp.org>
7216         strtod-obsolete: Fix license.
7217         * modules/strtod-obsolete (License): Change to LGPL.
7219 2017-06-10  Jim Meyering  <meyering@fb.com>
7221         maint: update to work with GCC7's -Werror=implicit-fallthrough=
7222         * lib/savewd.c (FALLTHROUGH): Define.
7223         (savewd_save, savewd_restore): Use this, rather than a comment,
7224         whenever one switch case falls through into the next.
7226 2017-06-08  Bruno Haible  <bruno@clisp.org>
7228         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
7229         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
7230         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
7231         case.
7233 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7235         doc: remove robots, add prereqs
7236         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
7237         builds.  Simon's robot site does not seem to be up, so remove
7238         mentions of it for now.
7240 2017-06-08  Bruno Haible  <bruno@clisp.org>
7242         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
7243         * gnulib-tool (func_symlink_target): New function, extracted from
7244         func_symlink.
7245         (func_symlink, func_symlink_if_changed): Use it.
7247 2017-06-08  Bruno Haible  <bruno@clisp.org>
7249         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
7250         * gnulib-tool (func_ln_s): Determine cp_src correctly.
7252 2017-06-07  Bruno Haible  <bruno@clisp.org>
7254         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
7255         Reported by John E. Malmberg <wb8tyw@gmail.com> in
7256         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
7257         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
7258         override, pass 2 arguments to getcwd, not 3.
7260 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7262         same-inode: port better to VMS 8.2 and later
7263         Problem reported by John E. Malmberg in:
7264         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
7265         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
7266         Use the usual POSIX definition.
7267         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
7269 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7271         error: fix POSIX violation for va_end
7272         Problem reported by Bruno Haible in:
7273         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
7274         * lib/error.c (error_tail): Do not call va_end here.
7275         (error, error_at_line): Call it here instead.
7277 2017-05-28  Bruno Haible  <bruno@clisp.org>
7279         c-strtod: Make it usable in C++ mode.
7280         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
7282 2017-05-25  Jim Meyering  <meyering@fb.com>
7284         quotearg: fix compilation failure due to FALLTHROUGH misuse
7285         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
7286         macro back to /* fall through */ comment.  The macro can apply only
7287         to a following case statement.  Reported by Assaf Gordon.
7289 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7291         intprops: port to recent icc
7292         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
7293         but does not support __builtin_add_overflow etc.
7294         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
7295         Define to 0.
7297 2017-05-23  Karl Berry  <karl@freefriends.org>
7299         * config/srclist.txt (iconv.m4): sync broken, comment out
7300         until (hopefully) the next gettext release.
7302 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7304         Remove repeated words in comments.
7306 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
7308         fallthrough: reinstate a FALLTHROUGH instance in quotearg
7309         quotearg.c: Reinstate this instance which is significant
7310         when the if branch is not taken.
7312 2017-05-21  Bruno Haible  <bruno@clisp.org>
7314         gnulib-tool: Add options to create hard links.
7315         * gnulib-tool (func_usage): Document options --hardlink,
7316         --local-hardlink, --more-hardlinks.
7317         (func_symlink): Renamed from func_ln.
7318         (func_symlink_if_changed): Renamed from func_ln_if_changed.
7319         (func_hardlink): New function.
7320         (copymode, lcopymode): New variables.
7321         (symbolic, lsymbolic): Remove variables.
7322         (Options): Implement options --hardlink, --local-hardlink,
7323         --more-hardlinks.
7324         (func_should_link): Renamed from func_should_symlink. Set copyaction.
7325         (func_add_file, func_update_file): Update invocation of
7326         func_should_link. Invoke func_hardlink when appropriate.
7327         (func_import): Update comments.
7328         (func_create_testdir): Update invocation of func_should_link. Invoke
7329         func_hardlink when appropriate.
7330         Finally, invoke 'git update-index --refresh' to mitigate the effects of
7331         the hard links on git.
7333 2017-05-20  Bruno Haible  <bruno@clisp.org>
7335         argp: Simplify bit manipulation.
7336         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
7337         on a signed integer type.
7339 2017-05-20  Bruno Haible  <bruno@clisp.org>
7341         Avoid wrong configure results with gcc -fsanitize=address.
7342         This completes the work done on 2016-02-06 on this topic.
7343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
7344         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7346         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7347         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
7348         returning.
7349         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7350         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
7351         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7353         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7354         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7355         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
7356         free allocated memory before returning.
7357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7358         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7359         objects before returning.
7360         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7361         returning.
7363 2017-05-20  Bruno Haible  <bruno@clisp.org>
7365         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7366         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7368 2017-05-20  Bruno Haible  <bruno@clisp.org>
7370         argp, tsearch tests: Fix file list.
7371         * modules/argp-tests (Files): Add tests/macros.h.
7372         * modules/tsearch-tests (Files): Likewise.
7374 2017-05-20  Bruno Haible  <bruno@clisp.org>
7376         getopt-posix tests: Remove redundant include.
7377         * tests/test-getopt.h: Don't include "macros.h". It's already included
7378         by tests/test-getopt-main.h.
7380 2017-05-19  Jim Meyering  <meyering@fb.com>
7382         dfa: two small simplifications
7383         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7385 2017-05-18  Jim Meyering  <meyering@fb.com>
7387         fallthrough: update for GCC 7/8
7388         * lib/quotearg.c (FALLTHROUGH): New macro.
7389         Use it whenever one switch case falls through into the next,
7390         replacing "/* Fall through */" comments.  This exposed one
7391         instance of an unwarranted "fall through" comment: unwarranted
7392         because it preceded a "goto" label not a case statement.
7393         * lib/freopen-safer.c (freopen_safer): Likewise.
7394         * lib/fts.c (leaf_optimization_applies): Likewise.
7395         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7396         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7397         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7398         tests/macros.h for the definition.
7399         * tests/test-argp.c (group1_parser): Likewise.
7400         * tests/test-getopt.h (getopt_loop): Likewise.
7402 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7404         argp: fix shift bug
7405         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7406         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7408         argp: fix pointer-subtraction bug
7409         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7410         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7411         See the thread containing Bruno Haible’s report in:
7412         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7414 2017-05-19  Bruno Haible  <bruno@clisp.org>
7416         printf-posix tests: Avoid test failure with "gcc --coverage".
7417         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7418         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7419         than 5000000.
7420         * tests/test-fprintf-posix2.c (main): Likewise.
7422 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7424         closeout: don’t close stderr when sanitizing
7425         * NEWS: Document this.
7426         * lib/closeout.c (__has_feature): New macro, if not already defined.
7427         (SANITIZE_ADDRESS): New constant.
7428         (close_stdout): Don’t close stderr if sanitizing addresses.
7430 2017-05-19  Bruno Haible  <bruno@clisp.org>
7432         get-rusage-data tests: Avoid failure on Linux/glibc.
7433         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7434         on glibc systems.
7436 2017-05-18  Bruno Haible  <bruno@clisp.org>
7438         localename: Include necessary header files on Cygwin.
7439         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7440         where NL_LOCALE_NAME is defined.
7442 2017-05-18  Bruno Haible  <bruno@clisp.org>
7444         gettext: Update macros from gettext git.
7445         * m4/intldir.m4: Require Autoconf >= 2.60.
7446         * m4/progtest.m4: Fix typos in copyright notice.
7448 2017-05-18  Bruno Haible  <bruno@clisp.org>
7450         copy-file tests: Fix link error (regression from 2017-05-01).
7451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7452         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7453         $(LIB_CLOCK_GETTIME).
7455 2017-05-18  Bruno Haible  <bruno@clisp.org>
7457         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7458         (regression from 2017-02-13).
7459         * lib/unicase/special-casing.in.h: Renamed from
7460         lib/unicase/special-casing.h.
7461         * modules/unicase/special-casing (Files): Add
7462         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7463         (Makefile.am): Add rule for generating unicase/special-casing.h.
7464         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7465         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7466         not "special-casing.h".
7467         * lib/unicase/u*.c: Likewise.
7469 2017-05-17  Bruno Haible  <bruno@clisp.org>
7471         README: Don't ask people to read a TeXinfo file.
7472         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7473         * README: Tell people how to read the HTML formatted manual.
7475 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7477         parse-datetime: Fix memleak
7478         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7479         localtime_rz() failure.
7481 2017-05-16  Bruno Haible  <bruno@clisp.org>
7483         javacomp: Fix handle leak.
7484         Found by Coverity.
7485         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7487 2017-05-16  Bruno Haible  <bruno@clisp.org>
7489         relocate: Make it easier to reclaim allocated memory.
7490         * lib/relocatable.h (relocate2): New declaration/macro.
7491         * lib/relocatable.c (relocate2): New function.
7492         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7493         relocate2 function.
7494         * lib/localcharset.c (relocate2): Define fallback.
7495         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7496         allocated memory.
7497         * lib/javaversion.c (relocate2): Define fallback.
7498         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7499         allocated memory.
7501 2017-05-16  Bruno Haible  <bruno@clisp.org>
7503         relocate: Simplify EMX specific code.
7504         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7505         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7507 2017-05-16  Bruno Haible  <bruno@clisp.org>
7509         sigpipe tests: Fix file list.
7510         * modules/sigpipe-tests (Files): Add tests/macros.h.
7512 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7514         manywarnings: update for GCC 7
7515         * build-aux/gcc-warning.spec:
7516         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7517         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7518         requires a non-comment fallthrough attribute.  This is a bit
7519         cleaner than the comment versions.
7520         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7521         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7522         Use it whenever one switch case falls through into the next.
7523         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7524         Use FALLTHROUGH macro.
7526 2017-05-15  Bruno Haible  <bruno@clisp.org>
7528         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7529         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7530         @ALLOCA@, not @LTALLOCA@.
7532 2017-05-15  Bruno Haible  <bruno@clisp.org>
7534         sys_select: Avoid "was expanded before it was required" warning.
7535         * modules/sys_select (configure.ac): Require, not invoke,
7536         gl_HEADER_SYS_SELECT.
7538 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7540         gnulib-tool: improve GNU Make debugging
7541         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7542         Report autoconf diagnostics when it fails, in the output makefile.
7544 2017-05-14  Bruno Haible  <bruno@clisp.org>
7546         stat-time tests: Improve comment.
7547         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7549 2017-05-14  Bruno Haible  <bruno@clisp.org>
7551         same-inode: Adapt for windows-stat-inodes.
7552         * lib/same-inode.h: Include <sys/types.h>.
7553         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7554         * modules/same-inode (Depends-on): Add sys_types.
7556 2017-05-14  Bruno Haible  <bruno@clisp.org>
7558         windows-stat-inodes: New module.
7559         * m4/windows-stat-inodes.m4: New file.
7560         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7561         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7562         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7563         (_GL_WINDOWS_STAT_INODES): New macro.
7564         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7565         (GetFileInformationByHandleExFunc): New variable.
7566         (initialize): Initialize it.
7567         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7568         st_ino appropriately.
7569         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7570         a fallback, because it does not provide st_dev and st_ino values.
7571         * modules/fstat (Depends-on): Add 'verify'.
7572         * modules/windows-stat-inodes: New file.
7573         * doc/windows-stat-inodes.texi: New file.
7574         * doc/gnulib.texi: Include it.
7575         * doc/posix-headers/sys_stat.texi: Mention the new module.
7577 2017-05-14  Bruno Haible  <bruno@clisp.org>
7579         stat-time tests: Workaround for native Windows.
7580         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7581         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7582         New variables.
7583         (initialize_filenames): New function.
7584         (main): Invoke it.
7585         (cleanup, prepare_test): Update.
7587 2017-05-14  Bruno Haible  <bruno@clisp.org>
7589         stat-time: Adapt for windows-stat-timespec.
7590         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7591         entire st_ctim field.
7593 2017-05-13  Jim Meyering  <meyering@fb.com>
7595         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7596         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7597         file that uses the assume macro, claiming that verify.h is unused.
7599 2017-05-13  Bruno Haible  <bruno@clisp.org>
7601         Use symbolic values for _WIN32_WINNT.
7602         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7603         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7605 2017-05-13  Bruno Haible  <bruno@clisp.org>
7607         year2038: New module.
7608         * m4/year2038.m4: New file.
7609         * modules/year2038: New file.
7610         * doc/year2038.texi: New file.
7611         * doc/gnulib.texi: Include it.
7613 2017-05-13  Bruno Haible  <bruno@clisp.org>
7615         largefile: Simplify.
7616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7617         of _GL_WINDOWS_64_BIT_ST_SIZE.
7619 2017-05-13  Bruno Haible  <bruno@clisp.org>
7621         largefile: Improve and document.
7622         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7623         the mingw headers already define 'stat' appropriately.
7624         * modules/largefile (Description): Clarify.
7625         * doc/largefile.texi: New file.
7626         * doc/gnulib.texi: Include it.
7627         * doc/posix-headers/sys_types.texi: Update.
7629 2017-05-13  Bruno Haible  <bruno@clisp.org>
7631         truncate: New module.
7632         * lib/unistd.in.h (truncate): New declaration.
7633         * lib/truncate.c: New file.
7634         * m4/truncate.m4: New file.
7635         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7636         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7637         REPLACE_TRUNCATE.
7638         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7639         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7640         * modules/truncate: New file.
7641         * tests/test-unistd-c++.cc (truncate): Test signature.
7642         * doc/posix-functions/truncate.texi: Mention the new module.
7644         * tests/test-truncate.c: New file.
7645         * modules/truncate-tests: New file.
7647 2017-05-13  Bruno Haible  <bruno@clisp.org>
7649         windows-stat-timespec: New module.
7650         * modules/windows-stat-timespec: New file.
7651         * m4/windows-stat-timespec.m4: New file.
7652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7653         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7654         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7655         fields st_atim, st_mtim, st_ctim.
7656         (st_atime, st_mtime, st_ctime): Define as macros.
7657         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7658         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7659         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7660         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7661         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7662         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7663         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7664         FILETIME to 'struct timespec', not 'time_t'.
7665         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7666         FILETIME to 'struct timespec', not 'time_t'.
7667         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7668         _GL_WINDOWS_STAT_TIMESPEC.
7669         * doc/windows-stat-timespec.texi: New file.
7670         * doc/gnulib.texi: Include it.
7672 2017-05-13  Bruno Haible  <bruno@clisp.org>
7674         windows-stat-override: New module.
7675         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7676         definition. Define GNULIB_defined_struct_stat.
7677         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7678         link error if this symbol is used and the corresponding module is not
7679         in use.
7680         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7681         GNULIB_OVERRIDES_STRUCT_STAT.
7682         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7683         GNULIB_OVERRIDES_STRUCT_STAT.
7684         * modules/sys_stat (Makefile.am): Substitute
7685         GNULIB_OVERRIDES_STRUCT_STAT.
7686         * modules/windows-stat-override: New file.
7688 2017-05-13  Bruno Haible  <bruno@clisp.org>
7690         fstat: Fix module dependency conditions.
7691         * modules/fstat (Depends-on): Fix typo.
7693 2017-05-13  Bruno Haible  <bruno@clisp.org>
7695         stat, fstat: Complete removal of old native Windows code.
7696         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7697         * lib/fstat.c: Likewise.
7698         * lib/stat-w32.c: Likewise.
7700 2017-05-13  Bruno Haible  <bruno@clisp.org>
7702         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7703         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7705 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7707         getopt-posix: port to mingw
7708         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7709         Problem reported by Daniel P. Berrage in:
7710         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7712 2017-05-11  Bruno Haible  <bruno@clisp.org>
7714         gettimeofday: Increase precision on mingw.
7715         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7716         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7717         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7718         GetSystemTimePreciseAsFileTime based implementation always.
7719         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7720         mingw.
7722 2017-05-11  Bruno Haible  <bruno@clisp.org>
7724         poll: Fix confusion between SOCKETs and FDs on native Windows.
7725         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7726         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7728 2017-05-11  Bruno Haible  <bruno@clisp.org>
7730         doc: Clarify doc about socket functions on native Windows.
7731         This reworks doc that was added on 2008-09-29.
7732         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7733         clearer wording.
7734         * doc/posix-functions/accept.texi: Use clearer wording.
7735         * doc/posix-functions/bind.texi: Likewise.
7736         * doc/posix-functions/connect.texi: Likewise.
7737         * doc/posix-functions/getpeername.texi: Likewise.
7738         * doc/posix-functions/getsockname.texi: Likewise.
7739         * doc/posix-functions/getsockopt.texi: Likewise.
7740         * doc/posix-functions/ioctl.texi: Likewise.
7741         * doc/posix-functions/listen.texi: Likewise.
7742         * doc/posix-functions/recv.texi: Likewise.
7743         * doc/posix-functions/recvfrom.texi: Likewise.
7744         * doc/posix-functions/send.texi: Likewise.
7745         * doc/posix-functions/sendto.texi: Likewise.
7746         * doc/posix-functions/setsockopt.texi: Likewise.
7747         * doc/posix-functions/shutdown.texi: Likewise.
7748         * doc/posix-functions/socket.texi: Likewise.
7750 2017-05-10  Bruno Haible  <bruno@clisp.org>
7752         poll: Fix link error on native Windows.
7753         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7755 2017-05-10  Bruno Haible  <bruno@clisp.org>
7757         time: Fix missing initialization of HAVE_TIMEZONE_T.
7758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7759         here...
7760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7761         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7762         gl_HEADER_SYS_TIME_H_DEFAULTS.
7763         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7764         (configure.ac): Remove useless quoting.
7766 2017-05-10  Bruno Haible  <bruno@clisp.org>
7768         Implement a way to opt out from MSVC support, part 2.
7769         * modules/msvc-inval (Include): Document recommended idiom.
7770         * modules/msvc-nothrow (Include): Likewise.
7772         Implement a way to opt out from MSVC support.
7773         This is useful for Emacs.
7774         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7775         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7776         * lib/error.c: Likewise.
7777         * lib/fcntl.c: Likewise.
7778         * lib/flock.c: Likewise.
7779         * lib/fstat.c: Likewise.
7780         * lib/fsync.c: Likewise.
7781         * lib/ioctl.c: Likewise.
7782         * lib/isapipe.c: Likewise.
7783         * lib/lseek.c: Likewise.
7784         * lib/nonblocking.c: Likewise.
7785         * lib/poll.c: Likewise.
7786         * lib/select.c: Likewise.
7787         * lib/sockets.h: Likewise.
7788         * lib/sockets.c: Likewise.
7789         * lib/stdio-read.c: Likewise.
7790         * lib/stdio-write.c: Likewise.
7791         * lib/utimens.c: Likewise.
7792         * lib/w32sock.h: Likewise.
7793         * lib/w32spawn.h: Likewise.
7794         * tests/test-cloexec.c: Likewise.
7795         * tests/test-dup-safer.c: Likewise.
7796         * tests/test-dup2.c: Likewise.
7797         * tests/test-dup3.c: Likewise.
7798         * tests/test-fcntl.c: Likewise.
7799         * tests/test-pipe.c: Likewise.
7800         * tests/test-pipe2.c: Likewise.
7801         * lib/ftruncate.c: Likewise.
7802         (chsize_nothrow): Renamed from chsize.
7803         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7804         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7805         * lib/close.c: Likewise.
7806         * lib/dup.c: Likewise.
7807         * lib/fclose.c: Likewise.
7808         * lib/raise.c: Likewise.
7809         * tests/test-fgetc.c: Likewise.
7810         * tests/test-fputc.c: Likewise.
7811         * tests/test-fread.c: Likewise.
7812         * tests/test-fwrite.c: Likewise.
7813         * lib/getdtablesize.c: Likewise.
7814         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7815         * lib/isatty.c: Don't include msvc-inval.h if
7816         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7817         Include <io.h> as an alternative to msvc-nothrow.h.
7818         * lib/read.c: Likewise.
7819         * lib/write.c: Likewise.
7820         * lib/dup2.c: Likewise.
7821         (dup2_nothrow): New function.
7822         (ms_windows_dup2): Use it.
7823         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7824         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7825         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7826         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7827         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7828         * m4/read.m4 (gl_FUNC_READ): Likewise.
7829         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7830         * doc/windows-without-msvc.texi: New file.
7831         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7832         section.
7834 2017-05-10  Bruno Haible  <bruno@clisp.org>
7836         wait-process: Adjust native Windows support.
7837         * lib/wait-process.c: Use the usual condition for recognizing a native
7838         Windows platform.
7840 2017-05-10  Bruno Haible  <bruno@clisp.org>
7842         doc: New chapter "Native Windows Support".
7843         * doc/gnulib.texi (Native Windows Support): New chapter.
7844         * doc/windows-libtool.texi: Small wording changes.
7845         * doc/windows-sockets.texi: Small wording and formatting changes.
7847 2017-05-10  Bruno Haible  <bruno@clisp.org>
7849         doc: Move section "Library version handling".
7850         * doc/gnulib.texi: Move section "Library version handling"
7851         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7853 2017-05-10  Bruno Haible  <bruno@clisp.org>
7855         doc: Move section "Running self-tests under valgrind".
7856         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7857         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7859 2017-05-10  Bruno Haible  <bruno@clisp.org>
7861         doc: New chapter "Build Infrastructure Modules".
7862         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7864 2017-05-10  Bruno Haible  <bruno@clisp.org>
7866         Prepare for reordering sections in the manual.
7867         * doc/gnulib.texi: Move several sections to separate files. Include
7868         these files.
7869         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7870         * doc/obsolete.texi: Likewise.
7871         * doc/extra-tests.texi: Likewise.
7872         * doc/transversal.texi: Likewise.
7873         * doc/namespace.texi: Likewise.
7874         * doc/check-version.texi: Likewise.
7875         * doc/windows-sockets.texi: Likewise.
7876         * doc/windows-libtool.texi: Likewise.
7877         * doc/licenses-texi.texi: Likewise.
7878         * doc/build-automation.texi: Likewise.
7879         * doc/c-locale.texi: Likewise.
7881 2017-05-10  Bruno Haible  <bruno@clisp.org>
7883         Fix instructions how to update manual on www.gnu.org.
7884         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7886 2017-05-09  Bruno Haible  <bruno@clisp.org>
7888         tzset: Expand comment about TZ problem on native Windows.
7889         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7890         Paul Eggert.
7891         * lib/ctime.c (rpl_ctime): Likewise.
7892         * lib/localtime.c (rpl_localtime): Likewise.
7893         * lib/mktime.c (mktime): Likewise.
7894         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7895         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7897 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7899         intprops: don’t depend on ‘verify’
7900         Problem reported by Ævar Arnfjörð Bjarmason in:
7901         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7902         * lib/intprops.h: Do not include verify.h, and move compile-time
7903         checks from here ...
7904         * tests/test-intprops.c (main): ... to here, if they’re not here
7905         already.  Check widths of other standard integer types.
7906         * modules/intprops (Depends-on): Remove ‘verify’.
7908 2017-05-07  Bruno Haible  <bruno@clisp.org>
7910         utimens: On native Windows, support 100ns resolution also if fd < 0.
7911         * lib/utime.in.h: Include <time.h>.
7912         (_gl_utimens_windows): New declaration.
7913         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7914         (utime): Invoke it.
7915         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7916         instead of utime.
7917         * modules/utime (Depends-on): Add 'time'.
7919 2017-05-07  Bruno Haible  <bruno@clisp.org>
7921         utimens: Improve error code on native Windows.
7922         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7923         error code EACCES, not EINVAL.
7925 2017-05-07  Bruno Haible  <bruno@clisp.org>
7927         utime: Handle more Windows error codes.
7928         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7929         Based on explanations by Billy O'Neal.
7931 2017-05-05  Bruno Haible  <bruno@clisp.org>
7933         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7934         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7935         union.
7936         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7937         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7938         value of cipher->IV.
7940 2017-05-05  Bruno Haible  <bruno@clisp.org>
7942         wctype-h-c++-tests: Update.
7943         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7945 2017-05-05  Bruno Haible  <bruno@clisp.org>
7947         wchar-c++-tests: Update.
7948         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7950 2017-05-05  Bruno Haible  <bruno@clisp.org>
7952         utime-h-c++-tests: New module.
7953         * tests/test-utime-h-c++.cc: New file.
7954         (utime): Declare, missing since 2017-04-30.
7955         * modules/utime-h-c++-tests: New file.
7957 2017-05-05  Bruno Haible  <bruno@clisp.org>
7959         unistd-c++-tests: Update.
7960         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7961         (read): Declare, missing since 2011-04-15.
7962         (sethostname): Declare, missing since 2011-12-03.
7964 2017-05-05  Bruno Haible  <bruno@clisp.org>
7966         time-c++-tests: Update.
7967         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7968         (localtime, gmtime): Declare, missing since 2017-04-30.
7969         (ctime): Declare, missing since 2017-04-30.
7970         (strftime): Declare, missing since 2017-04-30.
7971         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7972         2015-07-24.
7974 2017-05-05  Bruno Haible  <bruno@clisp.org>
7976         sys_resource-c++-tests: New module.
7977         * tests/test-sys_resource-c++.cc: New file.
7978         (getrusage): Declare, missing since 2012-04-13.
7979         * modules/sys_resource-c++-tests: New file.
7981 2017-05-05  Bruno Haible  <bruno@clisp.org>
7983         strings-c++-tests: New module.
7984         * tests/test-strings-c++.cc: New file.
7985         (ffs): Declare, missing since 2011-07-12.
7986         * modules/strings-c++-tests: New file.
7988 2017-05-05  Bruno Haible  <bruno@clisp.org>
7990         string-c++-tests: Update.
7991         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7992         (ffsll): Declare, missing since 2011-07-15.
7994 2017-05-05  Bruno Haible  <bruno@clisp.org>
7996         stdlib-c++-tests: Update.
7997         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7998         2011-10-18.
7999         (ptsname_r): Declare, missing since 2011-11-07.
8000         (qsort_r): Declare, missing since 2014-08-29.
8001         (random, srandom, initstate, setstate): Declare, missing since
8002         2012-01-14.
8003         (secure_getenv): Declare, missing since 2013-02-05.
8005 2017-05-05  Bruno Haible  <bruno@clisp.org>
8007         stdio-c++-tests: Update.
8008         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
8010 2017-05-05  Bruno Haible  <bruno@clisp.org>
8012         signal-h-c++-tests: Update.
8013         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
8015 2017-05-05  Bruno Haible  <bruno@clisp.org>
8017         math-c++-tests: Update.
8018         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
8019         (fma): Declare, missing since 2011-10-17.
8020         (fmal): Declare, missing since 2011-10-17.
8022 2017-05-05  Bruno Haible  <bruno@clisp.org>
8024         locale-c++-tests: Update.
8025         * tests/test-locale-c++.cc (localeconv): Declare, missing since
8026         2012-03-25.
8028 2017-05-05  Bruno Haible  <bruno@clisp.org>
8030         inttypes-c++-tests: New module.
8031         * tests/test-inttypes-c++.cc: New file.
8032         (strtoimax): Declare, missing since 2012-01-05.
8033         (strtoumax): Declare, missing since 2012-01-05.
8034         * modules/inttypes-c++-tests: New file.
8036 2017-05-05  Bruno Haible  <bruno@clisp.org>
8038         dirent-c++-tests: Update.
8039         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
8040         (rewinddir): Declare, missing since 2011-09-13.
8041         (dirfd): Declare, missing since 2010-03-08.
8043 2017-05-04  Bruno Haible  <bruno@clisp.org>
8045         argp: Fix mistake in 2017-04-23 commit.
8046         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
8047         assume that strerror_r returns 'int', not 'char *'.
8049 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
8051         argp: Fix typo.
8052         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
8054 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8056         utimens: port to Emacs + MS-Windows
8057         Skip the new MS-Windows-specific code if Emacs.
8058         * lib/utimens.c [EMACS_CONFIGUATION]:
8059         Avoid new MS-Windows-specific code.
8060         (USE_SETFILETIME): New macro.
8061         (fdutimens): Use it.
8063 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8065         tzset: update doc for TZ problems on MS-Windows
8066         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
8067         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
8068         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
8069         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
8070         * doc/posix-functions/wcsftime.texi:
8071         Mention some issues with TZ under MS-Windows.
8073 2017-05-01  Bruno Haible  <bruno@clisp.org>
8075         copy-file: Fix build error on mingw.
8076         * modules/copy-file (Depends-on): Add 'close'.
8078 2017-05-01  Bruno Haible  <bruno@clisp.org>
8080         tzset: Work around TZ problem on native Windows.
8081         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
8082         Windows, set REPLACE_TZSET to 1.
8083         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
8084         invoke '_tzset' instead of 'tzset'.
8085         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
8087         * modules/time_rz (Depends-on): Add tzset.
8088         * lib/time_rz.c (tzset): Remove fallback definition.
8089         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
8091 2017-05-01  Bruno Haible  <bruno@clisp.org>
8093         mktime: Fix dependencies.
8094         * modules/mktime (Depends-on): Add 'time'.
8096 2017-05-01  Bruno Haible  <bruno@clisp.org>
8098         New module 'localtime-buffer', split off from module 'gettimeofday'.
8099         * lib/localtime-buffer.h: New file.
8100         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
8101         * lib/time.in.h (tzset): New declaration.
8102         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
8103         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
8104         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
8105         moved to lib/localtime-buffer.c or lib/tzset.c.
8106         * m4/localtime-buffer.m4: New file.
8107         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
8108         HAVE_TZSET, REPLACE_TZSET.
8109         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
8110         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
8111         gl_LOCALTIME_BUFFER_NEEDED.
8112         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
8113         since 2007-01-18.
8114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
8115         tzset.
8116         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
8117         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
8118         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
8119         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
8120         * modules/localtime-buffer: New file.
8121         * modules/time (Depends-on): Remove 'gettimeofday'.
8122         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
8123         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
8124         * modules/tzset (Description): Enable hyperlink to POSIX spec.
8125         (Files): Add lib/tzset.c.
8126         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
8127         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
8128         gl_TIME_MODULE_INDICATOR.
8129         * modules/gettimeofday (Depends-on): Add localtime-buffer.
8131 2017-05-01  Bruno Haible  <bruno@clisp.org>
8133         copy-file: Preserve sub-second time stamps.
8134         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
8135         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
8136         transport the time stamps from the original file to the destination
8137         file.
8138         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
8139         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
8140         utime-h.
8142 2017-05-01  Bruno Haible  <bruno@clisp.org>
8144         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
8145         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
8146         also on MSVC.
8147         Reported by Eli Zaretskii <eliz@gnu.org>.
8149 2017-05-01  Bruno Haible  <bruno@clisp.org>
8151         wchar: Fix compilation error with the original mingw.org mingw.
8152         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8153         <stddef.h> instead.
8154         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
8155         gl_WCTYPE_H.
8156         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
8157         gl_TYPE_WINT_T_PREREQ instead.
8158         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
8159         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
8160         Reported by Eli Zaretskii <eliz@gnu.org>.
8162 2017-04-30  Bruno Haible  <bruno@clisp.org>
8164         utimecmp: Add support for native Windows.
8165         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
8167 2017-04-30  Bruno Haible  <bruno@clisp.org>
8169         utimens: Add support for native Windows.
8170         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
8171         (fdutimens): Provide a native Windows implementation, like utime.c with
8172         added tv_nsec support.
8173         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
8174         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
8176 2017-04-30  Bruno Haible  <bruno@clisp.org>
8178         wcsftime: New module.
8179         * lib/wchar.in.h (wcsftime): New declaration.
8180         * lib/wcsftime.c: New file.
8181         * m4/wcsftime.m4: New file.
8182         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
8183         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
8184         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
8186         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8187         * modules/wcsftime: New file.
8188         * doc/posix-functions/wcsftime.texi: Mention the new module.
8190 2017-04-30  Bruno Haible  <bruno@clisp.org>
8192         strftime-fixes: New module.
8193         * lib/time.in.h (strftime): New declaration.
8194         * lib/strftime-fixes.c: New file.
8195         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
8196         (gl_FUNC_STRFTIME): Remove macro.
8197         * m4/strftime-fixes.m4: New file.
8198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
8199         REPLACE_STRFTIME.
8200         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
8201         REPLACE_STRFTIME.
8202         * modules/strftime-fixes: New file.
8203         * doc/posix-functions/strftime.texi: Mention the new module.
8205 2017-04-30  Bruno Haible  <bruno@clisp.org>
8207         mktime: Work around TZ problem on native Windows.
8208         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
8209         from the native Windows workaround.
8210         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
8211         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
8212         'guessing no'.
8213         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
8214         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
8215         NEED_MKTIME_WINDOWS.
8216         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
8217         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
8218         NEED_MKTIME_INTERNAL.
8219         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
8220         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
8221         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
8222         not REPLACE_MKTIME.
8223         * doc/posix-functions/mktime.texi: Mention the native Windows
8224         workaround.
8226 2017-04-30  Bruno Haible  <bruno@clisp.org>
8228         localtime: New module.
8229         * lib/time.in.h (localtime): Declare also if requested by module
8230         'localtime'.
8231         * lib/localtime.c: New file.
8232         * m4/localtime.m4: New file.
8233         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
8234         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
8235         * modules/localtime: New file.
8236         * doc/posix-functions/localtime.texi: Mention the new module.
8238 2017-04-30  Bruno Haible  <bruno@clisp.org>
8240         ctime: New module.
8241         * lib/time.in.h (ctime): New declaration.
8242         * lib/ctime.c: New file.
8243         * m4/ctime.m4: New file.
8244         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
8245         REPLACE_CTIME.
8246         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
8247         * modules/ctime: New file.
8248         * doc/posix-functions/ctime.texi: Mention the new module.
8250 2017-04-30  Bruno Haible  <bruno@clisp.org>
8252         gettimeofday: Provide higher resolution on native Windows.
8253         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
8254         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
8255         (initialize): Initialize it.
8256         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
8257         'struct timeval'. Don't use _ftime().
8258         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
8259         <sys/timeb.h> and _ftime.
8261 2017-04-30  Bruno Haible  <bruno@clisp.org>
8263         Document the problem with the Cygwin environment variable TZ.
8264         * doc/posix-functions/tzset.texi: Add note about TZ.
8265         * doc/posix-functions/ctime.texi: Likewise.
8266         * doc/posix-functions/localtime.texi: Likewise.
8267         * doc/posix-functions/mktime.texi: Likewise.
8268         * doc/posix-functions/strftime.texi: Likewise.
8269         * doc/posix-functions/wcsftime.texi: Likewise.
8270         * doc/pastposix-functions/ftime.texi: Likewise.
8272 2017-04-30  Bruno Haible  <bruno@clisp.org>
8274         utime-tests: New module.
8275         * tests/test-utime.c: New file, based on tests/test-utimens.h.
8276         * tests/test-utimens-common.h: Include <sys/stat.h>.
8277         * modules/utime-tests: New file.
8279 2017-04-29  Bruno Haible  <bruno@clisp.org>
8281         utime: New module.
8282         * lib/utime.in.h: Add comment for snippets.
8283         (utime): New declaration.
8284         * lib/utime.c: New file.
8285         * m4/utime.m4: New file.
8286         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
8287         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
8288         REPLACE_UTIME.
8289         * modules/utime-h (Depends-on): Add snippets.
8290         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
8291         Insert snippets.
8292         * modules/utime: New file.
8293         * doc/posix-functions/utime.texi: Mention the new module.
8295 2017-04-29  Bruno Haible  <bruno@clisp.org>
8297         utime-h: Modernize handling of 'struct utimbuf'.
8298         * lib/utime.in.h: Include next <utime.h> if it exists.
8299         (utimbuf): Define to _utimbuf on native Windows.
8300         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
8301         Set UTIME_H on native Windows.
8302         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
8303         * modules/utime-h (Depends-on): Add include_next.
8304         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
8305         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
8307         * lib/utimens.c (utimbuf): Remove fallback definition.
8308         * m4/utimens.m4 (gl_UTIMENS): Don't require
8309         gl_CHECK_TYPE_STRUCT_UTIMBUF.
8310         * m4/utimbuf.m4: Remove file.
8311         * modules/utimens (Files): Remove m4/utimbuf.m4.
8313 2017-04-29  Bruno Haible  <bruno@clisp.org>
8315         Make use of module 'utime-h'.
8316         * modules/copy-file (Depends-on): Add utime-h.
8317         * lib/copy-file.c: Assume that <utime.h> exists.
8318         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
8320         * modules/utimens (Depends-on): Add utime-h.
8321         * lib/utimens.c: Assume that <utime.h> exists.
8323 2017-04-29  Bruno Haible  <bruno@clisp.org>
8325         utime-h: New module.
8326         * m4/utime_h.m4: New file.
8327         * lib/utime.in.h: New file.
8328         * modules/utime-h: New file.
8329         * doc/posix-headers/utime.texi: Mention the new module.
8331         * tests/test-utime-h.c: New file.
8332         * modules/utime-h-tests: New file.
8334 2017-04-30  Bruno Haible  <bruno@clisp.org>
8336         Fix a few typos.
8337         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
8338         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
8339         * doc/posix-functions/fstat.texi: Fix a plural typo.
8340         * doc/posix-functions/stat.texi: Likewise.
8341         * m4/include_next.m4: Update comments.
8343 2017-04-29  Bruno Haible  <bruno@clisp.org>
8345         error: Fix mistake in 2017-04-23 commit.
8346         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
8347         assume that strerror_r returns 'int', not 'char *'.
8349 2017-04-29  Bruno Haible  <bruno@clisp.org>
8351         stat: Fix time_t values and other problems on native Windows platforms.
8352         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
8353         implementations of stat().
8354         * lib/stat.c: Include filename.h instead of dosname.h. Include
8355         malloca.h, stat-w32.h.
8356         (is_unc_root): New function.
8357         (rpl_stat): New implementation for native Windows. Remove
8358         REPLACE_FUNC_STAT_DIR code.
8359         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8360         Don't define REPLACE_FUNC_STAT_DIR.
8361         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8362         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8363         (Depends-on): Remove dosname. Add filename, malloca.
8364         (configure.ac): Also compile lib/stat-w32.c.
8366 2017-04-29  Bruno Haible  <bruno@clisp.org>
8368         fstat: Fix time_t values on native Windows platforms.
8369         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8370         * lib/stat-w32.h: New file.
8371         * lib/stat-w32.c: New file.
8372         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8373         stat-w32.h instead.
8374         (fstat_nothrow): Remove function.
8375         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8376         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8377         always.
8378         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8379         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8380         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8381         (configure.ac): Also compile lib/stat-w32.c.
8383 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8385         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8386         Problem reported by Assaf Gordon and Gavin Smith in:
8387         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8388         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8389         #define this, too.
8391 2017-04-29  Bruno Haible  <bruno@clisp.org>
8393         strerror_r-posix: Fixes for MSVC 14.
8394         * lib/strerror_r.c: Include <stdarg.h>.
8395         (strerror_r): Provide error messages for errno values 100...140.
8396         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8398 2017-04-28  Bruno Haible  <bruno@clisp.org>
8400         noreturn: New module.
8401         * lib/noreturn.h: New file.
8402         * modules/noreturn: New file.
8403         * tests/test-noreturn.c: New file.
8404         * modules/noreturn-tests: New file.
8405         * tests/test-noreturn-c++.cc: New file.
8406         * modules/noreturn-c++-tests: New file.
8408 2017-04-27  Bruno Haible  <bruno@clisp.org>
8410         wctype-h: Fix compilation error with the original mingw.org mingw.
8411         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8412         HAVE_CRTDEFS_H.
8413         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8414         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8415         <stddef.h> instead.
8416         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8418 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8420         nap.h: Fix compilation on non windows platforms
8421         * tests/nap.h: Move misplaced endif.
8423 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8424         and Paul Eggert  <eggert@cs.ucla.edu>
8426         time_rz: fix heap buffer overflow vulnerability
8427         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8428         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8429         whether there is enough buffer space available, thus avoiding
8430         the problematic promotion of signed to unsigned causing an invalid
8431         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8432         the start of the buffer.
8433         * tests/test-parse-datetime.c (main): Add a test case written by
8434         Paul Eggert, which overwrites enough of the heap so that
8435         standard glibc will fail with "free(): invalid pointer"
8436         without the patch applied.
8438 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8440         xalloc: add missing integer overflow check
8441         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8442         overflow when P is null.
8444 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8446         parse-datetime: make it standalone
8447         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8448         (_GL_ATTRIBUTE_FORMAT): New macro.
8449         These are needed to get './gnulib-tool --test parse-datetime' to work.
8451 2017-04-23  Bruno Haible  <bruno@clisp.org>
8453         nap.h: Port to native Windows.
8454         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8455         use nap_fd instead. On native Windows, close and reopen nap_fd.
8456         (nap_works): Don't compare the ctimes, because on native Windows, these
8457         are the creation times.
8458         (nap): Update.
8460 2017-04-23  Bruno Haible  <bruno@clisp.org>
8462         nap.h: Fix logic.
8463         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8465 2017-04-23  Bruno Haible  <bruno@clisp.org>
8467         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8468         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8469         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8470         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8471         * lib/argp-help.c (__argp_failure): Likewise.
8473 2017-04-23  Bruno Haible  <bruno@clisp.org>
8475         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8476         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8477         * lib/strerror_r.c: Likewise.
8479 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8481         Target a C99 subset, not a C89 subset
8482         For many years Gnulib has targeted C89 and has resisted using C99
8483         features, as some Gnulib-using programs still wanted to target
8484         C89.  As this no longer seems to be the case, relax the porting
8485         requirements to allow some C99 features.  This is merely a change
8486         to the documentation, to give other Gnulib developers a chance to
8487         weigh in on the topic.
8488         * doc/extern-inline.texi (extern inline):
8489         * doc/gnulib-readme.texi (Portability guidelines):
8490         * doc/gnulib-tool.texi (Initial import):
8491         * doc/gnulib.texi (Header files):
8492         Modernize to talk about C99 and C11 instead of C89 and C99.
8493         * doc/gnulib-readme.texi (Portability guidelines):
8494         Now a section, not merely a subsection, so that it
8495         can be split up.  Modernize a bit.
8496         (C language versions, C99 features assumed)
8497         (C99 features avoided):
8498         New sections.
8500 2017-04-23  Bruno Haible  <bruno@clisp.org>
8502         doc: New section "Modules that modify the way other modules work".
8503         * doc/gnulib.texi (Modules that modify the way other modules work): New
8504         section.
8506 2017-04-23  Bruno Haible  <bruno@clisp.org>
8508         stat-time: Update comments.
8509         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8510         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8511         Windows.
8513 2017-04-01  Bruno Haible  <bruno@clisp.org>
8515         glob: Fix more memory leaks.
8516         * lib/glob.c (glob): Free allocated memory before returning.
8517         Reported by Coverity via Tim Rühsen.
8519 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8521         poll: improve fast check for out-of-range NFD
8522         * lib/poll.c: Do not include intprops.h.
8523         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8524         * modules/poll (Depends-on): Remove intprops.
8526         ftoastr: cite a newer paper
8527         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8528         instead of Loitsch 2010.
8530 2017-04-22  Bruno Haible  <bruno@clisp.org>
8532         poll: Enable argument check also in the Windows implementation.
8533         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8534         Reported by Paul Eggert.
8536 2017-04-22  Bruno Haible  <bruno@clisp.org>
8538         getlogin_r: Work around bug in Mac OS X 10.12.
8539         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8540         bug.
8541         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8542         given size minus 1, call getlogin_r a second time, on a larger buffer.
8543         * modules/getlogin_r (Depends-on): Add malloca.
8544         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8546 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8548         parse-datetime: fix %z and prefer signed int
8549         %z problem reported by Pádraig Brady in:
8550         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8551         While fixing it, I decided to prefer signed ints to size_t, as
8552         they are less error-prone (e.g., ubsan catches overflow).
8553         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8554         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8555         counts, since signed integers make for better debugging.
8556         (date): Don’t assume %z works in printf formats.
8557         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8558         sizes of buffers known to be small, e.g., because we’re using snprintf.
8559         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8561 2017-04-22  Bruno Haible  <bruno@clisp.org>
8563         *printf: Work around rounding bug on Mac OS X.
8564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8565         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8566         Mac OS X and FreeBSD.
8567         * doc/glibc-functions/*printf.texi: Likewise.
8569 2017-04-22  Bruno Haible  <bruno@clisp.org>
8571         vasnprintf tests: Avoid warnings.
8572         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8573         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8574         test.
8576 2017-04-22  Bruno Haible  <bruno@clisp.org>
8578         sys_file tests: Avoid warning.
8579         * tests/test-sys_file.c (main): Add a default clause to the switch
8580         statement.
8582 2017-04-22  Bruno Haible  <bruno@clisp.org>
8584         sethostname: Update doc.
8585         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8586         Mac OS X.
8588 2017-04-22  Bruno Haible  <bruno@clisp.org>
8590         quotearg tests: Avoid warnings.
8591         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8592         false.
8594 2017-04-22  Bruno Haible  <bruno@clisp.org>
8596         poll: Enable argument check.
8597         * lib/poll.c: Include intprops.h.
8598         (poll): Check value of nfd correctly.
8599         * modules/poll (Depends-on): Add intprops.
8601 2017-04-22  Bruno Haible  <bruno@clisp.org>
8603         get-rusage-data: Avoid warnings on Mac OS X.
8604         * lib/get-rusage-data.c: On Mac OS X, don't define
8605         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8606         (get_rusage_data) [Mac OS X]: Just return 0.
8608 2017-04-22  Bruno Haible  <bruno@clisp.org>
8610         xbinary-io: Fix build error.
8611         * modules/xbinary-io (Depends-on): Add gettext-h.
8612         * lib/xbinary-io.c: Include gettext.h and define _().
8613         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8614         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8616 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8618         parse-datetime: overflow and debug cleanups
8619         This long patch was triggered by this bug report from Ruediger Meier:
8620         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8621         I fixed the bug he noted, then found some others nearby, and then
8622         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8623         up some of the code to follow GNU standards while I was at it.
8624         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8625         use c_isdigit.
8626         (EPOCH_YEAR): Remove; unused.
8627         (TM_YEAR_BASE): Now an enum rather than a macro.
8628         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8629         time zone offset, since timezones now are in terms of seconds and
8630         not minutes.
8631         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8632         appropriate.  Verify that intmax_t is wide enough.
8633         (time_overflow, time_zone_str): New functions, used to deal
8634         more reliably with overflow.
8635         (dbg_printf): Add printf attribute, to help catch integer width errors.
8636         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8637         (%union, to_hour, yylex, parse_datetime2):
8638         Use intmax_t instead of long int and/or long_time_t.
8639         All uses changed.
8640         (DBGBUFSIZE): Move earlier.
8641         (relative_time, set_hhmmss, parser_control):
8642         Just use int for nanoseconds and for time zones; that’s wide enough.
8643         (parser_control): Use bool for members like year_seen that can
8644         be booleans instead of counters.  All uses changed.
8645         Remove debug_default_input_timezone; no longer needed.
8646         All uses removed.
8647         (apply_relative_time): Return a bool overflow flag.
8648         All uses changed to check for overflow.
8649         (apply_relative_time, zone, date, relunit, relunit_snumber)
8650         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8651         Check for integer overflow portably.
8652         (str_days): Use just int for N, as it’s wide enough.
8653         Prefer 2D char arrays to arrays of char * when it looks like
8654         2D is a win on typical platforms.
8655         Prefer snprintf to strncpy/strncat, for simplicity;
8656         all buffers are smaller than INT_MAX so this is safe.
8657         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8658         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8659         as this is not true on x32.  Output "." before any nanoseconds.
8660         (debug_print_current_time, parse_datetime2):
8661         Output local zones using a more-consistent format.
8662         (debug_print_current_time, date, parse_datetime2):
8663         (main) [TEST]:
8664         Don’t assume time_t is the same width as long.
8665         (print_rel_part): New function, replacing ...
8666         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8667         (debug_print_relative_time): Use bool for boolean.
8668         (local_zone): dsts_seen now counts only tDST instances.
8669         (date): Fix printf of size_t to use %z.  Do not assume numeric
8670         tokens have negative values merely because the context suggests
8671         a syntax with "-" separating tokens.
8672         (time_zone_hhmm): Return bool success indicator, which checks for
8673         overflow.  Store result into PC->time_zone instead.  All callers
8674         changed.
8675         (tm_year_str): New function.  Return a bool success indicator and
8676         store the result into a buffer.  All callers changed.  Output the
8677         numerically correct string even if adding 1900 to the year would
8678         overflow.
8679         (to_tm_year): New function, replacing the old to_year.  All
8680         callers changed.
8681         (tm_diff): Sync with glibc.
8682         (lookup_word): Use to_uchar instead of doing it by hand.
8683         (TZBUFSIZE): Now local to the only function that needs it.
8684         (debug_strfdatetime): Simplify now that time zones are int seconds.
8685         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8686         (get_effective_timezone): Remove.  All uses removed.
8687         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8688         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8689         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8690         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8691         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8692         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8693         * modules/parse-datetime (Depends-on): Add inttypes.
8695 2017-04-21  Bruno Haible  <bruno@clisp.org>
8697         gettext-h: Avoid -Wundef warning.
8698         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8699         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8700         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8702 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8704         error: Avoid "function declaration isn't a prototype" warning.
8705         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8707 2017-04-21  Bruno Haible  <bruno@clisp.org>
8709         vasnprintf: Fix for MSVC 14.
8710         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8711         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8712         of !HAVE_SNPRINTF_RETVAL_C99.
8714 2017-04-21  Bruno Haible  <bruno@clisp.org>
8716         mbrtowc tests: Fix test failures on MSVC 14.
8717         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8718         behaviour for invalid input.
8720 2017-04-21  Bruno Haible  <bruno@clisp.org>
8722         mbsinit: Fix for MSVC 14.
8723         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8724         implementation that is in sync with mbrtowc.c. On other platforms, use
8725         an adequate ad-hoc implementation.
8727 2017-04-21  Bruno Haible  <bruno@clisp.org>
8729         Fix test-mbrtowc5.sh failure on native Windows.
8730         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8731         "C".
8733 2017-04-21  Bruno Haible  <bruno@clisp.org>
8735         Avoid accidental use of native Windows APIs on Cygwin.
8736         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8737         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8738         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8740 2017-04-20  Bruno Haible  <bruno@clisp.org>
8742         Remove red warnings from the generated MODULES.html.
8743         * modules/fcntl (Description): Disambiguate function references.
8744         * modules/getcwd-lgpl (Description): Likewise.
8745         * modules/hostent (Description): Likewise.
8746         * modules/servent (Description): Likewise.
8747         * modules/tempname (Description): Likewise.
8749 2017-04-20  Bruno Haible  <bruno@clisp.org>
8751         verify tests: Fix spurious failure with parallel make.
8752         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8753         EXTRA_PROGRAMS.
8754         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8755         * tests/test-verify-try.c: New file.
8756         * modules/verify-tests (Files): Add it.
8757         (EXTRA_PROGRAMS): Add test-verify-try.
8758         (MOSTLYCLEANFILES): Update accordingly.
8759         Reported by Adam James Stewart <ajstewart@anl.gov>.
8761 2017-04-18  Bruno Haible  <bruno@clisp.org>
8763         vma-iter: Fix compilation error on Solaris 7.
8764         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8765         like on IRIX, OSF/1.
8766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8768 2017-04-18  Bruno Haible  <bruno@clisp.org>
8770         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8771         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8772         included.
8773         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8774         <sys/procfs.h>.
8775         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8776         <sys/procfs.h> cannot be included.
8777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8779 2017-04-18  Bruno Haible  <bruno@clisp.org>
8781         getopt-gnu: Add comments.
8782         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8783         * modules/getopt-gnu (configure.ac): Likewise.
8785 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8787         regex: port better to Solaris 10
8788         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8789         gettext, and this causes a double #define.
8790         Problem reported by Gavin Smith in:
8791         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8792         * lib/regex_internal.h (gettext): #undef before #defining.
8794 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8796         intprops: improve comments
8797         * lib/intprops.h: Improve and shorten commentary.
8798         For the record, if we ever run into a pedantic compiler that
8799         behaves differently from GCC when converting an out-of-range value
8800         to a signed integer, we can work around the problem with something
8801         like the following code, where UCT is the signed counterpart of T
8802         (UCT is sometimes narrower than UT) and all callers are changed
8803         accordingly:
8804         #if __SUNPRO_C <= 0x5120
8805         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8806            ((t) ((ut) (a) op (ut) (b)))
8807         #else
8808         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8809            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8810             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8811                + TYPE_MINIMUM (t)) \
8812             : (t) (uct) ((ut) (a) op (ut) (b)))
8813         #endif
8815 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8817         intprops: try to avoid tickling similar bugs
8818         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8819         needs to be the same width as T; it can be wider.
8820         Change callers so that UT is at least as wide as unsigned int,
8821         as I suspect that this is less likely to run into compiler bugs.
8823         intprops: port to Oracle Studio 12.3 x86
8824         Problem reported by Gavin Smith in:
8825         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8826         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8827         Convert unsigned to signed via the usual rather than the standard way,
8828         to avoid a compiler bug in Oracle Studio 12.3 x86.
8830 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8832         getopt: prefer - to _ in new file names
8833         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8834         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8835         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8836         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8837         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8838         All uses changed.
8840         getopt: port recent getopt changes to macOS
8841         Problem reported by Harald Maier (Bug#26398).
8842         The macOS C compiler uses __nonnull for its own purposes and that
8843         clashes with glibc's __nonnull.
8844         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8845         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8846         * lib/getopt_core.h (getopt):
8847         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8848         Use _GL_ARG_NONNULL, not __nonnull.
8849         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8850         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8851         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8852         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8854 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8856         getopt-gnu: omit some duplicate code
8857         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8858         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8859         gnulib-tool already does this.
8860         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8861         getopt-posix, which we depend on.
8863         getopt-posix: use angle-bracket include
8864         * lib/getopt1.c: Include <config.h>, not "config.h".
8866 2017-04-06  Zack Weinberg  <zackw@panix.com>
8868         getopt: annotate files with relationship to glibc
8870         As the final act in this patchset, adjust the message at the top of
8871         each file to indicate which files are synced with glibc.  (This has
8872         already been done for most of the headers.)
8874         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8875         Mention in top-of-file boilerplate that these files are shared
8876         between glibc and gnulib.
8879         getopt: split up getopt.in.h and eliminate __need_getopt
8881         Over in glibc, all of the __need macros are being phased out in favor
8882         of small headers that declare only the necessary components, as this
8883         is much simpler and less prone to bugs.  As getopt is shared with
8884         glibc, gnulib needs to do the same for __need_getopt.
8886         __need_getopt is misnamed; what it really means is "we want only the
8887         getopt features specified in POSIX, not the GNU extensions".  glibc
8888         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8889         these files can be shared verbatim with gnulib.  The portability
8890         wrapper, on the other hand, they have renounced altogether; glibc's
8891         getopt.h will no longer be shared with gnulib at all.  In exchange,
8892         certain glibc-specific quirks (having to do with __posix_getopt) no
8893         longer need appear in gnulib's headers at all.
8895         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8896         splits up the current gnulib-side portability wrapper into three
8897         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8898         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8899         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8900         unistd.in.h just use them.  All new files are clearly marked with
8901         whether they are shared with glibc.
8903         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8904         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8905         with glibc, and ...
8906         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8907         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8908         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8909         instead of defining __need_getopt and including the full getopt.h.
8911         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8912         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8913         * modules/getopt-posix (Files): Add new headers and sort list.
8914         (Depends-on): No longer need snippet/arg-nonnull.
8915         (Makefile.am): Generate getopt_cdefs.h.
8918         getopt: better handling of ambiguous options
8920         glibc's getopt uses alloca to construct a linked list of possibilities
8921         for an "ambiguous" long option.  In gnulib, malloc should be used
8922         instead.  Providing for both cases complicates things a fair bit.
8924         This patch rewrites ambiguous-option handling to use a boolean vector
8925         instead of a linked list.  There is then only one allocation that
8926         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8927         and in gnulib we define __libc_use_alloca to always be false, so we
8928         don't need ifdefs in the middle of the function.  This should also be
8929         slightly more efficient in the normal case of long options being fully
8930         spelled out -- I think most people aren't even aware they _can_
8931         sometimes abbreviate long options.
8933         One interesting consequence is that the list of possibilities is now
8934         printed in exactly the order they appear in the list of long options,
8935         instead of the first possibility being shuffled to the end.
8937         (The patch looks bigger than it really is because there's a fair bit
8938         of reindentation and code rearrangement.)
8940         * lib/getopt.c: When used standalone, define __libc_use_alloca
8941         as always false and alloca to abort if called.
8942         (process_long_option): Rewrite handling of ambiguous long options
8943         to use a single boolean vector, not a linked list; use
8944         __libc_use_alloca to decide whether to allocate this using alloca.
8947         getopt: refactor long-option handling
8949         There were two copies of the bulk of the code to handle long options.
8950         Now there is only one.
8952         This change temporarily removes the logic to avoid using alloca when
8953         standalone; the next patch in the series will restore it.
8955         * lib/getopt.c (process_long_option): New function split out
8956         from _getopt_internal_r.
8957         (_getopt_internal_r): Replace both copies of the long-option
8958         processing code with calls to process_long_option.
8961         getopt: tidy up _getopt_initialize a bit
8963         _getopt_data.__posixly_correct is completely redundant to
8964         _getopt_data.__ordering, and some work that logically belongs in
8965         _getopt_initialize was being done by _getopt_internal_r, making the
8966         code harder to understand.
8968         As a side effect, getenv will no longer be called if the first
8969         character of the options string is '+' or '-', which is probably a
8970         Good Thing.  (Perhaps we should have a flag character that
8971         specifically asks for the permutation behavior?)
8973         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8974         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8975         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8978         getopt: merge from glibc: repetition reduction
8980         The definitions of the entry point functions 'getopt' and
8981         '__posix_getopt' can be made substantially less repetitive with a
8982         helper macro.
8984         While I was merging the const-correctness changes from gnulib into
8985         glibc I noticed there are still some unnecessary casts in
8986         _getopt_internal_r.
8988         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8989         a macro.  Consistently cast 'argv' to 'char **' when calling
8990         _getopt_internal.
8991         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8994         getopt: clean up error reporting
8996         getopt can print a whole bunch of error messages, and when used
8997         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8998         cancellation point and getopt isn't, and also applying fprintf to a
8999         stream in wide-character mode is not allowed.  So every single error
9000         reporting case has an #ifdef _LIBC block in which it calls internal
9001         libc functions instead.  The counterpart patch series in glibc makes
9002         it possible to simplify all of that down to a set of #defines at the
9003         top of the file; core code is written as if it is safe to just call
9004         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
9005         call any *other* stdio functions.)
9007         * lib/getopt.c: When _LIBC is defined, define fprintf to
9008         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
9009         to _IO_funlockfile.  When neither _LIBC nor
9010         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
9011         funlockfile as no-ops.
9012         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
9013         standalone error-printing code can now be used for libc as well.
9014         Add an flockfile/funlockfile pair around one case where the error
9015         message is printed in several chunks.  Don't use fputc.
9018         getopt: fix fencepost error in ambiguous-W-option handling
9020         getopt_long contains an undocumented (AFAICT) feature in which, if you
9021         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
9022         treated as equivalent to '--foo'.  This is implemented with a partial
9023         second copy of the code for handling long options, and that code
9024         increments optind one too many times when recovering from an ambiguous
9025         abbreviated option, which can cause the main loop to walk past the end
9026         of argv and crash.
9028         I discovered this while writing a test case that tries to exercise all
9029         of getopt's error reporting paths; I wouldn't be surprised to learn
9030         that this feature is never used by real applications.
9032         * lib/getopt.c (_getopt_internal_r): Don't increment
9033         d->optind a second time when reporting ambiguous -W options.
9036         getopt: clean up getopt.c and getopt1.c file headers
9038         In getopt.c, there is no need to include wchar.h at all, and it is
9039         safe nowadays to assume that stdlib.h does declare getenv (several
9040         other gnulib modules make this assumption).
9042         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
9043         by using "" inclusions consistently, and there is no actual need to
9044         include stdlib.h (except in the #ifdef TEST block, where it should be
9045         unconditional), nor to provide a backup definition of NULL at all.
9047         * lib/getopt1.c: Simplify #ifdeffage at top of file.
9048         Move inclusion of stdlib.h to #ifdef TEST block and make
9049         unconditional.  Do not define NULL.
9050         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
9051         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
9052         * modules/getopt-gnu, modules/getopt-posix: Don't call
9053         gl_PREREQ_GETENV.
9056         getopt: harmonize comments with glibc
9058         The comments explaining how the behavior of 'getopt' varies depending
9059         on whether it's the standalone version and whether there are special
9060         characters at the beginning of the options string were inconsistent
9061         between gnulib and glibc, and also out of sync with the code.
9063         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
9066         getopt: remove USE_NONOPTION_FLAGS
9068         getopt includes code to parse an environment variable named
9069         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
9070         in decimal); but all of it has been #ifdefed out since 2001, with no
9071         official way to turn it back on.
9073         According to commentary in glibc's config.h.in, bash version 2.0
9074         set this environment variable to indicate argv elements that were
9075         the result of glob expansion and therefore should not be treated
9076         as options, but the feature was "disabled later" because "it
9077         caused problems".  According to bash's CHANGES file, "later" was
9078         release 2.01; it gives no more detail about what the problems
9079         were.
9081         Version 2.0 of bash was released on the last day of 1996, and version
9082         2.01 in June of 1997.  Twenty years later, I think it is safe to
9083         assume that this environment variable isn't coming back.
9085         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
9086         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
9087         __libc_argc and __libc_argv externs, which were only used by
9088         #ifdef USE_NONOPTION_FLAGS blocks.
9091         getopt: tabify, in preparation for merge with glibc
9093         glibc sticks to the GNU default of indenting with a mix of
9094         8-column tabs and spaces; make the gnulib copy match.
9096         getopt.h is not included because it is *not* going to be merged in its
9097         present form.
9099         * getopt.c, getopt1.c, getopt_int.h: Tabify.
9101 2017-04-02  Bruno Haible  <bruno@clisp.org>
9103         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
9104         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
9105         like it was done in modules/relocatable-lib on 2011-05-21 and in
9106         modules/relocatable-prog on 2011-08-15.
9107         Reported by Reuben Thomas <rrt@sc3d.org>.
9109 2017-03-31  Bruno Haible  <bruno@clisp.org>
9111         glob: Fix invalid free() call.
9112         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
9113         static storage to home_dir.
9114         Reported by Coverity via Tim Rühsen.
9116 2017-03-31  Bruno Haible  <bruno@clisp.org>
9118         glob: Fix memory leaks.
9119         * lib/glob.c (glob): Free allocated memory before returning.
9120         Reported by Coverity via Tim Rühsen.
9122 2017-03-31  Bruno Haible  <bruno@clisp.org>
9124         md5, sha1, sha256, sha512: Add comments regarding correctness.
9125         * lib/md5.h (buflen): Add comments regarding range.
9126         * lib/sha1.h (buflen): Likewise.
9127         * lib/sha256.h (buflen): Likewise.
9128         * lib/sha512.h (buflen): Likewise.
9129         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
9130         * lib/sha1.c (sha1_process_bytes): Likewise.
9131         * lib/sha256.c (sha256_process_bytes): Likewise.
9132         * lib/sha512.c (sha512_process_bytes): Likewise.
9133         Reported by Coverity via Tim Rühsen.
9135 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9137         getopt: merge from glibc
9138         This does not change anything substantial; it merely simplifies
9139         hypothetical merges back to glibc.
9140         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
9141         Change copyright notice to match what is in glibc.
9142         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
9143         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
9144         __open_memstream rather than open_memstream and __glibc_likely
9145         instead of __builtin_expect.
9146         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
9148 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9150         dfa: make [0-9] faster in non-C locales
9151         Problem reported by John P. Linderman (Bug#26193).
9152         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
9153         If both ends of the range are ASCII digits, do not worry about
9154         multi-character collating sequences and the like.  Be consistent
9155         about using isalpha as a precondition for setbit_case_fold_c.
9157 2017-03-19  Bruno Haible  <bruno@clisp.org>
9159         lock: Fix compilation error with HP-UX IA64 cc.
9160         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
9161         weak on non-glibc platforms.
9163 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9165         stdalign: tweak version# and test for HP-UX IA64
9166         Problems reported by Bruno Haible in:
9167         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
9168         * lib/stdalign.in.h (_Alignas):
9169         * m4/stdalign.m4 (gl_STDALIGN_H):
9170         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
9171         used octal (as that is how they document it), but it is decimal in
9172         practice now and the ancient implementations no longer matter.
9173         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
9175 2017-03-19  Bruno Haible  <bruno@clisp.org>
9177         vma-iter: Add support for Solaris.
9178         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
9179         approach.
9180         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
9181         * lib/get-rusage-as.c: Update comment about Solaris.
9182         * lib/get-rusage-data.c: Likewise.
9184 2017-03-19  Bruno Haible  <bruno@clisp.org>
9186         vma-iter: Prefer HP-UX specific API on HP-UX.
9187         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
9188         * lib/vma-iter.h: Update.
9189         Just in case HP-UX ever implements mquery().
9191 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
9193         stdalign: restore previous behavior for HP-UX IA64
9194         See Bruno Haible's email in:
9195         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9196         which cites p 150 of a manual saying that 'aligned' works on Itanium.
9197         * lib/stdalign.in.h (_Alignas):
9198         Assume the '061200' applies to Itanium, not to PA-RISC.
9199         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
9201 2017-03-17  Bruno Haible  <bruno@clisp.org>
9203         stat-time, timespec: Support use of the header files in C++ mode.
9204         * lib/stat-time.h: Add "C" linkage declaration.
9205         * lib/timespec.h: Likewise.
9207 2017-03-17  Bruno Haible  <bruno@clisp.org>
9209         stdalign: Make it work with HP-UX cc.
9210         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
9211         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
9212         for HP-UX cc.
9214 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
9216         flexmember: try to detect HP-UX 11.31 cc bug
9217         Problem reported by Bruno Haible in:
9218         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9219         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9220         Attempt to detect bug in HP-UX 11.31 cc.
9222 2017-03-16  Bruno Haible  <bruno@clisp.org>
9224         stdint: Fix test compilation failure with HP-UX 11 cc.
9225         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
9226         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
9227         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
9228         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
9230 2017-03-14  Bruno Haible  <bruno@clisp.org>
9232         gnulib-tool: Don't produce a tests directory with only snippet .h files.
9233         * gnulib-tool (func_modules_transitive_closure_separately): If
9234         testsrelated_modules ends up with no "real" modules, aside from
9235         modules with applicability 'all', set it to empty.
9237 2017-03-14  Bruno Haible  <bruno@clisp.org>
9239         vma-iter: Add support for HP-UX.
9240         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
9241         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
9242         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
9243         * lib/get-rusage-as.c: Update comment about HP-UX.
9244         * lib/get-rusage-data.c: Likewise.
9245         (get_rusage_data): Use get_rusage_data_via_setrlimit.
9247 2017-03-14  Bruno Haible  <bruno@clisp.org>
9249         limits-h: Make it work with HP-UX cc.
9250         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
9251         defined.
9253 2017-03-14  Bruno Haible  <bruno@clisp.org>
9255         Fix test failures on DragonFlyBSD.
9256         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
9257         * tests/test-select.h (test_bad_fd): Likewise.
9258         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
9260 2017-03-14  Bruno Haible  <bruno@clisp.org>
9262         freadahead: Silence warning on DragonFlyBSD.
9263         * lib/freadahead.c (__sreadahead): Declare ourselves.
9265 2017-03-14  Bruno Haible  <bruno@clisp.org>
9267         vma-iter: Add comment about AIX.
9268         * lib/vma-iter.c: Add comment about why this module is not implemented
9269         on AIX.
9271 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9273         snippets: move unadjusted snippet sources to lib
9274         Problem reported by Michal Privoznik in:
9275         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
9276         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
9277         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
9278         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
9279         * lib/unused-parameter.h: Rename from
9280         build-aux/snippet/unused-parameter.h.
9281         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
9282         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
9283         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
9284         * modules/snippet/c++defs (Files:, CXXDEFS_H):
9285         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
9286         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
9287         Adjust to file renamings.
9289 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
9291         gnulib-tool: don't automatically distribute files from top/
9292         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
9293         not distribute top/README-release by default, don't distribute files
9294         from top/ unconditionally.
9295         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
9296         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
9298 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9300         gnulib-tool: fix typo in comment output
9301         * gnulib-tool (func_import): Fix typo with previous change.
9303         snippets: work around GNU Make 3.82 VPATH
9304         When using 'gnulib-tool --gnu-make' on Emacs, and building
9305         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
9306         an out-of-source (VPATH) build failed because the sans-copyright
9307         snippet file was not built before the file that used it.
9308         Presumably this is some sort of VPATH thing.  Work around the
9309         problem by using the original snippet, i.e., don’t bother to
9310         remove its copyright notice.
9311         * modules/snippet/_Noreturn, modules/snippet/link-warning:
9312         Don’t assume Automake in comments.  Omit long-incorrect comment.
9313         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
9314         (MOSTLYCLEANFILES):
9315         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
9316         (MOSTLYCLEANFILES):
9317         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
9318         (MOSTLYCLEANFILES):
9319         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
9320         (MOSTLYCLEANFILES):
9321         Remove.
9322         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
9323         * modules/snippet/c++defs (CXXDEFS_H):
9324         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
9325         * modules/snippet/warn-on-use (WARN_ON_USE_H):
9326         Don’t bother to remove the copyright notice; just use the
9327         original snippet as-is.
9329 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9331         gnulib-tool: minor --gnu-make fixups
9332         * gnulib-tool (func_emit_lib_Makefile_am):
9333         Remove useless code that was a blind alley during implementation.
9334         Problem reported by Thien-Thi Nguyen in:
9335         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
9336         (func_import): Note the "--gnu-make" option in the output comment.
9338 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
9340         gnulib-tool: new option --gnu-make
9341         This is for applications like GNU Emacs that use GNU Make
9342         features instead of Automake.
9343         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
9344         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
9345         Do not assume Automake.
9346         * gnulib-tool (func_determine_path_separator)
9347         (func_modules_transitive_closure, func_update_file)
9348         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9349         (func_import): Add support for --gnu-make.
9351 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9353         gnulib-common.m4: avoid aclocal.m4 bloat
9354         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
9355         Hide AM_PROG_AR from aclocal, so that aclocal does not
9356         install irrelevant macro definitions into aclocal.m4.
9358 2017-03-10  Bruno Haible  <bruno@clisp.org>
9360         vma-iter: Let callers know about error.
9361         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9362         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9364 2017-03-05  Bruno Haible  <bruno@clisp.org>
9366         Fix value of LD for 64-bit compilers on AIX.
9367         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9368         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9370 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9372         dtotimespec: simplify
9373         * lib/dtotimespec.c (dtotimespec): Simplify.
9375 2017-03-04  Bruno Haible  <bruno@clisp.org>
9377         test-calloc-gnu: Reenable test also for GCC 7.
9378         * tests/test-calloc-gnu.c (eight): New function.
9379         (main): Don't skip test; use eight() instead.
9381 2017-03-04  Jim Meyering  <meyering@fb.com>
9383         test-calloc-gnu: port to GCC7
9384         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9385         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9386         and newer would detect that at compilation time.
9388 2017-03-04  Bruno Haible  <bruno@clisp.org>
9390         tests: Avoid compiler warning about uses of null_ptr.
9391         * tests/null-ptr.h: New file.
9392         * tests/test-canonicalize.c: Include null-ptr.h.
9393         (null_ptr): Remove function.
9394         * tests/test-canonicalize-lgpl.c: Likewise.
9395         * tests/test-memmem.c: Likewise.
9396         * tests/test-ptsname_r.c: Likewise.
9397         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9398         * modules/canonicalize-lgpl-tests: Likewise.
9399         * modules/memmem-tests: Likewise.
9400         * modules/ptsname_r-tests: Likewise.
9401         Reported by Jim Meyering.
9403 2017-03-03  Bruno Haible  <bruno@clisp.org>
9405         doc: Mention Mac OS X deficiencies regarding semaphores.
9406         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9407         * doc/posix-functions/sem_destroy.texi: Likewise.
9408         * doc/posix-functions/sem_getvalue.texi: Likewise.
9410 2017-03-03  Bruno Haible  <bruno@clisp.org>
9412         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9413         Reported by Assaf Gordon <assafgordon@gmail.com> via
9414         Pádraig Brady <P@draigBrady.com>.
9415         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9416         semaphores.
9417         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9418         (atomic_int_semaphore): New macro.
9420 2017-02-28  Bruno Haible  <bruno@clisp.org>
9422         perror tests: Tweak for z/OS.
9423         Reported by Daniel Richard G. <skunk@iskunk.org>.
9424         * tests/test-perror.sh: Don't fail z/OS style perror output.
9426 2017-02-26  Bruno Haible  <bruno@clisp.org>
9428         nproc: Refactor large function.
9429         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9430         from num_processors.
9431         (num_processors): In this function, only deal with OMP.
9433 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9435         nproc: adjust handling of OpenMP environment variables
9436         to match the return value from omp_get_num_threads(), i.e.:
9437          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9438          - Treat 0 as an invalid value and ignore
9439         Also remove the call to omp_get_num_threads() because
9440         it's ineffective without the omp pragmas in place.
9441         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9442         so that it can be ignored.
9443         (num_processors): Honor OMP_THREAD_LIMIT even without
9444         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9445         variable being checked, from the previous recent commit.
9447 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9449         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9450         * lib/nproc.c (parse_omp_threads): A new function refactored
9451         from num_processors() to support parsing both of the
9452         above environment variables.
9453         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9454         to accurately reflect the current OpenMP nesting level.
9455         Also support the OMP_THREAD_LIMIT environment variable
9456         to limit the max value determined from OMP_NUM_THREADS.
9457         * modules/nproc: Depend on minmax header.
9458         Suggested by Oliver Heimlich.
9460 2017-02-25  Bruno Haible  <bruno@clisp.org>
9462         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9463         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9465 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9467         ftoastr: port to -Wdouble-promotion
9468         Work around -Wdouble-promotion false alarm in recent GCCs.
9469         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9470         (ftoastr_snprintf, FTOASTR): Use it.
9472 2017-02-21  Bruno Haible  <bruno@clisp.org>
9474         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9475         Reported by Rene Saavedra <rennes@openmailbox.org> in
9476         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9477         * lib/glthread/lock.h: On glibc systems without
9478         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9479         implementation of rwlocks.
9480         * lib/glthread/lock.c: Likewise.
9482 2017-02-20  Bruno Haible  <bruno@clisp.org>
9484         lock tests: Fix build failure on z/OS.
9485         Reported by Daniel Richard G. <skunk@iskunk.org>.
9486         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9487         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9488         exist.
9490 2017-02-19  Bruno Haible  <bruno@clisp.org>
9492         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9493         This helps when CC=clang.
9494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9495         of /usr/bin/gcc.
9497         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9498         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9500 2017-02-19  Bruno Haible  <bruno@clisp.org>
9502         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9503         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9504         --with-tests --single-configure is specified.
9506 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9508         users.txt: Update links, use HTTPS where possible
9509         * users.txt: Updated to HTTPS where possible,
9510         fixed some links to new locations.
9512 2017-02-16  Bruno Haible  <bruno@clisp.org>
9514         xbinary-io: Fix inlining.
9515         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9517 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9519         xbinary-io: rename from xsetmode
9520         This patch is taken from suggestions by Bruno Haible in:
9521         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9522         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9523         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9524         not ENOTTY, when it is an inappropriate device.
9525         * lib/binary-io.h (SET_BINARY): Resurrect.
9526         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9527         (xset_binary_mode_error): Rename from xsetmode_error.
9528         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9529         (xset_binary_mode): Rename from xsetmode.
9530         All uses changed.
9531         * modules/xbinary-io: Rename from modules/xsetmode.
9532         Update file names.
9533         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9534         * NEWS: Update to match revised behavior.
9536 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9538         tests: Adjust to recent SET_BINARY change
9539         * tests/test-binary-io.c (main):
9540         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9541         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9542         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9543         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9545         xsetmode: new module
9546         This is to fix a problem noted by Eric Blake.
9547         Code was using xfreopen to change files to binary mode, but this
9548         fails for stdout when in append mode.  Such code should use
9549         xsetmode instead.
9550         * NEWS: Document incompatible changes to binary-io module.
9551         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9552         New function.
9553         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9554         (set_binary_mode): New function, which also checks for tty.
9555         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9557 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9559         headers: fix begin-end typos
9560         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9561         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9563         selinux-h: port to PGI 16.10
9564         * lib/se-selinux.in.h: Don't assume that include_next skips over
9565         duplicate -I DIR options.
9567         argp: port to PGI 16.10
9568         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9570 2017-02-13  Darshit Shah  <darnir@gnu.org>
9572         unicase: Update function protoype to match definition.
9573         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9574         uses 'size_t' as the datatype for the 'len' parameter in the functions
9575         it generates. Update the prototype specified here to match the newly
9576         generated function.
9578 2017-02-12  Bruno Haible  <bruno@clisp.org>
9580         times test: Avoid gcc warnings on Linux/x32.
9581         * tests/test-times.c (main): Really cast printf arguments from clock_t
9582         to 'long int'.
9584 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9586         glob: port better to emscripten
9587         Problem reported by Bruno Haible in:
9588         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9589         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9591 2017-02-11  Bruno Haible  <bruno@clisp.org>
9593         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9594         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9595         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9596         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9597         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9598         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9599         Distinguish hppa64 from hppa.
9601 2017-02-10  Bruno Haible  <bruno@clisp.org>
9603         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9604         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9605         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9606         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9608 2017-02-09  Bruno Haible  <bruno@clisp.org>
9610         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9611         * doc/gnulib.texi (Libtool and Windows): Recommend
9612         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9613         Reported by Reuben Thomas <rrt@sc3d.org>.
9615 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9617         stddef-tests: port to SIZE_MAX <= INT_MAX
9618         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9619         Do not assume that INT_MAX < SIZE_MAX.
9621 2017-02-01  Bruno Haible  <bruno@clisp.org>
9623         lock tests: Fix link error.
9624         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9627 2017-01-31  Bruno Haible  <bruno@clisp.org>
9629         lock: Fix link error (regression from 2017-01-05).
9630         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9631         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9632         pthread_rwlockattr_destroy weak.
9633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9635 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9637         Port to PGI 16.10 x86-64
9638         This patch fixes one real bug in gl_anylinked_list2.h, along with
9639         some minor glitches that are not bugs.  It does not silence PGI’s
9640         thousands of bogus warnings when compiling test-intprops.c.
9641         Fortunately, the warnings do not cause a failure.
9642         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9643         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9644         My goodness, PGI goes back a long ways - this predates C89!
9645         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9646         For example, ASYNCSAFE (const void *) should expand to
9647         ‘const void *volatile’, not to ‘volatile const void *’.
9648         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9649         * lib/verify.h (verify) [!__GNUC__]:
9650         Use shorter albeit meaningless string to bypass silly compiler limits.
9651         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9652         * tests/nan.h (NaNf, NaNd, NaNl):
9653         Use static functions to avoid misguided compiler diagnostics.
9654         Is there some reason we don’t use static functions on all platforms?
9656 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9658         parse-datetime: handle timezones reentrantly
9659         This API change was prompted by a report by Pádraig Brady in:
9660         https://bug.debian.org/851934#10
9661         To help fix the bug, make parse_datetime2 more reentrant.
9662         * NEWS: Document this incompatible change.
9663         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9664         Add two arguments, the timezone and the timezone name.
9665         All callers changed.  If TZ="..." is specified, use it for
9666         calculating defaults.
9667         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9668         this code should be usable in a library.
9669         (mktime_ok, get_effective_timezone):
9670         Accept timezone arg too.  All callers changed.
9671         (get_tz): Remove.
9672         (get_effective_timezone): Check for failures.
9674 2017-01-20  Eric Blake  <eblake@redhat.com>
9676         localename: port to cygwin 2.6
9677         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9678         Cygwin.
9679         * modules/localename (Depends-on): Add extensions, since
9680         NL_LOCALE_NAME() is not visible without it.
9682 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9684         parse-datetime: fix dependence on AC_PROG_SED
9685         * modules/parse-datetime: Use `sed` directly like all other modules.
9686         Reported by J William Piggott
9688 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9690         intprops: update doc URLs
9691         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9693 2017-01-16  Bruno Haible  <bruno@clisp.org>
9695         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9696         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9697         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9698         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9699         distinguish s390 and s390x.
9700         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9701         * NEWS: Mention the change regarding 'armel'.
9703 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9705         localeinfo: case_folded_counterparts and WEOF
9706         * NEWS: Document this.
9707         * lib/localeinfo.c (case_folded_counterparts):
9708         First arg is now wint_t, not wchar_t.  This generalizes the
9709         function to also work on WEOF, where it returns 0.
9711         dfa: port to gcc -fsanitize=undefined
9712         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9713         as this runs afoul of gcc -fsanitize=undefined.
9715 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9717         strftime: %z is -00 if unknown
9718         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9719         the caller's responsibility to set 'negative_number'.  All uses changed.
9720         (__strftime_internal): Put '-' before a zero UTC offset if the time
9721         zone abbreviation starts with "-", which is the recently-introduced
9722         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9723         * tests/test-strftime.c: Test for this.
9725 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9727         dfa: port to older GCC
9728         Problem reported by Assaf Gordon in:
9729         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9730         * modules/c99: New module.  This merely attempts to use the latest
9731         C version, which should be enough to solve this particular problem.
9732         The idea is to document which Gnulib modules assume C99 or later.
9733         * modules/dfa (Depends-on): Add it.
9735 2017-01-10  Bruno Haible  <bruno@clisp.org>
9737         Update DEPENDENCIES.
9738         * DEPENDENCIES: List only https URLs. Update recommended version for
9739         autoconf, automake, gperf.
9741 2017-01-10  Jim Meyering  <meyering@fb.com>
9743         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9744         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9745         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9747 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9749         dfa: minor simplification with emptyset
9750         * lib/dfa.c (build_state): Simplify by using emptyset.
9752 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9754         dfa: shrink constraints from 4 bits to 3
9755         * lib/dfa.c (newline_constraint, letter_constraint)
9756         (other_constraint, prev_newline_dependent)
9757         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9758         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9759         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9760         Constraints need only 3 bits, not 4.  Using smaller integers
9761         shrinks the code a bit and makes grep a tad faster on x86-64.
9763         dfa: omit unnecessary ptrdiff_t check
9764         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9765         overflow, since xnmalloc does that now.
9767         dfa: omit unnecessary allocation
9768         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9769         an all-zero follow set works just fine.
9771         dfa: omit unused local
9772         * lib/dfa.c (build_state): Fix up recent change.
9774         maint: remove stray .texi files
9775         Although these were superseded by other files like
9776         doc/posix-functions/ctime.texi, the old files were not removed.
9777         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9779 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9781         getprogname: fix port to IRIX
9782         * lib/getprogname.c (getprogname) [__sgi]:
9783         Don't dump core if malloc returns NULL.
9785         dfa: fix reallocation bug when matching newlines
9786         Problem reported for sed by S. Gilles (Bug#25390).
9787         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9788         (dfastate): Reallocate before moving any newline transition ...
9789         (build_state): ... instead of reallocating here, where it is too late.
9791 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9793         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9794         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9796 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9798         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9799         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9801 2017-01-07  Bruno Haible  <bruno@clisp.org>
9803         stdioext: Port to Minix 3.2 and newer.
9804         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9805         * lib/fseeko.c (fseeko): Likewise.
9806         Reported by Nelson Beebe via Paul Eggert.
9808 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9810         getprogname: port to IRIX
9811         * lib/getprogname.c (getprogname): Port to IRIX.
9812         Based on an idea by Bastien Roucariès at:
9813         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9814         via code from Bruno Haible at:
9815         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9817         localename-tests: port to NetBSD 7
9818         Problem reported by Nelson H. F. Beebe.
9819         * tests/test-localename.c:
9820         Test newlocale and uselocale only if both exist.
9822         glob, intprops, xalloc: work around Clang bug
9823         Work around LLVM bug 16404, which is still not fixed.
9824         https://llvm.org/bugs/show_bug.cgi?id=16404
9825         Problem reported by Nelson H. F. Beebe.
9826         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9827         Remove.
9828         * lib/glob.c (size_add_wrapv):
9829         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9830         * lib/xalloc-oversized.h (xalloc_oversized):
9831         Do not use overflow builtins if Clang.
9833         dfa: fix 'return' typo
9834         Problem reported by Nelson H. F. Beebe.
9835         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9837 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9839         parse-datetime: fix generated paths for coverage files
9840         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9841         within parse-datetime.c, so that gcc generates appropriate .gcno
9842         files, allowing lcov to proceed without error.  Previously it
9843         would error trying to find "lib/lib/parse-datetime.y".
9845 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9847         maint.mk: support parallel execution of coverage
9848         * top/maint.mk (coverage): Run dependencies serially,
9849         thus supporting parallel processing of each one,
9850         particularly build-coverage, which builds and runs tests.
9852 2017-01-05  Bruno Haible  <bruno@clisp.org>
9854         lock tests: Prefer semaphore over mutex.
9855         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9856         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9857         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9858         Suggested by Torvald Riegel <triegel@redhat.com>.
9860 2017-01-05  Bruno Haible  <bruno@clisp.org>
9862         lock: Provide guarantee to avoid writer starvation for rwlocks.
9863         The rationale is: 1) Read-preferring read-write locks are prone to
9864         writer starvation if the number of reader threads multiplied by the
9865         percentage of time they have the lock held is too high. 2) Write-
9866         preferring read-write locks are the only reliable way to avoid this.
9867         3) There have been reports of 'test-lock' hanging on glibc systems
9868         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9869         and glibc indeed implements read-preferring rwlocks by default, see
9870         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9871         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9872         * m4/pthread_rwlock_rdlock.m4: New file.
9873         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9874         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9875         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9876         of rwlock initialization on glibc systems without
9877         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9878         of rwlocks altogether on non-glibc systems without
9879         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9880         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9881         * lib/glthread/lock.c [USE_POSIX_THREADS]
9882         (glthread_rwlock_init_for_glibc): New function.
9883         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9884         comment.
9885         [USE_PTH_THREADS]: New implementation of rwlocks.
9886         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9887         readers.
9888         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9889         (Depends-on): Add 'extensions'.
9890         * tests/test-rwlock1.c: New file.
9891         * lock-tests (Files): Add it.
9892         (Depends-on): Add usleep.
9893         (Makefile.am): Add test-rwlock1 to the tests.
9895 2017-01-05  Bruno Haible  <bruno@clisp.org>
9897         thread: Fix pth port.
9898         * lib/glthread/thread.h (pth_init): Declare weak.
9899         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9900         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9901         function.
9903 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9905         parse-datetime: fix debug message on lone year number
9906         Input dates such as
9907           date -d "Apr 11 22:59:00 2011"
9908         are parsed as date (Apr 11, with default year 2016), then time, then a
9909         number (2011). Based on the combination of previously seen tokens,
9910         'digits_to_date_time' determines 2011 to be a year value.
9911         This fixes the debug messages to correctly show the updated year.
9912         Before:
9913             $ date --debug -d 'Apr 11 22:59:00 2011'
9914             date: parsed date part: (Y-M-D) 2016-04-11
9915             date: parsed time part: 22:59:00
9916             date: parsed number part: today/this/now
9917         After:
9918             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9919             date: parsed date part: (Y-M-D) 2016-04-11
9920             date: parsed time part: 22:59:00
9921             date: parsed number part: year: 2011
9922         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9923         'debug_year_seen' member fields.
9924         (digits_to_date_time): Update 'year_seen' as needed.
9925         (debug_print_current_time): Inform about year updates.
9926         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9928         parse-datetime: fix local timezone debug messages
9929         "Local timezones" are strings that affect only DST relative to the
9930         default timezone. The debug messages in parse-datetime.y printed
9931         wrong information when encountering local timezones.
9932         Examples:
9933         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9934              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9935              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9936         When the default timezone relates to the zone strings, EET/EEST are
9937         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9938         value (0/1, respectively):
9939              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9940              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9941         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9942         was seen, inform about DST change, don't print actual timezone.
9943         (debug_strfdatetime): If local timezone was seen, use default timezone
9944         (and adjust as needed) instead of using incorrect timezone.
9945         (parse_datetime2): Use correct time-zone source string, and adjust
9946         default timezone as needed.
9948         parse-datetime: add debug warning about DST changes
9949         Incorrect date arithmetic due to daylight saving time (DST) are a
9950         common (false) bug report in coreutils.
9951         Detect two such cases and print a warning:
9952         1. year/month/day adjustments (performed on 'struct tm'),
9953            where 'mktime' returns a different isdst value.
9954         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9955            where the result of 'localtime(3)' on the value will return a
9956            different isdst value.
9957         Note: DST changes could be harmless or unnoticeable.
9958         Examples (with 'TZ=America/New_York'):
9959         Unnoticeable: result is 2016-Dec-14
9960            $ date -d '2016-06-15 EDT + 6 months' +%b
9961            Dec
9962         Unnoticeable: result is 2016-Dec-15 11:00:00
9963            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9964            2016-12-15
9965         This is unexpected:
9966            $ date -d '2016-06-01 EDT + 6 months' +%F
9967            2016-11-30
9968         The new debug warnings will show:
9969            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9970            ...
9971            date: warning: daylight saving time changed after date adjustment
9972            ...
9973         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9974         print an appropriate warning message.
9976         parse-datetime: add debug warning about date arithmetic
9977         Date arithmetic are done directly on the fields of 'struct tm',
9978         which can result in invalid dates. Normalization with 'mktime(3)'
9979         will then produce a different date - which might cause unexpected
9980         results.
9981         Examples:
9982           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9983           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9984         Note that date normalization is not inherently wrong and not rejected,
9985         as it has legitimate uses:
9986           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9987         If the user asked to adjust months but 'mday' changed,
9988         or user asked to adjust years but 'month' changed - warn about it.
9989             $ ./src/date --debug -d '2016-10-31 - 1 month'
9990             ...
9991             date: warning: when adding relative months/years, \
9992                            it is recommended to specify the 15th of the month
9993             ...
9994             date: warning: month/year adjustment resulted in shifted dates:
9995             date:      adjusted Y M D: 2016 09 31
9996             date:    normalized Y M D: 2010 10 01
9997             ...
9998         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9999         a warning message. Improve recommendation of when to use 15 of the
10000         month or noon for date arithmetic.
10002         parse-datetime: fix debug message of relative part after timezone
10003         Relative part (e.g '+8 days') after a timezone string was not
10004         reported (was only reported after a timezone number). Due to the
10005         parser's structure, timezone strings with numbers were handled
10006         separately.
10007         before:
10008              # Timezone number + relative part: OK
10009              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
10010              ...
10011              date: parsed relative part: -8 day(s)
10012              # Timezone string + relative part: missing
10013              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
10014              [ missing message ]
10015         After: messages are printed in both cases.
10016         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
10018         parse-datetime: fix incorrect debug message on lone number
10019         A lone number is an absolute value, not a relative time part.
10020         before:
10021            $ date --debug -d '20130101'
10022            date: parsed number part: today/this/now
10023         After:
10024            $ ./src/date --debug -d '20130101'
10025            date: parsed number part: (Y-M-D) 2013-01-01
10026         * lib/parse-datetime.y ('item'/'number' tokens): Call
10027         'debug_print_current_time' instead of 'debug_print_relative_time'.
10029 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10031         doc: modernize for C11 etc.
10032         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
10033         for C11, MinGW, etc.  This responds to Paul Smith's question in:
10034         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
10036         dfa: prefer functions to FETCH_WC macro
10037         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
10038         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
10039         wint_t result into DFA->lex.wctok instead of to a separate arg.
10040         All callers changed.  Move more local decls closer to where
10041         they're used.
10043         dfa: narrow more local var scopes
10044         * lib/dfa.c: Move more local decls to be more local.
10046         dfa: remove duplicate assignment
10047         Problem reported by Bruno Haible in:
10048         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
10049         * lib/dfa.c (parse_bracket_exp): Simplify.
10051 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10053         dfa: simplify constraint-dependency checking
10054         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
10055         (prev_other_constraint): Remove.
10056         (prev_newline_dependent, prev_letter_dependent):
10057         Simplify, to avoid an unnecessary bitwise AND operation.
10059         dfa: prefer functions and constants to macros
10060         * lib/dfa.c: Prefer constants to macros where either will do.
10061         (streq, isasciidigit, newline_constraint)
10062         (letter_constraint, other_constraint, succeeds_in_context)
10063         (prev_newline_constraint, prev_letter_constraint)
10064         (prev_other_constraint, prev_newline_dependent)
10065         (prev_letter_dependent, accepting, accepts_in_context):
10066         Now static functions instead of function-like macros.
10067         Use lower-case names accordingly.  All uses changed.
10069         dfa: narrow more local var scopes
10070         * lib/dfa.c: Move some more local decls down to nearer where
10071         they're needed.
10073 2016-12-31  Jim Meyering  <meyering@fb.com>
10075         dfa: narrow the scope of many local variables
10076         * lib/dfa.c: Now that we are no longer constrained to c89, move
10077         declarations of many variables (often indices) "down" into the
10078         scope(s) where used or to the point of definition.  This is a
10079         no-semantic-change diff.
10081 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10083         version-etc: new year
10084         * build-aux/gendocs.sh (version):
10085         * doc/gendocs_template:
10086         * doc/gendocs_template_min:
10087         * doc/gnulib.texi:
10088         * lib/version-etc.c (COPYRIGHT_YEAR):
10089         Update copyright dates by hand in templates and the like.
10090         * all files: Run 'make update-copyright'.
10092 2016-12-31  Eric Blake  <eblake@redhat.com>
10094         do-release-commit-and-tag: avoid shell syntax error
10095         * build-aux/do-release-commit-and-tag (curr_br): $branch can
10096         contain spaces when rebasing.
10098         maint.mk: hoist gnulib_dir definition earlier
10099         * top/maint.mk (gnulib_dir): Move near top of file.
10101 2016-12-31  Jim Meyering  <meyering@fb.com>
10103         maint.mk: do not always evaluate intprops-related shell
10104         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
10105         using gnulib_dir undefined (gnulib_dir is defined later in the
10106         file, which will be fixed separately), and besides, there is no
10107         need to incur the cost of this shell invocation for every single
10108         use of this .mk file.  Reported by Eric Blake in
10109         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
10111 2016-12-30  Jim Meyering  <meyering@fb.com>
10113         maint.mk: improve sc_prohibit_intprops_without_use
10114         * top/maint.mk (_intprops_names): Don't hard-code the list of
10115         symbol names.  Instead, derive it on the fly.
10117 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10119         dfa: shorten sbit, success
10120         * lib/dfa.c (struct regex_syntax.sbit):
10121         (struct dfa.success): Use char, not int, for array elements, since
10122         they are all in the range 0..7.
10124         dfa: simplify multibyte_prop etc.
10125         This follows up on a change made when dfa.c was in grep, namely grep
10126         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
10127         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
10128         That earlier simplification allows for some more simplification
10129         and trimming down here.
10130         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
10131         (struct lexer_state): New mamber brack.
10132         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
10133         since they must be in the range 0..3 now.
10134         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
10135         the brack member now supersedes them.
10136         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
10137         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
10138         (dfaparse): Remove unnecessary initializations of already-0 storage.
10139         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
10140         (dfassbuild): No need to clear sup->mbcsets.
10142         dfa: minor performance tweak
10143         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
10145         dfa: wrap charclass inside a struct
10146         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
10147         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
10148         about 5% faster, where list.txt is generated by 'aspell dump
10149         master | head -n 100000 >list.txt'.  See Bug#22239.
10150         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
10151         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
10152         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
10153         Adjust to this, e.g., by using charclass * rather than charclass.
10154         All callers changed as needed.
10155         (copyset): Remove.  All uses changed to simple assignment.
10156         (parse_bracket_exp): Use zeroset instead of memset.
10158 2016-12-30  Jim Meyering  <meyering@fb.com>
10160         maint.mk: update list of intprops.h symbol names
10161         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
10162         This avoids a false failure of the sc_prohibit_intprops_without_use
10163         rule in grep.
10165 2016-12-29  Eric Blake  <eblake@redhat.com>
10167         getopt: fix parallel test failure
10168         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
10169         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
10170         * tests/test-getopt-main.h (main): Use different file names
10171         in case test-getopt-gnu and test-getopt-posix run in parallel.
10173 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10175         xalloc: x2nrealloc check for ptrdiff_t overflow
10176         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
10177         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
10179 2016-12-24  Bruno Haible  <bruno@clisp.org>
10181         lock test: Fix performance problem on multi-core machines.
10182         * tests/test-lock.c (USE_VOLATILE): New macro.
10183         (struct atomic_int): New type.
10184         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
10185         functions.
10186         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
10187         as 'struct atomic_int'.
10188         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
10189         reclock_checker_thread, test_recursive_lock): Use the new functions.
10190         Reported by Eric Blake in
10191         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
10192         and by Pádraig Brady in
10193         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
10195 2016-12-19  Bruno Haible  <bruno@clisp.org>
10197         vma-iter: Fix endless loop on 64-bit Windows.
10198         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
10199         'unsigned long'.
10201 2016-12-19  Bruno Haible  <bruno@clisp.org>
10203         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
10204         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
10205         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
10206         Invoke gt_TYPE_WINT_T instead.
10207         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
10208         * modules/stdint (Files): Add m4/wint_t.m4.
10209         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10210         * modules/wctype-h (Makefile.am): Likewise.
10211         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
10212         not only on MSVC.
10213         * lib/wctype.in.h (wint_t): Likewise.
10215 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10217         getopt-posix-tests: fix Makefile typo
10218         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
10219         Fix typo: the last ‘_’ was missing in the name.
10220         I suspect that the typo explains this build failure:
10221         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
10222         although I can’t reproduce the problem on Solaris 10 sparc.
10224 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10226         dfa: improve worst-case 'replace' performance
10227         See my note in Bug#22357#71.
10228         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
10229         (merge_constrained): New function, which is like
10230         the old 'merge' function, except with a new argument C2.
10231         Simplify the body by avoiding the need for different sections
10232         of code depending on whether one input is exhausted.
10233         (merge): Use the new function.
10234         (delete): Return the constraint of the deleted position,
10235         not the entire position.  Caller changed.
10236         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
10238 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10240         dfa: performance improvement for removal of epsilon closure
10241         See Bug#22357#32.
10242         * lib/dfa.c (delete): Use binary search to find deleted index.
10243         (replace): New function.  It replaces a position with the followed set.
10244         (epsclosure): Replace it with a new algorithm.  Update caller.
10246 2016-12-18  Bruno Haible  <bruno@clisp.org>
10248         Split tests for getopt-posix and getopt-gnu.
10249         * tests/test-getopt-posix.c: New file.
10250         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
10251         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
10252         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
10253         GNULIB_TEST_GETOPT_GNU.
10254         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
10255         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
10256         (Makefile.am): Test test-getopt-posix instead of test-getopt.
10257         * modules/getopt-gnu-tests: New file.
10258         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
10260 2016-12-18  Bruno Haible  <bruno@clisp.org>
10262         posix-modules: Add options for specific platforms.
10263         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
10264         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
10265         Invoke func_tmpdir. Filter out the excludes.
10267 2016-12-18  Bruno Haible  <bruno@clisp.org>
10269         getopt: Fix link error for users of getopt() in <unistd.h>.
10270         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
10271         __need_getopt is defined. Undefine all macros before defining them.
10272         * modules/getopt (Include): Clarify that including <unistd.h> is also
10273         OK.
10274         * tests/test-getopt.c: Add comment.
10276 2016-12-17  Bruno Haible  <bruno@clisp.org>
10278         getaddrinfo tests: Avoid compilation error on MSVC.
10279         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
10280         getaddrinfo on native Windows.
10282 2016-12-17  Bruno Haible  <bruno@clisp.org>
10284         getlogin, getlogin_r: Fix link errors on MSVC.
10285         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
10286         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
10287         (Link): New section.
10288         * modules/getlogin_r (Files): Add m4/getlogin.m4.
10289         (configure.ac): Require gl_LIB_GETLOGIN.
10290         (Link): New section.
10291         * NEWS: Mention the new link requirements.
10292         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
10293         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
10295 2016-12-17  Bruno Haible  <bruno@clisp.org>
10297         Un-deprecate the 'progname' module.
10298         * NEWS: Describe the appropriate use-cases of 'progname' versus
10299         'getprogname'. Based on discussion summary at
10300         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
10302 2016-12-17  Bruno Haible  <bruno@clisp.org>
10304         Reorganize NEWS a bit.
10305         * NEWS: Move some not so important changes away from section
10306         "Important Notes".
10308 2016-12-17  Bruno Haible  <bruno@clisp.org>
10310         tanhf: Avoid redefinition error on MSVC.
10311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
10312         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
10313         may be defined as an inline function.
10314         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
10315         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
10317 2016-12-17  Bruno Haible  <bruno@clisp.org>
10319         tanf: Avoid redefinition error on MSVC.
10320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
10321         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
10322         may be defined as an inline function.
10323         * modules/math (Makefile.am): Substitute REPLACE_TANF.
10324         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
10326 2016-12-17  Bruno Haible  <bruno@clisp.org>
10328         sqrtf: Avoid redefinition error on MSVC.
10329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
10330         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
10331         may be defined as an inline function.
10332         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
10333         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
10335 2016-12-17  Bruno Haible  <bruno@clisp.org>
10337         sinhf: Avoid redefinition error on MSVC.
10338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
10339         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
10340         may be defined as an inline function.
10341         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
10342         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
10344 2016-12-17  Bruno Haible  <bruno@clisp.org>
10346         sinf: Avoid redefinition error on MSVC.
10347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
10348         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
10349         may be defined as an inline function.
10350         * modules/math (Makefile.am): Substitute REPLACE_SINF.
10351         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
10353 2016-12-17  Bruno Haible  <bruno@clisp.org>
10355         logf: Avoid redefinition error on MSVC.
10356         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10357         may be defined as an inline function.
10359 2016-12-17  Bruno Haible  <bruno@clisp.org>
10361         log10l: Avoid redefinition error on MSVC.
10362         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10363         may be defined as an inline function.
10365 2016-12-17  Bruno Haible  <bruno@clisp.org>
10367         log10f: Avoid redefinition error on MSVC.
10368         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10369         may be defined as an inline function.
10371 2016-12-17  Bruno Haible  <bruno@clisp.org>
10373         hypotl: Avoid redefinition error on MSVC.
10374         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10375         may be defined as an inline function.
10377 2016-12-17  Bruno Haible  <bruno@clisp.org>
10379         hypotf: Avoid redefinition error on MSVC.
10380         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10381         may be defined as an inline function.
10383 2016-12-17  Bruno Haible  <bruno@clisp.org>
10385         fmodl: Avoid redefinition error on MSVC.
10386         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10387         may be defined as an inline function.
10389 2016-12-17  Bruno Haible  <bruno@clisp.org>
10391         fmodf: Avoid redefinition error on MSVC.
10392         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10393         may be defined as an inline function.
10395 2016-12-17  Bruno Haible  <bruno@clisp.org>
10397         expf: Avoid redefinition error on MSVC.
10398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10399         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10400         may be defined as an inline function.
10401         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10402         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10404 2016-12-17  Bruno Haible  <bruno@clisp.org>
10406         coshf: Avoid redefinition error on MSVC.
10407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10408         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10409         may be defined as an inline function.
10410         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10411         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10413 2016-12-17  Bruno Haible  <bruno@clisp.org>
10415         cosf: Avoid redefinition error on MSVC.
10416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10417         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10418         may be defined as an inline function.
10419         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10420         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10422 2016-12-17  Bruno Haible  <bruno@clisp.org>
10424         atan2f: Avoid redefinition error on MSVC.
10425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10426         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10427         may be defined as an inline function.
10428         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10429         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10431 2016-12-17  Bruno Haible  <bruno@clisp.org>
10433         atanf: Avoid redefinition error on MSVC.
10434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10435         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10436         may be defined as an inline function.
10437         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10438         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10440 2016-12-17  Bruno Haible  <bruno@clisp.org>
10442         asinf: Avoid redefinition error on MSVC.
10443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10444         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10445         may be defined as an inline function.
10446         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10447         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10449 2016-12-17  Bruno Haible  <bruno@clisp.org>
10451         acosf: Avoid redefinition error on MSVC.
10452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10453         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10454         may be defined as an inline function.
10455         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10456         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10458 2016-12-17  Bruno Haible  <bruno@clisp.org>
10460         Avoid redefinition errors on MSVC.
10461         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10462         the function may be defined as an inline function.
10463         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10464         the function may be defined as an inline function.
10466 2016-12-17  Bruno Haible  <bruno@clisp.org>
10468         Avoid redefinition errors on MSVC.
10469         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10470         * lib/unistd.in.h: Include <stdio.h> when necessary.
10472 2016-12-17  Bruno Haible  <bruno@clisp.org>
10474         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10475         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10476         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10477         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10478         WINT_MAX.
10480 2016-12-17  Bruno Haible  <bruno@clisp.org>
10482         Avoid autoconf warning.
10483         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10484         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10486 2016-12-17  Bruno Haible  <bruno@clisp.org>
10488         fpending: Revert workaround against Emacs bug.
10489         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10490         The Emacs bug is fixed by Eli Zaretskii in
10491         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10493 2016-12-17  Bruno Haible  <bruno@clisp.org>
10495         getlogin_r tests: Port to mingw.
10496         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10497         regression introduced on 2014-05-19.
10499 2016-12-17  Bruno Haible  <bruno@clisp.org>
10501         getlogin: Port to newer mingw.
10502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10503         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10504         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10505         HAVE_GETLOGIN.
10506         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10507         HAVE_GETLOGIN.
10508         * doc/posix-functions/getlogin.texi: Mention the issue.
10509         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10510         regression introduced on 2014-05-14.
10512 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10514         builtin-expect: improve port to IBM XL C
10515         Problem reported for z/OS by Daniel Richard G. in:
10516         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10517         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10518         Test for <builtins.h> directly.
10520         builtin-expect: port to IBM XL C
10521         Problem reported for z/OS by Daniel Richard G. in:
10522         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10523         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10524         Also allow __builtin_expect defined via a standard include file.
10526         regex: fix dependency
10527         Problem reported by Bruno Haible in:
10528         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10529         * modules/regex: Depend on builtin-expect.
10531         builtin-expect: new module
10532         Fix fnmatch to use it.
10533         Problem reported for z/OS by Daniel Richard G.
10534         * lib/fnmatch.c (__builtin_expect):
10535         * lib/glob.c (__builtin_expect):
10536         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10537         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10538         * lib/scandir.c (__builtin_expect):
10539         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10540         Remove macro; config.h now does this.
10541         * lib/gl_anytreehash_list1.h (add_to_bucket):
10542         * lib/regex_internal.h (BE):
10543         Assume __builtin_expect.
10544         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10545         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10546         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10547         * modules/scandir, modules/strstr-simple:
10548         Depend on builtin-expect.
10550 2016-12-15  Bruno Haible  <bruno@clisp.org>
10552         init.sh: Add possibility to not delete temporary files.
10553         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10554         to yes, don't erase the temporary directory.
10556 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10558         regex: fix integer-overflow bug in never-used code
10559         Problem reported by Clément Pit–Claudel in:
10560         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10561         * lib/regex_internal.h: Include intprops.h.
10562         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10563         behavior on integer overflow.
10564         * modules/regex (Depends-on): Add intprops.
10566         fpending: fix port to MinGW on Emacs
10567         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10568         Problem reported by Eli Zaretskii in:
10569         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10570         Is Plan 9 still a valid porting target, anyway?
10572 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10574         safe-alloc: use xalloc-oversized
10575         * lib/safe-alloc.c: Include xalloc-oversized.h.
10576         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10577         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10579         xalloc: do not exceed PTRDIFF_MAX
10580         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10581         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10582         bytes have pointer-subtraction problems.
10584         malloca: do not exceed PTRDIFF_MAX
10585         * lib/malloca.h: Include xalloc-oversized.
10586         (nmalloca): Use xalloc_oversized instead of rolling our own.
10587         * modules/malloca (Depends-on):
10588         * modules/relocatable-prog-wrapper (Depends-on):
10589         Add xalloc-oversized.
10591         quotearg: pacify GCC better
10592         * modules/quotearg (Depends-on): Add minmax, stdint.
10593         * lib/quotearg.c: Include minmax.h, stdint.h.
10594         (nslots): Now int, as there seems little point to going to extra
10595         work merely to support the INT_MAX slot, which nobody ever uses.
10596         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10597         and to catch (mostly-theoretical) ptrdiff_t problems too.
10598         This can be done via one comparison.
10600 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10602         xalloc-oversized: check for PTRDIFF_MAX too
10603         This avoids undefined behavior when subtracting pointers to
10604         objects containing more than PTRDIFF_MAX bytes.
10605         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10606         Also return 1 if the result would exceed PTRDIFF_MAX>
10607         * modules/xalloc-oversized (Depends-on):
10608         Add stdint.
10610         dfa: fix glitches in previous commit
10611         Sorry, I don't know how I managed to commit the wrong version.
10612         * lib/dfa.c (MIN): Move up.
10613         (xpalloc): Now static.
10615         dfa: fix some unlikely integer overflows
10616         I found these while reviewing the recent Coverity-related fix.
10617         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10618         size_t for object counts.  Using ptrdiff_t is the style typically
10619         used in Emacs; although it wastes a sign bit as sizes can never be
10620         negative, it makes -fsanitize=undefined more likely to catch
10621         integer overflows in index calculation, and nowadays the upside is
10622         typically more important than the downside.  Although perhaps the
10623         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10624         of dfa.c already does, since it uses state_num which is signed),
10625         that is a bigger change and is not needed to fix the bugs I found.
10626         * lib/dfa.c: Include stdint.h and intprops.h.
10627         (TOKEN_MAX): New macro.
10628         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10629         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10630         (realloc_trans_if_necessary, free_mbdata):
10631         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10632         This is safe because xpalloc checks that the sizes do not exceed
10633         either SIZE_MAX or PTRDIFF_MAX.
10634         (xpalloc): New function, mostly taken from Emacs.
10635         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10636         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10637         (charclass_index): Check for integer overflow in computing
10638         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10639         added to it later.
10640         (alloc_position_set): Check for integer overflow.  On typical
10641         platforms this check has zero overhead, since the constant
10642         expression is false.
10643         (realloc_trans_if_necessary):
10644         Remove assertion, which I hope Coverity no longer needs.
10646         * modules/dfa (Depends-on): Add intprops, stdint.
10648 2016-12-12  Jim Meyering  <meyering@fb.com>
10650         dfa: add an assertion to avoid coverity false positive
10651         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10652         warned that "newalloc1 - 2" could overflow.
10654 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10656         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10657         * dfa.h (DFA_CASE_FOLD): Remove.
10658         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10660 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10662         link: fix test to declare use of rename()
10663         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10664         -Werror=implicit-function-declaration
10666 2016-12-12  Bruno Haible  <bruno@clisp.org>
10668         fpending: Port to native Windows with MSVC.
10669         * lib/fpending.c: Include stdio-impl.h.
10670         (__fpending): Include all known implementations. Err out if it's not
10671         ported.
10672         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10673         * modules/fpending (Files): Add lib/stdio-impl.h.
10674         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10676 2016-12-12  Bruno Haible  <bruno@clisp.org>
10678         stdioext: Port to native Windows with MSVC.
10679         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10680         (struct _gl_real_FILE): New type.
10681         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10682         Windows.
10683         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10684         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10685         other SystemV derived implementations.
10686         * lib/fpurge.c (fpurge): Likewise.
10687         * lib/freadable.c (freadable): Likewise.
10688         * lib/freadahead.c (freadahead): Likewise.
10689         * lib/freading.c (freading): Likewise.
10690         * lib/freadptr.c (freadptr): Likewise.
10691         * lib/freadseek.c (freadptrinc): Likewise.
10692         * lib/fseeko.c (fseeko): Likewise.
10693         * lib/fseterr.c (fseterr): Likewise.
10694         * lib/fwritable.c (fwritable): Likewise.
10695         * lib/fwriting.c (fwriting): Likewise.
10696         Reported by Gisle Vanem <gvanem@yahoo.no>.
10698 2016-12-11  Jim Meyering  <meyering@fb.com>
10700         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10701         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10702         to work with most shells, but not with the one provided by many
10703         Solaris 10 systems, so running configure with such a /bin/sh evokes
10704         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10705         Reported by Assaf Gordon in
10706         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10708 2016-12-10  Bruno Haible  <bruno@clisp.org>
10710         threadlib: Optimize out runtime test on Solaris >= 10.
10711         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10712         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10713         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10715 2016-12-10  Bruno Haible  <bruno@clisp.org>
10717         stdint: Update doc about Solaris 9.
10718         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10720 2016-12-09  Bruno Haible  <bruno@clisp.org>
10722         c-ctype tests: Fix link error on Solaris 9.
10723         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10724         Reported at <https://savannah.gnu.org/bugs/?46827>.
10726 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10728         dfa: fix performance bug that recomputes trans
10729         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10730         25 on-demand changes.  The bug caused build_state to reset all
10731         d->trans elements to -2 even when d->trans was already non-null.
10732         Use C99 style decls after statements in this function.
10734         same-inode: port to MinGW
10735         Here st_ino is always 0, so change the definition of SAME_INODE so
10736         that 1 means the two files are the same, 0 with st_ino != 0 means
10737         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10738         reported by Bruno Haible (Bug#25146).
10739         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10740         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10742 2016-12-04  Bruno Haible  <bruno@clisp.org>
10744         javacomp-script: Support Java 7 and 8.
10745         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10746         target-version 1.7, 1.8.
10748 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10750         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10751         GPLv2" rewriting.
10753 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10755         * gnulib-tool (func_import): Adhere to the license guideline when
10756         rewriting the license text to "LGPLv3+ or GPLv2":
10757         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10759 2016-12-02  Bruno Haible  <bruno@clisp.org>
10761         localcharset: Avoid theoretical buffer overrun.
10762         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10763         return value from setlocale if it would lead to a buffer overrun.
10765 2016-12-01  Bruno Haible  <bruno@clisp.org>
10767         Relicense some modules under LGPLv2+.
10768         Kevin Cernekee's approval is in
10769         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10770         * modules/fseterr (License): Change to LGPLv2+.
10771         * modules/mbchar (License): Likewise.
10772         * modules/mbiter (License): Likewise.
10773         * modules/mbsnlen (License): Likewise.
10774         * modules/wcwidth (License): Likewise.
10776 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10778         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10779         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10780         OS/2 kLIBC.
10782 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10784         alphasort, scandir: Port to OS/2 kLIBC
10785         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10786         declaration.
10787         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10789 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10791         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10792         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10793         with '/@unixroot'.
10795 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10797         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10798         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10799         OS/2 kLIBC unless TCPV40HDRS is defined.
10801 2016-11-29  Jim Meyering  <meyering@fb.com>
10803         dfa: avoid new infinite loop
10804         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10805         * lib/dfa.c (dfastate): When constructing a new state table, we could
10806         initially declare that we had found a match, and later find that
10807         constraints eliminate that possibility, yet continue to use the
10808         now stale "matched" indicator.  That would lead to an infinite loop.
10809         The solution is to update "matched" when necessary.
10810         Introduced by commit v0.1-983-g403adf1.
10812 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10814         dfa: avoid match middle in multibyte character
10815         * lib/dfa.c (transit_state): If fails in matching single byte characters
10816         on a state including period expression in non-UTF8 multibyte locales,
10817         skip trailing bytes.
10818         (dfa_supported): Revert previous change.
10820 2016-11-27  Jim Meyering  <meyering@fb.com>
10822         dfa: avoid false match in non-UTF8 multibyte locales
10823         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10824         as "not supported" so that callers will resort to using regex-based
10825         matcher.  This will surely hurt performance, but correctness trumps
10826         performance here, and the affected locales are less and less relevant,
10827         these days.  See grep's bug report https://bugs.gnu.org/24975.
10829 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10831         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10832         * lib/ptsname_r.c: Include the appropriate headers.
10833         [__sun]: Delete sys/sysmacros.h include.
10834         [_AIX || __osf__]: Likewise.
10835         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10837 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10839         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10840         * lib/md4.c (md4_process_bytes): The existing define is made internal
10841         in recent versions of glibc, so also use this new public define.
10842         * lib/md5.c (md5_process_bytes): Likewise.
10843         * lib/sha1.c (sha1_process_bytes): Likewise.
10844         * lib/sha256.c (sha256_process_bytes): Likewise.
10845         * lib/sha512.c (sha512_process_bytes): Likewise.
10847 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10849         maint: use a more standard return from mbrtowc test
10850         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10851         from the test program as this often indicates an
10852         unhandled case in the test program.
10853         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10854         (gl_MBRTOWC_SANITYCHECK): Likewise.
10855         (gl_MBRTOWC_NULL_ARG2): Likewise.
10856         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10858 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10860         freopen: work around glibc bug with closed fd
10861         Work around glibc bug#15589, where freopen mishandles the case
10862         where stdin etc. are already closed.
10863         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10864         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10865         instead of __need_FILE, as the latter does not work with glibc.
10866         Include <fcntl.h>, for open flags.
10867         (rpl_freopen): Work around glibc bug.
10868         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10869         * modules/freopen (Depends-on): Add fcntl-h.
10870         * tests/test-freopen.c (main): Test for bug.
10872 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10874         fnmatch: fix typo introduced on 2016-08-17
10875         This fixes the port to non-GCC compilers that lack __builtin_expect.
10876         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10878         dfa: simplify with new function fillset
10879         * lib/dfa.c (fillset): New function.
10880         Use it for clarity when applicable.
10882         dfa: fix glitches with on-demand states
10883         Also, adjust commentary to better match new code.
10884         Some of these glitches predate the recent change.
10885         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10886         only non-initial states.
10887         (dfastate): Rename locals to better match new roles.
10888         Move them into nested scopes if this is easy.
10889         Omit unnecessary calls to zeroset.
10890         Simplify test for whether to throw in the positions of state 0.
10891         Omit C99-ism (decl after statement) since Gawk still wants C89.
10892         (build_state): Omit unnecessary test and assignment.
10893         Fix some confusion that counted transition tables inaccurately
10894         and could cause a memory leak.
10895         (dfaexec_main): Redo to make it clearer to the compiler that
10896         -1 and -2 are the only negative state numbers here.
10898 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10900         dfa: addition of new state on demand
10901         * src/dfa.c (dfastate): Add argument UC, the current input character.
10902         Fill only a group including the character in transition table.
10903         (realloc_trans_if_necessary): Add the dummy state which means that a
10904         transition table is assigned but the next state is not assigned.
10905         (build_state): Return the next state.  All callers updated.
10906         (transit_state_singlebyte): If we get the dummy state,
10907         fill the transition table.
10908         (dfaexec_main): Handle the dummy state.
10909         (free_mbdata, dfafree): Consider the dummy state.
10911 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10913         srclist: sync with released gettext
10914         * config/srclist.txt: Set "release" option to the files under
10915         $GETTEXT.
10917 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10919         srclist: add "release" option
10920         * config/srclist.txt: Change the format so that the first column
10921         of each line points to the top-level directory of the source
10922         archive.
10923         * config/srclist-update: Accept "release" option that checks files
10924         from the most recently tagged revision in the source archive.
10926 2016-11-21  Bruno Haible  <bruno@clisp.org>
10928         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10929         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10930         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10931         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10932         Inline and remove member function 'rpl ()' of the wrapper struct.
10934 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10936         dfa: fix logic typo
10937         Problem reported by Stephane Chazelas (Bug#24973).
10938         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10939         non-simple locales like fr_FR to be treated as simple.
10941 2016-11-20  Jim Meyering  <meyering@fb.com>
10943         fix test driver leaks: exclude, malloc, realloc
10944         * tests/test-exclude.c (main): Fix trivial leak.
10945         * tests/test-malloc-gnu.c (main): Likewise.
10946         * tests/test-realloc-gnu.c (main): Likewise.
10947         With these changes, grep's tests are now leak free.
10948         I.e., running them with ASAN elicits no failure:
10949           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10950             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10952 2016-11-11  Bruno Haible  <bruno@clisp.org>
10954         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10955         * modules/libunistring: (License): Change from LGPL to
10956         "LGPLv3+ or GPLv2".
10957         * modules/libunistring-optional: Likewise.
10958         * modules/unicase/*: Likewise.
10959         * modules/uniconv/*: Likewise.
10960         * modules/unictype/*: Likewise.
10961         * modules/unigbrk/*: Likewise.
10962         * modules/unilbrk/*: Likewise.
10963         * modules/uniname/*: Likewise.
10964         * modules/uninorm/*: Likewise.
10965         * modules/unistdio/*: Likewise.
10966         * modules/unistr/*: Likewise.
10967         * modules/uniwbrk/*: Likewise.
10968         * modules/uniwidth/*: Likewise.
10970 2016-11-12  Bruno Haible  <bruno@clisp.org>
10972         Relicense some modules under LGPLv2+.
10973         Paul Eggert's approval is in
10974         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10975         Eric Blake's approval is in
10976         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10977         Ludovic Courtès's approval is in
10978         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10979         * modules/isnand-nolibm (License): Change to LGPLv2+.
10980         * modules/isnanf-nolibm (License): Likewise.
10981         * modules/isnanl-nolibm (License): Likewise.
10983 2016-11-19  Bruno Haible  <bruno@clisp.org>
10985         Relicense some modules under LGPLv2+.
10986         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10987         modules/vasnprintf.
10988         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10989         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10990         All other significant changes to the files in lib/ of these modules
10991         are from me.
10992         * modules/memcmp2 (License): Change to LGPLv2+.
10993         * modules/amemxfrm (License): Likewise.
10994         * modules/fpieee (License): Likewise.
10995         * modules/fpucw (License): Likewise.
10996         * modules/frexp-nolibm (License): Likewise.
10997         * modules/frexpl-nolibm (License): Likewise.
10998         * modules/printf-frexp (License): Likewise.
10999         * modules/printf-frexpl (License): Likewise.
11000         * modules/printf-safe (License): Likewise.
11001         * modules/signbit (License): Likewise.
11003 2016-11-17  Bruno Haible  <bruno@clisp.org>
11005         Enable Unicode decoder safety unconditionally.
11006         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
11007         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
11008         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11009         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11010         * lib/unistr/u8-prev.c (u8_prev): Likewise.
11011         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
11012         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
11013         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
11014         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
11015         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
11016         * lib/unistr/u16-prev.c (u16_prev): Likewise.
11017         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
11018         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
11019         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
11020         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
11021         * lib/unistr/u32-prev.c (u32_prev): Likewise.
11022         * lib/unistr/u32-next.c (u32_next): Likewise.
11023         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
11024         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
11025         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11026         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
11027         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
11028         CONFIG_UNICODE_SAFETY tests unconditionally.
11029         * tests/unistr/test-u32-mblen.c (main): Likewise.
11030         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
11031         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
11032         * tests/unistr/test-u32-next.c (main): Likewise.
11033         * tests/unistr/test-u32-strmblen.c (main): Likewise.
11034         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
11035         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
11036         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
11037         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
11038         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11039         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
11040         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
11041         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
11042         * lib/unistr/u16-check.c (u16_check): Update comment.
11043         * NEWS: Mention the changes that callers should be aware of.
11045 2016-11-19  Bruno Haible  <bruno@clisp.org>
11047         relocatable-prog-wrapper: Fix breakage on Cygwin.
11048         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
11049         (Depends-on): Remove intprops.
11050         * lib/relocwrapper.c: Update dependency tree.
11051         (strerror): Undefine.
11052         * build-aux/install-reloc (func_create_wrapper): Do not compile
11053         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
11055 2016-11-19  Bruno Haible  <bruno@clisp.org>
11057         strerror: Make it compile in C++ mode.
11058         * lib/strerror.c (strerror): Ignore the return value of memcpy().
11060 2016-11-15  Pedro Alves  <palves@redhat.com>
11062         sys_time: add gnulib::timeval for C++
11063         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
11064         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
11065         timeval macro.
11067 2016-11-14  Pedro Alves  <palves@redhat.com>
11069         snippet/c++defs: fix real-floating arg functions in C++ mode
11070         Also, define isfinite, isinf, isnan, signbit in the gnulib
11071         namespace instead of in the global namespace.
11072         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
11073         (_GL_END_NAMESPACE): New.
11074         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
11075         (isfinite, isinf, isnan, signbit) [__cplusplus &&
11076         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
11077         instead of in the global namespace.
11078         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
11079         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
11080         of in the global namespace.
11082 2016-11-13  Jim Meyering  <meyering@fb.com>
11084         strftime: don't use __THROW
11085         Each use of __THROW would provoke this from gcc-7-to-be:
11087           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
11088             on unit local functions [-Wattributes]
11089           static int iso_week_days (int, int) __THROW;
11090           ^~~~~~
11091         * lib/strftime.c (__THROW): Don't define.
11092         Remove each use of __THROW.
11093         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
11094         (tm_diff, iso_week_days, __strftime_internal): Likewise.
11096 2016-11-14  Paul Eggert  <eggert@union>
11098         obstack: port to gcc -fcheck-pointer-bounds
11099         Problem found by 'make check' failure on bleeding-edge coreutils
11100         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
11101         6.2.0-5ubuntu12), configured via "./configure
11102         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
11103         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
11104         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
11105         New macro, copied from fts_.h.
11106         (struct _obstack_chunk.contents): Use it.
11108 2016-11-14  Eric Blake  <eblake@redhat.com>
11110         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
11111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
11112         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
11114 2016-11-14  Pádraig Brady  <P@draigBrady.com>
11116         strptime: fix compile error in recent change
11117         * lib/strptime.c (__strptime_internal): Fix ported code.
11119 2016-11-11  Bruno Haible  <bruno@clisp.org>
11121         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
11122         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
11123         (func_import): Extend determination of license_incompatibilities.
11124         (func_create_testdir): Extend table of license compatibility. Handle
11125         also the licenses GPLv3+, GPL, LGPLv3+.
11127 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
11129         strftime: tune %q
11130         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
11132         Merge strftime.c changes from glibc
11133         This incorporates:
11134         2007-10-16 [BZ #5184] Add tzset_called argument
11135         2008-06-13 [BZ #6612] pass reference to tzset_called around
11136         2009-10-30 Implement Burmese language locale for Myanmar
11137         2010-01-09 Add support for XPG7 testing
11138         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
11139         2015-10-20 Convert miscellaneous function definitions to prototype style
11140         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
11141         it anyway and this lessens the difference between gnulib and glibc.
11142         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
11143         (__THROW): Define if standard headers do not.
11144         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
11145         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
11146         Declare with __THROW.
11147         (__strftime_internal): Rename from strftime_case_. Add arg for
11148         whether tzset is called.  All uses changed.  Call tzset at most
11149         once.  Allow %OC, for Burmese.
11150         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
11151         Don't assume values are in range.
11153 2016-11-12  Eric Blake  <eblake@redhat.com>
11155         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
11156         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
11157         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
11158         different value.
11160 2006-11-12  Pedro Alves  <palves@redhat.com>
11162         Fix gnulib C++ namespace support and std::frexp
11163         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
11164         _GL_CXXALIASWARN.
11166 2006-11-12  Pedro Alves  <palves@redhat.com>
11168         GNULIB_NAMESPACE::func need not pull in rpl_func
11169         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
11170         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
11171         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
11172         struct instead of a function pointer.
11174 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
11176         manywarnings: fix -Wno-missing-field-initializers detection
11177         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
11178         to be independent of -Wunused-variable.  I.E. ensure the latter
11179         warning doesn't occur so that detection of the former is accurate.
11181 2016-11-05  Pádraig Brady  <pbrady@fb.com>
11183         strftime,strptime: support %q to represent the quarter
11184         * lib/strftime.c (strftime_case_): Add %q case.
11185         * lib/strptime.c (__strptime_internal): Likewise.
11186         * tests/test-strftime.c (quarter_test): A new test case.
11188 2016-11-03  Eric Blake  <eblake@redhat.com>
11190         bootstrap: Fix get_version() for AIX 5.3
11191         * build-aux/bootstrap (get_version): Factor out sed script, since
11192         indented comments choke AIX 5.3 sed.
11193         Reported-by: Michael Felt <aixtools@gmail.com>
11195 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11197         intprops: port to older XL C
11198         Problem reported by Alexander Samoilov in:
11199         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
11200         http://savannah.nongnu.org/bugs/?49448
11201         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
11202         Define to 1 only for XL C 12.1 or later, since this bug
11203         occurs in XL C for AIX 6.0 but not in 12.1.
11205 2016-11-02  Pádraig Brady  <P@draigBrady.com>
11207         backupfile: initialize default suffix within the implementation
11208         * lib/backupfile.c (find_backup_file_name): Initialize the
11209         global variable here, to simplify usage, and to only call
11210         getenv() when needed.
11212 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11214         futimens: remove FIXME for old Linux kernels
11215         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
11216         this in 2012" FIXME, like that for utimensat.
11218         utimensat: remove FIXME for old Linux kernels
11219         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
11220         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
11221         this in 2012" FIXME, by assuming the file system bug is absent
11222         unless demonstrated to be present.  We no longer need to worry
11223         about Linux kernel 2.6.32 when building with newer kernels.
11225 2016-10-16  Bruno Haible  <bruno@clisp.org>
11227         qsort_r: Fix macrology for platforms that lack the function.
11228         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
11229         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
11230         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
11231         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
11232         not exist.
11233         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
11234         the function exists.
11235         * modules/qsort_r: Add comments.
11237 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11239         sys_types: fix Texinfo typos
11240         * doc/glibc-functions/gnu_dev_major.texi:
11241         * doc/glibc-functions/gnu_dev_makedev.texi:
11242         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
11244 2016-10-26  John David Anglin  <dave.anglin@bell.net>
11246         getprogname: port to HP-UX
11247         See Bug#24805.
11248         * lib/getprogname.c (getprogname) [__hpux]: Port.
11249         * tests/test-getprogname.c (STREQ) [__hpux]:
11250         Special-case for HP-UX limitations on program name length.
11252 2016-10-20  Bruno Haible  <bruno@clisp.org>
11254         Update doc about target platforms.
11255         * doc/gnulib-intro.texi (Target Platforms): Update list.
11257 2016-10-15  Bruno Haible  <bruno@clisp.org>
11259         opendir, readdir, closedir: Relicense under LGPLv2+.
11260         * modules/opendir (License): Change to LGPLv2+.
11261         * modules/readdir (License): Likewise.
11262         * modules/closedir (License): Likewise.
11264 2016-10-16  Bruno Haible  <bruno@clisp.org>
11266         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
11267         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
11268         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
11269         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
11270         HAVE_DECL_STRERROR_R.
11272 2016-10-16  Bruno Haible  <bruno@clisp.org>
11274         Make the 'argp' module work without the 'error' module.
11275         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
11277 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11279         diffseq: restore TOO_EXPENSIVE heuristic
11280         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
11281         (Bug#24715).  The simplest solution is to restore the
11282         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
11283         using a higher threshold to avoid Bug#16848 on smaller files.
11284         * lib/diffseq.h (struct context): Restore member too_expensive.
11285         (struct partition): Restore members lo_minimal, hi_minimal.
11286         (diag, compareseq): Restore arg find_minimal.  All uses changed.
11287         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
11288         1993 to make 'diff' run faster (but not as well) on large inputs,
11289         but use a threshold of 4096 instead of the old 256.
11290         * lib/fstrcmp.c (strcmp_bounded):
11291         * lib/git-merge-changelog.c (compute_differences):
11292         Adjust to diffseq.h changes.
11294 2016-10-22  Bruno Haible  <bruno@clisp.org>
11296         iconv: Avoid compilation error when bootstrapping GNU libiconv.
11297         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
11298         declaration yet, define ICONV_CONST to empty.
11300 2016-10-15  Bruno Haible  <bruno@clisp.org>
11302         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
11303         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
11304         module.
11306 2016-10-16  Bruno Haible  <bruno@clisp.org>
11308         system-quote tests: Avoid compiler warning on AIX.
11309         * tests/test-system-quote-child.c (fopen): Redefine like the system's
11310         <stdio.h> does.
11312 2016-10-16  Bruno Haible  <bruno@clisp.org>
11314         Fix some "gcc -Wall" warnings.
11315         * tests/test-ffsl.c (main): Use variable x, not i.
11316         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
11317         freopen.
11318         * tests/test-sethostname1.c (main): Explicitly ignore the return value
11319         of sethostname.
11321 2016-10-16  Bruno Haible  <bruno@clisp.org>
11323         gnulib-tool: Make --create-testdir on all modules work again.
11324         * gnulib-tool (func_create_testdir): Don't include the
11325         non-recursive-gnulib-prefix-hack module.
11327 2016-10-21  Daiki Ueno  <ueno@gnu.org>
11329         libunistring: change the maintainer to 'all'
11330         * modules/gen-uni-tables, modules/libunistring:
11331         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
11332         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
11333         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
11334         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
11335         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
11336         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
11337         * modules/uniwidth/*: Change the maintainer to 'all'.
11339 2016-10-16  Bruno Haible  <bruno@clisp.org>
11341         Simplify "configure: checking ..." messages.
11342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
11343         AC_MSG_NOTICE.
11344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11346 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11348         quotearg-tests: pacify gcc -Wall
11349         Problem reported by Bruno Haible in:
11350         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
11351         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
11352         * tests/test-quotearg.h: ... from here.
11354 2016-10-20  Pádraig Brady  <P@draigBrady.com>
11356         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11357         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11358         Needed on Centos <= 4.
11360 2016-10-20  Jim Meyering  <meyering@fb.com>
11362         printf.m4: fix a bug in detecting printf %j support
11363         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11364         uintmax_t is defined in neither stdint.h nor inttypes.h.
11365         Before, this macro might have mistakenly set
11366         gl_cv_func_printf_sizes_c99=yes on such a system.
11367         Spotted by Zev Weiss.
11369 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11371         sched: substitute HAVE_SYS_CDEFS_H too
11372         Problem reported by Tom G. Christensen in:
11373         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11374         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11375         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11377 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11379         quotearg: never write beyond the returned length
11380         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11381         scan of the string when we initially encounter a single quote when
11382         shell quoting, so that if we then switch to a more concise quoting method
11383         we will not have written beyond that returned length.
11384         This is significant for sh-quote, which has separate routines
11385         to determine the length and do the actual quoting.
11386         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11387         now that we never write more than the returned length.
11389 2016-10-18  Bruno Haible  <bruno@clisp.org>
11391         getprogname tests: Avoid failure in packages that use libtool.
11392         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11393         Based on a patch by Jim Meyering.
11395 2016-10-16  Bruno Haible  <bruno@clisp.org>
11397         getprogname: Fix test failure on Cygwin. Comments.
11398         * lib/getprogname.h: Add comments.
11399         * lib/getprogname.c: Add comments. Fix #elif indentation.
11400         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11401         ".exe" suffix.
11403 2016-10-16  Bruno Haible  <bruno@clisp.org>
11405         Make sure the libunistring detection rejects older versions with a
11406         known bug.
11407         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11408         * modules/unistr/u16-strtok (configure.ac): Likewise.
11409         * modules/unistr/u32-strtok (configure.ac): Likewise.
11411 2016-10-18  Bruno Haible  <bruno@clisp.org>
11413         sh-quote, system-quote: revert regression of unit test.
11414         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11415         * tests/test-system-quote-main.c (check_one): Likewise.
11417 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11419         quotearg: fix stale tests
11420         * tests/test-quotearg.c [locale_results]: Add the missing str7
11421         entries to the expected results.
11422         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11423         don't write beyond the returned length, since that's no longer the
11424         case if we switch to a more concise quoting style.
11425         * tests/test-sh-quote.c (check_one): Likewise.
11426         (main): Adjust for the new more concise quoting style.
11427         Reported by Bruno Haible.
11429 2016-10-16  Jim Meyering  <meyering@fb.com>
11431         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11432         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11433         to "$1".  This macro is always invoked with $1 == lib.
11434         Spotted by Bruno Haible
11436 2016-10-16  Bruno Haible  <bruno@clisp.org>
11438         Fix a test crash.
11439         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11440         fails.
11442 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11444         test-limits-h: suppress -Woverlength-strings
11445         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11447 2016-10-15  Bruno Haible  <bruno@clisp.org>
11449         gettime, timespec, utimens: Relicense under LGPL.
11450         * modules/gettime (License): Change to LGPL.
11451         * modules/timespec (License): Likewise.
11452         * modules/utimens (License): Likewise.
11454 2016-10-14  Bruno Haible  <bruno@clisp.org>
11455             Pádraig Brady  <P@draigBrady.com>
11457         canonicalize-lgpl: Support the case path_max > INT_MAX.
11458         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11459         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11461 2016-10-13  Jim Meyering  <meyering@fb.com>
11463         getprogname: IBM z/OS: avoid NULL-dereference
11464         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11465         upon strdup failure.
11467 2016-10-12  Jim Meyering  <meyering@fb.com>
11469         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11470         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11471         and an abbreviated diagnostic rather than verify with the full one,
11472         because the full-length strings would evoke warnings from gcc with
11473         -Woverlength-strings.
11475 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11477         stdint: port SIZE_MAX to glibc s390
11478         Problem reported by Eric Blake in:
11479         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11480         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11481         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11482         correct type, if possible.
11484 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11486         getprogname: port to IBM z/OS
11487         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11489 2016-10-11  Jim Meyering  <meyering@fb.com>
11491         maint: remove stray space after "." in AC_DEFINE comment.
11492         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11493         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11495 2016-10-05  Jim Meyering  <meyering@fb.com>
11497         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11498         * lib/long-options.c (parse_long_options): Add a break statement
11499         to avoid this new warning/failure:
11500         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11501           --create-testdir --dir=/t/x --with-tests --test long-options
11502         ../../gllib/long-options.c: In function 'parse_long_options':
11503         ../../gllib/long-options.c:66:12: error: this statement may \
11504           fall through [-Werror=implicit-fallthrough]
11505                    (*usage_func) (EXIT_SUCCESS);
11506                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11508 2016-10-05  Jim Meyering  <meyering@fb.com>
11510         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11511         Testing this module would fail when using GCC 7 like this:
11512         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11513           --dir=/tmp/x --with-tests --test utimecmp
11514         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11515         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11516           [-Werror=bool-operation]
11517                          time_t s = src_s & ~ (res == 2 * BILLION);
11518                                             ^
11519         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11520           [-Werror=bool-operation]
11521                src_s &= ~ (res == 2 * BILLION);
11522                         ^
11523         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11524         Instead, make it explicit that we intend to apply it to 0 or 1.
11526 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11528         dfa: save memory for states
11529         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11530         states if dfa has a lot of caches.
11532 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11534         wchar, wctype-h: fix for MinGW 3.22.2
11535         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11536         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11537         when included from <string.h>.
11538         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11539         convention for MinGW 3.22.2, to solve issues with their
11540         wctype.h when included from <ctype.h>.
11542 2016-10-05  Jim Meyering  <meyering@fb.com>
11544         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11545         * lib/long-options.c (parse_long_options): Add a break statement
11546         to avoid this new warning/failure:
11547         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11548           --create-testdir --dir=/t/x --with-tests --test long-options
11549         ../../gllib/long-options.c: In function ‘parse_long_options’:
11550         ../../gllib/long-options.c:66:12: error: this statement may \
11551           fall through [-Werror=implicit-fallthrough]
11552                    (*usage_func) (EXIT_SUCCESS);
11553                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11555         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11556         Testing this module would fail when using GCC 7 like this:
11557         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11558           --dir=/tmp/x --with-tests --test utimecmp
11559         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11560         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11561           [-Werror=bool-operation]
11562                          time_t s = src_s & ~ (res == 2 * BILLION);
11563                                             ^
11564         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11565           [-Werror=bool-operation]
11566                src_s &= ~ (res == 2 * BILLION);
11567                         ^
11568         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11569         Instead, make it explicit that we intend to apply it to 0 or 1.
11571 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11573         quotearg: minimize shell quoting using double quotes
11574         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11575         quote in encountered then use double quotes (c style quoting)
11576         when possible, as it simplifies the quoting.
11577         * tests/test-quotearg-simple.c: Add test cases.
11578         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11579         for the fact we now may write beyond the returned length.
11581 2016-10-02  Jim Meyering  <meyering@fb.com>
11583         vasnprintf.c: avoid spurious warning from GCC 7
11584         The presence of cpp directives renders this "FALLTHROUGH" comment
11585         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11586         from GCC 7 built from git on 2016-10-02.
11587         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11588         directives, so that it takes effect once again.  This is clearly
11589         not a proper change, and I will revert it once this bug is fixed:
11590         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11592 2016-10-01  Jim Meyering  <meyering@fb.com>
11594         getprogname: correct the test for a __progname variable
11595         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11596         and AC_LINK_IFELSE to check for a global __progname.  If found,
11597         define HAVE_VAR___PROGNAME.
11598         * lib/getprogname.c (getprogname): Reflect the new name of the
11599         feature- checked preprocessor symbol:
11600         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11602 2016-09-28  Jim Meyering  <meyering@fb.com>
11604         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11605         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11606         fall-through case with a /* fallthrough */ comment.
11608         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11609         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11610         /* fallthrough */ comment.
11612         getprogname: avoid __progname vs program_invocation_short_name pitfall
11613         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11614         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11615         not with Fedora 24's glibc-2.23.1-10.
11616         * lib/getprogname.c (__progname): Move this declaration down...
11617         (getprogname): ... into the #elif block where used, and make it
11618         explicitly "extern".
11620         getprogname: port to OpenBSD 5.1
11621         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11622         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11623         * modules/getprogname (configure.ac): Move most of this code...
11624         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11625         increment serial number, and add a test for __progname.
11626         https://bugs.gnu.org/24562
11627         Reported by Nelson H. F. Beebe.
11629 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11631         sched: port to GCC 6.2.1 on macOS Sierra
11632         Problem reported by Denis Davydov in:
11633         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11634         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11635         Include <sys/cdefs.h> before <sched.h>.
11636         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11637         so that we needn’t worry about the sched.h include bug here.
11638         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11639         and include it before <sched.h> if it exists, when
11640         checking for <sched.h>.
11642         tests/init.sh: port Alpine fix to AIX 7.1
11643         * tests/init.sh (compare_): When attempting to use diff -U3,
11644         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11645         diff -u not outputting a space after leading '+', as the users
11646         of 'compare' should not be that picky about its output format.
11647         In the AIX 7.1 case, return with diff exit status (or with 2 if
11648         trouble), instead of some random nonzero exit status.
11649         * tests/test-init.sh (test_compare): Remove space after leading
11650         '+', so that AIX 7.1 'diff' passes the test.
11652 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11654         nl_langinfo: pacify GCC
11655         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11656         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11658         stdint: also set GL_GENERATE_LIMITS_H
11659         Problem reported by Jim Meyering in:
11660         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11661         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11663         limits-h, stdint: Don't assume extensions, fix typo
11664         * m4/limits-h.m4 (gl_LIMITS_H):
11665         * m4/stdint.m4 (gl_STDINT_H):
11666         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11667         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11668         reported by Jim Meyering in:
11669         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11671 2016-09-21  Jim Meyering  <meyering@fb.com>
11673         getprogname: port to AIX
11674         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11675         and strdup to obtain a short program name string.  Using code from
11676         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11677         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11678         Assaf Gordon reported that this new file would fail to compile on
11679         AIX-7.1 32bit.
11681 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11683         extensions: fix typo in comment
11684         * m4/extensions.m4: Sync from Autoconf master.
11686         stdint: support new _WIDTH macros
11687         * doc/posix-headers/stdint.texi: Document this.
11688         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11689         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11690         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11691         * modules/stdint (Depends-on): Add limits-h.
11692         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11693         * modules/stdint-tests (Depends-on): Add extensions, so that
11694         INTMAX_MAX etc. are defined.
11695         * tests/test-stdint.c: Verify the new macros.
11697         limits-h: new module
11698         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11699         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11700         * doc/posix-headers/limits.texi: Document new module.
11701         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11702         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11704         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11705         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11706         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11707         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11709 2016-09-15  Eric Blake  <eblake@redhat.com>
11711         sys_types: avoid glibc 2.25 warnings about major()
11712         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11713         older autoconf.
11714         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11715         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11716         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11717         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11719         mountlist: include sysmacros.h for glibc
11720         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11721         AC_HEADER_MAJOR.
11722         * lib/mountlist.c (includes): Use correct headers.
11724 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11726         extensions: port to more ISO C TSes
11727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11728         master, to add support for more recent ISO C TRs and TSes.
11730 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11732         intprops: new macro TYPE_WIDTH
11733         * lib/intprops.h (TYPE_WIDTH): New macro.
11734         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11735         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11736         * lib/parse-datetime.y (parse_datetime2):
11737         Use it.
11739         extensions: port to recent ISO C TRs
11740         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11741         Sync from Autoconf master, to add support for recent ISO C TRs.
11742         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11743         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11744         the MinGW option is not an extension.
11746 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11748         dfa: port to Solaris 9
11749         Problems reported by Tom G. Christensen in:
11750         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11751         * modules/dfa (Depends-on): Add isblank.
11752         * modules/dfa-tests (dfa_match_aux_LDADD):
11753         Rename from test_stat_LDADD, to fix typo.
11754         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11756 2016-09-10  Jim Meyering  <meyering@fb.com>
11758         strverscmp: avoid link failure on OS X
11759         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11760         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11762 2016-08-16  Jim Meyering  <meyering@fb.com>
11764         dfa: new module, importing grep's DFA matcher
11765         Since grep's DFA matcher is now being used by two gnulib-enabled
11766         projects, grep and sed, it makes sense to version-control its
11767         sources and unit tests in one place: here.
11768         * modules/dfa: New module.
11769         * modules/dfa-tests: New file.
11770         * lib/dfa.c: New file, from grep.
11771         * lib/dfa.h: Likewise.
11772         * lib/localeinfo.c: Likewise.
11773         * lib/localeinfo.h: Likewise.
11774         * tests/dfa-match-aux.c: Likewise.
11775         * tests/dfa-invalid-char-class.sh: Likewise.
11776         * tests/dfa-match.sh: Likewise, with minor changes.
11777         * MODULES.html.sh (Misc): Add "dfa" to this list.
11779 2016-09-09  Jim Meyering  <meyering@fb.com>
11781         getprogname-tests: don't depend on assert-h
11782         * modules/getprogname-tests (Depends-on): Remove assert-h.
11783         It was not needed, and in fact would cause build failure for
11784         coreutils on some systems.  Reported by Assaf Gordon in https:
11785         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11787 2016-09-07  Jim Meyering  <meyering@fb.com>
11789         getprogname-tests: work also when EXEEXT is nonempty
11790         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11791         * tests/test-getprogname.c (main): Use it.
11792         Suggested by Gisle Vanem.
11794 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11796         getprogname: fix errors in previous change
11797         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11798         s/program_invocation_name/base/
11799         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11801 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11803         parse-datetime: restrict debug output to input string
11804         * lib/parse-datetime.y (parse_datetime2): If we parse
11805         all of the input but determine it's invalid, ensure
11806         we don't output the now invalid input pointer.
11807         This issue was seen with `date -d 'now +1'`.
11809 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11811         flexmember: new macro FLEXALIGNOF
11812         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11813         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11814         this macro.  Update comments.
11816 2016-09-07  Jim Meyering  <meyering@fb.com>
11818         getprogname: port to systems with __argv (mingw, msvc)
11819         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11820         last_component: more general than open coding it with hard-coded "/".
11821         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11822         * modules/getprogname (Depends-on): Add dirname-lgpl.
11823         (configure.ac): Check for __argv in <stdlib.h>.
11824         * modules/getprogname-tests: New file.
11825         * tests/test-getprogname.c: New file.
11826         Suggested by Gisle Vanem in
11827         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11829 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11831         flexmember: port better to GCC + valgrind
11832         With a char[] flexible array member in a struct with nontrivial
11833         alignment, GCC-generated code can access past the end of the
11834         array, because GCC assumes there are padding bytes to get the
11835         struct aligned.  So the common idiom of malloc (offsetof (struct
11836         s, m), n) does not properly allocate an n-byte trailing member, as
11837         malloc’s argument should be the next multiple of alignof (struct s).
11838         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11839         Although C11 apparently permits this GCC optimization (i.e., there
11840         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11841         See the thread containing:
11842         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11843         * lib/flexmember.h: New file.
11844         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11845         * lib/localename.c, lib/time_rz.c:
11846         Include flexmember.h.
11847         * lib/fnmatch_loop.c (struct patternlist):
11848         * lib/localename.c (struct hash_node):
11849         Use FLEXIBLE_ARRAY_MEMBER.
11850         * lib/fnmatch_loop.c (EXT):
11851         * lib/fts.c (fts_alloc):
11852         * lib/glob.c (glob_in_dir):
11853         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11854         * lib/localename.c (gl_lock_define_initialized):
11855         * lib/time_rz.c (tzalloc):
11856         Use FLEXSIZEOF instead of offsetof.
11857         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11858         Check that the size of the struct can be taken.
11859         * modules/flexmember (Files): Add lib/flexmember.h.
11860         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11861         Add flexmember.
11863 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11865         getprogname: port to Solaris 10
11866         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11867         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11868         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11870         stdalign: correct mistake in alignof doc
11871         Problem reported by Joseph Myers in:
11872         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11873         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11874         alignof(S) where S is a structure containing a flexible array
11875         member.  The Gnulib substitute does not support this, but C11 does.
11877 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11879         main.mk: remove sc_program_name, since there is no more need to
11880         use set_program_name in tools (getprogname is enough for most
11881         of the cases).
11882         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11883         * top/maint.mk (sc_program_name): Remove.
11885 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11887         Port tests away from progname, since modules that need the
11888         program name already depend on getprogname.
11889         * modules/acl-tests (Depends-on): Remove progname.
11890         * modules/argmatch (Depends-on): Likewise.
11891         * modules/argmatch-tests (Depends-on): Likewise.
11892         * modules/argp-tests (Depends-on): Likewise.
11893         * modules/argp-version-etc-tests (Depends-on): Likewise.
11894         * modules/array-list-tests (Depends-on): Likewise.
11895         * modules/array-oset-tests (Depends-on): Likewise.
11896         * modules/avltree-list-tests (Depends-on): Likewise.
11897         * modules/avltree-oset-tests (Depends-on): Likewise.
11898         * modules/avltreehash-list-tests (Depends-on): Likewise.
11899         * modules/carray-list-tests (Depends-on): Likewise.
11900         * modules/copy-file-tests (Depends-on): Likewise.
11901         * modules/exclude-tests (Depends-on): Likewise.
11902         * modules/fchownat-tests (Depends-on): Likewise.
11903         * modules/fdopendir-tests (Depends-on): Likewise.
11904         * modules/filenamecat-tests (Depends-on): Likewise.
11905         * modules/fstatat-tests (Depends-on): Likewise.
11906         * modules/fstrcmp-tests (Depends-on): Likewise.
11907         * modules/linked-list-tests (Depends-on): Likewise.
11908         * modules/linkedhash-list-tests (Depends-on): Likewise.
11909         * modules/mkdirat-tests (Depends-on): Likewise.
11910         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11911         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11912         * modules/obstack-printf-tests (Depends-on): Likewise.
11913         * modules/openat-tests (Depends-on): Likewise.
11914         * modules/parse-datetime-tests (Depends-on): Likewise.
11915         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11916         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11917         * modules/quotearg-simple-tests (Depends-on): Likewise.
11918         * modules/quotearg-tests (Depends-on): Likewise.
11919         * modules/rbtree-list-tests (Depends-on): Likewise.
11920         * modules/rbtree-oset-tests (Depends-on): Likewise.
11921         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11922         * modules/spawn-pipe-tests (Depends-on): Likewise.
11923         * modules/system-quote-tests (Depends-on): Likewise.
11924         * modules/uniname/uniname-tests (Depends-on): Likewise.
11925         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11926         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11927         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11928         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11929         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11930         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11931         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11932         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11933         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11934         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11935         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11936         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11937         * modules/unlinkat-tests (Depends-on): Likewise.
11938         * modules/version-etc-tests (Depends-on): Likewise.
11939         * modules/xalloc-die-tests (Depends-on): Likewise.
11940         * modules/xmemdup0-tests (Depends-on): Likewise.
11941         * modules/xprintf-posix-tests (Depends-on): Likewise.
11942         * modules/xvasprintf-tests (Depends-on): Likewise.
11943         * tests/test-argmatch.c: Do not include progname.h.
11944         (main) Stop calling set_program_name.
11945         * tests/test-argp-version-etc.c: Likewise.
11946         * tests/test-argp.c: Likewise.
11947         * tests/test-argv-iter.c: Likewise.
11948         * tests/test-array_list.c: Likewise.
11949         * tests/test-array_oset.c: Likewise.
11950         * tests/test-avltree_list.c: Likewise.
11951         * tests/test-avltree_oset.c: Likewise.
11952         * tests/test-avltreehash_list.c: Likewise.
11953         * tests/test-carray_list.c: Likewise.
11954         * tests/test-copy-acl.c: Likewise.
11955         * tests/test-copy-file.c: Likewise.
11956         * tests/test-exclude.c: Likewise.
11957         * tests/test-fchownat.c: Likewise.
11958         * tests/test-fdopendir.c: Likewise.
11959         * tests/test-filenamecat.c: Likewise.
11960         * tests/test-fstatat.c: Likewise.
11961         * tests/test-fstrcmp.c: Likewise.
11962         * tests/test-linked_list.c: Likewise.
11963         * tests/test-linkedhash_list.c: Likewise.
11964         * tests/test-mkdirat.c: Likewise.
11965         * tests/test-nonblocking-pipe-main.c: Likewise.
11966         * tests/test-nonblocking-socket-main.c: Likewise.
11967         * tests/test-obstack-printf.c: Likewise.
11968         * tests/test-openat.c: Likewise.
11969         * tests/test-parse-datetime.c: Likewise.
11970         * tests/test-pipe-filter-gi1.c: Likewise.
11971         * tests/test-pipe-filter-gi2-main.c: Likewise.
11972         * tests/test-pipe-filter-ii1.c: Likewise.
11973         * tests/test-pipe-filter-ii2-main.c: Likewise.
11974         * tests/test-quotearg-simple.c: Likewise.
11975         * tests/test-quotearg.c: Likewise.
11976         * tests/test-rbtree_list.c: Likewise.
11977         * tests/test-rbtree_oset.c: Likewise.
11978         * tests/test-rbtreehash_list.c: Likewise.
11979         * tests/test-sameacls.c: Likewise.
11980         * tests/test-set-mode-acl.c: Likewise.
11981         * tests/test-spawn-pipe-main.c: Likewise.
11982         * tests/test-system-quote-main.c: Likewise.
11983         * tests/test-unlinkat.c: Likewise.
11984         * tests/test-version-etc.c: Likewise.
11985         * tests/test-xalloc-die.c: Likewise.
11986         * tests/test-xfprintf-posix.c: Likewise.
11987         * tests/test-xmemdup0.c: Likewise.
11988         * tests/test-xprintf-posix.c: Likewise.
11989         * tests/test-xvasprintf.c: Likewise.
11990         * tests/uniname/test-uninames.c: Likewise.
11991         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11992         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11993         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11994         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11995         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11996         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11997         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11998         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11999         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12000         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12001         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12002         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12003         * tests/test-c-stack.c: (program_name): Do not define.
12004         (main): Do not set program_name.
12005         * tests/test-closein.c: Likewise.
12006         * tests/test-xstrtol.c: Likewise.
12007         * tests/test-yesno.c: Likewise.
12009 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
12011         Port modules to use getprogname explicitly, instead of requiring
12012         progname to be used (or program_name to be provided).
12013         * lib/argmatch.c: Do not include progname.h.
12014         [TEST] (program_name): Do not define.
12015         [TEST] (main): Call getprogname instead of using program_name.
12016         * lib/c-stack.c: Do not include progname.h.
12017         (program_name): Do not define.
12018         (die): Call getprogname instead of using program_name.
12019         * lib/chdir-long.c: Do not include progname.h.
12020         [TEST_CHDIR] (main): Do not set program_name.
12021         * lib/error.c [!_LIBC]: Include progname.h.
12022         [!_LIBC] (program_name): Define using getprogname.
12023         * lib/euidaccess.c: Do not include progname.h.
12024         [TEST] (main): Do not set program_name.
12025         * lib/git-merge-changelog.c: Include getprogname.h instead of
12026         progname.h.
12027         (usage): Call getprogname instead of using program_name.
12028         (main): Likewise.  Stop calling set_program_name.
12029         * lib/group-member.c: Do not include progname.h.
12030         [TEST] (main): Do not set program_name.
12031         * modules/argmatch (Depends-on): Add getprogname.
12032         * modules/c-stack (Depends-on): Likewise.
12033         * modules/error (Depends-on): Likewise.
12034         * modules/git-merge-changelog (Depends-on): Likewise.
12035         Also remove progname.
12037 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
12039         * NEWS: Document the deprecation of the 'progname' module.
12041 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
12043         getprogname: new module
12044         This provides a LGPL module for getting the name of the current
12045         program, using the same API found on *BSD systems.
12046         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
12047         * modules/getprogname: New files.
12048         * MODULES.html.sh (Misc): Add getprogname.
12050 2016-09-02  Jim Meyering  <meyering@fb.com>
12052         manywarnings: add -fno-common
12053         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
12054         to the list.  Quoting the manual, "Compiling with -fno-common is
12055         useful on targets for which it provides better performance, or if
12056         you wish to verify that the program will work on other systems that
12057         always treat uninitialized variable declarations this way [putting
12058         it in the data section]."  If diffutils had been using this sooner,
12059         it would have prevented this duplicate declaration issue:
12060         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
12062 2016-08-31  Simon Josefsson  <simon@josefsson.org>
12064         parse-datetime: Fix typo.
12065         * lib/parse-datetime.y (parse_datetime2): Fix typo.
12067 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12069         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
12070         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
12071         GCC 5 and 6 that have __builtin_sub_overflow but not
12072         __builtin_sub_overflow_p.  With the recent changes, these
12073         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
12074         implementation than with INT_SUBTRACT_OVERFLOW implementation,
12075         since the former needs just one runtime comparison whereas the
12076         latter needs two.
12078         strverscmp: sync with glibc
12079         Although this doesn't exactly synchronize with glibc
12080         byte-for-byte, it makes the code behave the same as glibc.
12081         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
12082         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
12083         difference shouldn't matter in practical use.  All uses changed
12084         back to isdigit.
12085         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
12086         (next_state): Now unsigned char array; redo elements.
12087         (result_type): Now signed char array; redo elements.
12088         (__strverscmp): Fix glibc bug 9913 by using new states.
12089         * tests/test-strverscmp.c (main): Test glibc bug 9913.
12091 2016-08-29  Jim Meyering  <meyering@fb.com>
12093         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
12094         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
12095         similarly to how it was done to intprops.h.
12097 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12099         intprops.h: port recent changes to GCC 6.2.0
12100         * lib/intprops.h (__has_builtin): Move earlier.
12101         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
12102         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
12103         the last argument can be null.  All uses changed.
12104         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
12105         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12106         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
12107         and it's not clear which GCC versions it works for.
12108         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
12109         its definiens.
12111         intprops.h: use __typeof__ with GCC 7
12112         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
12113         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
12114         This avoids computing the expression's value (which might overflow!).
12116 2016-08-29  Jim Meyering  <meyering@fb.com>
12118         intprops.h, xalloc-oversized.h: work with gcc 7
12119         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
12120         __builtin_mul_overflow each accept a NULL pointer as the third
12121         argument.  However in gcc 7, that is no longer accepted.
12122         Instead, one must use the "_p"-suffixed names, with which, the
12123         third parameter is no longer a pointer.
12124         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
12125         the definition: not true for gcc 7 and subsequent.
12126         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
12127         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12128         Provide new definitions for gcc 7 and subsequent.
12129         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
12130         that works with gcc-7.
12132         intprops.h: fix missing-backslash problems
12133         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
12134         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
12136 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12138         intprops: fix paren typo on old platforms
12139         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
12140         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
12141         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
12142         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
12143         && !defined LLONG_MAX]:
12144         Remove stray paren.
12146         intprops: port to OpenVMS
12147         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
12148         * doc/posix-headers/limits.texi: Document the problem.
12149         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
12150         Define if not already defined.
12152 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
12154         parse-datetime: improve debug implementation
12155         Follow-up to commit 12ad79069 ("add optional debug printing").
12156         Improve parse-datetime's debug implementation: remove macros,
12157         replace global debug flag variable with a function parameter,
12158         use nstrftime for formatting.
12159         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
12160         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
12161         (parse_datetime2): New function, accepts 'flags' parameter, supporting
12162         debug flag. Existing interface 'parse_datetime' left unmodified.
12163         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
12164         (struct parser_control): add 'parse_datetime_debug' member variable.
12165         (parse_datetime): Call new function 'parse_datetime2' without debug.
12166         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
12167         pc.parse_datetime_debug variable as needed.
12168         (to_year): Accept new flags parameter, instead of using global variable.
12169         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
12170         use struct 'debug' variable instead of global variable.
12171         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
12172         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
12173         correspnding functions directly instead of using macros.
12174         * modules/parse-datetime: Add gnulib's strftime module.
12176 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
12178         c-strcase-tests: port to EBCDIC
12179         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
12180         which assume ASCII encoding semantics to run only in ASCII
12181         mode, as they fail in EBCDIC.
12183         sigpipe-tests: fix typo
12184         * tests/test-sigpipe.sh: C, not B.
12186 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12188         canonicalize-lgpl: fix errno after malloca fails
12189         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
12190         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
12191         * lib/canonicalize-lgpl.c (__realpath):
12192         Don't assume malloca sets errno on failure.
12194 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12196         strtod: port errno handling to z/OS
12197         * lib/strtod.c (strtod): Save and restore errno more reliably.
12199 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12201         strtod: port to z/OS
12202         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12203         implementation.
12205 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12207         strtod: port to z/OS
12208         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12209         implementation.
12211         regex, string: rename to avoid '__string'
12212         * lib/regex.h, lib/string.in.h: Do not use the identifier
12213         '__string', as it is effectively reserved by string.h on z/OS.
12215         c-strcase-tests, wcwidth-tests: depend on c-ctype
12216         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
12217         Add c-ctype.
12219 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12221         thread: port to z/OS
12222         * lib/glthread/thread.c, lib/glthread/thread.h:
12223         Rudimentary gl_thread support for z/OS.
12225         maint: port tests to z/OS errno behavior
12226         * tests/test-nonblocking-reader.h:
12227         * tests/test-nonblocking-writer.h:
12228         Accommodate z/OS errno code preferences. (I believe this should
12229         still be within spec; IBM is good at following the letter if not
12230         the spirit of such things.)
12232         maint: preprocessor changes to support z/OS
12233         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
12234         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
12235         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
12236         * tests/test-nonblocking-pipe.h:
12238         fclose, strstr-simple, wchar: port to z/OS
12239         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
12240         Changes to the Autoconf M4 code to support z/OS.  Note that
12241         fclose() is broken in a different way on z/OS than it is on other
12242         systems, thus the special-case in fclose.m4.
12244         iconv_open-utf-tests, iconv-tests: port to EBCDIC
12245         * tests/test-iconv-utf.c, tests/test-iconv.c:
12246         Added appropriately conditional #pragmas so that the test strings
12247         in test-iconv-utf.c are correctly interpreted in ASCII instead of
12248         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
12249         addressed in a more portable way by simply rewriting all the ASCII
12250         literal characters as octal escapes, but then you would lose the
12251         partial readability that the strings have now. Also, iconv_open()
12252         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
12254         c-strcase-tests, wcwidth-tests: port to EBCDIC
12255         * tests/test-c-strcasecmp.c: Include c-ctype.h.
12256         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
12257         * tests/test-wcwidth.c: Likewise.
12259 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12261         stdbool: don't require _Bool for C++
12262         Problem reported by David Seifert in:
12263         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
12264         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
12265         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
12266         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
12267         stricter about checking that bool and _Bool are compatible in C.
12269 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12271         getdelim: remove dependency on realloc-posix
12272         * lib/canonicalize-lgpl.c (alloc_failed)
12273         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
12274         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
12275         Use __set_errno where needed, for consistency.
12276         * lib/getdelim.c (alloc_failed): New function.
12277         (getdelim): Use it.
12279 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
12281         parse-datetime: add optional debug printing
12282         Print parsing information, warnings, and errors to stderr.
12283         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
12284         * lib/parse-datetime.y:
12285         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
12286         (PROGRESS*): Same as DEBUG, for progress reporting.
12287         (dbg_printf): Print message to stderr, with 'date' prefix.
12288         (struct parser_control): Add 'debug_*_seen' variables.
12289         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
12290         (debug_print_current_time, debug_print_relateive_time): Prints the
12291         current/relative date/time value of parser_control.
12292         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
12293         (to_year): Warn about 2-digit year parsing.
12294         (yylex):   Warn about unrecognized words.
12295         (get_effective_timezone): Returns current timezone in minutes.
12296         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
12297         clearly and unambigiously as possible.
12298         (debug_mktime_not_ok): Print detailed information about failed
12299         date/time values.
12300         (parse_datetime): Add DEBUG messages for failures, warnings. Add
12301         PROGRESS messages for status messages.
12302         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
12304 2016-08-06  Jim Meyering  <meyering@fb.com>
12306         tests/init.sh: exclude dash with bad "local" semantics
12307         * tests/init.sh (gl_shell_test_script_): Add a function to
12308         eliminate a shell like "dash" (unlike bash, zsh) that has
12309         surprising/risky "local var='...'" semantics.  Inspired by
12310         the problem and discussion in https://bugs.gnu.org/24116#11.
12312 2016-08-02  Ján Tomko  <jtomko@redhat.com>
12314         maint.mk: expand the prohibit_doubled_word regex
12315         This check has a static list of words that are checked for
12316         repetitions.  Expand it before running the perl script to
12317         avoid using expensive captures.  This decreases the cost
12318         for libvirt from 1.66s to 0.66s.
12319         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
12320         (sc_prohibit_doubled_word): Use it.
12322 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12324         useless-if-before-free: skip non-matching lines early
12325         * build-aux/useless-if-before-free: First match each line with the
12326         simple/quick /\bif\b/ and reject if there is no match. This often
12327         saves the cost of the much more involved regular expression.
12328         For libvirt, this decreases the cost from 1.44s to 1.02s.
12330 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12332         maint.mk: speed up sc_po_check
12333         sc_po_check would skip files based on their names, or on the
12334         existence of files with derived names. Rewrite it to use perl
12335         instead of shell to make the check faster.
12336         * top/maint.mk (perl_translatable_files_list_): Define.
12337         (sc_po_check): Use it.
12339 2016-07-30  Ján Tomko  <jtomko@redhat.com>
12341         maint.mk: speed up require_config_h_first
12342         Instead of spawning three processes per file,
12343         rewrite the check in perl and run it once for all the files.
12344         * top/maint.mk (perl_config_h_first_): Define.
12345         (sc_require_config_h_first): Use it in place of shell code.
12347 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12349         maint.mk: speed up sc_po_check
12350         sc_po_check would skip files based on their names, or on the
12351         existence of files with derived names. Rewrite it to use perl
12352         instead of shell to make the check faster.
12353         * top/maint.mk (perl_translatable_files_list_): Define.
12354         (sc_po_check): Use it.
12356 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12358         obstack: pacify GCC 6 with -Wnull-dereference
12359         Problem reported by Assaf Gordon in:
12360         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12361         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12362         Declare with __attribute_noreturn__.
12363         * lib/obstack.h (__attribute_noreturn__): New macro.
12365 2016-07-13  Eric Blake  <eblake@redhat.com>
12367         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12368         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12369         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12371 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12373         doc: mention glibc SSIZE_MAX buglet
12374         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12376 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12378         printf-posix: Fix mingw build
12379         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12380         expression for detecting C symbol prefixes but forgot to qoute square
12381         brackets in the command line arguments for grep.  That way when
12382         building with mingw the condition was false although it ought to be
12383         true instead.  In particular scenarios this led to the following
12384         compile error:
12386             Cannot export rpl_printf: symbol not found
12387             Cannot export rpl_scanf: symbol not found
12388             collect2: error: ld returned 1 exit status
12390         Fix this by properly quoting square brackets.
12392 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12394         mktime: call tzset as per POSIX
12395         Problem reported by Ludovic Courtès in:
12396         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12397         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12398         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12400 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12402         fts: handle readdir() errors
12403         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12404         but also upon error when it will also set errno.  Therefore
12405         flag the error case from readdir().  We treat the case where
12406         no items are read the same as if the dir can't be accessed,
12407         i.e. by setting fts_errno to FTS_DNR.
12409 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12411         intprops: port better to GCC 7
12412         GCC 7 __builtin_add_overflow supports a new usage form, where the
12413         last argument is a null pointer, and which merely returns 1 if an
12414         overflow would occur.  This is a constant expression if all
12415         arguments are constants, and should generate faster code when code
12416         needs to be generated.
12417         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12418         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12419         Use builtin operations if available.
12420         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12421         operations are available, as it's almost surely faster.
12423 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12425         intprops-test: port to GCC 6
12426         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12427         since the bug is not fixed in GCC 6.1.
12429 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12431         xalloc-oversized: port to GCC 7; fewer warnings
12432         GCC 7 will have a better way to deal with integer overflow.
12433         Plus, fix a warnings problem reported by Tim Ruehsen in:
12434         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12435         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12436         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12437         For GCC 5, use __xalloc_oversized if both args are constants,
12438         or if pedantic.
12440 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12442         regex: port to Sun C
12443         Reported by Daiki Ueno.
12444         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12445         __restrict, in prototype.  This fixes a problem I introduced in
12446         the 2016-02-19 merge from glibc.
12448 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12450         stdbool: Restore __bool_true_false_are_defined check
12451         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12452         __bool_true_false_are_defined is still defined, even with C++11.
12454 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12456         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12457         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12459 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12461         Use GCC_LINT, not lint
12462         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12463         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12464         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12465         Document problem with lint and _Noreturn.
12466         * lib/diffseq.h (IF_LINT, IF_LINT2):
12467         * lib/fts.c (sccsid):
12468         * lib/getndelim2.c (IF_LINT):
12469         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12470         (gl_linked_iterator_from_to):
12471         * lib/gl_anytree_list2.h (gl_tree_iterator)
12472         (gl_tree_iterator_from_to):
12473         * lib/gl_anytree_oset.h (gl_tree_iterator):
12474         * lib/gl_array_list.c (gl_array_iterator)
12475         (gl_array_iterator_from_to):
12476         * lib/gl_array_oset.c (gl_array_iterator):
12477         * lib/gl_carray_list.c (gl_carray_iterator)
12478         (gl_carray_iterator_from_to):
12479         * lib/idcache.c:
12480         * lib/inet_ntop.c (IF_LINT):
12481         * lib/regcomp.c (build_charclass_op, create_tree):
12482         * lib/regex_internal.c (re_acquire_state)
12483         (re_acquire_state_context):
12484         * lib/trigl.c (rcsid):
12485         * lib/trim.c (IF_LINT):
12486         * lib/vasnprintf.c (IF_LINT):
12487         * lib/verify.h (assume):
12488         Treat GCC_LINT like lint.
12490 2016-05-29  Bruno Haible  <bruno@clisp.org>
12492         secure_getenv: Port to many more platforms.
12493         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12494         functions.
12495         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12496         for non-BSD Unix platforms and for native Windows.
12497         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12498         Prompted by a request from Nikos Mavrogiannopoulos.
12500 2016-05-27  Eric Blake  <eblake@redhat.com>
12502         canonicalize: Fix broken probe for realpath.
12503         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12504         in logic introduced in 54615b95.
12506 2016-05-26  Eric Blake  <eblake@redhat.com>
12508         unsetenv: relax to LGPLv2+
12509         * modules/unsetenv (License): Match setenv license.
12511 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12513         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12514         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12515         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12516         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12517         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12518         (generate_html, generate_info, generate_tex, outdir)
12519         (source_extra, split, srcfile, texarg): Move above 'version'.
12520         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12522 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12524         manywarnings: update for GCC 6.1
12525         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12526         Add GCC 6.1 options that apply to C.
12527         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12528         do not apply to C, are obsolescent, etc.
12530 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12532         glob: size_t overflow checks
12533         * lib/glob.c (__has_builtin): New macro.
12534         (size_add_wrapv, glob_use_alloca): New static functions.
12535         (glob, glob_in_dir): Check for size_t overflow in several places,
12536         and fix some size_t checks that were not quite right.
12538         glob: don't assume INT_MAX < SIZE_MAX
12539         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12540         latter is not portable to (probably theoretical) hosts where
12541         SIZE_MAX <= INT_MAX.
12543 2016-05-09  Bruno Haible  <bruno@clisp.org>
12545         Fix undefined behaviour in gettext.h.
12546         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12547         pointer's value after the storage it points to has been freed.
12548         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12549         Spotted by Coverity.
12551 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12553         git-version-gen: avoid undefined shift
12554         Problem reported by Mosè Giordano in:
12555         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12556         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12557         with --prefix or --fallback but without a later argument.  While
12558         we're at it, omit unnecessary quotes.
12560 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12562         glob: merge glibc changes into lib/glob.c
12563         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12564         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12565         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12566           struct dirent [BZ #19779]
12567         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12568           callback gl_readdir
12569         2015-10-20 Convert miscellaneous function definitions to prototype style
12570         2015-10-20 Convert 113 more function definitions to prototype style
12571           (files with assertions)
12572         2015-06-12 Fix getlogin_r namespace (bug 18527).
12573         2014-02-10 Use glibc_likely instead __builtin_expect.
12574         2013-10-20 When glob pattern contains a trailing slash match only
12575           directories. Fixes bug 10278.
12576         2013-09-04 glob: silence -Wattribute warnings
12577         2013-06-07 Avoid use of "register" as optimization hint.
12578         2012-09-25 Use size_t instead of int for internal variables in glob
12579           (bug 14621)
12580         2011-07-20 Check for overflows in expressions
12581         2011-05-28 Remove unused variable
12582         2011-05-22 Add a few more alloca size checks
12583         2010-03-27 Whitespace fixes
12584         2010-03-27 Fix one more issue with the glob patch
12585         2010-03-24 Fix glob with empty pattern
12586         2008-05-27 Remove useless more "if" tests before "free"
12587         * modules/glob (Depends-on): Add stdint.
12589 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12591         mktime: port to stricter signed overflow checking
12592         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12593         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12594         instead of merely for INT_MAX * 2.  In practice platforms that
12595         do the latter also do the former.
12596         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12597         (shr): New static function, replacing SHR.  All uses changed.
12598         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12599         and TIME_T_MAX.  All uses changed.
12600         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12601         Use long_int, not time_t.
12602         (long_int_avg): New static function, replacing time_t_avg.
12603         All uses changed.  Round toward positive infinity, as that
12604         generates slightly better code.
12605         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12606         by INT_ADD_WRAPV.
12607         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12608         (convert_time): New static function.
12609         (ranged_convert): Use it
12610         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12611         Use simpler test for loop exit.
12612         (__mktime_internal): Store negative of guessed offset, to simplify
12613         overflow checking.  Remove no-longer-needed test for small time_t
12614         overflows.
12616         mktime: speed up DEBUG_MKTIME benchmarks
12617         Call tzset just once, at the start, rather than for every test
12618         case.  This lets us measure the CPU cost of mktime as opposed to
12619         that of tzset.  This is relevant when TZ is not set and glibc is
12620         being used.  This speeds up tests by a factor of 40 on my Fedora
12621         23 x86-64 platform.
12622         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12623         to call tzset and as a sanity check.  Later on, use localtime_r
12624         instead of localtime.
12626         mktime: resurrect DEBUG_MKTIME testing
12627         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12628         Include <string.h>, for strcmp.
12630         mktime: simplify DEBUG_MKTIME
12631         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12632         Simplify later usage accordingly.
12634         Port mktime_internal offset to unsigned time_t
12635         This avoids some assumptions about wraparound arithmetic on
12636         signed integer overflow.
12637         * lib/mktime-internal.h (mktime_offset_t): New type.
12638         (mktime_internal): Use it in decl.
12639         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12641         * lib/mktime.c (__mktime_internal, localtime_offset):
12642         * lib/timegm.c (timegm): Use it.
12643         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12644         (gl_FUNC_MKTIME): Require it.
12646 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12648         xstrtol: prohibit monstrosities like "1bB"
12649         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12650         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12651         "B" only if the first suffix needs a base.
12652         * tests/test-xstrtol.sh: Test this.
12654 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12656         xstrtod: reinstate setting of *result upon ERANGE
12657         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12658         the returned limits upon ERANGE, so allow and document that.
12660 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12662         xstrtod: modify *result only if no errors
12663         * lib/xstrtod.c (XSTRTOD).
12665 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12667         btowc: document problems in C locale
12668         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12669         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12671 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12673         mktime: improve integer overflow checking
12674         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12675         (WRAPV): Remove; no longer needed.
12676         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12677         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12678         Remove.  Use intprops.h defns instead.
12679         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12680         Use bool for Boolean, for clarity.
12681         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12682         detect integer overflow.
12683         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12685         intprops: check two's complement assumption
12686         Suggested by Eric Blake in:
12687         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12688         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12689         short, int, long, and (if available) long long are two's complement.
12690         * modules/intprops (Depends-on): Add 'verify'.
12692         intprops, mktime, strtol: assume two's complement
12693         These macros were not portable to every conforming C11 ones'
12694         complement platform.  It's not worth the hassle of porting to some
12695         platforms that use ones' complement or signed magnitude, as such
12696         platforms are almost purely theoretical nowadays and porting even
12697         to some of them makes the code harder to review for little
12698         practical benefit.  Problem reported by Florian Weimer in:
12699         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12700         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12701         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12702         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12703         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12704         (TYPE_SIGNED_MAGNITUDE):
12705         Remove.  All uses rewritten to assume two's complement, which is
12706         all we can reasonably test nowadays anyway.
12707         * top/maint.mk (_intprops_names): Remove the removed macros.
12709 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12711         stdint: port to strict C11 left shift
12712         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12713         Pacify clang -Wshift-negative-value, which should be an issue only
12714         on clang setups where stdint.h does not conform to C11 or to C++11.
12715         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12717 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12719         mbrtowc: work around glibc bug#19932
12720         Fix mbrtowc so that it never returns -1 in the C locale,
12721         as this conflicts with a future version of POSIX
12722         http://austingroupbugs.net/view.php?id=663#c2738
12723         and causes problems with GNU grep: http://bugs.gnu.org/23234
12724         See glibc bug 19932:
12725         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12726         * doc/posix-functions/mbrlen.texi (mbrlen):
12727         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12728         Document the glibc bug.
12729         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12730         Include hard-locale.h, locale.h.
12731         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12732         if the bug is possible.
12733         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12734         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12735         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12736         * modules/mbrtowc (Depends-on): Add hard-locale.
12737         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12738         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12739         * tests/test-mbrtowc5.sh: New file.
12741 2016-04-03  Pedro Alves  <palves@redhat.com>
12743         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12744         When gnulib is configured in C++ mode for a system with a working C99
12745         implementation of stdint.h that predates C++11, gnulib ends up
12746         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12747         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12748         MinGW is LLP64.  Instead of trying to detect the right types, detect
12749         good-enough-pre-C++11 stdint.h and in such case define
12750         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12751         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12752         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12753         conforms to C99.  If it does, check whether it hides symbols
12754         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12755         does, define those macros in config.h.
12757 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12759         argp: merge changes from glibc
12760         Among other things, this should fix problems found by a Coverity
12761         scan and reported by Andrei Borzenkov:
12762         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12763         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12764         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12765         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12766         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12767         * lib/argp.h:
12768         Merge changes from glibc.
12769         * tests/test-argp-2.sh: Adjust to match new behavior.
12771 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12773         stddef: support configuring with g++
12774         Problem reported by Ángel González in:
12775         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12776         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12777         Do not define if _GCC_MAX_ALIGN_T is defined.
12779 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12781         test-framework-sh: minor cleanups
12782         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12783         since strictly speaking POSIX requires this.
12784         (setup_): Do not use the variable 'fail', as that makes the
12785         trace output harder to read ('fail' is typically used by
12786         tests to mean the test failed).  Treat // portably.
12787         Check that new directory is not merely a sibling of the tmp dir.
12788         Avoid unnecessary invocation of tr.
12790         test-framework-sh: revert port to NetBSD 7.0
12791         It was a false alarm; I misinterpreted Assaf Gordon's report.
12792         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12793         Restore.
12794         (test_dir_): Adjust to mktempd_ change.
12795         (mktempd_): Restore 2nd arg.  Use -t again.
12796         (base_template_, template_, nx_): Resurrect old code.
12798         Port better to Alpine Linux
12799         Its diff implementation does not support -c, but does support -U3.
12800         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12801         * tests/init.sh (diff_opt_): New var.
12802         (compare_): Prefer diff -U3 to diff -c to plain diff.
12804 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12806         test-framework-sh: port to NetBSD 7.0
12807         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12808         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12809         Remove.  All uses removed.
12810         (test_dir_): Adjust to mktempd_ change.
12811         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12812         (base_template_, template_, nx_): Simplify by hardcoding.
12814 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12816         gitlog-to-changelog: suppress ignored chatter
12817         * build-aux/gitlog-to-changelog: Do not warn about skipping
12818         an SHA if it would have been ignored anyway.
12820 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12822         setlocale: add "sv" to Windows language table
12823         * lib/setlocale.c (language_table) [W32]: Add "sv".
12824         Reported in <https://savannah.gnu.org/bugs/?44588>.
12826 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12828         sys_select: port to new Cygwin
12829         Problem reported by Ken Brown in:
12830         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12831         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12832         diagnostics.
12834 2016-03-17  Jim Meyering  <meyering@fb.com>
12836         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12837         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12838         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12839           test-userspec.c:176:9: error: statement is indented as if it were \
12840             guarded by... [-Werror=misleading-indentation]
12841                    {
12842                    ^
12843           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12844                  if (!diag && !T[i].result)
12845                  ^~
12847 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12849         time_rz: port to clang -Wunused-const-variable
12850         * lib/time_rz.c (TZ): Remove.  All uses removed.
12852         std-gnu11: improve clang support
12853         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12854         2016-03-15 Also try clang
12855         2016-03-15 Port C11 and C++11 testing to clang
12857         select: port more to Intel 2016.1.150 compiler
12858         Problem reported by Balázs Hajgató in:
12859         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12860         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12862 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12864         select: try to port to 2016.1.150 compiler
12865         Problem reported by Balázs Hajgató in:
12866         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12867         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12868         POSIX specifies 'restrict'.
12870 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12872         localename-tests: memory allocation fixes
12873         * tests/test-localename.c (test_locale_name)
12874         (test_locale_name_thread): Don't call freelocale on a locale
12875         that was the base of a successful newlocale, as that
12876         results in a double free.  Problem reported by Assaf Gordon.
12877         (test_locale_name_thread): Free saved names after use, to pacify
12878         gcc -fsanitize=address.
12880 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12882         intprops: make .h file license match module
12883         * lib/intprops.h: Change the license wording to match glibc format.
12884         This is what is in modules/intprops anyway.  See:
12885         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12887 2016-03-08  Eric Blake  <eblake@redhat.com>
12889         acl: fix missing return on Cygwin
12890         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12891         fall off end of function. Fixes http://bugs.gnu.org/22949
12893 2016-03-05  Bruno Haible  <bruno@clisp.org>
12895         extern-inline: port to PGI CC
12896         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12897         keyword 'inline'.
12898         Reported by Adam James Stewart in:
12899         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12901 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12903         signbit: port back to pre-C++11 GCC
12904         * lib/math.in.h (signbit): Do previous change only if
12905         __cplusplus < 201103.  See Jonathan Wakely in:
12906         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12908 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12910         mountlist: recognize autofs-mounted remote file systems, too
12911         Originally reported at: https://bugzilla.redhat.com/1309247
12912         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12913         "-hosts" because it is used by autofs to mount remote file systems.
12915 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12917         signbit: port to C++ with GCC 6
12918         * lib/math.in.h (signbit) [__cplusplus]:
12919         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12920         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12922         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12924         regex: make it closer to libc
12925         Make Idx a signed type, rather than possibly unsigned.
12926         The unsignedness was not really buying us anything, since the code
12927         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12928         it signed allows us to use -1 and -2 with abandon, like libc does,
12929         thus lessening the number of differences between gnulib and libc.
12930         Also, it should help avoid gratuitous warnings like the one
12931         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12932         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12935         regex: merge patches from libc
12937         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12938         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12939         Convert miscellaneous function definitions to prototype style.
12940         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12941         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12942         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12943         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12944         (re_search_internal):
12945         Convert to prototype-style function definition.
12946         Use internal_function for internal functions.
12948 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12950         stdalign: port to older HP and IBM cc
12951         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12952         C compilers, by checking their version numbers.  These version
12953         numbers appear in MariaDB and in Qt code that dates way back and
12954         that conditiionally uses the 'aligned' attribute.
12956 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12958         stdalign: port to clang 3.7.0
12959         Problem reported by Herbert J. Skuhra in:
12960         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12961         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12962         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12963         https://llvm.org/bugs/show_bug.cgi?id=26547
12965 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12967         readdir_r: now obsolescent
12968         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12969         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12971 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12973         misc: port better to gcc -fsanitize=address
12974         Without these patches, ./configure CFLAGS='-fsanitize=address'
12975         would compute incorrect values.  This patch fixes some (but not all)
12976         test failures with recent glibc, with this configuration.
12977         * m4/acl.m4 (gl_ACL_GET_FILE):
12978         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12979         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12980         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12981         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12982         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12983         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12984         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12985         * m4/getline.m4 (gl_FUNC_GETLINE):
12986         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12987         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12988         * m4/regex.m4 (gl_REGEX):
12989         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12990         * tests/test-calloc-gnu.c (main):
12991         * tests/test-duplocale.c (main):
12992         * tests/test-getgroups.c (main):
12993         * tests/test-getline.c (main):
12994         * tests/test-inttostr.c (main):
12995         * tests/test-localename.c (test_locale_name)
12996         (test_locale_name_thread, test_locale_name_environ)
12997         (test_locale_name_default):
12998         * tests/test-regex.c (main):
12999         * tests/test-setlocale1.c (main):
13000         * tests/test-stat.h (test_stat_func):
13001         Free heap-allocated storage before exiting.
13002         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
13003         Don't match *_foo symbols inserted by AddressSanitizer.
13004         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
13006 2016-02-02  Jim Meyering  <meyering@fb.com>
13008         verify-tests: also remove stray test-verify.Tpo
13009         * modules/verify-tests (Makefile.am): Arrange for "make clean"
13010         to remove the test-verify.Tpo file that is left behind by
13011         the automake-generated rule upon compilation failure.
13012         Otherwise, that .Tpo file would cause a failed "make distcheck"
13013         at least for grep.
13015 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13017         std-gnu11: new module
13018         This makes it easier for applications to prefer C11 and C++11
13019         to older variants, when compiling C and C++ code.
13020         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
13021         a nontrivial chunk of GPLed Autoconf source code.
13022         * COPYING: Mention the m4/*.m4 copyright situation.
13023         * MODULES.html.sh (std-gnu11): New module.
13024         * m4/std-gnu11.m4, modules/std-gnu11: New files.
13026 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13028         get-permissions, strftime: fix grammar in comments
13029         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
13030         some grammar fixes Alan Mackenzie made to GNU Emacs.
13032 2016-01-25  Daiki Ueno  <ueno@gnu.org>
13034         gettext: mark as obsolete
13035         Suggested by Paul Eggert in:
13036         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
13037         * modules/gettext (Status): Mark as obsolete.
13038         (Notice): Suggest to use 'gettext-h' instead.
13039         * modules/gettext-h (Description): Suggest GNU gettext, instead of
13040         the 'gettext' module.
13042 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13044         gnulib-tool: don't give up on ln -s so easily
13045         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
13046         because an earlier one failed.  The targets could be on different
13047         file systems.  Problem reported by KO Myung-Hun in:
13048         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
13050         closedir: fix OS/2-related typos
13051         Problem reported by KO Myung-Hun in:
13052         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
13053         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
13054         in the last couple of changes.
13056 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
13058         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
13059         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
13060         copying a directory.
13062 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13064         regex: treat [x] as x if x is a unibyte encoding error
13065         Problem reported by Aharon Robbins in:
13066         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
13067         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
13068         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
13070         closedir, dirfd, opendir: port to OpenSolaris 5.10
13071         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
13072         * m4/dirfd.m4 (gl_FUNC_DIRFD):
13073         * m4/opendir.m4 (gl_FUNC_OPENDIR):
13074         Don't use ${word##pat} substitution, as it doesn't work in
13075         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
13076         http://bugs.gnu.org/22443#11
13078 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13080         bootstrap: use American spelling
13081         * build-aux/bootstrap: Honor American spelling.
13083 2016-01-22  Karl Berry  <karl@freefriends.org>
13085         * doc/posix-functions/localtime.texi,
13086         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
13088 2016-01-21  Bruno Haible  <bruno@clisp.org>
13090         hash-pjw-bare: fix comment
13091         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
13093         wcwidth: Replace also on OpenBSD 5.8
13094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
13095         * doc/posix-functions/wcwidth.texi: Update.
13097 2016-01-20  Pádraig Brady  <P@draigBrady.com>
13099         gnu-web-doc-update: fix addition of new files
13100         If there were already added (emnpty) dirs,
13101         then cvs aborts the add with the message:
13102           cvs [add aborted]: there is a version in <./dirname> already
13103         * build-aux/gnu-web-doc-update: Add directories separately
13104         to the addition of files, to avoid the above issue
13105         impacting the addition of files.
13107 2016-01-19  Daiki Ueno  <ueno@gnu.org>
13109         utimens-tests: avoid pulling gettext .m4 files
13110         Although this is not the right fix to the original problem:
13111         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
13112         it makes it possible again for consumer projects to use arbitrary
13113         version of gettext, through the steps described at:
13114         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
13115         See here for details:
13116         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
13117         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
13118         'gettext'.
13119         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
13120         'gettext'.
13122 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13124         regex: pacify static checkers
13125         Problem and draft fix reported by Aharon Robbins in:
13126         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13127         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
13128         Clear memory to pacify static checkers.
13130         regex: fix [ diagnostic
13131         Problem and fix reported by Aharon Robbins in:
13132         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13133         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
13135         regex: fix memory leaks
13136         Problem and draft fix reported by Aharon Robbins in:
13137         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13138         * lib/regcomp.c (build_range_exp, build_charclass_op)
13139         * lib/regex_internal.c (re_dfa_add_node):
13140         Fix memory leak on failure.
13142 2016-01-18  Pádraig Brady  <P@draigBrady.com>
13144         fts: don't unconditionally use leaf optimization for NFS
13145         NFS st_nlink are not accurate on all implementations,
13146         leading to aborts() if that assumption is made.
13147         See <https://bugzilla.redhat.com/1299169>
13148         * lib/fts.c (leaf_optimization_applies): Remove NFS from
13149         the white list, and document the issue.
13151 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13152             KO Myung-Hun  <komh@chollian.net>
13154         gnulib-tool: don't assume ln -s works
13155         * gnulib-tool (func_ln_s): New function.
13156         (func_ln): Use it.
13158 2016-01-15  KO Myung-Hun  <komh@chollian.net>
13160         utimes: detect utimes() correctly on OS/2 kLIBC
13161         utimes() of OS/2 kLIBC has some limitations.
13162         1. OS/2 itself supports a file date since 1980 year in local time.
13163         2. OS/2 itself supports only even seconds for a file time.
13164         3. utimes() of OS/2 kLIBC does not work on an opened file.
13165         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
13166         * doc/posix-functions/utimes.texi: Document the above limitations of
13167         utimes() on OS/2 kLIBC.
13169 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13170             KO Myung-Hun  <komh@chollian.net>
13172         openat_proc_name: port to OS/2 kLIBC
13173         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
13174         instead of /proc/self/fd.
13175         * lib/openat-proc.c (openat_proc_name):
13176         Don't assume file name length is less than INT_MAX.
13177         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
13179 2016-01-14  KO Myung-Hun  <komh@chollian.net>
13181         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
13182         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
13183         definitions of intptr_t and uintptr_t (which use int and unsigned)
13184         to avoid clashes with declarations of system functions like sbrk.
13185         * lib/stdint.in.h (intptr_t, uintptr_t): Check
13186         _INTPTR_T_DECLARED before defining them.
13188         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
13189         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
13190         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
13191         Declare on kLIBC.
13192         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
13193         fd associated with dirp.
13194         (_gl_register_dirp_fd): New. Register fd associated with dirp to
13195         dirp_fd_list.
13196         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
13197         (dirfd): Implemented for kLIBC.
13198         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
13199         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
13200         succeeds.
13201         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
13202         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13203         (REPLACE_DIRFD): Define to 1 if replaced.
13204         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
13205         * modules/closedir (Depends-on): Add dirfd.
13206         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
13207         condition.
13208         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
13209         * modules/opendir (Depends-on): Add dirfd.
13211         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
13212         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
13213         * lib/dup.c (dup_nothrow): New.
13214         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
13215         (klibc_dup2): New.
13216         * lib/fcntl.c (klibc_fcntl): New.
13217         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
13218         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
13219         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
13220         fd.
13222         pipe_filter_ii_execute: port to OS/2 kLIBC
13223         Pipes on kLIBC do not support O_NONBLOCK like Win32.
13224         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
13225         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
13226         Reuse Win32 code on OS/2 kLIBC.
13227         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
13228         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
13230         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
13231         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
13232         static inline function.  The implementation of wcwidth in wcwidth.c
13233         causes a "conflicting types" error.
13234         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
13236         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
13237         spawn() on OS/2 kLIBC is not silly like one on Windows
13238         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
13239         empty string on OS/2 kLIBC.
13241         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
13242         On OS/2 kLIBC, select() works only on sockets.
13243         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
13245         binary-io: don't put fd in binary mode if it is a console on EMX
13246         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
13247         a console on EMX.
13249 2016-01-15  Pádraig Brady  <P@draigBrady.com>
13251         doc: mention unfixed issues with unsupported localtime() values
13252         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
13253         returns nonsense for localtime(2^56).
13254         * doc/posix-functions/localtime_r.texi: Likewise.
13256 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13258         doc: mention setlocale() issues on OpenBSD
13259         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
13260         never fails, and the need to check categories individually.
13262 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13264         sig2str: list all signals on FreeBSD >= 7
13265         FreeBSD >= 7 is contravening POSIX by not defining NSIG
13266         to the maximal statically defined signal value.
13267         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
13268         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
13269         where available, even when NSIG is defined.
13271 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13273         acl-permissions: port to USE_ACL==0 platforms
13274         I ran into this problem when building bleeding-edge GNU Emacs
13275         with gcc -fsanitize=address on Fedora 23.  On this platform
13276         the ACL library does not pass the 'configure' test and Emacs
13277         then does not build due in part to what appear to be typos in the
13278         ACL part of Gnulib.
13279         * lib/acl-internal.c (free_permission_context):
13280         * lib/acl-internal.h (struct permission_context):
13281         Test whether USE_ACL is nonzero, not whether it is defined.
13283 2016-01-12  Martin Sebor  <msebor@redhat.com>
13285         mktime: rename macro to avoid glibc clash
13286         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
13287         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
13289 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13291         Port "$@" to OpenIndiana ksh93
13292         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
13293         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
13294         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
13295         bug long-dead shells, so remove the workaround.
13296         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
13297         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13298         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
13299         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
13300         Use "$@" instead of ${1+"$@"}.
13302         Port Universal Time settings to strict POSIX
13303         * build-aux/announce-gen, build-aux/bootstrap:
13304         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
13305         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13306         * build-aux/gnupload, build-aux/mkinstalldirs:
13307         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
13308         * build-aux/update-copyright, build-aux/useless-if-before-free:
13309         * build-aux/vc-list-files, tests/test-strftime.c:
13310         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
13311         but POSIX says the behavior of TZ="UTC" is undefined.
13313 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13315         msvc-inval: fix problem with unset shell var
13316         Problem reported by Karl Berry in:
13317         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
13318         * modules/msvc-inval (Depends-on):
13319         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
13320         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
13322 2016-01-01  Pádraig Brady  <P@draigBrady.com>
13324         tests: for compare_(), use cmp -s where available
13325         * tests/init.sh (compare_): Only fall back to cmp without
13326         the POSIX defined -s option, where this is not available.
13328 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13330         version-etc: new year
13331         * build-aux/gendocs.sh (version):
13332         * doc/gendocs_template:
13333         * doc/gendocs_template_min:
13334         * doc/gnulib.texi:
13335         * lib/version-etc.c (COPYRIGHT_YEAR):
13336         Update copyright dates by hand in templates and the like.
13337         * all files: Run 'make update-copyright'.
13339 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
13341         human: fix output buffer overrun by 1
13342         * lib/human.c (human_readable): Fix off-by-one typo in buffer
13343         calculation that could lead to a one-byte buffer overrun.
13345 2015-12-28  Daiki Ueno  <ueno@gnu.org>
13347         maint: fix operator precedence in mbrtowc test
13348         This is a fix for test breakage introduced by commit 45228d96; the
13349         equality expression must be parenthesized when negated with '!',
13350         otherwise we always get:
13352           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
13354         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13355         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13357 2015-12-23  James Youngman  <jay@gnu.org>
13359         regexprops-generic: update from regex.h
13360         * doc/regexprops-generic.texi: update by running the regexprops binary
13361         from findutils (the command line is 'regexprops "Regular Expressions"
13362         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13363         gnulib with GNU grep had made this document out-of-date.
13365 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13367         strftime-tests: avoid false failure on OS X
13368         * tests/test-strftime.c (struct localtime_rz_test): Add an
13369         ahistorical member which is used to warn rather than fail
13370         when tm_isdst isn't set for such entries.  This is the case for
13371         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13373 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13375         fts: ensure leaf optimization is used for NFS
13376         NFS provides usable dirent.d_type but not necessarily for all entries
13377         of large directories.  See <https://bugzilla.redhat.com/1252549>
13378         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13380 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13382         fts: enable leaf optimization for XFS
13383         XFS provides usable dirent.d_type only for DT_DIR,
13384         but the noleaf optimization still applies.
13385         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13387 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13389         intprops: comment fix
13390         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13391         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13393         intprops-test: work around GCC bug 68971
13394         Problem reported by Pádraig Brady in:
13395         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13396         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13397         (main): Add a case that better tests 64-bit long in this area.
13399 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13401         gnulib-tool: allow multiple --local-dir usage
13402         * gnulib-tool: Use --local-dir to construct compound
13403         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13404         PATH_SEPARATOR early.
13405         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13406         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13407         func_determine_path_separator because that needs to be detected
13408         earlier now.
13409         (func_determine_path_separator): New function.
13410         (func_path_foreach, func_path_foreach_inner): New functions.
13411         (func_path_prepend, func_path_append): Likewise.
13412         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13413         (func_lookup_file, func_all_modules): Use new functions to work
13414         with local_gnulib_path.
13415         (func_modules_in_dir, func_exists_module): New callbacks for
13416         func_path_foreach.
13417         (func_exists_module, func_get_tests_module): Likewise.
13418         (func_is_local_file, func_should_symlink): New helper methods.
13419         (func_add_file, func_update_file): Use new func_should_symlink
13420         instead, DRY.
13421         (func_reconstruct_cached_local_gnulib_path): New helper.
13422         (func_reconstruct_cached_dir): New callback.
13423         (func_import): The cached_local_gnulib_dir renamed to
13424         cached_local_gnulib_path similarly to local_gnulib_dir.
13425         Use new func_reconstruct_cached_local_gnulib_path.
13426         (func_count_relative_local_gnulib_path): New sub-method.
13427         (func_create_testdir): Use func_should_symlink, DRY.
13428         (func_create_megatestdir): Use new functions to work with
13429         local_gnulib_path correctly.
13430         (func_append_local_dir): New helper.
13432 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13434         fix freadptr to work with ungetc on all uClibc configs
13435         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13436         where GNU coreutils cut(1) generates invalid output on uClibc
13437         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13438         * lib/freadptr.c (freadptr): Return NULL if there are
13439         ungotten chars.  In this case freadseek() will iterate
13440         again to process the ungotten character.
13442 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13444         xalloc-oversized: improve performance with GCC 5
13445         * lib/xalloc-oversized.h (xalloc_oversized):
13446         Improve performance with GCC 5 by using __builtin_mul_overflow.
13448 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13450         intprops: new public macro EXPR_SIGNED
13451         Emacs can use this macro, so make it public.
13452         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13453         'Integer Type Determination', since some of these macros apply
13454         to non-integer types.  Clarify what kinds of constant expressions
13455         these macros return.  Say when the arguments can be non-integers.
13456         Mention newly published macro EXPR_SIGNED.
13457         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13458         make it public.  All uses changed.
13460         intprops: fix typo in clang port
13461         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13462         '__builtin_add_overflow' that is not caught by compiler.
13464 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13466         test-timespec: fix typo in previous change
13467         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13469         timespec-sub: fix overflow bug; add tests
13470         * lib/timespec-add.c (timespec_add):
13471         * lib/timespec-sub.c (timespec_sub):
13472         Work even if time_t is narrower than int (a theoretical
13473         possibility).  Redo code for a bit more clarity.
13474         * lib/timespec-sub.c (timespec_sub):
13475         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13476         * modules/timespec-tests, tests/test-timespec.c: New files.
13478         intprops-test: suppress -Woverlength-strings
13479         Problem reported by Pádraig Brady in:
13480         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13481         It is not worth the hassle to port this test to compilers that
13482         cannot handle long strings in diagnostics.
13483         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13485 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13487         quotearg: add quotearg_n_style_colon()
13488         This quotes with default options of the specified style,
13489         but with quoting enabled for instances of ':'.
13490         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13491         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13493 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13495         intprops: revise _WRAPV macros, revert _OVERFLOW
13496         The incompatible changes to the _OVERFLOW macros were too much of
13497         a hassle in practice, so revert them.  Instead, change the new
13498         _WRAPV macros to make them closer in behavior to GCC 5's new
13499         builtin_add_overflow etc. functions.  No other software was using
13500         these newly-added macros yet, so this should be OK.
13501         * NEWS: Revert previous change, since the incompatible change
13502         has been reverted, and nobody used the incompatible version.
13503         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13504         Document revised behavior.
13505         (Integer Range Overflow): Adjust example to match above revisions.
13506         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13507         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13508         these can be used in integer constant expressions again.
13509         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13510         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13511         needed.
13512         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13513         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13514         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13515         Remove, as they did not seem that useful.
13516         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13517         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13518         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13519         Support new semantics.
13520         (__has_builtin): New macro, if not alreay defined.
13521         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13522         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13523         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13524         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13525         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13526         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13527         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13528         New macros.
13529         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13531 2015-11-03  Jim Meyering  <meyering@fb.com>
13533         intprops: add parentheses for when OP has precedence lower than "-"
13534         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13535         "a OP b" must be parenthesized for when OP is like "<<", which has
13536         lower precedence than the following "-". Reported by Pádraig Brady.
13538 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13540         quotearg: constify get_quoting_style parameters
13541         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13542         * lib/quotearg.c (get_quoting_style): Likewise.
13544 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13546         quotearg: add support for $'' shell escaping
13547         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13548         items and descriptions.
13549         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13550         above types by quoting like "shell", but using $'...' syntax
13551         for non printable characters, which should provide unambiguous
13552         printable output for any input.
13553         * tests/test-quotearg-simple.c: Update accordingly.
13555 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13557         maint: use a more standard return from mbrtowc test
13558         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13559         from the test program as this is non standard and often
13560         indicates an unhandled case in the test program.
13561         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13563 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13565         intprops: add WRAPV and const flavors for GCC 5
13566         If available, use GCC 5's builtin functions for efficient integer
13567         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13568         and safely compute the low-order bits of the correct answer.
13569         A downside of these efficient functions is that they cannot be
13570         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13571         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13572         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13573         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13574         Document the changes.
13575         (Wraparound Arithmetic): New section.
13576         (Integer Range Overflow):
13577         Put this subsection last, since it's least useful.
13578         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13579         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13580         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13581         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13582         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13583         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13584         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13585         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13586         New macros.
13587         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13588         Generate calls to GCC builtins if available, for speed.
13589         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13590         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13591         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13592         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13593         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13594         (CHECK_QUOTIENT, CHECK_REMAINDER):
13595         Test WRAPV and CONST flavors (when available) too.
13597 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13599         doc: use extended timezone format in iso-8601 example
13600         * doc/parse-datetime.texi: The standard states that extended format
13601         is to be used consistently throughout.
13602         Note that lib/parse-datetime.y can handle either tz format.
13604 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13606         stdalign: port to Sun C 5.9
13607         * doc/posix-headers/stdalign.texi: Document this.
13608         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13609         __attribute__ ((__aligned__ (...))).
13611 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13613         time_rz: fix comment about tzalloc
13614         * lib/time_rz.c (tzalloc): Fix comment.
13616 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13618         stdalign: work around pre-4.9 GCC x86 bug
13619         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13620         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13621         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13623 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13625         maint.mk: sc_tight_scope: remove extraneous expressions
13626         * top/maint.mk (tight_scope): This is not really required since
13627         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13628         that matches all nm entries.  But it does remove extraneous entries
13629         that may be confusing or cause issue in future maintenance.
13631 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13633         time_rz: return NULL if localtime_r fails
13634         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13635         while still attempting to pacify bleeding-edge GCC.
13637         fts: port to C11 alignof
13638         * doc/posix-headers/stdalign.texi (stdalign.h):
13639         Document the C11 restriction.
13640         * lib/fts.c: Include stddef.h, for max_align_t.
13641         (fts_alloc): Align using max_align_t, not FTSENT.
13642         * modules/fts (Depends-on): Add stddef.
13644 2015-10-18  Jim Meyering  <meyering@fb.com>
13646         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13647         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13648         would see this:
13650         lib/time_rz.c: In function 'localtime_rz':
13651         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13652           [-Werror=nonnull]
13653                    if (tm && !save_abbr (tz, tm))
13654                        ^
13656         That was complaining about "tm" because it is a parameter that was
13657         declared with the __nonnull__ attribute.
13658         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13659         result of localtime_r.
13661 2015-10-17  Jim Meyering  <meyering@fb.com>
13663         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13664         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13665         name-extraction regexp mistakenly used \S+, and would mistakenly
13666         extract "*F" from "extern int *F()" rather than the desired "F".
13667         Use \w+ instead.
13669 2015-10-17  Jim Meyering  <meyering@fb.com>
13671         maint.mk: sc_tight_scope: factor and support OS X
13672         * top/maint.mk (_gl_tight_scope): Address three issues:
13673         - factor out four instances of code that wraps a string in "^...$"
13674         - allow nm-reported symbol names to have an optional leading "_"
13675         - add "main" to the list of ignored variable names, because on os x,
13676         "main" has nm-reported type "S" in the variable-checking section.
13678 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13680         safe-alloc-tests: fix typo in license header
13681         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13683 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13685         copy-file: fix mem leak in error case
13686         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13687         upon error opening or performing I/O to the src and dest files.
13689 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13691         localename: control langinfo.h inclusion
13692         This header is only used to work around buggy behavior in old
13693         versions of glibc, so do not include it all the time.  Otherwise
13694         we get build failures on systems that do not provide langinfo.h.
13695         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13696         in the source later on.
13697         The patch was originally submitted to gettext as:
13698         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13700 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13702         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13703         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13704         * lib/u64.c, lib/unistd.c:
13705         Append 'typedef int dummy;', to pacify compilers that are picky
13706         about empty translation units.
13708 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13710         accept4-tests: fix to avoid non portable flags
13711         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13712         as they are the only documented ones, and passing others may trigger
13713         EINVAL (seen on FreeBSD 10.1-RELEASE).
13714         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13715         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13717 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13719         gnulib-tool: fix tests of 'extensions' module
13720         This complements f8fe25fab60e3c687a124 commit.
13721         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13722         emitting of initial gl_EARLY macros.
13723         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13724         replaced with func_emit_pre_early_macros call.
13726 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13728         unicase/locale-language: fix typo in utf-8 cookie
13729         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13730         Problem reported by Zbigniew Jędrzejewski-Szmek.
13732 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13734         xalloc: do not worry about GCC 5 warning on 32 bit
13735         * lib/xalloc.h: Revert previous change.
13736         I found a better way to fix this in coreutils.
13738 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13740         xalloc: avoid GCC 5.1 warning on 32 bit
13741         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13742         xalloc_oversized(), which was seen to give this warning
13743         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13744         when simplifying conditional".
13746 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13748         uniname/uniname-tests: avoid compiler warnings
13749         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13750         unused local variables.
13751         (test_alias_lookup): Fix alias name display in failure cases.
13753 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13755         c-ctype: do not worry about EBCDIC + char signed
13756         Drop support for EBCDIC with char being signed, as this breaks too
13757         many programs.  Problem reported by Ben Pfaff in:
13758         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13759         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13760         char being signed.
13761         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13762         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13763         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13764         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13765         * tests/test-c-ctype.c (test_all):
13766         Simplify by assuming standard char values cannot be negative.
13767         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13769 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13771         c-ctype: port better to z/OS EBCDIC
13772         Problems reported by Daniel Richard G. in:
13773         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13774         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13775         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13776         (_C_CTYPE_OTHER_CNTRL): New macro.
13777         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13778         from SCHAR_MIN, as the functions are defined only from values
13779         promoted from char or from unsigned char, not necessarily from
13780         signed char.
13782 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13784         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13786         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13787         and ARFLAGS variables.  Doing this unconditionally could break
13788         later Automake's AM_PROG_AR invocation (at least it's
13789         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13791         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13792         Amsterdam Compiler Kit, so make the previous code to have effects
13793         only on ACK, and rather automatically call the Automake's
13794         AM_PROG_AR as soon as possible to decide other cases.
13796         References:
13797         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13799         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13800         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13801         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13802         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13803         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13804         'extensions' module is used.
13805         * modules/extensions (configure.ac-early): Remove as this snippet
13806         is added to gnulib-comp.m4 earlier anyway.
13808 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13810         sockets: MS Windows initalization fixes
13811         Problem reported by Test User in:
13812         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13813         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13814         Correct the endianness.
13815         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13816         number mismatch, not just on <.  Cleanup before any such failure.
13818 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13820         gc: fix detection of installed libgcrypt version
13821         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13822         at least as recent as 1.4.4.  The previously used macro is not
13823         available now, since modules were removed in version 1.6.0.
13825 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13827         c-ctype: rewrite to use inline functions
13828         This simplifies maintenance, since it makes for just one
13829         implementation of each function, letting the compiler have the fun
13830         of optimization.  In practice this works well nowadays with GCC.
13831         E.g., c_isascii might need only three instructions even though the
13832         source code lists every ASCII character individually in a large
13833         switch statement.
13834         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13835         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13836         * NEWS: Document the API change.
13837         * lib/c-ctype.c: Drastically simplify, since this now just expands
13838         inline functions.
13839         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13840         (C_CTYPE_INLINE): New macro.
13841         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13842         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13843         Verify that either ASCII or EBCDIC is being used.
13844         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13845         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13846         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13847         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13848         New private macros.
13849         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13850         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13851         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13852         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13853         (c_tolower, c_toupper): When converting, return the unsigned char,
13854         as that is what z/OS does.
13855         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13856         of some c-ctype.h macros.
13857         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13858         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13859         c_tolower promotion to be compatible with z/OS.
13861 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13863         gitlog-to-changelog: trim only trailing whitespaces
13864         This is fix for --format regression introduced by commit
13865         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13866         doubled %n string) had no effect anymore.  This format
13867         specification has been used e.g. by GNU paxuitils (commit
13868         edfd8bcc3).
13870         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13871         newlines in commmit messages.
13873 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13875         Test that c_iscntrl agrees with iscntrl, etc.
13876         Suggested by Daniel Richard G. in:
13877         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13878         * modules/c-ctype-tests (Depends-on): Add ctype.
13879         * tests/test-c-ctype.c: Include <ctype.h>.
13880         (NCHARS): New constant.
13881         (test_agree_with_C_locale): New function.
13882         (main): Use it.
13883         (test_all): Use named constants.
13885         c-ctype: improve c_isascii testing
13886         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13887         Add a test to count the number of ASCII characters.
13889 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13891         savewd: remove SAVEWD_CHDIR_READABLE
13892         It was problematic in the light of file systems that ignore umask.
13893         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13894         * NEWS: Document this.
13895         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13896         successful, -1 (setting errno) on failure, rather than something
13897         more complicated than that.
13898         * lib/mkdir-p.c (make_dir_parents):
13899         Do not use SAVEWD_CHDIR_READABLE.
13900         * lib/savewd.c (savewd_chdir):
13901         Remove support for SAVEWD_CHDIR_READABLE.
13902         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13904         c-ctype: port better to EBCDIC
13905         Problems reported by Daniel Richard G. in
13906         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13907         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13908         Include "verify.h".
13909         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13910         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13911         Define as enum constants with value false, if not defined, so that
13912         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13913         code more portable, as both branches of the 'if' are compiled on
13914         all platforms.
13915         (C_CTYPE_EBCDIC): New constant.
13916         Verify that the character set is either ASCII or EBCDIC.
13917         (to_char): New static function.
13918         (c_isascii, c_iscntrl):
13919         Assume standard control-character assignments for EBCDIC.
13920         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13921         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13922         Rewrite to use 'if' instead of 'ifdef'.
13923         Use to_char if non-ASCII.  Prefer <= to >=.
13924         Prefer true and false to 1 and 0, for booleans.
13925         (c_iscntrl): Use 'if', not 'ifdef'.
13926         * modules/c-ctype (Depends-on): Add verify.
13927         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13928         (to_char): New function.
13929         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13931 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13933         nanosleep: fix return code for interrupted replacement
13934         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13935         that we return -1 in the case the call is interrupted by a signal,
13936         rather than the current value of 1.
13937         Diagnosed and tested by Daniel Richard G.
13939 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13941         Diagnose ERE '()|\1'
13942         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13943         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13944         track of the set of previously-completed subexpressions available
13945         before the first alternative, and restore this set just before
13946         parsing each subsequent alternative.  This lets us diagnose the
13947         invalid back-reference in the ERE '()|\1'.
13949         regex: merge patches from libc
13951         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13952         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13953         * lib/regex_internal.h:
13954         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13956         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13957         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13958         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13959         wcscoll.
13960         * lib/regexec.c (check_node_accept_bytes): Likewise.
13962         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13963         Fix regex wcrtomb namespace (bug 18496).
13964         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13965         instead of wcrtomb.
13967         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13968         Fix regex wctype namespace (bug 18495).
13969         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13970         instead of towlower.
13971         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13972         instead of iswlower.  Call __towupper instead of towupper.
13973         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13974         instead of iswalnum.
13976         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13977         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13978         COLL_SYM in a couple of places to avoid uninitialized variable
13979         wanings on tilegx gcc 4.8.2.
13981         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13982         * lib/regex_internal.h: Remove NOT_IN_libc.
13984         2014-11-17  Andreas Schwab  <schwab@suse.de>
13985         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13987         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13988         Move findidx nested functions to top-level.
13989         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13990         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13991         Pass new arguments to findidx.
13992         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13993         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13994         Don't #include it inside the function.  Pass new arguments to findidx.
13995         * lib/regex_internal.h:
13996         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13997         (re_string_elem_size_at): Don't #include it inside the function.
13998         Pass new arguments to findidx.
14000         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
14001         Check if DEBUG is defined in regex_internal.c
14002         * lib/regex_internal.c: Check if DEBUG is defined and is set.
14004 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
14006         ceill: detect buggy OpenBSD implementation
14007         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
14008         which returns zero for small values.  Discussed here:
14009         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
14011 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
14013         mountlist: add me_mntroot field on Linux machines
14014         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
14015         mount_entry so Linux machines based on /proc/self/mountinfo can
14016         distinguish between bind mounts and original mounts.  In reality bind
14017         mounts aren't treated differently than mountroot=/ mounts by the
14018         kernel, but the user often wants these bind mounts distinguished.
14019         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
14020         More details at https://pad.lv/1432871
14022 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
14024         doc: Describe to use multiple instances of gnulib
14025         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
14026         instances of gnulib with different modules can be used, for example one
14027         for a lib and another one for associated tools.
14029 2015-09-01  Pádraig Brady  <P@draigBrady.com>
14031         base32: mark function as __attribute__ const
14032         * lib/base32.h (isbase32): Mark __attribute__ const as
14033         suggested by GCC, and consistent with the base64 module.
14035 2015-08-20  Daiki Ueno  <ueno@gnu.org>
14037         gnulib-tool: don't transform binary files with sed
14038         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
14039         .mo and .class files.
14040         Reported by Denis Denisov.
14042 2015-08-10  Daiki Ueno  <ueno@gnu.org>
14044         gperf: respect silent rules
14045         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
14046         V_GPERF_0 for silent rules.
14047         * modules/iconv_open (Makefile.am): Use V_GPERF.
14048         * modules/unicase/locale-language (Makefile.am): Likewise.
14049         * modules/unicase/special-casing (Makefile.am): Likewise.
14050         * modules/unictype/category-byname (Makefile.am): Likewise.
14051         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
14052         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
14053         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
14054         * modules/unictype/property-byname (Makefile.am): Likewise.
14055         * modules/unictype/scripts (Makefile.am): Likewise.
14056         * modules/uninorm/composition (Makefile.am): Likewise.
14058 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14060         Improve port of stdalign to C++11
14061         Problem reported by Sundaram in:
14062         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
14063         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
14064         (__alignas_is_defined): Define if C++11 or newer.
14066 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
14068         pmccabe2html: fix gawk regex escaping
14069         * build-aux/pmccabe2html: Add one more backslash to properly
14070         escape the gsub replacement value.  Fixes this error:
14071         gawk: ./build-aux/pmccabe2html:425: \
14072         warning: escape sequence `\&' treated as plain `&'
14074 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14076         time_rz: port to pedantic memcpy
14077         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
14078         that reject memcpy (..., NULL, 0).
14080 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14082         time_rz: port better to MinGW
14083         Don't change tzname, as this makes MinGW dump core (Bug#21020).
14084         Instead, store the tzname copy in the struct tm_zone object.
14085         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
14086         * lib/strftime.c [!_LIBC]:
14087         * lib/time_rz.c: Include time-internal.h.
14088         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
14089         name from *TZ rather than from TZNAME, doable because *TZ now has
14090         a tzname_copy member.
14091         * lib/time-internal.h: New file, with contents taken from
14092         lib/time_rz.c.  It's separate because strftime.c now accesses
14093         struct tm_zone members.
14094         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
14095         New member tzname_copy.
14096         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
14097         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
14098         Initialize tzname_copy member.
14099         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
14100         in tzname_copy member.
14101         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
14102         (restore_tzname): Remove; no longer needed.  All calls removed.
14103         * modules/time_rz (Files): Add lib/time-internal.h.
14105         time: port __need_time_t to MinGW
14106         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
14107         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
14109 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14111         strftime: fix newly-introduced bug on Solaris
14112         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
14113         consistently at the start, rather than doing some of the setup at
14114         the start and some in the %Z format spec.  This is cleaner, and
14115         works better with time_rz on platforms like Solaris where struct
14116         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
14117         mktime_z and localtime_rz can mess up the tzname cache.
14119         test-strftime: test for Solaris bug
14120         * modules/strftime-tests (Depends-on): Add strerror.
14121         * tests/test-strftime.c: Include <errno.h>.
14122         (posixtm_test): New function, containing the old 'main'.
14123         (struct tzalloc_test, struct localtime_rz_test): New types.
14124         (TZ, LT): New static vars.
14125         (tzalloc_test): New function.
14126         (main): Rewrite in terms of posixtm_test and tzalloc_test.
14128         time_rz: port to Solaris etc.
14129         Works around a tzname problem on platforms like Solaris that have
14130         tzname but not tm_zone, by setting tzname at the appropriate time
14131         and restoring it later.
14132         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
14133         New static vars.
14134         (save_abbr) [HAVE_TZNAME]: Set them.
14135         (revert_tz) [HAVE_TZNAME]: Clear or use them.
14136         (restore_tzname): New function.
14137         (localtime_rz, mktime_z): Use it.
14139         time_rz: now LGPL
14140         * modules/time_rz (License): Now LGPL, because strftime depends on it.
14142         time_rz: make a constant 'const'
14143         * lib/time_rz.c (local_tz): Now const.
14145         time_rz: fix off-by-one typo
14146         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
14148 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
14150         fprintftime, strftime: use timezone_t args
14151         * NEWS: Document the change.
14152         * lib/fprintftime.h (fprintftime):
14153         * lib/strftime.c (extra_args) [my_strftime]:
14154         * lib/strftime.h (nstrftime):
14155         Time zone arg is now of type timezone_t, not int.
14156         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
14157         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
14158         (my_strftime) [emacs && !my_strftime]:
14159         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
14160         Remove; Emacs doesn't need this any more.
14161         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
14162         fprintftime and nstrftime to call tzset.
14163         (ut) [!my_strftime]: Remove, replacing with ...
14164         (tz) [!my_stftime]: ... this new macro.  All uses changed.
14165         (strftime_case_): Use localtime_rz and mktime_z instead
14166         of localtime_r and mktime.
14167         * modules/fprintftime (Depends-on): Add time_rz.
14168         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
14169         * tests/test-strftime.c (main): Adjust to new nstrftime API.
14171         time_rz: new module
14172         * MODULES.html.sh: Add time_rz.
14173         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
14174         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
14175         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
14176         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
14177         New var HAVE_TIMEZONE_T (default 0).
14178         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14179         New var GNULIB_TIME_RZ (default 0).
14180         * modules/time (time.h): Substitute the new vars.
14182         flexmember: license is now unlimited
14183         * modules/flexmember (License): Change to unlimited,
14184         since its only source file gives an unlimited license.
14186 2015-07-15  Eric Blake  <eblake@redhat.com>
14188         maint: update copyright paper procedures
14189         * config/srclist.txt: Drop outdated files.
14190         * doc/Copyright/conditions.txt: Update to latest.
14191         * doc/Copyright/assign.changes.manual: Delete.
14192         * doc/Copyright/assign.future.manual: Likewise.
14193         * doc/Copyright/assign.manual: Likewise.
14194         * doc/Copyright/assign.translation.manual: Likewise.
14195         * doc/Copyright/disclaim.changes.manual: Likewise.
14196         * doc/Copyright/disclaim.manual: Likewise.
14197         * doc/Copyright/disclaim.program: Likewise.
14199 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14201         localename: fix link error on Illumos
14202         Illumos defines __sun, but does not have getlocalename_l nor the
14203         equivalent.  This partially reverts commit 387c214.
14204         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
14205         available, as well as uselocale.
14206         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
14207         use getlocalename_l if it is not available.
14209 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14211         unistr/uN-strtok-tests: avoid a trivial leak
14212         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
14213         input and delim after the multibyte delimiter tests.
14215 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14217         file-has-acl, acl-permissions: fix HP-UX typos
14218         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
14219         * lib/file-has-acl.c (file_has_acl):
14220         * lib/set-permissions.c (context_acl_from_mode)
14221         (context_aclv_from_mode, set_acls):
14222         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
14223         They were introduced by the recent ACL changes.
14225         regex: match current GNU grep behavior
14226         These symbols have not matched GNU grep behavior for quite some time.
14227         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
14228         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
14229         Change to match current GNU behavior.
14230         Simplify by expressing it as differences from POSIX BREs and EREs.
14231         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
14233 2015-07-03  Jim Meyering  <meyering@fb.com>
14235         set-permissions.c: adjust acl_from_mode's cpp guard
14236         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
14237         directives identical to those guarding the sole use.
14238         Otherwise, on some systems, we'd get a warning about
14239         the function being defined but not used.
14240         Also, filter through cppi to correct misleading indentation
14241         of cpp directives.
14243 2015-07-03  Pádraig Brady  <P@draigBrady.com>
14245         tests: restrict shells to those that support 'local'
14246         The local keyword is very widely supported and used
14247         in tests in coreutils and grep at least.  Therefore
14248         restrict to testing with shells that support it.
14249         This mainly excludes /bin/sh on Solaris.
14250         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
14252 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
14253         and Daiki Ueno  <ueno@gnu.org>
14255         unistr/uN-strtok: handle multibyte delimiters
14256         Previously, uN_strtok moved PTR to the next unit to the token end.
14257         When DELIM contained a multibyte character, the new position could
14258         be a middle of a multibyte character.
14259         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
14260         after the token.
14261         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
14262         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
14263         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
14264         * modules/unistr/u8-strtok (Depends-on): Depend on
14265         unistr/u8-strmblen.
14266         * modules/unistr/u16-strtok (Depends-on): Depend on
14267         unistr/u16-strmblen.
14268         * modules/unistr/u32-strtok (Depends-on): Depend on
14269         unistr/u32-strmblen.
14270         * tests/unistr/test-u-strtok.h: New file.
14271         * tests/unistr/test-u8-strtok.c: New file.
14272         * tests/unistr/test-u16-strtok.c: New file.
14273         * tests/unistr/test-u32-strtok.c: New file.
14274         * modules/unistr/u8-strtok-tests: New file.
14275         * modules/unistr/u32-strtok-tests: New file.
14276         * modules/unistr/u16-strtok-tests: New file.
14278 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
14280         update-copyright: fix test failure with perl >= 5.22 (trivial)
14281         * build-aux/update-copyright: Escape a literal left curly bracket,
14282         required with perl >= 5.22
14284 2015-07-02  Daiki Ueno  <ueno@gnu.org>
14286         u{16,32}-strstr-tests: relax timeout condition
14287         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
14288         tests can take longer than 5 seconds to complete.
14289         Reported by Dagobert Michelsen in:
14290         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
14291         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
14292         seconds to 10 seconds.
14293         * tests/unistr/test-u32-strstr.c (main): Likewise.
14295 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14297         gnulib-common.m4: change the ARFLAGS default to 'cr'
14298         In some GNU/Linux distributions people started to compile 'ar'
14299         binary with --enable-deterministic-archives (binutils project).
14300         That, however, in combination with previous autotools long time
14301         working default AR{_,}FLAGS=cru causes warnings on such
14302         installations:
14303         ar: `u' modifier ignored since `D' is the default (see `U')
14304         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
14305         set already.
14307 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14309         selinux-h: avoid double free after *getfilecon()
14310         Originally reported by Ben Shelton on bug-tar:
14311         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
14312         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
14313         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
14314         param should be freed by freecon(3) (regardless the return value).
14316 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
14318         fix pty related tests issues on Windows (trivial)
14319         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
14320         however it's still present in tests/ subdirectory of the final project.
14321         Therefore avoid it to pass `make check`.
14322         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
14323         will just return -ENOSYS, so avoid this non applicable test allowing
14324         the build to proceed.
14326 2015-07-01  Pádraig Brady  <P@draigBrady.com>
14328         acl: fix definition of acl_from_mode on FreeBSD
14329         This was causing basic coreutils copy operations to fail
14330         with ENOTSUP or ENOENT error messages.
14331         * lib/acl-internal.h (acl_from_mode): Only define when
14332         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
14333         of acl_from_mode() defined in lib/set-permissions.c to
14334         be used on FreeBSD at least.
14335         * lib/set-permissions.c: Fix up comment spelling,
14336         and a redundant variable assignment; noticed in passing.
14338 2015-06-30  Pádraig Brady  <P@draigBrady.com>
14340         readutmp: port to FreeBSD >= 9
14341         * lib/readutmp.h: Map utmpxname() to setutxdb().
14342         With that coreutils who(1) and pinky(1) tests pass.
14344 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14346         mgetgroups: port to strict OS X
14347         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
14348         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
14349         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
14350         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
14352 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14354         mgetgroups: port to strict OS X
14355         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
14356         Document the getgrouplist problem.
14357         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14358         New macro.
14359         (mgetgroups): Use it.
14360         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14361         Check for OS X signature for getgrouplist.
14363 2015-06-29  Jim Meyering  <meyering@fb.com>
14365         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14366         It started like this when building coreutils' latest on OS X,
14367         invoking ./configure with a nonempty --cache=.cache:
14369           lib/linkat.c:46:42: error: operator '||' has no right operand
14370           lib/linkat.c: In function 'rpl_linkat':
14371           lib/linkat.c:330:27: error: #if with no expression
14373         Here's linkat.c's line 46:
14375           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14377         Here's some context:
14379           $ grep linkat_nofoll .cache
14380           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14381           $ grep LINKAT_SYM lib/config.h
14382           #define LINKAT_SYMLINK_NOTSUP
14384         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14385         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14386         but that violates a tenet of AC_CACHE_CHECK: it must
14387         have no side effect other than setting its cache variable.
14389         What happens is that when the cache is set, we'd skip the
14390         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14391         defined to whatever value it happened to have in configure's
14392         environment.  In my case, it was not defined, so this later code:
14394           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14395             [Define to 1 if linkat can create hardlinks to symlinks])
14397         would emit code with an empty RHS.
14399         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14400         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14402 2015-06-28  Jim Meyering  <meyering@fb.com>
14404         mountlist: avoid an unused-label warning on OS X
14405         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14406         Building on OS X, I saw a warning about the "free_then_fail" label
14407         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14409         error.c: correct printf-style format: %d -> %u
14410         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14411         rather than %d, to match the type of "line_number", unsigned int.
14413 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14415         fts: avoid reading beyond the heap allocation
14416         GCC 5.1.1 with -O2 and -fsanitize=address reports
14417         a read of size 4 from a heap object of size 3 is indeed invalid,
14418         though this may be due to incorrect padding assumptions by GCC, see:
14419         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14420         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14421         * modules/fts: Depend on stdalign.
14423 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14425         savedir: avoid undefined behavior in qsort call
14426         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14427         "runtime error: null pointer passed as argument 1,
14428          which is declared to never be null"
14429         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14431 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14433         userspec: avoid undefined behavior in gettext call
14434         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14435         "runtime error: null pointer passed as argument 2,
14436          which is declared to never be null"
14437         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14439 2015-06-20  Glenn Morris  <rgm@gnu.org>
14441         gitlog-to-changelog: improve gitmerge.el commits
14442         Let the Emacs ChangeLog generation process exclude "skipped"
14443         messages from merge commits (Bug#20717).
14444         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14446 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14448         wchar: fix MinGW compilation warnings
14449         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14450         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14451         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14453 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14455         uniname/uniname-tests: use pristine data files
14456         For copyright and maintenance reasons, use the data files from UCD
14457         without modification.
14458         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14459         (getfield): Remove.
14460         (aliases_count): New global variable.
14461         (fill_names): Skip comments and empty lines in the input.  Don't
14462         use getfield.
14463         (fill_aliases): Likewise.
14464         (main): Change the expected command line arguments to:
14465         NAMES... ["--" ALIASES...].
14466         * tests/uniname/test-uninames.sh: Adjust to the change in
14467         test-uninames.c.
14468         * tests/uniname/UnicodeDataNames.txt: Remove.
14469         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14470         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14471         file from Unicode 8.0.0.
14473 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14475         linked-list, linkedhash-list: avoid compiler warnings
14476         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14477         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14479 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14481         libunistring: bump minimum version to 0.9.6
14482         * all modules depending on updated Unicode data: Regenerate.
14483         The modules are listed by a script that does:
14484         - for each file listed by: git show --oneline --name-only 705f4efc
14485           - deduce the containing modules, based on "Files:"
14486         - deduce the modules which depend on the containing modules, based
14487           on "Depends-on:"
14489 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14491         uniname/uniname: update to Unicode 8.0.0
14492         * lib/uniname/uninames.h: Regenerate.
14493         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14494         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14496 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14498         libunistring: update to Unicode 8.0.0
14499         * lib/gen-uni-tables.c (SIZEOF): New macro.
14500         (output_numeric): Increase the maximum number of fractions from
14501         128 to 160.  Increase the level3 value width from 7 bits to 8
14502         bits.  Use SIZEOF instead of a hard-coded integer.
14503         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14504         0x28000.
14505         (fill_blocks): Increase the maximum number of blocks from 256 to
14506         384.  Use SIZEOF instead of a hard-coded integer.
14507         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14508         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14509         value width.
14510         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14511         a new case added to LBP22.
14512         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14513         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14514         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14515         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14516         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14517         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14518         lib/uniwidth/width.c.
14519         * all generated files under lib/uni* and tests/uni*: Regenerate.
14521 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14523         gnu-web-doc-update: add --mirror to remove stale files
14524         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14525         out of date files from the CVS server.  Since this is usually
14526         appropriate, a prompt is given when the option is not specified,
14527         along with the `cvs remove` command that would be run.
14529 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14531         acl-permissions: pacify -Wsuggest-attribute=const
14532         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14533         * lib/acl-internal.h (free_permission_context):
14534         Declare with attribute const if ! (defined USE_ACL &&
14535         (HAVE_ACL_GET_FILE || defined GETACL)).
14537         fsync: document AIX misbehavior
14538         * doc/posix-functions/fsync.texi (fsync):
14539         Document failure on AIX with read-only file descriptor.
14541 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14543         stdio: Don't redefine gets when using C++
14544         * lib/stdio.in.h (gets): Disable warning on C++.
14546 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14548         acl-permissions: port to AIX, C89 HP-UX
14549         Problems reported by Michael Felt.
14550         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14551         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14552         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14553         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14554         Add cast for AIX, whose system calls are declared to accept
14555         char * even though the arguments are really char const *.
14556         * lib/get-permissions.c (get_permissions):
14557         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14558         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14559         that broke a build.
14560         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14561         Rework types to pacify xlc.
14563 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14565         vasprintf-posix: avoid compiling vasnprintf where possible
14566         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14567         module where not required.  For example on a GNU/Linux system
14568         when gnulib-tool is run with the --conditional-dependencies option.
14570 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14572         file-has-acl: fix build on Mac OS X 10
14573         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14574         which has an incompatible 6 parameter getxattr() call.
14575         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14576         call on Mac OS X >= 10.4.
14577         * doc/glibc-functions/fgetxattr.texi: Likewise.
14578         * lib/file-has-acl.c: Revert to more complete combined check.
14579         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14580         Reported by Jack Howarth.
14582 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14584         prefix-gnulib-mk: remove no longer needed special case
14585         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14586         continued lib_SOURCES lines are no longer present,
14587         so special case handling of such entries is not required.
14589 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14591         acl: don't depend on the deprecated qacl module
14592         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14594 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14596         gnulib-tool: concatenate lib_SOURCES to a single line
14597         * gnulib-tool: Refactor the line merging sed logic,
14598         and use that to output a single lib_SOURCES line for each module.
14599         gnulib using projects often postprocess this output to prepend
14600         subdir paths to each item, and having a single line simplifies this
14601         processing allowing better decoupling from the gnulib-tool output.
14603 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14605         pthread_sigmask: discount system version if a simple macro (trivial)
14606         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14607         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14608         function to ensure it's available.
14610 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14612         readlinkat: avoid OS X 10.10 trailing slash bug
14613         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14614         has this bug.
14615         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14616         that OS X 10.10 has this function.
14617         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14618         as done for readlink().
14619         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14620         trailing slash bug, and assume readlinkat() has the same issue.
14621         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14622         rather than the correct $gl_cv_decl_readlinkat_works.
14624 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14626         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14627         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14628         module rewrite.
14630         acl-permissions: Fix build on Solaris and Cygwin
14631         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14632         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14633         ace_entries variables have moved into struct permission_context but
14634         they were still accessed as local variables here.
14636 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14638         linkat: avoid OS X 10.10 trailing slash with symlink bug
14639         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14640         causes the symlink to be dereferenced, and if it points
14641         to a non existent file, that file will be created as
14642         a hard link to "path1".
14643         This fixes a test failure in test-linkat.c.
14644         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14645         this case.  The existing workaround in linkat.c for
14646         trailing slash issues, suffices for this case.
14647         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14648         the list of platforms with trailing slash issues.
14650 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14652         unlinkat: handle ignoring of ".." on Darwin 14
14653         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14654         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14655         so handle in the same manner.
14656         * m4/unlinkat.m4: Comment on this Darwin issue.
14657         * doc/posix-functions/unlink.texi: Update the latest version
14658         where the issue was seen.
14659         * doc/posix-functions/unlinkat.texi: Mention this issue.
14660         Fixes a test failure in test-unlinkat.c.
14662 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14664         qacl: split into qcopy-acl and qset-acl
14665         Emacs needs the former, but not the latter.
14666         * modules/acl-permissions: New file, containing most of the old qacl.
14667         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14668         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14669         * modules/qcopy-acl, modules/qset-acl: New files.
14670         * MODULES.html.sh (File system functions):
14671         Mention the new modules, and mention qacl while we're at it.
14673 2015-05-27  Glenn Morris  <rgm@gnu.org>
14675         gitlog-to-changelog: new option --ignore-line
14676         (This patch is imported from the GNU Emacs master.)
14677         This option ignores individual commit lines matching a pattern.
14678         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14680 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14682         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14683         Implement get_permissions and set_permissions primitives for getting all
14684         the permissions of a file, storing them, and later setting them. (In the
14685         minimal case, the permissions consist only of a file mode.) Reimplement
14686         qset_acl and qcopy_acl based on these new primitives: this avoids code
14687         duplication and makes error handling more consistent.
14688         The Solaris and Cygwin code still uses duplicate code paths for setting
14689         a file mode while making sure that no acls exist and setting an explicit
14690         acl; this is no worse than before, but could be cleaned up.  The AIX
14691         code still doesn't read ACLs, it only makes sure that acls don't get in
14692         the way when setting a file mode.
14693         * lib/acl-internal.h (struct permission_context): New data structure.
14694         (get_permissions, set_permissions, free_permission_context): Declare.
14695         * lib/acl-internal.c (free_permission_context): New helper function.
14696         * lib/get-permissions.c (get_permissions): New helper function split off
14697         from qcopy_acl.
14698         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14699         AIX, set a file's permissions based only on a file mode.
14700         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14701         other platforms construct a temporary acl from the file mode and set
14702         that acl in the same way as setting an acl read from the source file.
14703         This should help avoid code duplication and inconsistent / buggy
14704         behavior.
14705         (set_acls): New helper function Split off from qcopy_acl.
14706         (chmod_or_fchmod): Moved here from qset-acl.c.
14707         (set_permissions): New helper function.
14708         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14709         set_permissions.
14710         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14711         * modules/qacl: Add get-permissions.c and set-permissions.c.
14713         file-has-acl: Split feature tests again (Bug#20667)
14714         * lib/file-has-acl.c: Instead of testing for
14715         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14716         define them when needed.
14717         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14718         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14720 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14722         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14723         This avoids a conflict with "FORTIFY_SOURCE" variants
14724         of the string functions when they're replaced on NetBSD-6.0.1
14725         and Darwin-14.3.0 at least.
14726         * lib/string.in.h: Avoid including our "lib/string.h" while
14727         including the system <string.h>.
14729 2015-05-26  Eric Blake  <eblake@redhat.com>
14731         stdio: limit __gnu_printf__ witness to gcc 4.4+
14732         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14733         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14735         error: use correct printf attributes on mingw
14736         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14738         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14739         * modules/inttypes (Depends-on): Require extensions, so that mingw
14740         always uses GNU style inttypes.
14741         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14743         stdio: fix probe on mingw under gcc 5.1
14744         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14745         around new gcc preprocessor rules.
14747 2015-05-07  Glenn Morris  <rgm@gnu.org>
14749         gitlog-to-changelog: parse "Tiny-change"
14750         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14751         "Copyright-paperwork-exempt".  (Bug#20324)
14753 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14755         doc: document glibc posix_fallocate() issues
14756         * doc/posix-functions/posix_fallocate.texi: Mention the
14757         glibc efficiency problems and issues with NFS.
14759 2015-05-05  Karl Berry  <karl@freefriends.org>
14761         * build-aux/gendocs.sh (usage): document new css default
14762         for HTML (--htmlarg).
14764 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14766         extern-inline: no need for workaround in GCC 5.1
14767         * doc/extern-inline.texi (extern inline):
14768         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14769         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14770         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14771         two we can remove these workarounds.
14773 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14775         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14776         Avoid [-Wunknown-attributes] warnings like:
14777         warning: unknown attribute '__alloc_size__' ignored
14778         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14779         with clang, as support has been fully removed as of clang 3.5:
14780         https://github.com/llvm-mirror/clang/commit/c047507a
14781         * lib/eealloc.h: Likewise.
14782         * lib/pagealign_alloc.h: Likewise.
14784 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14786         tests: pacify GCC 5.1's stricter printf checking
14787         * tests/test-dirname.c (main):
14788         * tests/test-getaddrinfo.c (simple):
14789         * tests/test-getlogin.c (main):
14790         * tests/test-getndelim2.c (main):
14791         * tests/test-inttostr.c (CK):
14792         * tests/test-md5.c (main):
14793         * tests/test-read-file.c (main):
14794         * tests/test-sha1.c (main):
14795         Fix mismatches between printf format and value signedness.
14796         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14797         Remove, as CAST_VAL always returned a value of type uintmax_t.
14799         fts: port to GCC 5.1 with --enable-gcc-warnings
14800         Without this fix, GCC 5.1 (correctly) warns about a subscript
14801         error on the fts_name component of FTSENT.  It's actually a
14802         flexible member, so define it that way on C99 or later hosts.
14803         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14804         structure that now has a flexible array member.
14805         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14806         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14807         * modules/fts (Depends-on): Add flexmember.
14809 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14811         file-has-acl: port to CentOS 6
14812         Problem reported by Tom G. Christensen in:
14813         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14814         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14815         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14816         HAVE_GETXATTR.
14817         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14818         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14819         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14820         file-has-acl.c actually needs.
14822 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14824         file-has-acl: always return false when ACLs aren't supported
14825         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14826         change the GNU/Linux getxattr path, to transform "not supported"
14827         errors to a false return rather than an error.  This is handled
14828         within file_has_acl() due to the platform specific tests to
14829         determine if ACLs are not supported.
14831 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14833         gettext: propagate po/Makefile.in.in too
14834         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14835         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14836         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14837         between Makefile.in.in and the gettext-runtime m4 files.
14839 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14841         file-has-acl: new module, split from acl
14842         And add a new module file-has-acl-tests to match.
14843         I ran into a problem with the recent changes to the acl module,
14844         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14845         When using the fixed version with Emacs, I discovered that
14846         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14847         had multiple libraries, but needed only one), so I fixed that too.
14848         * NEWS: Document this incompatible change.
14849         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14850         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14851         Initialize gl_need_lib_has_acl.
14852         (gl_FUNC_ACL): Require it.
14853         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14854         Move the file-has-acl.c-relevant stuff to ...
14855         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14856         use_xattrs = 0' typo, and omit some needless work.  Set
14857         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14858         when gl_FUNC_ACL is called.
14859         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14860         (Link): Remove $(LIB_HAS_ACL).
14861         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14862         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14863         modules/file-has-acl-tests.
14864         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14866         manywarnings: add GCC 5.1 warnings
14867         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14868         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14869         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14870         -Wsuggest-override, -Wuse-without-only.  Change
14871         -Wnormalized=... operands to match 5.1.
14872         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14873         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14874         -Wdiscarded-qualifiers, -Wformat-signedness,
14875         -Wincompatible-pointer-types, -Wint-conversion,
14876         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14877         -Wshift-count-negative, -Wshift-count-overflow,
14878         -Wsizeof-array-argument, -Wsuggest-final-methods,
14879         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14880         and add -Warray-bounds=2 as a special case.
14882 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14884         doc: update FDL template to match FDL examples.
14885         * doc/alloca-opt.texi:
14886         * doc/alloca.texi:
14887         * doc/c-ctype.texi:
14888         * doc/c-strcase.texi:
14889         * doc/c-strcaseeq.texi:
14890         * doc/c-strcasestr.texi:
14891         * doc/c-strstr.texi:
14892         * doc/c-strtod.texi:
14893         * doc/c-strtold.texi:
14894         * doc/ctime.texi:
14895         * doc/error.texi:
14896         * doc/gcd.texi:
14897         * doc/gnulib-tool.texi:
14898         * doc/inet_ntoa.texi:
14899         * doc/intprops.texi:
14900         * doc/lib-symbol-visibility.texi:
14901         * doc/maintain.texi:
14902         * doc/parse-datetime.texi:
14903         * doc/quote.texi:
14904         * doc/regexprops-generic.texi:
14905         * doc/standards.texi: Remove spurious 'with' in FDL license
14906         template.
14908 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14910         lstat: fix cross-compilation 'ln -s' problem
14911         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14912         Have the test program call 'symlink' rather than a separate
14913         script run 'ln -s'; this is more likely to work in
14914         cross-compilation environments.  Reported by Pavel Fedin in:
14915         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14917 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14919         gendocs.sh: default to a common CSS style sheet for HTML output
14920         * build-aux/gendocs.sh (htmlarg): Change default value.
14922 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14924         gnulib-tool: output bold attribute more portably
14925         * gnulib-tool (func_show_module_list): Change hexadecimal
14926         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14927         encoded numbers as arguments to `printf' is not portable,
14928         and is not claimed by POSIX.  This is the case with FreeBSD.
14930 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14932         qacl: Simplify HP-UX acl_nontrivial check
14933         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14934         acl_nontrivial. Check if the acl has at most three entries instead (it must
14935         have exactly three entries according to the HP-UX documentation). Ignore
14936         uids and gids as long as an entry is either for a user (i.e., the owner),
14937         a group (i.e., the owning group), or others.
14938         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14939         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14941 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14943         acl: On Linux, check for acls without libacl
14944         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14945         library function to check for the presence of acls, avoiding a library.
14946         * lib/file-has-acl.c: Include xattr headers if we have them.
14947         (file_has_acl): On Linux, use getxattr().
14948         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14949         file_has_acl(). Check for xattr headers and getxattr().
14951 2015-04-14  Ángel González  <keisial@gmail.com>
14953         tempname: avoid unused parameter warnings (trivial)
14954         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14955         (try_nocreate): Likewise.
14957 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14959         fseeko: fix build failure on NetBSD >= 6 (trivial)
14960         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14961         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14963 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14965         gitlog-to-changelog: port to MS-Windows
14966         * build-aux/gitlog-to-changelog (git_dir_option):
14967         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14968         MS-Windows Perl.  Reported by Eli Zaretskii in:
14969         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14971 2015-04-07  Karl Berry  <karl@gnu.org>
14973         gendocs: new option --tex for passing args to texi2dvi.
14974         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14975         (TEXI2DVI): cut to just command name.
14976         (usage): mention new option, and update copyright.
14977         <generate_tex>: use it.
14979 2015-04-07  Karl Berry  <karl@gnu.org>
14981         * config/srclistvars.sh (GETTEXT): new definition.
14982         * config/srclist.txt: use it for gettext .m4 files.
14983         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14984         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14985         and continuing into April.
14987 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14989         uniname/uniname-tests: fix failure due to alias
14990         Reported by Jack Howarth in:
14991         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14992         * tests/uniname/test-uninames.c (name_has_alias): New function.
14993         (test_inverse_lookup): Exclude character name with valid alias,
14994         from randomly generated character names.
14995         (main): Fill unicode_aliases before calling test functions.
14997 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14999         hash: remove deprecated hash_insert0 function
15000         * lib/hash.h (hash_insert0): Remove deprecated function.
15001         * lib/hash.c (hash_insert0): Likewise.
15003 2015-04-02  Pádraig Brady  <P@draigBrady.com>
15005         mountlist: remove dependency on libmount
15006         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
15007         directly, rather than depending on libmount, which has many
15008         dependencies due to its dependence on libselinux, as detailed at:
15009         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
15010         Note we restrict this to __linux__ as that's probably where this
15011         interface will remain.  If ever porting, it would be best
15012         to first pull the makedev() wrapper from coreutils to a gnulib module.
15013         Note also we don't add a getline dependency to the mountlist module,
15014         as all Linux versions are sufficient.
15016 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
15018         stddef: port to pre-C11 GCC on x86
15019         On this platform, max_align_t should have an alignment of 8 even
15020         though the storage alignments of double, long, etc. max out at 4.
15021         Inspired by a comment of Andreas Schwab's here:
15022         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
15023         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
15024         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
15025         * tests/test-stddef.c: Test __alignof__ too, if available.
15027 2015-03-24  Pádraig Brady  <P@draigBrady.com>
15029         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
15030         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
15032 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
15034         yesno: make EOL optional in ENABLE_NLS case also (trival)
15035         * lib/yesno.c (yesno): Check for EOL before replacing.
15036         * tests/test-yesno.sh: Add a test case (test along with gettext).
15038 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
15040         fdopendir-tests: test it does not close its arg
15041         * tests/test-fdopendir.c (main): Test that fdopendir does not
15042         close its argument.  From a suggestion by David Grayson in:
15043         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
15045 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15047         gitlog-to-changelog: trim trailing white space
15048         * build-aux/gitlog-to-changelog (main):
15049         Trim trailing white space from commit message lines.
15050         This is helpful for processing the GNU Emacs repository,
15051         which dates back to 1985 and contains a lot of such lines.
15053         gitlog-to-changelog: new option --ignore-matching
15054         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
15055         Support new option --ignore-matching=PAT, which ignores all
15056         commit messages whose first line matches PAT.
15058 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15060         fdopendir: port better to MinGW
15061         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
15062         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
15063         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
15064         * modules/fdopendir (Depends-on): Add dirfd.
15066 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
15068         fdopendir: fix typo in comment
15069         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
15071 2015-03-09  Eric Blake  <eblake@redhat.com>
15073         error: document all entry points provided
15074         * doc/glibc-functions/error_print_progname.texi
15075         (error_print_progname): Mention the error module.
15076         * doc/glibc-functions/error_at_line.texi (error_at_line):
15077         Likewise.
15078         * doc/glibc-functions/error_message_count.texi
15079         (error_message_count): Likewise.
15080         * doc/glibc-functions/error_one_per_line.texi
15081         (error_one_per_line): Likewise.
15083 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
15085         vasnprintf: pacify clang 3.5.0
15086         Problem reported by Werner Lemberg in:
15087         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
15088         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
15089         The casts aren't needed, since the characters in question are ASCII.
15091 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15093         glob, etc.: port to MSVC v18 on MS-Windows 8.1
15094         * lib/dirent--.h (GNULIB_defined_opendir):
15095         * lib/dirent.in.h (GNULIB_defined_opendir)
15096         (GNULIB_defined_closedir):
15097         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
15098         #undef only if Gnulib defined it.
15100         poll: port to MSVC v18 on MS-Windows 8.1
15101         Problem reported by Gisle Vanem in:
15102         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
15103         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
15104         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
15105         Add sys_socket.
15107 2015-02-24  Pádraig Brady  <P@draigBrady.com>
15109         tests: support stderr verification with returns_()
15110         * tests/init.sh (returns_): Disable tracing for this wrapper
15111         function, so that stderr of the wrapped command is unchanged,
15112         allowing for verification of the contents.
15114 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
15116         passfd: avoid valgrind uninitalised data warning
15117         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
15118         to include just the fd we've initialized, rather than including
15119         the extra space used for alignment.
15121 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15123         uniwbrk/u32-wordbreaks-tests: fix copyright
15124         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
15126         dup2: doc and test for Android bug
15127         Reported by Kevin Cernekee in:
15128         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
15129         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15130         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
15132 2015-02-23  Kevin Cernekee  <cernekee@google.com>
15134         Replace dup2() on Android
15135         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
15136         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
15137         fails.  Using rpl_dup2() fixes this because it has an explicit test
15138         for this condition.
15140 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
15142         Android doesn't define RLIM_SAVED_*
15143         Portability problem reported by Kevin Cernekee in:
15144         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
15145         * doc/posix-headers/sys_resource.texi (sys/resource.h):
15146         Mention the portability problem.
15147         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
15148         Define if not defined.
15149         * m4/dup2.m4 (gl_FUNC_DUP2):
15150         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15151         Likewise.
15153 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15155         vasnprintf-posix-tests: use consistent test
15156         * tests/test-vasnprintf-posix.c (test_function):
15157         Use "<" in assert instead of "<=", for consistency with other tests.
15159 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15161         printf, isinf, etc.: noncanonical != NaN
15162         Do not require that isinf, printf, etc. treat noncanonical
15163         values as NaNs.  Instead, require only that they do not crash.
15164         Problem reported by Joseph Myers in:
15165         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
15166         * doc/posix-functions/dprintf.texi (dprintf):
15167         * doc/posix-functions/fprintf.texi (fprintf):
15168         * doc/posix-functions/isfinite.texi (isfinite):
15169         * doc/posix-functions/isinf.texi (isinf):
15170         * doc/posix-functions/isnan.texi (isnan):
15171         * doc/posix-functions/printf.texi (printf):
15172         * doc/posix-functions/snprintf.texi (snprintf):
15173         * doc/posix-functions/sprintf.texi (sprintf):
15174         * doc/posix-functions/vdprintf.texi (vdprintf):
15175         * doc/posix-functions/vfprintf.texi (vfprintf):
15176         * doc/posix-functions/vprintf.texi (vprintf):
15177         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15178         * doc/posix-functions/vsprintf.texi (vsprintf):
15179         Document this.
15180         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
15181         * m4/isinf.m4 (gl_ISINFL_WORKS):
15182         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
15183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
15184         * tests/test-isfinite.c (test_isfinitel):
15185         * tests/test-isinf.c (test_isinfl):
15186         * tests/test-isnan.c (test_long_double):
15187         * tests/test-isnanl.h (main):
15188         * tests/test-snprintf-posix.h (test_function):
15189         * tests/test-sprintf-posix.h (test_function):
15190         * tests/test-vasnprintf-posix.c (test_function):
15191         * tests/test-vasprintf-posix.c (test_function):
15192 o       Test only that noncanonical values do not cause crashes, not that
15193         they are treated as NaNs.  In some cases this means a larger
15194         output buffer is needed.
15196 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
15198         fts: remove redundant close() (trivial)
15199         * lib/fts.c (fts_read): Remove redundant call to close().
15200         Spotted by coverity.
15202 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15204         getdtablesize: port better for Android
15205         Problem reported by Kevin Cernekee in:
15206         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
15207         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
15208         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
15209         Instead, just use getrlimit, taking care to avoid Cygwin bug.
15211         poll: fixes for large fds
15212         * lib/poll.c (poll): Don't check directly for NFD too large.
15213         Don't rely on undefined behavior in FD_SET when an arg exceeds
15214         FD_SETSIZE.  Always set revents afterwards, even if to zero.
15215         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
15216         as that makes the test a bit stricter.
15218 2015-02-19  Kevin Cernekee  <cernekee@google.com>
15220         fcntl: Fix cross compiling
15221         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
15222         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
15224 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15226         dup2, fcntl: cross-compile better for Android
15227         Problem reported by Kevin Cernekee in:
15228         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
15229         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
15230         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
15231         there's little need to cross-compile for older kernels nowadays.
15232         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
15233         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
15235 2015-02-18  Pádraig Brady  <P@draigBrady.com>
15237         getopt: don't crash on memory exhaustion
15238         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
15239         memory exhaustion.  In the _LIBC case we use alloca() as is
15240         already done in glibc, so we don't need to consider the separate
15241         error path in that awkward case.  Also fix a memory leak when
15242         ambiguous options are present.
15243         Reported by Tobias Stoeckmann
15245 2015-02-17  Mike Miller  <mtmiller@ieee.org>
15247         tempname: allow compilation with C++ (trivial)
15248         * lib/tempname.h [C++]: Specify extern "C" linkage.
15249         * lib/tempname.h (try_tempname):
15250         * lib/tempname.c (__try_tempname, __gen_tempname):
15251         Rename 'try' to 'tryfunc'.
15253 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15255         dup2, fcntl: port to AIX
15256         * m4/dup2.m4 (gl_FUNC_DUP2):
15257         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15258         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
15259         The former works on AIX 7.1 but the latter does not.
15260         Also, this may work better with Android; see:
15261         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
15263 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15265         getdtablesize, dup2, fcntl: port to Android
15266         Problem reported by Kevin Cernekee in:
15267         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
15268         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
15269         Mention that getdtablesize doesn't work on Android.
15270         * lib/getdtablesize.c: Use getrlimit substitute only if
15271         getdtablesize is declared.  This should suffice for Cygwin
15272         while not breaking Android.
15273         * m4/dup2.m4 (gl_FUNC_DUP2):
15274         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15275         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
15276         standardized but the latter is not, and sysconf works on Android.
15277         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
15278         Also check that getdtablesize is declared.
15279         This removes the need for a special case for Android.
15281 2015-02-16  Kevin Cernekee  <cernekee@google.com>
15283         localename: Implement gl_locale_name_thread_unsafe for Android
15284         * lib/localename.c: Android API level >= 21 supports two hardcoded
15285         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
15286         the internal __locale_t struct.
15288 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
15290         fts: avoid crash when a cycle is added while traversing
15291         This could be triggered by auto-mounting a recursive bind mount.
15292         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
15293         * lib/fts.c (fts_read): Avoid removing the original hash table item
15294         when leaving a directory that caused a cycle, and preserve the FTS_DC
15295         flag.
15297 2015-02-16  Daiki Ueno  <ueno@gnu.org>
15299         uniname/uniname: support character alias
15300         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
15301         Generate one-way mapping from aliases to codepoints in the
15302         generated tables.  Special case variation selectors to reduce
15303         table size.
15304         * lib/uniname/uniname.c (unicode_character_name): Special case
15305         variation selectors.
15306         (unicode_name_character): Special case variation selectors and
15307         their aliases.
15308         * lib/uniname/uninames.h: Regenerate.
15309         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
15310         * modules/uniname/uniname-tests (Files): Add
15311         tests/uniname/NameAliases.txt.
15312         * tests/uniname/test-uninames.c: Mark as static.
15313         (ALIASLEN): Define.
15314         (struct unicode_alias): New struct.
15315         (unicode_aliases): New variable.
15316         (fill_aliases): New function.
15317         (test_alias_lookup): New test function.
15318         (main): Run the 'test_alias_lookup' test if the second argument is
15319         given.
15320         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
15321         second argument.
15323 2015-02-11  Kevin Cernekee  <cernekee@google.com>
15325         Fix FILE struct compatibility with Android API level >= 21
15326         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
15327         __sferror.  Recent versions of Bionic's stdio.h no longer define
15328         __sferror.
15329         * lib/fbufmode.c: Likewise.
15330         * lib/fflush.c: Likewise.
15331         * lib/fpurge.c: Likewise.
15332         * lib/freadable.c: Likewise.
15333         * lib/freadahead.c: Likewise.
15334         * lib/freading.c: Likewise.
15335         * lib/freadptr.c: Likewise.
15336         * lib/freadseek.c: Likewise.
15337         * lib/fseeko.c: Likewise.
15338         * lib/fseterr.c: Likewise.
15339         * lib/fwritable.c: Likewise.
15341         Assume unbroken ungetc() on Android
15342         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
15343         test case passed when running on an Android host, and the code
15344         hasn't really changed since 2009.
15346         getdtablesize: Fix Android build
15347         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
15348         versions have this symbol in the .so library (at least 32-bit
15349         platforms) but are missing the declaration in the header file,
15350         causing the m4 logic to guess incorrectly.
15352         localename: Fix Android build
15353         * modules/localename (Depends-on): Add langinfo.
15355         getugroups: Fix Android build
15356         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15357         functions.
15359         euidaccess: Fix Android build
15360         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15361         AT_EACCESS gets declared.
15363         linkat_nofollow: Add fallback case for cross compiling
15364         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15366         net_if: Handle content-free <net/if.h> system headers
15367         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15368         struct if_nameindex.  If not, enable the replacement header.
15370         signal_h: Fix Android build
15371         * lib/signal.in.h: Add Android to the list of platforms that declare
15372         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15374         duplocale: Fix Android build of duplocale-tests
15375         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15376         is included by test-duplocale.c (but not by duplocale.c).
15377         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15378         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15379         * doc/posix-headers/monetary.texi: Add Android to the list of
15380         platforms missing monetary.h.
15382 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15384         tests: avoid recent -Werror=unused-variable regression in test-locale
15385         * tests/test-locale.c (main): Reference the variable to avoid the
15386         "unused variable" warning.
15388 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15390         maint: various whitespace cleanups in tempname
15391         * lib/tempname.c: Normalize spacing and line length.
15392         * lib/tempname.h: Likewise.
15393         * modules/tempname: Likewise.
15395 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15397         tests: provide returns_() to simplify exit status checking
15398         * tests/init.sh (returns_): A new function for use in tests,
15399         to allow for easier checking of return values, where you expect
15400         a command to exit with failure status.  By checking for a particular
15401         exit code, you don't hide any crashes for example.
15403 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15405         mountlist: only use libmount when specified
15406         There are currently many shared libs dependencies introduced by
15407         libmount with associated runtime and virt mem overhead.
15408         Therefore don't enable by default.
15409         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15411 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15413         uniname/unimame-tests: don't link with -lunistring
15414         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15415         $(LIBUNISTRING).  Document the rationale why we need to
15416         conditionalize the test.
15418 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15420         fstrcmp: don't assume strlen < INT_MAX
15421         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15422         (uintptr_t): Remove, as we're now assuming stdint.
15423         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15424         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15425         if the input string is long.
15426         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15427         uintptr_t to size_t when the underlying value is a pointer casted
15428         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15429         * modules/fstrcmp (Depends-on): Add stdint.
15431         diffseq: prefer ptrdiff_t to ssize_t
15432         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15433         ptrdiff_t is the natural type for signed indexes.
15434         On a few older platforms, ssize_t is narrower than size_t.
15436         xalloc: fix typo that suppressed warnings
15437         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15438         This typo, introduced a couple of years ago, mistakenly suppressed
15439         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15440         -Wmissing-declarations warnings.
15442         full-read: fix license notice typo
15443         * lib/full-read.h: Remove a stray line in the license notice.
15444         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15446         crypto/gc: fix a -Wswitch warning
15447         Reported by Bruce Korb in:
15448         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15449         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15451 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15453         gnulib-tool: fix handling of patch(1) diagnostics
15454         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15455         as otherwise gnulib-tool will reparse that output and attempt
15456         to lookup modules.
15458 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15460         bootstrap: exit immediately upon gnulib-tool failure
15461         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15462         This was noticed when gnulib-tool exited early due to failure
15463         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15464         but various confusing errors were then given as the build proceeded.
15466 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15468         symlinkat: include all required header files
15469         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15470         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15471         Reported at https://savannah.gnu.org/bugs/index.php?44151
15472         and by Jack Howarth.
15474 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15476         localename: support Solaris 12 and illumos
15477         * lib/localename.c (gl_locale_name_thread_unsafe): call
15478         getlocalename_l() on newer __sun platforms.
15479         Reported by Alexander Pyhalov.
15480         Fix suggested by Rich Burridge.
15482 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15484         locale: fix tests on illumos (trivial)
15485         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15486         so move from global scope to main().
15488 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15490         unictype: avoid undefined left-shift behavior
15491         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15492         gcc's -fsanitize=shift and running its tests triggered:
15493           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15494             places cannot be represented in type 'int'
15495         Cast LHS to 'unsigned int' after integer promotion.
15496         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15497         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15499 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15501         libunistring: bump version of unitypes dependants
15502         Due to the header file search order, all the headers which depend
15503         on unitypes.h need to be generated, when the preinstalled
15504         libunistring is older.
15505         * modules/unicase/base (configure.ac): Bump minimum version to
15506         0.9.4.
15507         * modules/uniconv/base (configure.ac): Likewise.
15508         * modules/unilbrk/base (configure.ac): Likewise.
15509         * modules/uninorm/base (configure.ac): Likewise.
15510         * modules/unistdio/base (configure.ac): Likewise.
15511         * modules/unistr/base (configure.ac): Likewise.
15512         * modules/uniwbrk/base (configure.ac): Likewise.
15513         * modules/uniwidth/base (configure.ac): Likewise.
15515 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15517         unictype/category-none: fix link with libunistring
15518         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15519         prefixed with "libstring_" when compiled as part of libunistring.
15520         To avoid undefined symbol at link time, increase the minimum
15521         version when the dependant modules are updated.
15522         * modules/unictype/category-none (configure.ac): Bump minimum
15523         version to 0.9.5.
15525 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15527         unitypes: fix build with installed libunistring
15528         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15529         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15530         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15532 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15534         time: port to MinGW32 3.21
15535         Problem reported by Eli Zaretskii in:
15536         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15537         * lib/time.in.h:
15538         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15539         * modules/time (Depends-on):
15540         Fall back on unistd.h if the other include files don't define
15541         struct timespec.
15543         update-copyright: apply to self
15544         * build-aux/update-copyright: Fix copyright date.  How ironic!
15546 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15548         libunistring: update to Unicode 7.0.0
15549         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15550         Manichaean names.
15551         * lib/unictype/joininggroup_name.h: Likewise.
15552         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15553         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15554         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15555         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15556         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15557         enum values.
15558         (is_property_alphabetic): Accept newly added characters to
15559         cuneiform numeric signs.
15560         (is_property_default_ignorable_code_point): Reject U+0605.
15561         (FIELDLEN): Increase from 120 to 160.
15562         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15563         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15564         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15565         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15566         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15567         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15568         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15569         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15570         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15571         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15572         U+1E8D0..U+1E8D6.
15573         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15574         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15575         lib/uniwidth/width.c.
15576         * all generated files under lib/uni* and tests/uni*: Regenerate.
15578 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15580         libunistring: update to Unicode 6.3.0
15581         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15582         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15583         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15584         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15585         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15586         Update WB5, WB9, WB10, WB13a, and WB13b.
15587         * tests/uniwbrk/test-uc-wordbreaks.c
15588         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15589         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15590         (UC_BIDI_PDI): New enumeration values.
15591         (bidi_category_byname): Support those enum values.
15592         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15593         dedicated property assigned.
15594         (is_property_case_ignorable): Check 0x0027.
15595         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15596         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15597         (output_wbp): Support those enum values.
15598         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15599         (UC_BIDI_PDI): New enumeration values.
15600         * lib/unictype/bidi_byname.gperf: Add those property names.
15601         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15602         U+180E, U+1A1B, and U+2066..U+2069.
15603         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15604         lib/uniwidth/width.c.
15605         * all generated files under lib/uni* and tests/uni*: Regenerate.
15607 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15609         libunistring: update to Unicode 6.2.0
15610         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15611         (unilbrk_table): Adjust table size.
15612         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15613         for LBP_RI.
15614         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15615         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15616         Normalize table index skipping ignored properties.
15617         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15618         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15619         the table.
15620         * lib/uniwbrk/wbrktable.h: Adjust table size.
15621         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15622         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15623         Support rule GB8a.
15624         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15625         * tests/unigbrk/test-uc-is-grapheme-break.c
15626         (graphemebreakproperty_to_string): Support GBP_RI.
15627         * tests/uniwbrk/test-uc-wordbreaks.c
15628         (wordbreakproperty_to_string): Support WBP_RI.
15629         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15630         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15631         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15632         LBP_AL to LBP_ID.
15633         (output_lbp): Support LBP_RI.
15634         (WBP_RI): New enumeration value.
15635         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15636         (output_wbp): Support WBP_RI.
15637         (GBP_RI): New enumeration value.
15638         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15639         * all generated files under lib/uni* and tests/uni*: Regenerate.
15641 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15643         libunistring: update to Unicode 6.1.0
15644         * lib/gen-uni-tables.c (output_joining_group): Switch to
15645         3-level table to accommodate joining groups defined with higher
15646         codepoint value.  Since there are only 88 groups defined in
15647         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15648         (get_lbp): Update for Unicode 6.1.0.
15649         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15650         3-level table.
15651         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15652         joining group name.
15653         * lib/unictype/joininggroup_name.h: Likewise.
15654         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15655         (unilbrk_table): Adjust table size.
15656         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15657         for LBP_HL.
15658         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15659         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15660         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15661         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15662         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15663         U+302E..U+302F.
15664         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15665         lib/uniwidth/width.c.
15666         * all generated files under lib/uni* and tests/uni*: Regenerate.
15667         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15669 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15671         uniwbrk/u32-wordbreaks-tests: add conformance test
15672         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15673         tests/uniwbrk/test-uc-wordbreaks.c,
15674         tests/uniwbrk/test-uc-wordbreaks.sh, and
15675         tests/uniwbrk/WordBreakTest.txt.
15676         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15677         test-uc-wordbreaks to $(check_PROGRAMS), and define
15678         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15679         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15680         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15682 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15684         uniwbrk: ignore Extended/Format characters at BOL not BOS
15685         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15686         characters if the previous character property is one of
15687         WBP_NEWLINE, WBP_CR, and WBP_LF.
15689 2015-01-11  Jim Meyering  <meyering@fb.com>
15691         test-strstr.c: avoid a trivial leak
15692         * tests/test-strstr.c (main): Free haystack.
15694         update-copyright: recognize groff's \(co marker
15695         * build-aux/update-copyright (circle_c_re): Also accept
15696         uses of \(co, as found in gzip.1.
15698 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15700         maint.mk: fix compatibility with OS X nm
15701         * top/maint.mk (_gl_tight_scope): Use the -g option to
15702         show exported items rather than the -e option which is
15703         ignored on all platforms except OS X where it gives an error.
15704         Reported by Assaf Gordon.
15706 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15708         localcharset: improve charset detection on OS/2
15709         Use system codepage when appropriate.  Map OS/2 codepages to
15710         GNU canonical charset names if possible.
15711         * lib/config.charset: Don't output aliases if "$os" is os2*.
15712         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15713         result for OS/2.
15714         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15715         from the locale name which is neither "C" nor "POSIX".
15717 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15719         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15720         This reverts the last patch but one, as it shouldn't be needed now
15721         that the typo is fixed.
15722         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15723         * lib/count-trailing-zeros.h:
15724         * lib/count-one-bits.h:
15725         Go back to using 64-bit intrinsics.
15727         count-leading-zeros: fix pragma typos
15728         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15729         Fix typos in declaration of intrinsics when _MSC_VER.
15731 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15733         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15734         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15735         intrinsics in this case.
15736         * lib/count-trailing-zeros.h: Likewise.
15737         * lib/count-one-bits.h: Likewise.
15739 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15741         uniname/uniname: update to Unicode 7.0.0
15742         To accommodate new characters added since Unicode 5.1.0, this
15743         changes the internal representation of codepoint ranges.
15744         Previously, we grouped codepoint ranges by manually assigned 4-bit
15745         tag, which only allowed 16 groups.  This removes the limitation by
15746         switching to binary search on a table.  For the detail rationale
15747         and the benchmark results, see:
15748         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15749         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15750         to INDEX, as it no longer represents a codepoint.
15751         (range): New struct.
15752         (main): Switch to intervals list from a bit-pattern based
15753         classification.
15754         * lib/uniname/uninames.h: Regenerate.
15755         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15756         * modules/uniname/base (configure.ac): Bump minimum version to
15757         0.9.5.
15758         * modules/uniname/uniname (configure.ac): Bump minimum version to
15759         0.9.5.
15761 2015-01-05  Eric Blake  <eblake@redhat.com>
15763         doc: update INSTALL from autoconf
15764         * doc/install.texi: Resync from autoconf.
15765         * doc/INSTALL: Reflect recent autoconf update.
15766         * doc/INSTALL.ISO: Likewise.
15767         * doc/INSTALL.UTF-8: Likewise.
15769         stdio: fix use of PRIdMAX on modern mingw
15770         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15771         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15772         to work with modern mingw.
15774 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15776         pthread: detect git mingw builds with only partial pollution
15777         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15778         pollution, as seen temporarily in Fedora 21.
15780 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15782         lib-symbol-versions: cache script check
15783         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15784         Cache the check for linker version scripts.
15785         From a suggestion by Christophe Curis in:
15786         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15788 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15790         maint: fix grammar nits in propername (trivial change)
15791         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15792         and use an adequate verb and tense.
15794 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15796         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15797         * module/gendocs: Add 'doc/gendocs_template_min'.
15799         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15800         from to Gnulib's.
15801         (scripturl, templateurl): Adjust accordingly.
15803 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15805         gendocs: copyright date and version fix
15806         Reported by Karl Berry in:
15807         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15808         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15809         Fix copyright date.
15810         * build-aux/gendocs.sh (scriptversion): Update.
15812 2015-01-01  Karl Berry  <karl@gnu.org>
15814         * doc/install.texi,
15815         * build-aux/mdate-sh,
15816         * build-aux/depcomp,
15817         * build-aux/config.guess,
15818         * build-aux/config.sub,
15819         * build-aux/ar-lib,
15820         * build-aux/compile: revert copyright updates (some from last
15821         year) in slaved files.
15823 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15825         version-etc: new year
15826         * doc/gnulib.texi:
15827         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15828         * all files: Run 'make update-copyright'.
15830 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15832         xstrtol: ensure errno is reset
15833         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15834         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15836         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15838 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15840         utimens: fix dependency typo
15841         * modules/utimens (Depends-on): Remove 'assure'.
15842         This bug was introduced in the recent 'assure' patch.
15844 2014-12-22  Eric Blake  <eblake@redhat.com>
15846         docs: mention why libgen.h is bad
15847         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15849 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15851         assure: new module
15852         This works better than 'assert' when compiling with -DNDEBUG,
15853         as it avoids some compiler diagnostics in that case.
15854         Reported by Norihiro Tanaka in:
15855         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15856         * MODULES.html.sh (func_all_modules): Add 'assure'.
15857         * lib/assure.h, modules/assure: New files.
15858         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15859         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15860         Prefer 'assure' to 'assert'.
15861         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15862         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15863         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15864         Depend on 'assure'.
15866 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15868         stdalign: port better to HP compilers
15869         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15870         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15872         stdalign: work around Apple GCC 4.0 bug
15873         Reported by David Fang in:
15874         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15875         * lib/stdalign.in.h (_Alignas):
15876         * m4/stdalign.m4 (gl_STDALIGN_H):
15877         Do not use aligned attribute with GCC 4.0 on Apple.
15879 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15881         getcwd: fix test failure on OS X 10.9
15882         * m4/getcwd-path-max.m4: Avoid the replacement if it
15883         won't be effective due to the PATH_MAX limitation of lstat().
15884         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15885         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15886         for this case for use in tests, and also exclude this
15887         case when setting REPLACE_GETCWD.
15888         * tests/test-getcwd.c (test_long_name): Restrict the
15889         tested path length so that lstat() will not be passed
15890         a path greater than PATH_MAX.
15891         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15892         than AT_FDCWD, since the latter is set unconditionally
15893         since Sep 2009 in commit 52c658e9.
15895 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15897         parse-datetime: avoid a compiler warning with byacc (trivial)
15898         * lib/parse-datetime.y (yylex): Use the same prototype in the
15899         function definition as the declaration, to avoid a -Wstrict-prototypes
15900         warning seen when using byacc.
15902 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15904         unicase/locale-language-tests: fix LOCALE_FR test
15905         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15906         a French locale with traditional encoding.
15907         Reported by umerqayam in:
15908         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15910 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15912         stddef: support C11's max_align_t
15913         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15914         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15915         Do not undef, as that might cause max_align_t to be defined twice.
15916         Instead, change use to check for _GL_STDDEF_WINT_T too.
15917         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15918         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15919         Check for max_align_t.
15920         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15921         * modules/stddef-tests (Depends-on): Add stdalign.
15922         * tests/test-stddef.c: Test max_align_t.
15924 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15926         unistd: fix iOS check conditional
15927         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15928         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15929         yielded true on non-iOS environment.
15930         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15931         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15932         they are defined.
15934 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15936         posixtm: avoid compiler warning in a better way
15937         * lib/posixtm.c (IF_LINT): Remove.
15938         (year, posix_time_parse):
15939         Return true (not 0) if successful.  All callers changed.
15940         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15942 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15944         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15945         started with '/' on EMX.
15947 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15949         freopen: workaround freopen() on OS/2 kLIBC
15950         * lib/freopen.c (rpl_freopen): Workaround.
15951         * m4/freopen.m4: Add os2* case.
15953         get_shared_library_fullname: port to EMX
15954         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15955         on EMX, respectively.
15956         (_DLL_InitTerm): New on EMX.
15957         (get_shared_library_fullname): Implement on EMX.
15959         find_executable: port to EMX
15960         * lib/progreloc.c (find_executable): Implement on EMX.
15962         sched: check struct sched_param in spawn.h as well
15963         * lib/sched.in.h: Include spawn.h on kLIBC.
15964         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15966 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15968         bootstrap: Allow perl modules in $buildreq
15969         * build-aux/bootstrap: Add case for perl modules.
15971 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15973         apply _GL_ATTRIBUTE_PURE to some inline functions
15974         clang 3.4.2 flagged these inline functions as pure
15975         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15976         * lib/sig-handler.h (get_handler): Likewise.
15977         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15978         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15980 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15982         vasnprintf: fix potential use after free
15983         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15984         flagged by clang-analyzer 3.4.2.
15986 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15988         filevercmp, posixtm: avoid compiler warnings with -O3
15989         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15990         * lib/posixtm.c: (IF_LINT): Define.
15991         (posix_time_parse): Use it to void a "may be used uninitialized"
15992         warning, seen only with -O3.
15994 2014-12-05  Bruno Haible  <bruno@clisp.org>
15996         Fix LDBL80_WORDS macro on big endian platforms.
15997         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15998         LDBL80_WORDS macro.
15999         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16000         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16001         * tests/test-isfinite.c (test_isfinitel): Likewise.
16002         * tests/test-isinf.c (test_isinfl): Likewise.
16003         * tests/test-isnan.c (test_long_double): Likewise.
16004         * tests/test-isnanl.h (main): Likewise.
16005         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
16006         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
16007         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
16008         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
16009         Reported by Pádraig Brady.
16011 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
16013         git-version-gen: do not print new line characters
16014         * build-aux/git-version-gen: Use printf instead of echo and tr.
16016         gnulib-tool: recognize x:* as an absolute path
16017         * gnulib-tool (func_gnulib_dir): Add ?:* case.
16018         (func_relconcat): Likewise.
16020 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
16022         argp: avoid extraneous translation and mem leak with empty pre doc
16023         * lib/argp-help.c (argp_doc): Never translate the empty string,
16024         when "\v" is the first or last character of the string, as that
16025         has a reserved meaning to return the header info from a po file.
16026         This also fixes a small memory leak in the !post case.
16027         The issue can be seen with this command for example:
16028         LC_MESSAGES=en_US grub2-mknetdir --help
16030 2014-11-27  Daiki Ueno  <ueno@gnu.org>
16032         uniname/uniname-tests: skip if system's libunistring is used
16033         * modules/uniname/uniname-tests (Makefile.am): Skip test if
16034         uniname/uniname module is not compiled.
16036 2014-11-27  Pádraig Brady  <P@draigBrady.com>
16038         printf: fix configure check on big endian systems
16039         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
16041 2014-11-22  Daiki Ueno  <ueno@gnu.org>
16043         pipe-filter-gi, pipe-filter-ii: port to AIX
16044         On AIX 7.1, 'select' is defined as static and cannot be referred
16045         to from inline function.
16046         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
16047         the definition...
16048         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
16049         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
16051 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16053         gitlog-to-changelog: add --until
16054         * build-aux/gitlog-to-changelog: Support new --until option.
16055         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
16057 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
16059         extern-inline: update commentary about GCC bugs
16060         * m4/extern-inline.m4: Add another GCC bug number to comments.
16062 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16064         gen-uni-tables: untabify
16065         * lib/gen-uni-tables.c: Untabify.
16067 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16069         gen-uni-tables: check out-of-range values added to 3-level tables
16070         * lib/gen-uni-tables.c (output_category, output_bidi_category)
16071         (output_joining_type, output_ident_category): Check out-of-range
16072         values added to 3-level tables.
16074 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16076         gen-uni-tables: utilize 'assert'
16077         * lib/gen-uni-tables.c: Include <assert.h>.
16078         (output_category, output_combclass, output_decimal_digit_test)
16079         (output_decimal_digit, output_digit_test, output_digit)
16080         (output_numeric, get_mirror_value, fill_properties)
16081         (fill_property30, is_property_alphabetic)
16082         (is_property_default_ignorable_code_point)
16083         (is_property_uppercase, is_property_lowercase)
16084         (is_property_cased, is_property_case_ignorable)
16085         (is_property_changes_when_lowercased, is_property_iso_control)
16086         (is_property_math, fill_arabicshaping, output_joining_group)
16087         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
16088         (output_wbp, fill_org_gbp, get_decomposition)
16089         (output_decomposition, fill_composition_exclusions)
16090         (debug_output_composition_tables, output_composition_tables)
16091         (redistribute_casefolding_rules, output_casing_rules): Use
16092         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
16093         reporting.
16095 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16097         gen-uni-tables: cosmetic improvements
16098         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
16099         variables specification.
16100         (is_outdigit): Remove unused function.
16102 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
16104         fcntl-h-tests: port to PA-RISC GNU/Linux
16105         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
16107 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16109         fts: port to C89
16110         Problem reported for MSVC 16 by Gisle Vanem in:
16111         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
16112         * lib/fts.c (fts_build): Avoid declaration before statement.
16114 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16116         unistd: port to iOS
16117         Problem reported by André Klitzing in:
16118         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
16119         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
16121 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16123         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
16124         Problem reported by Alan Modra in:
16125         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
16126         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
16127         Always cast the function arg, reverting this part of the previous
16128         change.
16130 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
16132         obstack: avoid potentially-nonportable function casts
16133         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
16134         Remove, replacing with ...
16135         (call_chunkfun, call_freefun): New static functions.
16136         All uses changed.  Avoid potentially-nonportable casts.
16137         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
16138         (_obstack_begin_worker): Omit last two args, since they
16139         rely on potentially-nonportable casts.  All callers changed.
16140         * lib/obstack.h (_OBSTACK_CAST): New macro.
16141         Use it everywhere the old API used a potentially-nonportable cast.
16142         The new API doesn't cast.
16143         (struct obstack): Use unions rather than requiring
16144         potentially-nonportable casts.
16145         (obstack_chunkfun, obstack_freefun): Return void.
16147 2014-11-03  Alan Modra  <amodra@gmail.com>
16149         obstack: fix macro return values
16150         * lib/obstack.h (obstack_next_free): Return void *.
16151         (obstack_1grow_fast, obstack_blank_fast): Return void.
16152         For __GNUC__ macros:
16153         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
16154         For !__GNUC__ macros:
16155         (obstack_make_room, obstack_grow, obstack_grow0)
16156         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
16158 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16160         obstack: do not assume system-supplied obstack is size_t safe
16161         * m4/obstack.m4: New file.
16162         * modules/obstack (Files): Add it.
16164         obstack: port to platforms that #define __alignof__
16165         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
16166         not if !_LIBC.  We don't know of any platforms that #define
16167         __alignof__, but it might be useful in tests.  Conversely,
16168         glibc assumes GCC.
16170 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16172         linkat: don't unconditionally replace on GNU/Linux
16173         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
16174         was redundant for a few reasons.  It was present to support compiling
16175         on new systems but running on the old narrow window of Linux 2.6.1[67].
16176         It setup and cleaned up test files which weren't actually used.
16177         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
16178         implicit in the following check.
16180 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16182         linkat: wrap to handle symlinks on OS X 10.10
16183         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
16184         but not usable because it doesn't support creating hardlinks
16185         to symlinks.  Therefore add a generic test for this capability
16186         and fallback to our emulation if linkat() fails with ENOTSUP.
16188 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16190         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
16191         * doc/posix-functions/open.texi (open):
16192         * doc/posix-functions/openat.texi (openat):
16193         Document that these functions do not set errno to ELOOP when
16194         a symlink is opened with O_NOFOLLOW.
16196 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16198         obstack: add NEWS entry for recent incompatible changes
16199         * NEWS: Describe recent changes.
16201 2014-10-30  Pádraig Brady  <P@draigBrady.com>
16203         mountlist: don't use libmount to decide on dummy/remote
16204         * lib/mountlist.c (read_file_system_list): Don't use the libmount
16205         routines to determine whether a file system is dummy or remote,
16206         as they're not currently compatible.  For example the remoteness
16207         is determined on file system type (for which the list seems incomplete),
16208         rather than simply checking for a ':' in the device name.
16209         Also libmount currently determines that 'tmpfs' is a dummy file system
16210         even though it has associated storage.
16212 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16214         obstack: prefer __alignof__ to alignof
16215         This is for portability to pre-4.7 GCC when compiling glibc.
16216         See Joseph S. Myers in:
16217         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
16218         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
16219         New macro, defined by including and using <alignof.h>.
16220         (MAX): New macro.
16221         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
16222         Do not use enums as they are not portable to some broken compilers.
16223         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
16225         obstack: prefer alignof to calculating alignments by hand
16226         * lib/obstack.c: Include <stdalign.h>.
16227         (struct fooalign): Remove.
16228         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
16229         * modules/obstack (Depends-on): Add stdalign.
16231 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16233         obstack: use size_t alignments and check for overflow
16234         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
16235         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
16236         * lib/obstack.h (struct obstack.alignment_mask):
16237         Use _OBSTACK_SIZE_T, not int, for alignments.
16238         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
16239         overflows, e.g., when adding the alignment.
16241 2014-10-29  Alan Modra  <amodra@gmail.com>
16243         obstack: 64-bit obstack support, part 3
16244         This finally enables full 64-bit obstack support.  The glibc
16245         shared library specific code is removed from obstack.c too, and
16246         the error handling code conditionally compiled under control of
16247         another macro, _OBSTACK_NO_ERROR_HANDLER.
16248         * lib/obstack.h: Include string.h earlier.
16249         (_OBSTACK_INTERFACE_VERSION): Define.
16250         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
16251         * lib/obstack.c: Don't include shlib-compat.h.
16252         (OBSTACK_INTERFACE_VERSION): Delete.
16253         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
16254         glibc code is compatible with version 2.  Don't include stdio.h for
16255         __GNU_LIBRARY.
16256         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
16257         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
16258         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
16259         glibc shared library specific source.
16261         obstack: 64-bit obstack support, part 2
16262         This gets us 4G obstack support, without changing ABI
16263         compatibility, apart from possibly introducing some
16264         signed/unsigned comparison warnings in code that uses obstack.h.
16265         a) Replace "int" size parameters, return values, and macro local vars
16266            with _OBSTACK_SIZE_T, an "unsigned int" for now.
16267         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
16268         c) Make all obstack macros checking available room use obstack_room.
16269            "next_free + desired > chunk_limit" may wrap the lhs for chunks
16270            allocated near the top of memory.
16271         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
16272         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
16273         in place of "int" size parameters, return values and local vars.
16274         (_CHUNK_SIZE_T): Define.
16275         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
16276         union use an _OBSTACK_SIZE_T integer type.
16277         For __GNUC__ versions of the following macros...
16278         (obstack_room): Rename local var.
16279         (obstack_make_room): Use obstack_room.
16280         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16281         obstack_int_grow, obstack_blank): Likewise.
16282         (obstack_finish): Use unsigned comparison when comparing aligned
16283         next_free against chunk_limit.
16284         (obstack_free): Cast OBJ to remove possible const qualifier.
16285         For !__GNUC__ versions of the following macros...
16286         (obstack_make_room): Use obstack_room.
16287         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16288         obstack_int_grow, obstack_blank): Likewise.
16289         (obstack_finish): Use unsigned comparision when comparing aligned
16290         next_free against chunk_limit.
16291         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
16292         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
16293         _OBSTACK_SIZE_T.
16294         (_obstack_begin, _obstack_begin_1): Likewise.
16295         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
16296         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
16298         obstack: 64-bit obstack support, part 1
16299         a) Correct calls to alloc function, to use a size_t arg.  "long" is
16300            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
16301            and "size_t" 64 bits.
16302         b) Consolidate _obstack_begin and _obstack_begin1 code.
16303         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
16304         use "size_t" rather than "long".
16305         (_obstack_begin, _obstack_begin1): Likewise.
16306         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
16307         obstack_chunkfun): Update alloc function casts.
16308         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
16309         (chunkfun_type, freefun_type): New typdefs.
16310         (_obstack_begin_worker): Split out from ..
16311         (_obstack_begin, _obstack_begin_1): ..here.
16313         obstack: tidy part 2
16314         a) Don't be concerned about "not polluting the namespace with stddef.h
16315            symbols" in obstack.h, since gnulib string.h includes stddef.h
16316            anyway, and it seems unlikely that anyone would care.
16317         b) Don't roll our own slow memcpy in _obstack_newchunk.
16318         c) Rename obstack_free to _obstack_free.  This makes the naming
16319            consistent with other obstack functions and obviates the need for
16320            __obstack_free.  Ancient obstack.c defined both obstack_free and
16321            _obstack_free.  We continue to do that for _LIBC via an alias.
16322         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
16323            is clever, but nowadays gcc warns on undefined macros.  You'll get
16324            an undefined macro warning if simulating an old gcc with -U__GNUC__
16325            -U__GNUC_MINOR__ -D__GNUC__=1.
16326         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
16327         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
16328         (__obstack_free): Delete, update refs.
16329         (_obstack_free): Rename from obstack_free.
16330         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
16331         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
16332         * lib/obstack.c: Don't include stddef.h.
16333         (COPYING_UNIT): Delete.
16334         (_obstack_begin): Formatting fix.
16335         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
16336         (_obstack_free): Rename from __obstack_free, update alias.  Move
16337         undef of obstack_free to where it is needed.
16339         obstack: tidy part 1
16340         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
16341            to me, and result in overlong lines after later patches.
16342         b) Move error handling code, to avoid a forward declaration and to
16343            simplify later patches in this series.
16344         * lib/obstack.h (struct obstack <temp>): Rename fields of union
16345         and update all uses.
16346         * lib/obstack.c: Include stdlib.h earlier.
16347         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
16348         in file.
16349         (print_and_abort): Remove now redundant forward declaration.
16351 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16353         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
16354         Without this change, in bleeding-edge fileutils Autoconf complains
16355         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
16356         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16357         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16358         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16360 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16362         iconv: avoid false detection of non-working iconv
16363         The INBUF arguments of iconv can be either 'const char **'
16364         or 'char **'.  If CC is g++, the difference causes a compile error
16365         and thus leads to a false detection of non-working iconv.
16366         Reported by Eli Zaretskii and Werner LEMBERG in:
16367         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16368         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16369         iconv.  Bump serial number.
16371 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16373         bootstrap: print more diagnostics for missing programs
16374         * build-aux/bootstrap: only suppress stderr when checking for
16375         alternative program names.  This supports programs issuing non
16376         standard error messages.
16378 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16380         bootstrap: only update the gnulib submodule
16381         * build-aux/bootstrap: Restrict the "submodule update" command
16382         to the gnulib path.
16384 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16386         symlinkat: port to AIX 7.1
16387         * doc/posix-functions/symlinkat.texi (symlinkat):
16388         Mention AIX porting problem.
16389         * lib/symlinkat.c: Always include errno.h.
16390         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16391         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16392         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16394         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16395         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16396         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16398         readlinkat: port to AIX 7.1
16399         * doc/posix-functions/readlink.texi (readlink):
16400         * doc/posix-functions/readlinkat.texi (readlinkat):
16401         Mention AIX porting problem.
16402         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16403         New function.
16404         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16405         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16407         * modules/readlinkat (configure.ac): Also compile replacement
16408         if REPLACE_READLINKAT.
16409         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16411 2014-10-12  Karl Berry  <karl@gnu.org>
16413         * doc/posix-functions/dirname.texi: remove spurious {.
16415 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16417         basename, dirname: Improve documentation.
16418         * doc/posix-functions/basename.texi: Mention dirname module and
16419         base_name() function.
16420         * doc/posix-functions/dirname.texi: Mention dir_name() and
16421         mdir_name() functions.
16422         Suggested by Werner LEMBERG <wl@gnu.org>.
16424 2014-09-24  Jim Meyering  <meyering@fb.com>
16426         exclude: declare exclude_patopts static
16427         * lib/exclude.c (exclude_patopts): Declare static,
16428         to avoid triggering a -Wmissing-prototypes warning.
16429         The alternative (declaring it in the .h file) would
16430         require publicizing the private "struct patopts".
16432 2014-09-21  Werner Lemberg  <wl@gnu.org>
16434         dirname: support compilation with C++
16435         * lib/dirname.h: Add necessary C linkage declarations.
16437 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16439         qsort_r: include <config.h>
16440         Problem reported by Tom G. Christensen in:
16441         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16442         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16444 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16446         avltree-list: avoid compiler warnings (trivial)
16447         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16448         -Werror=suggest-attribute=pure.
16449         * lib/gl_array_list.c: Likewise.
16450         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16451         declaration to avoid -Werror=missing-prototypes.  This is not added
16452         to a header as only exported for tests.  Add (void) to the
16453         check_invariants() call to indicate we're discarding the result
16454         in this context which avoids -Werror=unused-value.  Note we don't
16455         use ignore_value here to avoid a dependency as we know we'll not
16456         be adding __attribute__((warn_unused_result)) to check_invariants().
16457         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16459 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16461         qsort_r: new module, for GNU-style qsort_r
16462         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16464 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16466         strerror_r-posix: support compilation with C++
16467         * lib/strerror_r.c: Add necessary C linkage declarations.
16469 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16471         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16472         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16474 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16476         mountlist: use /proc/self/mountinfo when available
16477         Use libmount to propagate device IDs provided by Linux in
16478         /proc/self/mountinfo.  This will give more accurate output when
16479         using df in chroot'ed environments as the device IDs are not
16480         determined by stat() which may be inaccurate within the chroot.
16481         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16482         from util-linux to parse "/proc/self/mountinfo" or fall back to
16483         standard getmntent() processing.
16484         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16485         getmntent() is used, as is the case on GNU/Linux.
16487 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16489         users.txt: add cmogstored
16490         cmogstored has used gnulib since the beginning in 2012 to support
16491         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16493 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16495         Trivial change.
16496         * gnulib-tool: Use same options as build-aux/bootstrap to download
16497         PO files.
16499 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16501         Trivial change.
16502         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16504 2014-09-04  Eric Blake  <eblake@redhat.com>
16506         maintainer-makefile: add syntax check for useless ';;'
16507         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16509 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16511         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16512         Problem reported by Assaf Gordon in:
16513         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16514         Apparently Ubuntu is doing some fancy link-time optimization
16515         that doesn't work with -lpthread but does work with -pthread.
16516         Work around the bug by preferring -pthread to -lpthread.
16517         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16518         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16519         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16520         Treat -pthread like -lpthread.
16522 2014-09-04  Eric Blake  <eblake@redhat.com>
16524         error: drop spurious semicolon
16525         * lib/error.c (__error_at_line): Fix ';;'.
16527 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16529         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16530         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16531         Override AC_C_RESTRICT unconditionally.
16532         Update from autoconf, incorporating:
16533         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16534         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16536 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16538         manywarnings: add GCC 4.9 warnings
16539         Also, make it easier to maintain this in the future.
16540         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16541         -Wconditionally-supported, -Wdelete-incomplete,
16542         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16543         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16544         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16545         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16546         only for older GCC versions that need them.  Handle
16547         -Wnormalized=nfc specially, so that the 'comm' command used
16548         for maintenance doesn't get confused.
16550 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16552         vasnprintf: fix bugs in width computation
16553         * lib/vasnprintf.c (VASNPRINTF):
16554         Rework previous change, which introduced a bug,
16555         to avoid the warning in a different way.
16556         Avoid undefined behavior if the width arg is less than -INT_MAX.
16557         Avoid unnecessary use of HAS_WIDTH local.
16559 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16561         vasnprintf: Avoid signed/unsigned comparison warning.
16562         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16563         compare end addr of generated string w/ maximum end addr.
16565 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16567         parse-datetime: Avoid pointer difference.
16568         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16569         instead of calculating difference of pointers.  This removes an
16570         annoying warning, devoid of any use.
16572 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16574         qsort_r: new module, for GNU-style qsort_r
16575         This works even on FreeBSD, which has an incompatible qsort_r API.
16576         * MODULES.html.sh: Add it.
16577         * doc/glibc-functions/qsort_r.texi: It's now supported.
16578         * lib/qsort.c: New file, taken from glibc with minor changes
16579         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16580         removed.
16581         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16582         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16584         * modules/qsort_r, modules/qsort_r-tests: New files.
16585         * modules/stdlib (Makefile): Set up its defaults.
16586         * tests/test-qsort_r.c: New file.
16588 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16590         vla: new module
16591         GNU RCS can use this, mostly for documentation I expect.  See:
16592         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16593         * MODULES.html.sh: Add vla.
16594         * lib/vla.h, modules/vla: New files.
16596 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16598         localename: make gl_locale_name_thread really thread-safe on Windows
16599         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16600         "glthread/lock.h".
16601         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16602         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16604 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16606         getpass: don't assume struct termios
16607         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16608         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16609         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16611         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16612         Problem reported by Jonas 'Sortie' Termansen in:
16613         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16614         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16615         Implement via sysconf for platforms that lack getdtablesize.
16617         vararrays: modernize AC_C_VARARRAYS for C11
16618         This backports a change I recently made to Autoconf.
16619         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16620         VLAs are not supported, as this is what C11 does.  The old macro
16621         HAVE_C_VARARRAYS is still defined if they are supported, but is
16622         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16624 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16626         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16627         * build-aux/install-reloc (func_create_wrapper): Also wrap
16628         strerror-override, stat, stat.
16630 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16632         sys_select: fix FD_ZERO problem on Solaris 10
16633         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16634         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16635         to expand to an expression that invoked memset without necessarily
16636         including <string.h>.  The problem was that the first include
16637         defined _SYS_TIME_H, causing the second include to short-circuit.
16638         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16639         Also, fix what appears to be a cut-and-paste typo, by replacing
16640         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16641         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16643         accept: document Solaris 10 type glitch
16644         * doc/posix-functions/accept.texi (accept): Mention that
16645         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16647 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16649         extern-inline: port to FreeBSD, DragonFly
16650         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16651         is present if either __DragonFly__ or __FreeBSD__ is defined.
16652         FreeBSD problem reported by Andrey Borzenkov in:
16653         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16654         Also, worry about __APPLE__ only if __MACH__ is also defined,
16655         as this is more consistent with the rest of gnulib.
16656         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16657         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16659 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16661         regex: Make #if/#ifdef usage consistent for DEBUG
16662         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16663         of the inconsistent usage of #if and #ifdef as that works with
16664         both Glibc and Gnulib's style.
16666 2014-07-31  Eric Blake  <eblake@redhat.com>
16668         openat-die: use _Noreturn markup
16669         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16670         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16671         _Noreturn.
16673 2014-07-30  Eric Blake  <eblake@redhat.com>
16675         test-open: port to cygwin, which lacks Fortify
16676         * tests/test-open.h (ALWAYS_INLINE): New macro.
16677         (__always_inline): Don't abuse internal symbol on non-glibc.
16679 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16681         localename: Enforce declarations before statements.
16682         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16683         first statement.
16685 2014-07-18  Jim Meyering  <meyering@fb.com>
16687         test-userspec: don't look up numeric user names
16688         * tests/test-userspec.c: I found a system for which getpwnam("0")
16689         returned a pointer to a non-root user's entry, and that made the
16690         test fail.
16691         (T): Prefix each numeric input with "+", to inhibit lookup.
16693 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16695         localcharset, localename: MS-Windows support for non-default locales
16696         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16697         falling back on the default system codepage, try extracting
16698         the codepage from what 'setlocale' returns.  This allows to
16699         take into account changes of the codeset due to non-default
16700         locale set by a previous call to 'setlocale'.
16701         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16702         Define if not already defined.
16703         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16704         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16705         current locale by calling 'setlocale', then converting the
16706         locale name into LCID by calling 'get_lcid'.  This allows to
16707         take into account changes in the current locale from the
16708         default one, in contrast to GetThreadLocale.
16710 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16712         announce-gen: avoid failure when Digest::SHA is installed
16713         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16714         Digest::SHA1->new in print_checksums fails.
16715         * build-aux/announce-gen (digest_classes): New associative array
16716         for available message digest implementations.
16717         (print_locations): Use it.
16719 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16721         gettext: revert "update macros to version 0.19"
16722         This reverts commit 9b9370ca, as it currently requires that
16723         developers of any project that explicitly uses the gettext module
16724         or implicitly uses it through the utimens-tests or
16725         futimens-tests modules, use gettext >= 0.19.
16726         However there are some stability and availablity issues with
16727         that version at present.  We can reinstate this soon, when stability
16728         is addressed and packages are more readily available.
16730 2014-07-12  Jim Meyering  <meyering@fb.com>
16732         regex: don't deref NULL upon heap allocation failure
16733         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16734         failure in one more place.
16735         To trigger the segfault, configure grep -with-included-regex,
16736         build it, and run these commands:
16737         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16738         I discovered this while replying to a private report from
16739         Jens Schleusener about excessive memory consumption by grep
16740         when using a regular expression like the one above.
16742 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16744         regex: fix memory leak in compiler
16745         Fix by Andreas Schwab in:
16746         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16747         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16748         constructed tree before returning error.
16750 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16752         announce-gen: avoid perl warnings
16753         * build-aux/announce-gen: add two minor checks to avoid
16754         "use of uninitialized value" warnings when command-line parameters are
16755         missing.
16757 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16759         localename: avoid -Wsuggest-attribute={const,pure} warnings
16760         * lib/localename.c (string_has): Tag internal function as pure.
16761         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16762         as const when appropriate.
16764 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16766         nl_langinfo: Fix last change.
16767         * lib/nl_langinfo.c (includes): Drop redundant include.
16769 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16771         error: Fix -Wundef warnings in glibc
16772         * lib/error.c [_LIBC]: Define default macros for
16773         glibc.
16774         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16775         Check _LIBC before STRERROR_R_CHAR_P.
16777         error: Sync from glibc master
16778         * lib/error.c [_LIBC]: Remove INTUSE usage.
16779         (error_tail): Remove unused macro ALLOCA_LIMIT.
16780         Fix potential buffer overflow.  Fix potential NULL dereference
16781         in strcmp.
16783 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16785         nl_langinfo: fix build under mingw
16786         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16788 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16790         mountlist: do not classify a bind-mounted dir entry as "dummy"
16791         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16792         1-argument getmntent() (instead of assuming absence).
16794 2014-07-08  Eric Blake  <eblake@redhat.com>
16796         maint.mk: less syntax-check noise when SIGPIPE is ignored
16797         * top/maint.mk (_sc_header_without_use)
16798         (sc_require_config_h_first): Parse full list.
16800 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16801             Paul Eggert  <eggert@cs.ucla.edu>
16803         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16804         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16805         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16806         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16807         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16808         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16809         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16810         Include <stdio.h> if Microsoft Windows.
16811         Include <time.h> if !REPLACE_NL_LANGINFO.
16812         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16813         and with improvements for Microsoft Windows.
16814         (rpl_nl_langinfo): Use it.
16815         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16816         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16817         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16818         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16819         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16820         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16821         corresponding values returned by 'localeconv'.  Compute the values
16822         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16823         'strftime' with a suitable struct tm value.
16825 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16827         Bruno Haible has stepped down as maintainer.
16828         See Karl Berry in:
16829         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16830         Daiki Ueno has volunteered to maintain libunistring; see:
16831         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16832         * modules/gen-uni-tables, modules/libunistring:
16833         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16834         * modules/unicase/base, modules/unicase/cased:
16835         * modules/unicase/empty-prefix-context:
16836         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16837         * modules/unicase/locale-language, modules/unicase/special-casing:
16838         * modules/unicase/tocasefold, modules/unicase/tolower:
16839         * modules/unicase/totitle, modules/unicase/toupper:
16840         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16841         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16842         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16843         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16844         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16845         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16846         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16847         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16848         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16849         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16850         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16851         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16852         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16853         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16854         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16855         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16856         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16857         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16858         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16859         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16860         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16861         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16862         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16863         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16864         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16865         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16866         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16867         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16868         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16869         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16870         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16871         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16872         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16873         * modules/uniconv/u16-conv-to-enc:
16874         * modules/uniconv/u16-strconv-from-enc:
16875         * modules/uniconv/u16-strconv-from-locale:
16876         * modules/uniconv/u16-strconv-to-enc:
16877         * modules/uniconv/u16-strconv-to-locale:
16878         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16879         * modules/uniconv/u32-strconv-from-enc:
16880         * modules/uniconv/u32-strconv-from-locale:
16881         * modules/uniconv/u32-strconv-to-enc:
16882         * modules/uniconv/u32-strconv-to-locale:
16883         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16884         * modules/uniconv/u8-strconv-from-enc:
16885         * modules/uniconv/u8-strconv-from-locale:
16886         * modules/uniconv/u8-strconv-to-enc:
16887         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16888         * modules/unictype/bidicategory-all:
16889         * modules/unictype/bidicategory-byname:
16890         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16891         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16892         * modules/unictype/bidiclass-byname:
16893         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16894         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16895         * modules/unictype/block-all, modules/unictype/block-list:
16896         * modules/unictype/block-of, modules/unictype/block-test:
16897         * modules/unictype/category-C, modules/unictype/category-Cc:
16898         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16899         * modules/unictype/category-Co, modules/unictype/category-Cs:
16900         * modules/unictype/category-L, modules/unictype/category-LC:
16901         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16902         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16903         * modules/unictype/category-Lu, modules/unictype/category-M:
16904         * modules/unictype/category-Mc, modules/unictype/category-Me:
16905         * modules/unictype/category-Mn, modules/unictype/category-N:
16906         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16907         * modules/unictype/category-No, modules/unictype/category-P:
16908         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16909         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16910         * modules/unictype/category-Pi, modules/unictype/category-Po:
16911         * modules/unictype/category-Ps, modules/unictype/category-S:
16912         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16913         * modules/unictype/category-Sm, modules/unictype/category-So:
16914         * modules/unictype/category-Z, modules/unictype/category-Zl:
16915         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16916         * modules/unictype/category-all, modules/unictype/category-and:
16917         * modules/unictype/category-and-not, modules/unictype/category-byname:
16918         * modules/unictype/category-longname, modules/unictype/category-name:
16919         * modules/unictype/category-none, modules/unictype/category-of:
16920         * modules/unictype/category-or, modules/unictype/category-test:
16921         * modules/unictype/category-test-withtable:
16922         * modules/unictype/combining-class:
16923         * modules/unictype/combining-class-all:
16924         * modules/unictype/combining-class-byname:
16925         * modules/unictype/combining-class-longname:
16926         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16927         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16928         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16929         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16930         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16931         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16932         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16933         * modules/unictype/digit, modules/unictype/joininggroup-all:
16934         * modules/unictype/joininggroup-byname:
16935         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16936         * modules/unictype/joiningtype-all:
16937         * modules/unictype/joiningtype-byname:
16938         * modules/unictype/joiningtype-longname:
16939         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16940         * modules/unictype/mirror, modules/unictype/numeric:
16941         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16942         * modules/unictype/property-ascii-hex-digit:
16943         * modules/unictype/property-bidi-arabic-digit:
16944         * modules/unictype/property-bidi-arabic-right-to-left:
16945         * modules/unictype/property-bidi-block-separator:
16946         * modules/unictype/property-bidi-boundary-neutral:
16947         * modules/unictype/property-bidi-common-separator:
16948         * modules/unictype/property-bidi-control:
16949         * modules/unictype/property-bidi-embedding-or-override:
16950         * modules/unictype/property-bidi-eur-num-separator:
16951         * modules/unictype/property-bidi-eur-num-terminator:
16952         * modules/unictype/property-bidi-european-digit:
16953         * modules/unictype/property-bidi-hebrew-right-to-left:
16954         * modules/unictype/property-bidi-left-to-right:
16955         * modules/unictype/property-bidi-non-spacing-mark:
16956         * modules/unictype/property-bidi-other-neutral:
16957         * modules/unictype/property-bidi-pdf:
16958         * modules/unictype/property-bidi-segment-separator:
16959         * modules/unictype/property-bidi-whitespace:
16960         * modules/unictype/property-byname:
16961         * modules/unictype/property-case-ignorable:
16962         * modules/unictype/property-cased:
16963         * modules/unictype/property-changes-when-casefolded:
16964         * modules/unictype/property-changes-when-casemapped:
16965         * modules/unictype/property-changes-when-lowercased:
16966         * modules/unictype/property-changes-when-titlecased:
16967         * modules/unictype/property-changes-when-uppercased:
16968         * modules/unictype/property-combining:
16969         * modules/unictype/property-composite:
16970         * modules/unictype/property-currency-symbol:
16971         * modules/unictype/property-dash:
16972         * modules/unictype/property-decimal-digit:
16973         * modules/unictype/property-default-ignorable-code-point:
16974         * modules/unictype/property-deprecated:
16975         * modules/unictype/property-diacritic:
16976         * modules/unictype/property-extender:
16977         * modules/unictype/property-format-control:
16978         * modules/unictype/property-grapheme-base:
16979         * modules/unictype/property-grapheme-extend:
16980         * modules/unictype/property-grapheme-link:
16981         * modules/unictype/property-hex-digit:
16982         * modules/unictype/property-hyphen:
16983         * modules/unictype/property-id-continue:
16984         * modules/unictype/property-id-start:
16985         * modules/unictype/property-ideographic:
16986         * modules/unictype/property-ids-binary-operator:
16987         * modules/unictype/property-ids-trinary-operator:
16988         * modules/unictype/property-ignorable-control:
16989         * modules/unictype/property-iso-control:
16990         * modules/unictype/property-join-control:
16991         * modules/unictype/property-left-of-pair:
16992         * modules/unictype/property-line-separator:
16993         * modules/unictype/property-logical-order-exception:
16994         * modules/unictype/property-lowercase, modules/unictype/property-math:
16995         * modules/unictype/property-non-break:
16996         * modules/unictype/property-not-a-character:
16997         * modules/unictype/property-numeric:
16998         * modules/unictype/property-other-alphabetic:
16999         * modules/unictype/property-other-default-ignorable-code-point:
17000         * modules/unictype/property-other-grapheme-extend:
17001         * modules/unictype/property-other-id-continue:
17002         * modules/unictype/property-other-id-start:
17003         * modules/unictype/property-other-lowercase:
17004         * modules/unictype/property-other-math:
17005         * modules/unictype/property-other-uppercase:
17006         * modules/unictype/property-paired-punctuation:
17007         * modules/unictype/property-paragraph-separator:
17008         * modules/unictype/property-pattern-syntax:
17009         * modules/unictype/property-pattern-white-space:
17010         * modules/unictype/property-private-use:
17011         * modules/unictype/property-punctuation:
17012         * modules/unictype/property-quotation-mark:
17013         * modules/unictype/property-radical:
17014         * modules/unictype/property-sentence-terminal:
17015         * modules/unictype/property-soft-dotted:
17016         * modules/unictype/property-space:
17017         * modules/unictype/property-terminal-punctuation:
17018         * modules/unictype/property-test, modules/unictype/property-titlecase:
17019         * modules/unictype/property-unassigned-code-value:
17020         * modules/unictype/property-unified-ideograph:
17021         * modules/unictype/property-uppercase:
17022         * modules/unictype/property-variation-selector:
17023         * modules/unictype/property-white-space:
17024         * modules/unictype/property-xid-continue:
17025         * modules/unictype/property-xid-start:
17026         * modules/unictype/property-zero-width, modules/unictype/scripts:
17027         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
17028         * modules/unictype/syntax-c-whitespace:
17029         * modules/unictype/syntax-java-ident:
17030         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
17031         * modules/unigbrk/u16-grapheme-breaks:
17032         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
17033         * modules/unigbrk/u32-grapheme-breaks:
17034         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
17035         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
17036         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
17037         * modules/unigbrk/uc-is-grapheme-break:
17038         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
17039         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
17040         * modules/unilbrk/u16-width-linebreaks:
17041         * modules/unilbrk/u32-possible-linebreaks:
17042         * modules/unilbrk/u32-width-linebreaks:
17043         * modules/unilbrk/u8-possible-linebreaks:
17044         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
17045         * modules/unilbrk/ulc-possible-linebreaks:
17046         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
17047         * modules/uniname/uniname, modules/uninorm/base:
17048         * modules/uninorm/canonical-decomposition:
17049         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
17050         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
17051         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
17052         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
17053         * modules/uninorm/nfkc, modules/uninorm/nfkd:
17054         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
17055         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
17056         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
17057         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
17058         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
17059         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
17060         * modules/unistdio/base, modules/unistdio/u-printf-args:
17061         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
17062         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
17063         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
17064         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
17065         * modules/unistdio/u16-u16-sprintf:
17066         * modules/unistdio/u16-u16-vasnprintf:
17067         * modules/unistdio/u16-u16-vasprintf:
17068         * modules/unistdio/u16-u16-vsnprintf:
17069         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
17070         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
17071         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
17072         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
17073         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
17074         * modules/unistdio/u32-u32-asnprintf:
17075         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
17076         * modules/unistdio/u32-u32-sprintf:
17077         * modules/unistdio/u32-u32-vasnprintf:
17078         * modules/unistdio/u32-u32-vasprintf:
17079         * modules/unistdio/u32-u32-vsnprintf:
17080         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
17081         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
17082         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
17083         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
17084         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
17085         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
17086         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
17087         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
17088         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
17089         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
17090         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
17091         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
17092         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
17093         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
17094         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
17095         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
17096         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
17097         * modules/unistr/u16-check, modules/unistr/u16-chr:
17098         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
17099         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
17100         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
17101         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
17102         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
17103         * modules/unistr/u16-move, modules/unistr/u16-next:
17104         * modules/unistr/u16-prev, modules/unistr/u16-set:
17105         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
17106         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
17107         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
17108         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
17109         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
17110         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
17111         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
17112         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
17113         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
17114         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
17115         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
17116         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
17117         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
17118         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
17119         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
17120         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
17121         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
17122         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
17123         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
17124         * modules/unistr/u32-next, modules/unistr/u32-prev:
17125         * modules/unistr/u32-set, modules/unistr/u32-startswith:
17126         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
17127         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
17128         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
17129         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
17130         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
17131         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
17132         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
17133         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
17134         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
17135         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
17136         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
17137         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
17138         * modules/unistr/u8-check, modules/unistr/u8-chr:
17139         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
17140         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
17141         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
17142         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
17143         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
17144         * modules/unistr/u8-next, modules/unistr/u8-prev:
17145         * modules/unistr/u8-set, modules/unistr/u8-startswith:
17146         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
17147         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
17148         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
17149         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
17150         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
17151         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
17152         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
17153         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
17154         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
17155         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
17156         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
17157         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
17158         * modules/uniwbrk/base, modules/uniwbrk/table:
17159         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
17160         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
17161         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
17162         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
17163         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
17164         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
17165         * modules/uniwidth/width, modules/utf16-ucs4:
17166         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
17167         * modules/utf8-ucs4-unsafe:
17168         Change maintainer from Bruno Haible to Daiki Ueno.
17169         This is my guess at the libunistring modules; please feel free
17170         to fix if I guessed incorrectly.
17171         * modules/accept4, modules/acl, modules/acos, modules/acosf:
17172         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
17173         * modules/areadlink, modules/array-list, modules/array-mergesort:
17174         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
17175         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
17176         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
17177         * modules/binary-io, modules/bison-i18n, modules/btowc:
17178         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
17179         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
17180         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
17181         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
17182         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
17183         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
17184         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
17185         * modules/closedir, modules/concat-filename, modules/copy-file:
17186         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
17187         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
17188         * modules/csharpcomp-script, modules/csharpexec:
17189         * modules/csharpexec-script, modules/ctype, modules/diffseq:
17190         * modules/dprintf, modules/dprintf-posix, modules/dup:
17191         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
17192         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
17193         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
17194         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
17195         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
17196         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
17197         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
17198         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
17199         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
17200         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
17201         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
17202         * modules/findprog, modules/findprog-lgpl, modules/floor:
17203         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
17204         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
17205         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
17206         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
17207         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
17208         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
17209         * modules/freadable, modules/freadahead, modules/freadptr:
17210         * modules/freadseek, modules/freopen, modules/frexp:
17211         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
17212         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
17213         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
17214         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
17215         * modules/ftello, modules/full-read, modules/full-write:
17216         * modules/fwritable, modules/fwriteerror, modules/gcd:
17217         * modules/get-rusage-as, modules/get-rusage-data:
17218         * modules/getdtablesize, modules/getrusage, modules/gettext:
17219         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
17220         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
17221         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
17222         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
17223         * modules/iconv, modules/iconv-h, modules/iconv_open:
17224         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
17225         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
17226         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
17227         * modules/integer_length_ll, modules/ioctl, modules/isatty:
17228         * modules/isblank, modules/isnand, modules/isnand-nolibm:
17229         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
17230         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
17231         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
17232         * modules/javaexec, modules/javaexec-script, modules/javaversion:
17233         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
17234         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
17235         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
17236         * modules/lib-symbol-visibility, modules/libsigsegv:
17237         * modules/linked-list, modules/linkedhash-list, modules/list:
17238         * modules/localcharset, modules/locale, modules/localeconv:
17239         * modules/localename, modules/lock, modules/log, modules/log-ieee:
17240         * modules/log10, modules/log10-ieee, modules/log10f:
17241         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
17242         * modules/log1p, modules/log1p-ieee, modules/log1pf:
17243         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
17244         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
17245         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
17246         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
17247         * modules/logf, modules/logf-ieee, modules/login_tty:
17248         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
17249         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
17250         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
17251         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
17252         * modules/mbscspn, modules/mbsinit, modules/mbslen:
17253         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
17254         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
17255         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
17256         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
17257         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
17258         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
17259         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
17260         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
17261         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
17262         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
17263         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
17264         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
17265         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
17266         * modules/posix_spawn, modules/posix_spawn-internal:
17267         * modules/posix_spawn_file_actions_addclose:
17268         * modules/posix_spawn_file_actions_adddup2:
17269         * modules/posix_spawn_file_actions_addopen:
17270         * modules/posix_spawn_file_actions_destroy:
17271         * modules/posix_spawn_file_actions_init:
17272         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
17273         * modules/posix_spawnattr_getpgroup:
17274         * modules/posix_spawnattr_getschedparam:
17275         * modules/posix_spawnattr_getschedpolicy:
17276         * modules/posix_spawnattr_getsigdefault:
17277         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
17278         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
17279         * modules/posix_spawnattr_setschedparam:
17280         * modules/posix_spawnattr_setschedpolicy:
17281         * modules/posix_spawnattr_setsigdefault:
17282         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
17283         * modules/pow, modules/powf, modules/printf-frexp:
17284         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
17285         * modules/progname, modules/propername, modules/pselect:
17286         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
17287         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
17288         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
17289         * modules/read, modules/readdir, modules/readlink:
17290         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
17291         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
17292         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
17293         * modules/relocatable-script, modules/remainder:
17294         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
17295         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
17296         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
17297         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
17298         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
17299         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
17300         * modules/setlocale, modules/sh-quote, modules/shutdown:
17301         * modules/signal, modules/signbit, modules/sigpipe:
17302         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
17303         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
17304         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
17305         * modules/snippet/link-warning, modules/snippet/unused-parameter:
17306         * modules/snprintf, modules/snprintf-posix, modules/spawn:
17307         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
17308         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
17309         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
17310         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
17311         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
17312         * modules/streq, modules/strerror_r-posix, modules/striconv:
17313         * modules/striconveh, modules/striconveha, modules/strncat:
17314         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
17315         * modules/sublist, modules/sys_resource, modules/sys_utsname:
17316         * modules/sys_wait, modules/system-posix, modules/system-quote:
17317         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
17318         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
17319         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
17320         * modules/truncf, modules/truncf-ieee, modules/truncl:
17321         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
17322         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
17323         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
17324         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
17325         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
17326         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
17327         * modules/wait-process, modules/waitpid, modules/wcpcpy:
17328         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
17329         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
17330         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
17331         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
17332         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
17333         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
17334         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
17335         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
17336         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
17337         * modules/write, modules/xconcat-filename, modules/xlist:
17338         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
17339         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
17340         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
17341         * modules/y0, modules/y1, modules/yn:
17342         Remove Bruno Haible as maintainer; if he's the sole maintainer,
17343         change the maintainer to 'all'.  Let's hope someone volunteers.
17345 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
17347         mktime: merge #if/#ifdef usage from glibc
17348         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
17349         as that works with both Glibc's and Gnulib's style.
17350         See thread starting at Siddhesh Poyarekar's bug report at:
17351         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
17353 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
17355         git-version-gen: improve option descriptions
17356         * build-aux/git-version-gen: Mention that --prefix and --fallback
17357         have a mandatory argument.
17359 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17361         regex: fix memory leak in compiler
17362         Fix by Andreas Schwab in:
17363         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17364         * lib/regcomp.c (parse_expression): Deallocate partially
17365         constructed tree before returning error.
17367         regex: merge patch from libc
17368         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17369         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17370         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17372 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17374         acl: port to gcc -Wredundant-decls
17375         From a request by Dmitry Antipov in:
17376         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17377         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17378         "#ifndef _GL_ACL_H".
17380 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17381         Jim Meyering  <meyering@fb.com>
17383         parse-duration: eliminate 68-year duration limit
17384         * lib/parse-duration.c: Include "intprops.h".
17385         (TIME_MAX): Rename to MAX_DURATION and define to
17386         TYPE_MAXIMUM(time_t).
17387         * modules/parse-duration (Depends-on): Add intprops.
17388         Reported by Jonas 'Sortie' Termansen.
17390 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17392         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17393         * modules/pthread (Depends-on): Add 'extensions', as it defines
17394         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17395         (configure.ac-early): New section.
17396         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17397         it is no longer needed.
17399 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17401         pthread: define thread-safe macros on some platforms
17402         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17403         for thread-safe operation on some platforms.
17405 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17407         regex: don't be multithreaded if USE_UNLOCKED_IO.
17408         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17409         * lib/regex_internal.h: Do not use multithreaded version if
17410         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17411         around a porting bug with coreutils 8.22 on AIX 7.1.
17413 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17415         gettext: update macros to version 0.19
17416         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17417         depend on gl_EXTERN_INLINE and drop support for older Bison
17418         versions.
17420 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17422         select,poll: fix console handle check on windows 8
17423         lib/poll.c (IsConsoleHandle): Change from testing the lower
17424         2 bits of the handle to the more expensive but accurate syscall.
17425         lib/select.c: Likewise.
17427 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17429         select: fix waiting on anonymous pipes on MS-Windows
17430         * lib/select.c (rpl_select): Fall back to polling when select()
17431         indicates there is nothing to check, while due to the timeout not
17432         expiring, activity is indicated on one of the handles.
17433         Also clear the TIMEOUT argument if the timer does expire.
17435 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17437         times: fix to return non constant value on MS-Windows
17438         * lib/times.c (times): Don't use the process creation time,
17439         rather clock() which on windows returns the number of
17440         clock ticks since the process started.
17442 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17444         isatty: fix to work on windows 8
17445         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17446         2 bits of the handle to the more expensive but accurate syscall.
17448 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17450         maint: fix typo in fdl.texi
17451         * doc/fdl.texi: Fix typo (missing '@').
17452         Somehow this was in fdl.texi but not fdl-1.3.texi.
17454 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17456         mountlist: avoid hasmntopt const type warning on solaris
17457         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17458         with char * instead of const char *.  Passing the constant string
17459         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17460         to avoid the warning.
17462 2014-06-04  Eric Blake  <eblake@redhat.com>
17464         maintainer-makefile: delete obsolete code
17465         * top/maint.mk (build_aux): Drop old code, as threatened.
17467         maintainer-makefile: avoid spurious error messages
17468         * top/maint.mk (syntax-check): Guard definition and use of
17469         $(shell) by whether Makefile is present.
17471 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17473         rename: avoid unused-but-set-variable compiler warning
17474         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17475         it is possible that dst_exists may be set but not used.  Mark it with
17476         the unused attribute to avoid compiler warnings.
17478 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17480         rename: mark a label as potentially unused
17481         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17482         by marking the out label as potentially unused.
17483         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17485 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17487         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17488         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17490 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17492         acl: apply pure attribute to two functions
17493         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17494         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17496 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17498         gnulib-common.m4: add _GL_UNUSED_LABEL
17499         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17500         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17502 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17504         dup2, fcntl, fcntl-h: port to AIX 7.1
17505         This fixes some porting problems discovered when testing the latest
17506         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17507         in grep but it could be important for other applications.
17508         * doc/posix-functions/dup2.texi:
17509         * doc/posix-functions/fcntl.texi:
17510         * doc/posix-headers/fcntl.texi:
17511         Document AIX bugs.
17512         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17513         Define to 0 if outside 'int' range.
17514         * m4/dup2.m4 (gl_FUNC_DUP2):
17515         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17516         Check for getdtablesize.  If it's available, test a value just
17517         outside its range instead of testing 1000000.  When cross-compiling,
17518         guess that AIX will fail this improved test.
17520 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17522         printf, config.rpath: Port to FreeBSD 10.
17523         Problem reported by Tijl Coosemans in:
17524         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17525         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17526         (hardcode_direct): Simplify FreeBSD configuration.
17527         (library_names_spec): Don't mishandle FreeBSD 10+.
17528         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17529         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17530         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17531         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17532         Don't mishandle FreeBSD 10+ when cross-compiling.
17534         ftoastr: work around compiler bug in IBM xlc 12.1
17535         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17536         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17537         around a compiler bug in IBM xlc 12.1.0.0: it complains
17538         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17539         _GL_FLT_PREC_BOUND.'
17541 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17543         valgrind-tests: fixed misleading help message
17544         * m4/valgrind-tests.m4: The help message generated by configure
17545         implied that valgrind was disabled by default, which it wasn't.
17546         Adjusted the help message using s/enable/disable/ to clarify.
17548 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17550         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17551         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17552         first double of a PowerPC "double double" pair.
17553         * tests/test-isinf.c (test_isinfl): Likewise.
17554         * tests/test-isnan.c (test_long_double): Likewise.
17555         * tests/test-isnanl.h (main): Likewise.
17556         * tests/test-signbit.c (test_signbitl): Likewise.
17558 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17560         exclude-tests: port to AIX 7.1
17561         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17562         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17563         the regex code uses locks.
17565 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17567         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17568         Without this fix, Emacs would sometimes call sigprocmask instead
17569         of pthread_sigmask, which is a no-no in multithreaded applications.
17570         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17571         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17572         Suppress check for pthread_sigmask working without -lpthread if
17573         the application always links with -lpthread.  Do not link with
17574         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17575         * m4/timer_time.m4 (gl_TIMER_TIME):
17576         Require gl_THREADLIB only if it is defined.  Do not append
17577         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17579 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17581         gnulib-tool: wget translations using --no-verbose rather than --quiet
17582         This allows the user to see error messages if any (--quiet hides them)
17583         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17585 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17587         gnulib-tool: adjust translation wget to avoid a https redirection
17588         Context: http://translationproject.org/latest/gnulib redirects to
17589            https://translationproject.org/latest/gnulib/
17590         Rationale: if the user falls back to wget, she doesn't have rsync and
17591         is probably in a minimal build environment, where packages such as
17592         'ca-certificates' are missing as well, resulting in a failed (and
17593         difficult to detect since ignored) translation initial fetch.
17594         Consequently let's avoid https if possible, and add the missing
17595         trailing slash.  This also avoids an unnecessary 302 redirection.
17596         * gnulib-tool: Add trailing slash to gnulib URL.
17598 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17600         getlogin_r-tests: check return value rather than errno
17601         * tests/test-getlogin_r.c (main): As per POSIX we should be
17602         verifying the return value from getlogin_r() rather than errno.
17604 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17606         getlogin_r-tests: fix various issues in recent change
17607         * tests/test-getlogin_r.c: Include required headers that were
17608         missed in recent commit eec20b4e.
17609         Also consistently check the errno rather than the return value from
17610         getlogin_r as POSIX only specifies that non zero is returned on error.
17611         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17613 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17615         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17616         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17617         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17618         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17619         * lib/spawn-pipe.c:
17620         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17621         and then 'int open64(const char *, int, ...);', which means the
17622         declaration for 'open' gets lost if we later '#undef open'.
17623         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17624         where the compilation reported the non-fatal error "In function
17625         'openat_proc_name' ... warning: implicit declaration of function
17626         'open'".  In this case the error is relatively harmless, but in
17627         other cases it might not be so minor.
17629 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17631         xalloc: don't potentially generate invalid code for xmemdup calls
17632         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17633         this function can initialize the newly-allocated storage with new
17634         pointers, which means this function is not malloc-like.  See:
17635         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17637 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17639         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17640         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17641         changes from commit 97249cf29 to not depend on environment variables.
17643 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17645         getlogin-tests: avoid false failure under cron
17646         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17647         since that's not what's under test.  Centos 6 was seen to return
17648         EINVAL for ttyname() when run from cron.
17650 2014-05-16  Jim Meyering  <meyering@fb.com>
17652         mbrtowc.m4: fix a comment typo
17653         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17654         emitted documentation string.
17656 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17658         mbrlen, mbrtowc: fix bug with empty input
17659         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17660         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17661         so this is mainly for documentation.
17662         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17663         (gl_FUNC_MBRTOWC): Use it.
17664         * tests/test-mbrtowc.c (main): Test for the bug.
17666 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17668         doc: document mbrtowc and mbrlen problem with empty input
17669         * doc/posix-functions/mbrlen.texi (mbrlen):
17670         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17671         Document portability problem when the input string is empty.  See:
17672         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17674         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17675         Problem reported by Eli Zaretskii in:
17676         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17677         * doc/posix-functions/execl.texi (execl):
17678         * doc/posix-functions/execle.texi (execle):
17679         * doc/posix-functions/execlp.texi (execlp):
17680         * doc/posix-functions/execv.texi (execv):
17681         * doc/posix-functions/execve.texi (execve):
17682         * doc/posix-functions/execvp.texi (execvp):
17683         Mention spawn+exit problem on non-Cygwin Windows platforms.
17685 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17687         getlogin-tests: avoid false failure under sudo/ssh etc.
17688         * modules/getlogin-tests (configure.ac): Check for ttyname().
17689         * tests/test-getlogin.c (main): Don't depend on environment variables
17690         to correlate with getlogin(), since sudo and ssh etc. can tamper
17691         with the LOGNAME and USER env vars.  Instead lookup the name from
17692         the uid associated with the stdin tty.
17694 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17696         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17697         These were found when building the latest grep snapshot on IRIX 6.5.
17698         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17699         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17700         never used later.
17701         * lib/quotearg.c (quoting_options_from_style):
17702         * lib/xstrtol.c (__xstrtol):
17703         Use enum instead of 0, to pacify IRIX 6.5 cc.
17705 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17707         gitlog-to-changelog: revert inclusion of git-log-fix file
17708         * build-aux/git-log-fix: Delete dummy file.
17709         * modules/gitlog-to-changelog: Don't reference (overwrite)
17710         the project specific git-log-fix file.
17712 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17714         maint.mk: Relax the copyright check to cater for non FSF projects
17715         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17716         to not require the "Free" suffix after the copyright years.
17718 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17720         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17721         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17722         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17723         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17724         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17726 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17728         exclude: port to strict C99
17729         Strict C does not allow converting a function pointer to void *
17730         and vice versa.  Pass a pointer to a function pointer instead.
17731         * lib/exclude.c (add_exclude_file):
17732         Pass the address of the function pointer.
17733         (call_addfn): And deference the address here, to match.
17735 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17737         regex: do not depend on malloc-gnu
17738         * modules/regex (Depends-on): Remove malloc-gnu.
17739         It's no longer needed, because of the 2012-12-29 patch
17740         "regex: port to hosts where malloc (0) == NULL".
17741         Reported by Nathan Kennedy in:
17742         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17744 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17746         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17747         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17748         * doc/posix-functions/expl.texi: Mention the workaround.
17750 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17752         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17753         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17754         size to be zero even when the pointer is nonnull.  This
17755         accommodates the use case where P is malloc (0) and *PN is 0 on a
17756         host where malloc (0) yields nonnull.
17758 2014-04-09  Eric Blake  <eblake@redhat.com>
17760         fts: avoid unnecessary strlen calls
17761         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17763 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17765         fts: avoid unnecessary strlen calls
17766         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17767         when that can be faster than strlen.
17769 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17771         fts: avoid unnecessary strlen calls
17772         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17773         (fts_build): Store the length of the dp->d_name entry in a local variable
17774         instead of calling strlen() several times via the above, removed macro.
17775         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17776         run by ~4%, yet this reduces the execution time by about a third if run
17777         via "ltrace -c rm -rf some-dir".
17779 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17781         obstack: Remove ancient NeXTSTEP gcc support conditional
17782         This change will ease merging with glibc.  The "#if ... __NEXT__"
17783         causes a warning with -Wundef which glibc now enables by default.
17784         Problem reported by Will Newton in
17785         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17786         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17787         so go with that.
17788         * lib/obstack.h (__extension__):
17790 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17792         obstack: merge with glibc changes
17793         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17794         This is mostly indenting and commentary changes.
17795         Instances of 'register' have been removed.
17797 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17799         strftime: wrap macros in "do {...} while(0)"
17800         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17801         this macro in "do {...} while(0)" to prevent false use as a
17802         single statement, e.g., in an un-braced "{}" else-block.
17803         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17804         (strftime_case_): Remove 'else' after 'goto' - which was the
17805         only non-fatal, un-braced use of one of the above macros.
17806         Spotted by coverity (NESTING_INDENT_MISMATCH).
17808 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17810         modechange: avoid memory leaks for invalid octal modes
17811         * lib/modechange.c (mode_compile): During the parsing of
17812         notations like +40, free the 'mc' buffer for invalid mode
17813         strings like +17777 (greater than the maximum octal mode),
17814         =18 (bad octal mode characters) or u=1 ('affected' with
17815         octal modes).
17816         Reproducer, e.g.:
17817             $ valgrind --leak-check=full chmod +17777 file
17818         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17819         add notations +40, 00440, etc.".
17820         Spotted by coverity (RESOURCE_LEAK).
17822 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17824         gitlog-to-changelog: include a dummy git-log-fix file
17825         Problem reported by Nathan Stratton Treadway in:
17826         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17827         * build-aux/git-log-fix: New file.
17829 2014-03-13  Jim Meyering  <meyering@fb.com>
17831         gitlog-to-changelog: also include the file, git-log-fix
17832         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17833         Reported by Assaf Gordon.
17835 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17837         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17838         This fixes a bug when ignoring case and when comparing the
17839         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17840         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17841         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17842         titlecase letter is neither lowercase nor uppercase, but
17843         uppercasing the titlecase letter (via towupper) yields the
17844         uppercase letter, so the two letters should match when ignoring case.
17845         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17846         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17847         Don't test whether a character is lowercase before uppercasing it.
17849 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17851         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17852         This is basically one of the options Bruno Haible proposed in:
17853         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17854         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17855         * lib/stdint.in.h: Use it.
17856         * modules/stdint (Depends-on): Add sys_types.
17858 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17860         parse-datetime: fix crash or infloop in TZ="" parsing
17861         * lib/parse-datetime.y (parse_datetime): Break out of the
17862         TZ="" parsing loop once the second significant " is found.
17863         Also skip over any subsequent whitespace to be consistent
17864         with the non TZ= case.
17865         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17867 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17869         savedir: new symbol for fast-read version
17870         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17871         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17872         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17873         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17875 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17877         unistd: port readlink to Mac OS X 10.3.9
17878         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17879         around self-include problem in Mac OS X 10.3.9 when combined with
17880         readlink module.  Problem reported by Klaus Zietler in
17881         <http://bugs.gnu.org/16825>.
17883 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17885         diffseq: remove TOO_EXPENSIVE heuristic
17886         Problem with diffutils reported by Vincent Lefevre in
17887         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17888         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17889         Although appropriate for circa-1993 hardware, these days the heuristic
17890         seems to be more trouble than it's worth.
17891         * lib/diffseq.h: Modernize citations.
17892         (struct context): Remove member too_expensive.
17893         All uses changed.
17894         (struct partition): Remove members lo_minimal, hi_minimal.
17895         All uses changed.
17896         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17897         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17898         1993 to make 'diff' run faster (but not as well) on large inputs.
17899         These days, computers are fast enough that it's typically better
17900         to run slower but more accurately.
17901         * lib/fstrcmp.c: Remove duplicate comment.
17902         * lib/fstrcmp.c (strcmp_bounded):
17903         * lib/git-merge-changelog.c (compute_differences):
17904         Adjust to diffseq.h changes.
17905         * NEWS: Document the change.
17907         savedir: simplify by using stpcpy
17908         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17909         (streamsavedir): Use stpcpy instead.
17910         * modules/savedir (Depends-on): Add stpcpy.
17912 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17914         spawn: fix link error on uclibc
17915         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17916         to incorporate -lrt if needed (on uclibc for example).
17917         * modules/posix_spawn: Reference the substituted LIB.
17919 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17920         timer: fix uClibc detection of threading
17921         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17922         enabled in uClibc.
17924 2014-02-21  Eric Blake  <eblake@redhat.com>
17926         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17927         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17929 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17931         exclude: add support for posix regexps
17933         This commit adds support for POSIX extended regular expressions
17934         and fixes a long-standing memory leak (pattern buffer was never
17935         freed).  It also implements a new interface function to read
17936         exclude patterns from a FILE, which passes an additional parameter
17937         to its callback function, thereby allowing to preserve its state
17938         between invocations.
17940         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17941         (pattern_buffer): New struct.
17942         (exclude): New member patbuf.
17943         (exclude_add_pattern_buffer): New function.
17944         (free_exclude_segment): Free regexps.
17945         (free_exclude): Free allocated pattern buffers.
17946         (exclude_patopts): New function.
17947         (file_pattern_matches): Use exclude_patopts.
17948         (add_exclude): support regexps.
17949         (add_exclude_fp): New function.
17950         (add_exclude_file): Rewrite using add_exclude_fp.
17951         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17952         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17953         (add_exclude_fp)
17954         (add_exclude_file): Rewrite using add_exclude_fp.
17955         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17956         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17957         (add_exclude_fp)
17958         (exclude_add_pattern_buffer): New prototypes.
17959         * modules/exclude: Depends on regex and filename.
17961 2014-02-20  Eric Blake  <eblake@redhat.com>
17963         maintainer-makefiles: use $(SED) for syntax check
17964         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17965         * top/maint.mk: Change sed to $(SED).
17967 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17968             Paul Eggert  <eggert@cs.ucla.edu>
17970         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17971         Patch based on an idea by Dick Streefland in
17972         <https://savannah.gnu.org/patch/?7892>.
17973         * NEWS: Document this.
17974         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17975         (direntry_t, comparison_function): New types.
17976         (direntry_cmp_name): New function.
17977         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17978         (streamsavedir, savedir): New arg OPTION.
17979         (streamsavedir): Simplify memory allocation.
17980         (fdsavedir): Remove.
17981         * lib/savedir.h (enum savedir_option): New type.
17982         (streamsavedir, savedir): New arg OPTION.
17983         (fdsavedir): Remove.
17985 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17987         file-type: add support for doors and other less-common file types
17988         Problem with S_ISDOOR reported by Rich Burridge.
17989         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17990         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17991         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17993 2014-01-23  Eric Blake  <eblake@redhat.com>
17995         pthread: work around winpthread header pollution on mingw
17996         * lib/time.in.h: Move pthread workarounds...
17997         * lib/pthread.in.h: ...here.
17998         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17999         detect macro pollution on mingw.
18000         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
18002 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18004         qacl: check for fchmod
18005         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
18006         and qset-acl.c both use HAVE_FCHMOD.
18008 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18010         fdopen-tests: port to Tru64
18011         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
18012         descriptor that is not open, as POSIX doesn't specify the
18013         resulting behavior and the test does not work on Tru64.
18014         Problem reported by Steven M. Schweda in:
18015         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
18017         stdalign: port to HP-UX compilers
18018         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
18019         if __HP_cc or __HP_aCC are nonzero.
18021 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
18023         strtoimax: port to platforms lacking 'long long'
18024         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
18025         check whether strtoll is declared, which causes the C file to
18026         wrongly report an error.  Problem reported by Steven M. Schweda in:
18027         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
18028         * lib/strtoimax.c (strtoull):
18029         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
18030         (strtoll): Declare only if HAVE_LONG_LONG_INT.
18032 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
18034         relocatable-perl: fix texi syntax
18035         * doc/relocatable-maint.texi: Escape braces.
18037 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
18039         relocatable-perl: like relocatable-script, but for Perl scripts
18040         * build-aux/relocatable.pl.in: Add.
18041         * doc/relocatable-maint.texi: Add documentation.
18042         * modules/relocatable-perl: Add.
18044 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
18046         tests: fix export bug in previous patch
18047         Problem reported by Jim Meyering.
18048         * tests/init.sh (re_shell): New var, which is exported instead of
18049         re_shell_.
18051         tests: simplify porting to Solaris 10 /bin/sh
18052         Some test cases in 'grep' need a shell that groks '$(';
18053         export re_shell_ for their benefit.  Problem reported for 'grep'
18054         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
18055         * tests/init.sh (re_shell_): Export if it's used.
18057 2014-01-06  Eric Blake  <eblake@redhat.com>
18059         md5, sha1, sha256, sha512: support older autoconf
18060         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
18061         for autoconf < 2.63b.
18063         include_next: port to autoconf 2.63
18064         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
18066 2014-01-04  Jim Meyering  <meyering@fb.com>
18068         maint: add a gnulib-local rule to keep non-ascii out of .texi files
18069         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
18070         so that "make sc_maint" will ding anyone who puts non-ascii
18071         in any of gnulib's .texi files.
18073 2014-01-03  Jim Meyering  <meyering@fb.com>
18075         freadable, fwritable, fwriting: declare with the "pure" attribute
18076         * lib/freadable.h (freadable): Declare with the "pure" attribute.
18077         * lib/fwritable.h (fwritable): Likewise.
18078         * lib/fwriting.h (fwriting): Likewise.
18079         Suggested by Bruno Haible.
18081         maint.mk: adapt openat.h-include-without-use test
18082         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
18083         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
18084         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
18085         With this change, running "make sc_maint" in gnulib's top-level
18086         directory now passes for me.
18088 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18090         doc: use ASCII in .texi files where UTF-8 isn't needed
18091         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
18092         * doc/posix-functions/setkey.texi, doc/regex.texi:
18093         Use ASCII input, not UTF-8.
18095 2014-01-02  Jim Meyering  <meyering@fb.com>
18097         freading: declare with the "pure" attribute
18098         * lib/freading.h (freading): Declare with the "pure" attribute.
18100         manywarnings: remove -Wmudflap
18101         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
18102         it is no longer supported in gcc-4.9-to-be.
18104 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18106         relocatable-script: remove unused code
18107         Problem reported by Reuben Thomas in:
18108         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
18109         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
18111 2014-01-01  Jim Meyering  <meyering@fb.com>
18113         maint: fix public-submodule-commit to work with newer git
18114         * top/maint.mk (public-submodule-commit): Remove excess quoting.
18115         We were over-quoting the test arguments, and somewhere prior to
18116         version 1.8.5.2.229, git stopped removing those excess quotes,
18117         which made the test fail, since the unexpanded strings would
18118         always differ; using GIT_TRACE=1 confirmed that the git merge-base
18119         command wasn't even being run.
18121 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18123         doc: update main copyright year
18124         * doc/gnulib.texi: Update copyright date.
18126 2014-01-01  Eric Blake  <eblake@redhat.com>
18128         version-etc: new year
18129         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
18130         * all files: run 'make update-copyright'
18132 2013-12-24  Eric Blake  <eblake@redhat.com>
18134         passfd: give nicer error for recvfd at eof
18135         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
18136         * tests/test-passfd.c (main): Enhance test to cover this.
18138 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18140         gettimeofday: port recent C++ fix to Emacs
18141         Without this further patch, Emacs won't build due to
18142         the portcheck failing.  Also, this simplifies the patch a bit.
18143         * lib/time.in.h (localtime, gmtime): Don't replace unless
18144         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
18145         * lib/time.in.h (localtime, gmtime):
18146         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
18147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18148         * modules/time (time.h):
18149         Don't worry about the possibility of localtime and gmtime
18150         being absent; they're present in all C libraries we know about.
18151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18152         Don't assume sys_time is present and has been initialized.
18153         Instead, use a hack that should work even if it hasn't been.
18154         Don't use a portcheck for gmtime or localtime; this supports
18155         the hack.
18156         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
18158 2013-12-17  John W. Eaton  <jwe@gnu.org>
18160         gettimeofday: fix C++ crosscompilation
18162         Never replace gmtime and localtime by macros when compiling with
18163         C++, this prevents <ctime> from being included.
18165         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
18166         define gmtime and localtime as preprocessor macros.  Instead
18167         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
18168         REPLACE_LOCALTIME substitutions.
18169         * lib/time.in.h: Declare gmtime and localtime when needed.
18170         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
18171         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
18172         * modules/time: Depend on gettimeofday, and substitute the above
18173         variables in time.h.
18175 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18177         qacl: port to Windows better
18178         See Eli Zaretskii in
18179         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
18180         * lib/file-has-acl.c (acl_access_nontrivial):
18181         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
18182         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
18184 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
18186         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
18187         * lib/gl_openssl.h: Cast void pointers to a specific type.
18189 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18191         open-tests: fix build failure with -Werror=old-style-declaration
18192         * tests/test-open.h: Reorder the inline to avoid the issue.
18194 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18196         md5, sha1, sha256, sha512: fix link error with partial libcrypto
18197         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
18198         init time, so that if early checks find crypto routines,
18199         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
18200         avoiding link failures.
18202 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18204         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
18205         This provides a new way to specify the default for
18206         gl_CRYPTO_CHECK, one that is reflected in the --help message.
18207         Emacs uses this, as well as the old way.
18208         This attempts to implement a suggestion by Pádraig Brady in
18209         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
18210         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
18211         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
18213         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
18214         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
18215         Add support for a new option, --with-openssl=auto, which causes
18216         the library to be used if available and silently ignored if not.
18217         Add support to allow configure.ac to specify its own
18218         default, by setting with_openssl_default before invoking gl_INIT.
18220 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18222         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
18223         Problem reported by Daiki Ueno in:
18224         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
18225         * tests/test-open.h (__always_inline):
18226         New macro, if not already defined.
18227         (test_open): Use it.
18229 2013-12-04  Eric Blake  <eblake@redhat.com>
18231         include_next: minimize code duplication
18232         * modules/include_next (Depends-on): Add absolute-header.
18233         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
18234         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
18236 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18238         getcwd: fix compile error in configure check
18239         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
18241 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18243         regex: suppress core dumps from detection code
18244         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
18245         to suppress core dumps that may well occur on glibc systems.
18246         These core dumps might not be cleaned up automatically, or could
18247         trigger some system core dump handling logic.
18249 2013-12-03  Pádraig Brady  <P@draigBrady.com>
18251         md5, sha1, sha256, sha512: support mandating use of openssl
18252         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
18253         description, to list the now 3 separate options.  also don't
18254         mention the default=no, since this is implicit given the option
18255         is described as --with-openssl rather than --without-openssl.
18256         If projects change the default they're free to document that.
18257         with --with-openssl[=yes] we now error out when the specified
18258         hash algorithm is not available in libcrypto.
18260 2013-12-03  Ivailo  <xakepa10@gmail.com>
18262         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
18263         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
18264         -Wformat-nonliteral checks, as these edge cases are part of the test.
18266 2013-12-03  Eric Blake  <eblake@redhat.com>
18268         regex: avoid glibc deadlock during configure
18269         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
18270         glibc bug 15078 in turn triggers bug 16159.
18271         Reported by Michal Privoznik.
18273 2013-12-02  Pádraig Brady  <P@draigBrady.com>
18275         md5, sha1, sha256, sha512: use openssl routines if available.
18276         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18277         routines will be used if available, requiring apps to link @LIB_CRYPTO@
18278         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
18279         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
18280         in the standard system location.
18281         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
18282         * m4/sha256.m4: Likewise with SHA256.
18283         * m4/sha512.m4: Likewise with SHA512.
18284         * m4/md5.m4: Likewise with MD5.
18285         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
18286         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
18287         * lib/sha256.h: Likewise with SHA256.
18288         * lib/sha512.h: Likewise with SHA512.
18289         * lib/md5.h: Likewise with MD5.
18290         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
18291         * lib/sha256.c: Likewise with SHA256.
18292         * lib/sha512.c: Likewise with SHA512.
18293         * lib/md5.c: Likewise with MD5.
18294         * modules/crypto/sha1 (Link:): Add the new optional lib.
18295         (Depends-on:): Add dependency on extern-inline.
18296         * modules/crypto/sha256: Likewise.
18297         * modules/crypto/sha512: Likewise.
18298         * modules/crypto/md5: Likewise.
18299         * modules/crypto/sha1-tests: Reference the lib here too.
18300         * modules/crypto/md5-tests: Likewise.
18301         * modules/crypto/gc-des-tests: Likewise.
18302         * modules/crypto/gc-hmac-md5-tests: Likewise.
18303         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18304         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18305         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18306         * modules/crypto/gc-md5-tests: Likewise.
18307         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18308         * modules/crypto/gc-sha1-tests: Likewise.
18309         * modules/crypto/gc-tests: Likewise.
18310         * modules/crypto/hmac-md5-tests: Likewise.
18311         * modules/crypto/hmac-sha1-tests: Likewise.
18312         * modules/crypto/hmac-sha256-tests: Likewise.
18313         * modules/crypto/hmac-sha512-tests: Likewise.
18315 2013-11-29  RV1971  <rv1971@web.de>
18317         base64: (trivial) fix compilation regression on some compilers
18318         * lib/base64.c: Don't return the void function,
18319         instead split to a separate return statement.
18321 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18323         ignore-value: revert previous code change
18324         * lib/ignore-value.h (ignore_value): Use __extension__ and
18325         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
18326         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
18327         Change the comment to try to explain this better.
18329 2013-11-27  Pádraig Brady  <P@draigBrady.com>
18331         selinux-h: improve stub types and add more stub functions
18333         * lib/se-selinux.in.h: Change security_context_t to a typedef
18334         rather than a define, as it's a pointer type and so is better
18335         as a typedef to avoid issues declaring multiple variables
18336         with the comma operator.  Also add stub for string_to_security_class().
18337         * lib/se-context.in.h: Add stub functions for
18338         context_{type,range,role,user}_get().
18340 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18342         ignore-value: prefer GCC version back through 2.0
18343         The code didn't match the comments, so I did a bit of software
18344         archaeology.  GCC 2.0 seems to support __extension__ and
18345         __typeof__, so fix both code and comments to use 2.0.
18346         * lib/ignore-value.h (ignore_value): Use __extension__ and
18347         __typeof__ for GCC 2.0 through 3.3, too.
18349 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
18351         pty: Activate the signature wrapper of forkpty.
18352         The intended preprocessor macro HAVE_FORKPTY is
18353         never defined, yet `lib/forkpty.c' depends on it.
18355         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
18356         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18357         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18359 2013-11-18  Jim Meyering  <meyering@fb.com>
18360         and Paul Eggert  <eggert@cs.ucla.edu>
18362         quotearg: don't attempt to store 1 << 31 into an "int"
18363         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18364         gcc's new -fsanitize=undefined and running its tests triggered some
18365         new test failures due to undefined behavior, all with this diagnostic:
18366           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18367             cannot be represented in type int
18368         Rather than shifting "1" left to form a mask, shift the bits right and
18369         simply use "1" as the mask.
18371 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18373         error: depend on stdio
18374         Problem reported by Nikos Mavrogiannopoulos in
18375         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18376         * modules/error (Depends-on): Add stdio.
18378 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18380         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18381         wording.
18382         Reported by Reuben Thomas <rrt@sc3d.org>.
18384 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18386         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18387         New function and macro, to work around _DARWIN_C_SOURCE problem.
18388         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18390 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18392         base64: provide a fast path for encoding well sized buffers
18393         Avoid conditionals in the base64 encoding loop,
18394         which was seen to give 60% better throughput.
18395         * lib/base64.c (base64_encode_fast): A new function to be called
18396         when we don't want to NUL terminate, and we have enough space
18397         in the output to encode the given input.
18398         (base64_encode): Call the _fast() version when appropriate.
18399         Also remove a redundant mask with 0x3F on the first encoded byte.
18401 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18403         extern-inline: port better to OS X 10.9
18404         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18405         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18406         OS X 10.9, except for g++ where the bug is still present.
18407         See <http://trac.macports.org/ticket/41033>.
18409 2013-11-08  Eric Blake  <eblake@redhat.com>
18411         fpending: fix regression on DragonFly BSD
18412         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18413         * lib/fpending.h (__fpending): Don't declare twice.
18414         Reported by GW in
18415         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18417 2013-11-05  Jim Meyering  <meyering@fb.com>
18419         hash: relax license to LGPLv2+, for libguestfs
18420         * modules/hash (License): Change from GPL to LGPLv2+.
18422 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18424         intprops: port to Oracle Studio c99
18425         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18426         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18428 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18430         obstack: pacify HP C
18431         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18432         warning "conversion from pointer to smaller integer" from HP
18433         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18434         C89 or later nowadays, so cast to void instead of int.  Privately
18435         reported by H.Merijn Brand.  Also, change header to match glibc's,
18436         to make checking against glibc easier.
18438 2013-10-29  Jim Meyering  <meyering@fb.com>
18440         maint.mk: prefer gpgv2 over gpgv
18441         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18442         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18443         Reported by Gary Vaughan.
18445 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18447         isnan: port to VAX
18448         Reported by John Klos for NetBSD-5/VAX in
18449         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18450         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18451         (FUNC): Use it.
18453 2013-10-28  Jim Meyering  <meyering@fb.com>
18455         gnulib-tool: protect against CDPATH
18456         * gnulib-tool: Many "cd" built-in functions print a directory name
18457         to stdout when CDPATH is set, e.g.,
18458           $ bash -c 'CDPATH=/; cd tmp'
18459           /tmp
18460         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18462         maint.mk: restore functionality removed by recent change...
18463         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18464         the context of a shallow-cloned gnulib repository: "git describe"
18465         would fail in such a directory.  However, that change made it so
18466         the reported gnulib revision no longer includes the version number
18467         or a commit count, even when run from a full clone.
18468         * top/maint.mk (gnulib-version): Use the full "git describe"
18469         output when possible, e.g., the form above, rather than the
18470         abbreviated, no-tag, no-commit-count string, and fall back to
18471         using a 10-byte hash, rather than the default minimal-length
18472         hash prefix, since while the minimal-length one may be fine today,
18473         it is likely not to be unique for very long.
18475 2013-10-26  Jim Meyering  <meyering@fb.com>
18477         maint.mk: fix "release" target to build _version
18478         This fixes a bug in README-release whereby following the outlined
18479         steps, one would publish a tarball whose programs would report
18480         --version output not consistent with the package version number.
18481         This bug caused grep-2.15 to produce a grep program whose
18482         --version option made it print 2.14.56-1e3d rather than 2.15.
18483         * top/maint.mk (release): Making this target build "_version"
18484         ensures that the new version number is reflected in configure.
18486 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18488         install-reloc: Support multi-binary installation.
18489         * build-aux/install-reloc: Support installing multiple programs in
18490         one invocation, as done by Automake starting with commit
18491         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18492         Haible <bruno@clisp.org>, archived at
18493         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18494         Reported by Sylvain <beuc@gnu.org>.
18496 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18498         selinux-h: Really build without selinux when library is missing.
18499         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18500         continue without selinux, as already told in the warning message.
18502 2013-10-21  Jim Meyering  <meyering@fb.com>
18504         regex: also remove dependency on HAVE_WCSCOLL
18505         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18507 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18509         xfreopen: Fix typo. s/frepoen/freopen/
18510         * lib/xfreopen.c: Fix description.
18511         * modules/xfreopen: Likewise.
18513 2013-10-21  Jim Meyering  <meyering@fb.com>
18515         regex: don't depend on wcscoll
18516         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18517         It is no longer used.
18519 2013-10-20  Jim Meyering  <meyering@fb.com>
18521         error: add the printf attribute to a static function
18522         * lib/error.c (error_tail): Add the printf attribute, to placate
18523         gcc's -Werror=suggest-attribute=format option.
18525 2013-09-30  Jim Meyering  <meyering@fb.com>
18527         fpending, obstack, strerror-override: use pure+const function attrs
18528         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18529         * lib/obstack.c (_obstack_allocated_p): Likewise.
18530         * lib/obstack.h (_obstack_memory_used): Likewise.
18531         (_obstack_memory_used): Likewise.
18532         * lib/strerror-override.h (strerror_override): Declare with
18533         the "const" attribute.
18535 2013-10-18  Eric Blake  <eblake@redhat.com>
18537         extern-inline: make safe for -Wundef usage
18538         Reported by Vladimir 'phcoder' Serbinenko in
18539         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18540         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18542 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18544         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18545         Problem reported by Daniel Richard G. in
18546         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18547         * doc/posix-functions/mkfifo.texi (mkfifo):
18548         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18549         * doc/posix-functions/mknod.texi (mknod):
18550         * doc/posix-functions/mknodat.texi (mknodat):
18551         Document the HP-UX 11.11 bug.
18552         * tests/test-mkfifo.h (test_mkfifo):
18553         Allow the HP-UX 11.11 bug.
18555 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18557         acl: allow cross-compilation to Gentoo
18558         Problem reported by Gabriel Marcano in
18559         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18560         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18561         test only whether it links.
18563 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18565         mgetgroups: remove dependency on realloc-gnu
18566         The dependency violates the comment in realloc-gnu, which
18567         says that tests can't depend on realloc-gnu; some tests depend
18568         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18569         Problem reported by Daniel Richard G. in
18570         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18571         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18572         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18573         not realloc-gnu.
18575 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18577         regex-tests: port to HP-UX 11.11
18578         Problem reported by Daniel Richard G. in
18579         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18580         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18582 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18584         verify: document some 'assume' pitfalls
18585         * doc/verify.texi (Compile-time Assertions):
18586         Mention that 'assume (E)' can sometimes slow things down.
18587         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18589 2013-10-10  Eric Blake  <eblake@redhat.com>
18591         strtoumax: fix typo in previous commit.
18592         * modules/strtoumax (Depends-on): Fix typo.
18593         * modules/strtoimax (Depends-on): Likewise.
18595 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18597         strtoumax: port to Solaris 8
18598         This problem was introduced in the recent HP-UX patch.
18599         Reported by Tom G. Christensen in
18600         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18601         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18602         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18604 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18606         strtoimax, strtoumax: port to HP-UX 11.11
18607         Problem reported by Daniel Richard G. in
18608         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18609         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18610         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18611         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18612         REPLACE_STRTOUMAX.
18613         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18614         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18615         Replace the function if defined as a macro but not as a function.
18616         * modules/inttypes-incomplete (inttypes.h): Substitute
18617         REPLACE_STRTOUMAX.
18618         * modules/strtoumax (configure.ac): Replace strtoumax if
18619         REPLACE_STRTOUMAX.
18621 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18623         strtoimax: port to HP-UX 11.11
18624         Problem reported by Daniel Richard G.
18625         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18626         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18627         they might clash with inttypes.h.
18629 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18631         New module 'count-trailing-zeros'.
18632         * MODULES.html.sh: Mention it.
18633         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18634         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18635         * modules/count-trailing-zeros-tests:
18636         * tests/test-count-trailing-zeros.c:
18637         New files.
18639         count-leading-zeros: port to MSC; support types wider than 64 bits
18640         The ideas behind the MSC port are stolen from Emacs.
18641         * lib/count-leading-zeros.h:
18642         Don't include verify.h: it's no longer needed, as types wider than
18643         64 bits are now supported.
18644         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18645         performance with MSC.  All uses changed.  Do not assume that TYPE
18646         has at most 64 bits.
18647         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18648         All uses changed.  Fold the subtraction from 31 into the table.
18650         count-one-bits: port to MSC; support types wider than 64 bits
18651         The ideas behind the MSC port are stolen from Emacs.
18652         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18653         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18654         Don't include verify.h: it's no longer needed, as types wider than
18655         64 bits are now supported.
18656         (COUNT_ONE_BITS_GENERIC): New macro.
18657         (popcount_supported) [_MSC_VER]: New inline function.
18658         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18659         performance with MSC.  All uses changed.  Do not assume that TYPE
18660         has at most 64 bits.
18661         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18663 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18665         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18666         * lib/mountlist.c (read_file_system_list): fix leak of directory
18667         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18669 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18671         tests: improve diagnostic when an assertion fails
18672         * tests/macros.h (ASSERT): Report the assertion that failed.
18674 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18676         verify: new macro 'assume'
18677         This is taken from Emacs, and should be generally useful.
18678         * doc/verify.texi (assume): Document it.
18679         * lib/verify.h (assume): New macro.
18680         (__has_builtin): Expand to 0 if not defined.
18682 2013-09-26  Eric Blake  <eblake@redhat.com>
18684         dup2, dup3: work around another cygwin crasher
18685         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18686         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18687         * tests/test-dup2.c (main): Likewise.
18688         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18689         * lib/dup3.c (dup3): Likewise.
18690         * doc/posix-functions/dup2.texi (dup2): Document it.
18691         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18693         getdtablesize: work around cygwin issue
18694         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18695         * modules/getdtablesize (configure.ac): Build replacement.
18696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18697         * modules/unistd (Makefile.am): Expose the witness.
18698         * lib/unistd.in.h (getdtablesize): Declare replacement.
18699         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18700         * tests/test-getdtablesize.c (main): Test it.
18701         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18703 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18705         pmccabe2html: escaping of special characters
18706         Escape all '<', '>', and '&' in HTML output.
18707         * build-aux/pmccabe2html (html_fnc): Call gsub()
18708         instead of sub() to capture all '<', '>', and '&'.
18709         Neither of '<' and '>' is special in a regexp,
18710         so first arguments to gsub() are corrected. Also,
18711         in replacement strings, ampersand must be escaped.
18712         Finally, '&' must be handled first, then '<' and '>'.
18714 2013-09-24  Eric Blake  <eblake@redhat.com>
18716         manywarnings: enable nicer gcc warning messages
18717         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18718         some -f options for optimal warnings.
18720 2013-09-21  Jim Meyering  <meyering@fb.com>
18722         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18723         * lib/timespec-add.c (timespec_add): Also replace 999999999
18724         with TIMESPEC_RESOLUTION - 1.
18725         * lib/timespec-sub.c (timespec_sub): Likewise.
18727 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18729         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18730         Problem reported by Dagobert Michelsen via Eric Blake in
18731         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18732         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18733         not AC_COMPILE_IFELSE.
18735 2013-09-23  Eric Blake  <eblake@redhat.com>
18737         configmake: support new --runstatedir option
18738         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18739         even if autoconf was too old to provide the command line option.
18740         * modules/configmake (Makefile.am): Propagate it to .h file.
18742 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18744         ctype, string: depend on extern-inline
18745         This is needed to complete the recent OS X fixes.
18746         Also, fix related documentation as suggested by Eric Blake.
18747         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18748         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18749         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18750         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18751         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18752         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18753         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18754         * doc/posix-functions/toupper.texi:
18755         List the 'ctype' gnulib module.
18756         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18757         * doc/posix-functions/strncpy.texi:
18758         List the 'string' gnulib module.
18759         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18760         Add string.
18761         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18763 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18765         userspec: support optional parameters to parse_user_spec()
18766         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18767         then avoid group processing and treat the full spec as a user.
18768         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18769         be optional params (NULL), in which case they're ignored.
18771 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18773         timespec: new function make_timespec, and new constants
18774         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18775         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18776         (make_timespec): New function.
18777         * lib/dtotimespec.c (dtotimespec):
18778         * lib/timespec-add.c (timespec_add):
18779         * lib/timespec-sub.c (timespec_sub):
18780         * lib/utimens.c (validate_timespec):
18781         * lib/utimensat.c (rpl_utimensat):
18782         Use these new constants and functions.
18784         stdio: OS X port of putc_unlocked + extern inline
18785         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18786         * doc/posix-functions/putc_unlocked.texi:
18787         * doc/posix-functions/putchar_unlocked.texi:
18788         Document this portability problem.
18790         signal: OS X port of sigaddset etc. + extern inline
18791         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18792         (sigismember): #undef on problematic Apple platforms.
18793         * doc/posix-functions/sigaddset.texi:
18794         * doc/posix-functions/sigdelset.texi:
18795         * doc/posix-functions/sigemptyset.texi:
18796         * doc/posix-functions/sigfillset.texi:
18797         * doc/posix-functions/sigismember.texi:
18798         Document this portability problem.
18800         extern-inline: do not always suppress extern inline on OS X
18801         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18802         extern inline on Apple only if the particular compile-time
18803         configuration is known to have the problem.
18804         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18805         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18806         other Gnulib modules.
18808         extern-inline: document fixes for ctype and wctype macros
18809         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18810         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18811         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18812         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18813         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18814         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18815         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18816         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18817         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18818         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18819         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18820         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18821         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18822         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18823         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18824         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18825         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18826         * doc/posix-functions/strncpy.texi:
18827         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18828         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18829         Document that Gnulib fixes portability problems with these
18830         functions on OS X 10.8 and earlier when called from plain inline
18831         or extern inline functions.
18833 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18835         fflush, freadahead, fseeko: Fix for Android
18836         Suggested by Bruno Haible in:
18837         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18838         * lib/stdio-impl.h: Use local __sfileext definition.
18840 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18842         pmccabe2html: Portability to other awk versions.
18843         The functions systime() and strftime() are available
18844         in Gawk only.  Properly close two HTML-tags 'style'
18845         and 'span'.
18846         * build-aux/pmccabe2html (BEGIN): Store timing
18847         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18848         systime() in HTML_COMMENT.
18849         (html_header): Correctly close tag 'style'.
18850         (END): Replace strftime() by CHRONOS_TIME.  Close
18851         tag 'span' correctly, not as 'div'.
18853 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18855         getgroups: statement without effect
18856         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18857         Change equality conditional to expected assignment.
18859 2013-09-09  Eric Blake  <eblake@redhat.com>
18861         glob: fix compilation
18862         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18864 2013-09-07  Eric Blake  <eblake@redhat.com>
18866         glob: fix build for platforms without __THROW
18867         * lib/glob.in.h (__THROW): Add definition again.
18869 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18871         regex-quote: fix buffer access out of bounds
18872         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18873         * lib/regex-quote.c (regex_quote_spec_pcre):
18874         Fix typo that resulted in an out-of-bounds read.
18876 2013-09-04  Eric Blake  <eblake@redhat.com>
18878         glob: avoid -Wattribute warnings on glibc
18879         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18880         __THROWNL, not __THROW, on static functions.
18881         * lib/glob.in.h (__THROW): Adjust...
18882         (__THROWNL): ...accordingly.
18884 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18886         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18887         Suggested by Bruce Korb in:
18888         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18889         * doc/extern-inline.texi (extern inline):
18890         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18891         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18892         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18893         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18894         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18895         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18896         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18897         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18898         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18899         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18900         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18901         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18902         * lib/xtime.h:
18903         Check that _GL_INLINE_HEADER_BEGIN is defined.
18905 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18907         bootstrap: remove the --version requirement from ancillary tools
18908         * build-aux/bootstrap (check_exists): A new refactored function to
18909         determine if a command exists.
18910         (find_tool): Use the new function which does not require the
18911         --version option to be supported.
18912         (check_versions): Use the new function.
18914 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18916         gc: support HMAC-SHA256 and HMAC-SHA512.
18917         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18918         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18919         functions.
18920         (gc_hmac_md5): Use symbolic constant.
18921         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18922         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18923         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18924         * m4/sha256.m4: Protect against empty expansion.
18925         * m4/sha512.m4: Likewise.
18926         * lib/hmac-sha256.c: New file.
18927         * lib/hmac-sha512.c: Likewise.
18928         * m4/gc-hmac-sha256.m4: Likewise.
18929         * m4/gc-hmac-sha512.m4: Likewise.
18930         * m4/gc-sha256.m4: Likewise.
18931         * m4/gc-sha512.m4: Likewise.
18932         * modules/crypto/gc-hmac-sha256: Likewise.
18933         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18934         * modules/crypto/gc-hmac-sha512: Likewise.
18935         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18936         * modules/crypto/hmac-sha256: Likewise.
18937         * modules/crypto/hmac-sha256-tests: Likewise.
18938         * modules/crypto/hmac-sha512: Likewise.
18939         * modules/crypto/hmac-sha512-tests: Likewise.
18940         * tests/test-gc-hmac-sha256.c: Likewise.
18941         * tests/test-gc-hmac-sha512.c: Likewise
18942         * tests/test-hmac-sha256.c: Likewise.
18943         * tests/test-hmac-sha512.c: Likewise
18945 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18947         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18948         of AC_CHECK_DECLS.
18950 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18952         selinux-at: omit unnecessary include
18953         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18954         this source file doesn't use its macros, and subsidiary files that
18955         use the macros already include it.
18957 2013-08-21  Eric Blake  <eblake@redhat.com>
18959         d-ino: avoid false negative on symlink
18960         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18961         Reported by Stephane Chazelas.
18963 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18965         bootstrap: port to OpenBSD sed
18966         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18967         does not interpret `-' as a file argument to mean stdin.
18969 2013-08-15  Eric Blake  <eblake@redhat.com>
18971         warnings: minor optimization
18972         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18974         warnings: check -Wfoo rather than -Wno-foo
18975         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18976         -Wno-, test if the compiler recognizes the positive form instead.
18978 2013-08-15  Karl Berry  <karl@gnu.org>
18980         * config/srclist-update: add option "doclicense" to placate
18981         pulling *.texi files from Emacs.  Write terse usage
18982         documentation at the top.
18984 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18986         xvasprintf-tests: port to GCC with hardening flags
18987         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18988         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18989         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18991 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18993         fpending: port to recent Cygwin change to stdio_ext.h
18994         Reported by LRN in
18995         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18996         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18997         just declare __fpending unless it's a macro.
18998         A duplicate decl shouldn't hurt.
18999         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
19000         call compiles and links, instead of separately checking for
19001         decl and lib function.
19002         * modules/fpending (configure-ac):
19003         Adjust to fpending.m4's renaming of shell variable.
19005 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19007         sys_time: port to OpenBSD
19008         * lib/sys_time.in.h: Simply delegate to the system's header
19009         in the BSDish cases as well.  Problem reported by Mike Miller in
19010         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
19011         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
19012         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
19013         wider than time_t.
19015 2013-08-09  Pádraig Brady  <P@draigBrady.com>
19017         bootstrap: support checksum utils having -c but not --status
19018         * build-aux/bootstrap: Only look for sha1sum if updating po files.
19019         Add sha1 to the list of supported checksum utils since it's now
19020         supported through adjustments below.
19021         (update_po_files): Remove the use of --status
19022         in a way that will suppress all error messages, but since this is
19023         only used to minimize updates, it shouldn't cause an issue.
19024         Exit early if there is a problem updating the po file checksums.
19025         (find_tool): Remove the check for --version support as this
19026         is optional as per commit 86186b17.  Don't even check for the
19027         presence of the command as if that is needed, it's supported
19028         through configuring prerequisites in bootstrap.conf.
19029         Prompt that when a tool isn't found, one can define an environment
19030         variable to add to the hardcoded search list.
19032 2013-08-05  Jim Meyering  <meyering@fb.com>
19034         regex: port to non-glibc/lock-using systems
19035         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
19036         system with GNULIB_LOCK would fail due to absence of the
19037         included "glthread/lock.h".  This would affect any package
19038         for which the "lock" module is used only by the regex module,
19039         and not explicitly used.
19040         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
19041         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
19042         Add a dependency on the "lock" module.
19044 2013-07-20  Daiki Ueno  <ueno@gnu.org>
19046         localecharset: make locale_charset thread-safe on Mac OS X
19047         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
19048         instead of MB_CUR_MAX.
19050 2013-07-20  Daiki Ueno  <ueno@gnu.org>
19052         gettext: update to version 0.18.3
19053         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
19054         require AC_PROG_SED to allow user to specify custom sed command when
19055         generating en@quot PO file.
19057 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
19059         bootstrap: use correct source when copying build-aux files
19060         * build-aux/bootstrap (gnulib_extra_files): This variable is
19061         relative to upstream gnulib layout, not downstream.
19063 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19065         tmpdir: fix bug in VMS port
19066         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
19067         See Steven M. Schweda in
19068         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
19070 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19072         tmpdir: port to VMS, to // != /, and to long dirs
19073         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
19074         __secure_getenv, so that we're more like the glibc version.
19075         All uses changed.
19076         (path_search): Don't put slash after directory if __VMS.
19077         Problem reported by Steven M. Schweda in
19078         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
19079         Simplify code to add slash; no need for a loop.
19080         Do not remove trailing slash from "//".
19081         Do not assume dlen <= INT_MAX.
19083 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19085         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
19086         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
19087         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
19088         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
19090         accept4, dup3, pipe2: port to Cygwin
19091         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
19092         * lib/accept4.c (accept4) [O_BINARY]:
19093         * lib/dup3.c (dup3) [O_BINARY]:
19094         * lib/pipe2.c (pipe2) [O_BINARY]:
19095         Use set_binary_mode, not setmode.
19096         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
19097         * modules/binary-io (Depends-on): Remove module indicator.
19098         These last two bits undo the previous change to pipe2 and binary-io.
19100 2013-07-09  Pádraig Brady  <P@draigBrady.com>
19102         mountlist: add support for deallocating returned list entries
19103         * lib/mountlist.c (free_mount_entry): A new exported function
19104         to deallocate a mount list entry.
19105         (read_file_system_list): Refactor to use the new deallocation function.
19106         Suggested by Anton Ovchinnikov.
19108 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19110         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
19111         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
19112         * lib/stdalign.in.h (_Alignas, _Alignof):
19113         Port to FreeBSD 9.1, and to C11 and C++11.
19114         (_Alignas): Also support ICC.
19115         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
19116         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
19118 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19120         fnmatch: don't goto over declaration
19121         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
19122         undefined behavior for goto over a declaration.
19123         Problem reported by Charlie Brown in
19124         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
19126         pipe2: decouple from binary-io a bit
19127         This is for Emacs, which needs pipe2 but not binary-io.
19128         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
19129         * modules/binary-io (Depends-on): Add module indicator.
19131 2013-07-03  Eric Blake  <eblake@redhat.com>
19133         mgetgroups: relax license to LGPLv2+
19134         * modules/getugroups (License): Change from GPLv3+.
19135         * modules/mgetgroups (License): Likewise.
19136         * modules/getgroups (License): Change from LGPLv3+.
19138         xalloc-oversized: relax license to LGPLv2+
19139         * modules/xalloc-oversized (License): Change from GPLv3+.
19141         nproc: relax license to LGPLv2+
19142         * modules/nproc (License): Change from LGPLv3+.
19144         bootstrap: honor --no-git
19145         * build-aux/bootstrap: Don't even try to use git when user is
19146         pointing to a static checkout.
19148 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19150         ignore-value: port to gcc -pedantic
19151         * lib/ignore-value.h (ignore_value):
19152         Port to gcc -pedantic, by using __extension__.
19153         Reindent as per usual gnulib style nowadays.
19154         Simplify GCC version check.
19156 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19158         extern-inline: port to gcc -std=c89
19159         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19160         Do not use __gnu_inline__ if pedantic and pre-C99.
19162 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19164         doc: document extern-inline
19165         * doc/extern-inline.texi: New file.
19166         * doc/gnulib.texi (alloca-opt): Include it.
19167         * m4/extern-inline.m4: Move some comments to documentation,
19168         and others closer to what they describe.
19170         doc: chatter less
19171         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
19172         (updated-stamp): Use it.  This causes 'make' to output just
19173         one file name rather than zillions.
19175         fflush, fseeko: port to musl cross-compiles
19176         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
19177         on some implementation that (1) is not known to be buggy,
19178         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
19179         cross-compiled to so we can't easily check for lack of
19180         conformance.  This is for cross-compiling to musl.
19181         Reported by Rich Felker in
19182         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
19183         * m4/fclose.m4 (gl_FUNC_FCLOSE):
19184         * m4/fflush.m4 (gl_FUNC_FFLUSH):
19185         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
19186         Adjust to above change.
19187         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
19188         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
19189         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
19190         known not to work, or unknown.
19192 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19194         msvc-inval: port to mingw-w64
19195         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
19196         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
19197         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
19199 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19201         getcwd-lgpl: port to Tru64
19202         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
19203         Problem reported by Steven M. Schweda in
19204         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
19206         tests: port large-fd POSIX spawn tests to OS X
19207         Problem reported by Daiki Ueno in
19208         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
19209         * tests/test-posix_spawn_file_actions_addclose.c:
19210         * tests/test-posix_spawn_file_actions_adddup2.c:
19211         * tests/test-posix_spawn_file_actions_addopen.c:
19212         Include <limits.h>, for OPEN_MAX, if available.
19213         (big_fd): New static function.
19214         (main): Use it.
19216 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
19218         tests/nap.h: use an adaptive delay to avoid ctime update issues
19219         The recent change in nap.h (5191133e) decreased the probability of lost
19220         races to about a third, however such problems could still be observed
19221         in virtual machines and openSUSE's OBS.
19222         Before, nap() detected the needed time once empirically and then used
19223         that delay (together with a small correction multiplier) in further
19224         calls.  This problem has been reported and discussed several times,
19225         including guesses about possible kernel issues:
19226         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
19227         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
19228         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
19229         http://bugs.gnu.org/12820
19230         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
19231         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
19232         Now, nap() avoids the race alltogether by verifying on a reference
19233         file whether a timestamp difference has happened.
19234         * tests/nap.h (nap_fd): Define file descriptor variable for the
19235         witness file.
19236         (nap_works): Change return value to bool.  Change passing
19237         the old file's status by value instead of by reference as this function
19238         does no longer update that timestamp; rename the function argument from
19239         st to old_st.  Remove the local variables cdiff and mdiff because that
19240         function now returns true/false instead of the precise delay.
19241         (guess_delay): Remove function.
19242         (clear_tmp_file): Add new function to close and unlink the witness file.
19243         (nap): Instead of re-using the delay which has been calculated during
19244         the first call, avoid the race by actually verifying that a timestamp
19245         difference can be observed on the current file system.  Use an adaptive
19246         approach for the delay to minimize execution time.  Assert that the
19247         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
19248         = 2^31 - 1 = 2.1s.
19249         Use atexit to call clear_tmp_file when the process terminates.
19251 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19253         sig2str: port to C++
19254         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
19255         Reported by Daniel J Sebald in
19256         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
19258 2013-05-30  Eric Blake  <eblake@redhat.com>
19260         docs: mention cygwin shortcoming in <sys/un.h>
19261         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
19263         vasnprintf: silence mingw compiler warning
19264         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
19266 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19268         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
19269         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
19270         This fixes a porting bug I recently reintroduced in regex, and
19271         some other instances that I discovered while testing the fix.
19272         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
19273         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
19274         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
19275         with an empty argument if this is a pedantic pre-C99 GCC.
19276         * lib/verify.h: Do not use _Static_assert if this is a pedantic
19277         pre-C11 GCC.
19279         regex: adapt to locking regime instead of depending on pthread
19280         Instead of depending on pthread, adapt to whatever thread
19281         modules are in use.  Problem reported by Ludovic Courtès in
19282         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
19283         and by Mats Erik Andersson in
19284         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
19285         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19286         Support either the 'lock' module, or the 'pthread' module, or
19287         no module.
19288         (lock_lock, lock_unlock): New macros.
19289         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
19290         * modules/lock, modules/pthread (configure.ac): Add module indicator.
19291         * modules/regex (Depends-on): Remove pthread.
19293 2013-05-22  Eric Blake  <eblake@redhat.com>
19295         getgroups: document portability issues
19296         * doc/glibc-functions/initgroups.texi (initgroups): Mention
19297         multithread safety.
19298         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
19299         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
19300         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
19301         getugroups.
19302         * doc/posix-functions/getgroups.texi (getgroups): Mention
19303         multithread safety and mgetgroups.
19305 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19307         test-lchown, test-chown: also skip test if chown fails with EPERM
19308         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
19309         skip this test, to handle FAT file systems.
19310         * tests/test-chown.h (test_chown): Likewise.
19312 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19314         regex: fix dfa race in multithreaded uses
19315         Problem reported by Ludovic Courtès in
19316         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
19317         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19318         New macros.  All uses of __libc_lock_define, __libc_lock_init
19319         changed to use the first two of these.
19320         (__libc_lock_lock, __libc_lock_unlock): New macros, for
19321         non-glibc platforms.
19322         (struct re_dfa_t): Define the lock unconditionally.
19323         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
19324         '#ifdef _LIBC"s.
19325         * modules/regex (Depends-on): Add pthread, if we use the
19326         included regex.
19328         * lib/regcomp.c: Do actions that are not needed for glibc,
19329         but may be needed elsewhere.
19330         (regfree, re_compile_internal): Destroy the lock.
19331         (re_compile_internal): Check for lock-initialization failure.
19333         malloca: port to compilers that reject size-zero arrays
19334         This fixes a bug introduced in my previous patch.
19335         * lib/malloca.c (struct preliminary_header): Use an int
19336         rather than a character array of size int; that's simpler.
19337         (struct header): Remove, replacing with ...
19338         (union header): New type.  This avoids the need for declaring a
19339         character array of size zero, which is not allowed on some platforms.
19340         All uses changed.
19342 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19344         parse-datetime, tests: don't use "string" + int
19345         Recent versions of 'clang' complain about C source code that
19346         uses expressions of the form '"string literal" + integer',
19347         I guess on the theory that it's confusing for readers who are
19348         used to C++.  On those grounds I suppose it's OK to make this
19349         minor style change.
19350         * lib/parse-datetime.y (parse_datetime):
19351         * tests/test-fchdir.c (main):
19352         * tests/test-snprintf-posix.h (test_function):
19353         * tests/test-snprintf.c (main):
19354         * tests/test-vasnprintf-posix.c (test_function):
19355         * tests/test-vasnprintf.c (test_function):
19356         * tests/test-vsnprintf.c (main):
19357         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19358         Rewrite '"str" + E' to '&"str"[E]'.
19360 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19362         argmatch: port to C++
19363         * lib/argmatch.h [__cplusplus]: Add extern "C".
19365         argp: typo fix
19366         * lib/argp-help.c: Typo in comment.
19368 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19370         manywarnings: update for GCC 4.8.0
19371         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19372         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19373         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19374         -Wmissing-noreturn, as they are duplicates of other warnings.
19375         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19376         was documented to be flaky in earlier versions of GCC.
19378         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19379         * tests/test-spawn.c (main):
19380         * tests/test-sys_socket.c (main):
19381         * tests/test-sys_wait.c (main):
19382         Don't have a switch value that isn't covered by a case.
19384         getaddrinfo-tests: port --enable-gcc-warnings to clang
19385         * tests/test-getaddrinfo.c (simple):
19386         Avoid casts from looser to stricter-aligned pointers.
19388         thread: port --enable-gcc-warnings to clang
19389         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19390         Include <signal.h>, to pacify a warning about pthread_sigmask.
19392         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19393         * lib/stdio.in.h (fwrite):
19394         When working around bug 11959, use __REDIRECT rather than '#define
19395         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19396         fix the -Wunused-value issue with clang, and it works with GCC too.
19397         Problem with targeting reported by Eric Blake in
19398         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19399         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19400         debugging the fwrite issue.
19402         stdio: port --enable-gcc-warnings to clang
19403         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19404         since the GCC workaround for fwrite does not pacify clang.
19406         sig2str: port --enable-gcc-warnings to clang
19407         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19409         obstack: port --enable-gcc-warnings to clang
19410         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19411         Avoid casts from looser to stricter-aligned pointers.
19413         memchr2: port --enable-gcc-warnings to clang
19414         * lib/memchr2.c (memchr2):
19415         Avoid casts from looser to stricter-aligned pointers.
19417         mbsstr: port --enable-gcc-warnings to clang
19418         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19419         Avoid casts from looser to stricter-aligned pointers.
19421         malloca: port --enable-gcc-warnings to clang
19422         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19423         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19425         inttostr: port --enable-gcc-warnings to clang
19426         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19428         warnings: port to clang
19429         Problem reported by Daniel P. Berrange via Eric Blake in
19430         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19431         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19432         (gl_WARN_ADD): Use it.
19434 2013-05-11  Jim Meyering  <meyering@fb.com>
19436         quotearg: do not read beyond end of buffer
19437         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19438         end of an ARG for which no length was specified.  With an N-byte
19439         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19440         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19441         via coreutils' misc/sort-debug-keys.sh test and detected by running
19442         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19443         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19444         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19445         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19446         characters correctly."
19448 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19450         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19451         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19452         compilation target is Mac OS X 10.6.
19453         Problem reported by parafin and Andoni Morales in
19454         <http://savannah.gnu.org/bugs/?37844> and
19455         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19457 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19459         mkdir-p: remove assumptions about umask and mode
19460         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19461         umask is 0, or that MODE is a subset of MODE_BITS.
19463 2013-05-10  Eric Blake  <eblake@redhat.com>
19465         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19466         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19468 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19470         deps: require Automake >= 1.9.6 in generated Makefile fragments
19472         That is the same minimal version required in the DEPENDENCIES file.
19473         Moreover, the old code generated a requirement of Automake >= 1.5,
19474         and that is an insanely outdated version.
19476         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19477         * tests/havelib/rpathlx/Makefile.am: Likewise.
19478         * tests/havelib/rpathly/Makefile.am: Likewise.
19479         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19480         * tests/havelib/rpathlz/Makefile.am: Likewise.
19481         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19482         * tests/havelib/rpathx/Makefile.am: Likewise.
19483         * tests/havelib/rpathy/Makefile.am: Likewise.
19484         * tests/havelib/rpathz/Makefile.am: Likewise.
19486 2013-05-08  Eric Blake  <eblake@redhat.com>
19488         bootstrap: AC_INIT may have more than four parameters
19489         * build-aux/bootstrap (extract_package_name): Correctly extract
19490         non-empty tarname field.  Avoid range in regex.
19491         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19493 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19495         qacl: port to MS-Windows port of GNU Emacs
19496         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19497         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19498         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19499         <http://bugs.gnu.org/14295#14>.
19501 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19503         acl: include quote.h
19504         * lib/copy-acl.c: Include quote.h.
19505         * lib/set-acl.c: Likewise.
19507 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19509         fchownat, renameat, unlinkat: update statat dependencies
19510         These modules use statat and lstatat, not fstatat; so depend on
19511         the statat module, which was split out recently from fstatat.
19512         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19513         * modules/renameat: Likewise.  Also delete fstat.
19514         URL: http://bugs.gentoo.org/468790
19516 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19518         Assume gnulib is checked out from Git, not CVS
19520         In fact, access to the gnulib repository through CVS has been
19521         disabled, or more precisely, got broken and was never restored; see:
19522         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19524         Note that support for CVS is not removed completely and unthinkingly
19525         by this change: only support for CVS checkouts of gnulib itself is
19526         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19527         files and CVS directories, for the benefit of those poor gnulib clients
19528         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19530         * gnulib-tool: Simplify accordingly.
19531         * posix-modules: Likewise.
19532         * MODULES.html.sh: Likewise.
19533         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19534         repository.
19535         * doc/gnulib-intro.texi: Likewise.
19536         * doc/gnulib-readme.texi: Likewise.
19537         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19538         sample '.gitignore' file rather than a sample '.cvsignore'.
19539         * NEWS: Update.
19540         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19541         to "CVS Autoconf" rather than "git Autoconf".
19543 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19545         utimensat-tests, etc.: try to fix some races
19546         Problem reported by Bernhard Voelker in
19547         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19548         I don't know whether this patch fixes that race condition, but it
19549         fixes *some* race conditions, so it should be a win.
19550         * modules/chown-tests (Depends-on):
19551         * modules/fchownat-tests (Depends-on):
19552         * modules/fdutimensat-tests (Depends-on):
19553         * modules/futimens-tests (Depends-on):
19554         * modules/lchown-tests (Depends-on):
19555         * modules/stat-time-tests (Depends-on):
19556         * modules/utimens-tests (Depends-on):
19557         * modules/utimensat-tests (Depends-on):
19558         Depend on nanosleep, not usleep.
19559         * modules/chown-tests (test_chown_LDADD):
19560         * modules/lchown-tests (test_lchown_LDADD):
19561         * modules/stat-time-tests (test_stat_time_LDADD):
19562         New macro.
19563         * modules/fchownat-tests (test_fchownat_LDADD):
19564         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19565         * modules/futimens-tests (test_futimens_LDADD):
19566         * modules/utimens-tests (test_utimens_LDADD):
19567         * modules/utimensat-tests (test_utimensat_LDADD):
19568         Add $(LIB_NANOSLEEP).
19569         * modules/stat-time-tests (Files): Add tests/nap.h.
19570         * tests/nap.h: Include <limits.h>, for INT_MAX.
19571         (lt_mtime): Remove.
19572         (diff_timespec): New function.
19573         (get_stat): Rename from get_mtime.  All callers changed.
19574         (nap_works): Determine the needed delay by inspecting the
19575         file system's timestamp jumps; this should be more reliable.
19576         Look at both mtime and ctime, and take the maximum of the two jumps.
19577         (nap_works, guess_delay):
19578         Return a nanosecond count, not a microsecond count.
19579         All callers changed.
19580         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19581         failure.
19582         (nap): Multiply the guess by 1.125, to accommodate the case where
19583         the file system's clock is a bit slower than nanosleep's clock.
19584         * tests/test-stat-time.c (BASE): New macro.
19585         Include nap.h.
19586         (nap): Remove; nap.h now defines this.  This removes a duplicate
19587         implementation of 'nap'.
19589         utimens, utimensat: work around Solaris UTIME_OMIT bug
19590         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19591         Linux kernel 2.6.32 does.  Work around it in the same way.
19592         * doc/posix-functions/futimens.texi (futimens):
19593         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19594         * lib/utimens.c (fdutimens, lutimens):
19595         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19597         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19598         Formerly, it was your responsibility to do this for all Makefile.ams
19599         other than Gnulib's.  Now it's your responsibility to do it for
19600         Gnulib's Makefile.am, too.
19601         * NEWS: Document this.
19602         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19604         acl: include errno.h to get errno
19605         Reported by Daiki Ueno in
19606         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19607         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19609 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19611         tests: don't assume getdtablesize () <= 10000000
19612         * modules/cloexec-tests:
19613         * modules/dup2-tests:
19614         * modules/dup3-tests:
19615         * modules/nonblocking-tests:
19616         * modules/posix_spawn_file_actions_addclose-tests:
19617         * modules/posix_spawn_file_actions_adddup2-tests:
19618         * modules/posix_spawn_file_actions_addopen-tests:
19619         * modules/unistd-safer-tests:
19620         Depend on the getdtablesize module.
19621         * tests/test-cloexec.c:
19622         * tests/test-dup-safer.c:
19623         * tests/test-dup2.c:
19624         * tests/test-dup3.c:
19625         * tests/test-fcntl.c:
19626         * tests/test-nonblocking.c:
19627         * tests/test-posix_spawn_file_actions_addclose.c:
19628         * tests/test-posix_spawn_file_actions_adddup2.c:
19629         * tests/test-posix_spawn_file_actions_addopen.c:
19630         Don't assume getdtablesize () <= 10000000.
19632 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19634         extern-inline: work around bug in Sun c99
19635         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19636         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19638 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19640         qacl: new module, broken out from the acl module
19641         This is for GNU Emacs, which wants the acl functions but does
19642         not want 'error' invoked when they fail.
19643         * lib/acl-internal.h: Do not include error.h, quote.h.
19644         (ENOSYS, ENOTSUP): Remove; no longer needed.
19645         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19646         * lib/acl.h: Include <stdbool.h>.
19647         (acl_errno_valid): New function.
19648         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19649         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19650         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19651         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19652         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19653         * lib/file-has-acl.c (file_has_acl):
19654         * lib/qcopy-acl.c (qcopy_acl):
19655         * lib/qset-acl.c (qset_acl):
19656         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19657         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19658         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19659         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19660         Add lib/set-acl.c.
19661         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19662         Add qacl.
19663         (configure.ac): Move gl_FUNC_ACL to qacl module.
19664         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19665         Rename set-mode-acl.c to set-acl.c.
19666         * lib/acl-errno-valid.c: New file.
19667         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19668         copy_acl function remains in copy-acl.c.
19669         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19670         (_): Remove; not needed.
19671         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19672         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19673         * modules/qacl: New file, moved from the old modules/acl.
19674         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19675         Remove set-mode-acl.c, copy-acl.c.
19676         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19678         alignof, intprops, malloca: port better to IBM's C compiler
19679         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19680         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19681         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19683 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19685         wctype-h: fix gettext link error on mingw
19686         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19687         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19688         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19689         rpl_towupper and rpl_towupper.
19691 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19693         regex-tests, regex: allow glibc re_search behavior
19694         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19695         re_search input data to make the multi-character collating element
19696         in it clearly visible, and treat re_search return code 0 as valid.
19697         * m4/regex.m4 (gl_REGEX): Likewise.
19699 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19701         stdalign: doc fix
19702         * doc/posix-headers/stdalign.texi (stdalign.h):
19703         Gnulib doesn't support '_Alignof expr'.
19705 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19707         stdalign: port to stricter ISO C11
19708         ISO C11 says that _Alignof's operand must be a parenthesized type.
19709         Problem reported by Eli Zaretskii in
19710         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19711         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19712         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19714 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19716         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19717         Problem reported by Marco Atzeri in
19718         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19719         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19720         Simply delegate to the system <sys/select.h> in this case too.
19721         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19722         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19723         be needed on Solaris either.
19724         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19725         Simply delegate to the system <sys/time.h> in this case.
19727 2013-03-19  Karl Berry  <karl@gnu.org>
19729         * build-aux/gnupload: check for erroneous (with gnupload) use of
19730         ftp-upload.gnu.org, tweak help.
19732 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19734         copy-file, rpmatch: fix problems found by cppcheck
19735         Reported by Arno Onken in
19736         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19737         * lib/rpmatch.c (try): Fix memory leak.
19738         * lib/copy-file.c: Include "ignore-value.h".
19739         (qcopy_file_preserving): Ignore chown value.
19740         * modules/copy-file (Depends-on): Add ignore-value.
19742 2013-01-27  Jim Meyering  <jim@meyering.net>
19744         prefix-gnulib-mk: give better diagnostics
19745         * build-aux/prefix-gnulib-mk: Don't just "die".
19746         Give better diagnostics upon failure.
19748 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19750         putenv: port to Solaris 10
19751         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19752         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19753         is not what is wanted here.
19754         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19755         declaration, not for its existence.
19757 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19759         mktime: fix configure typo
19760         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19762 2013-03-12  Eric Blake  <eblake@redhat.com>
19764         regex-tests: skip UTF-8 test on mingw
19765         * modules/regex-tests (Depends-on): Add localcharset.
19766         * tests/test-regex.c (main): Use it to skip test on mingw.
19768 2013-03-11  Eric Blake  <eblake@redhat.com>
19770         tests: make it easier to bypass alarm time in debugger
19771         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19772         * tests/test-memmem.c (main): Likewise.
19773         * tests/test-passfd.c (main): Likewise.
19774         * tests/test-ptsname.c (main): Likewise.
19775         * tests/test-ptsname_r.c (main): Likewise.
19776         * tests/test-strcasestr.c (main): Likewise.
19777         * tests/test-strstr.c (main): Likewise.
19779         regex: port to mingw's recent addition of undeclared alarm
19780         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19781         exists but still doesn't work in newer mingw.
19782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19783         not existence.  Ensure SIGALRM is not trapped.
19784         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19785         * m4/regex.m4 (gl_REGEX): Likewise.
19786         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19787         * tests/test-regex.c (main): Use correct probe for alarm.
19789         putenv: avoid compilation warning on mingw
19790         * lib/putenv.c (_unsetenv): Protect variable declaration.
19791         (putenv): Fix indentation.
19793 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19795         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19796         * lib/unistd.in.h: be careful not to include un-needed system
19797         stdlib.h from here, because that prevents gnulib stdlib.h from
19798         defining rpl_strtod correctly.
19800 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19802         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19803         changesets, but for the 'precision 0' test.
19804         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19805         round-to-even, since POSIX says rounding is implementation-defined
19806         and OS X 10.8.2 rounds 1.51 to 1 here.
19808         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19809         changeset.
19810         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19811         round-to-even, since POSIX says rounding is implementation-defined
19812         and OS X 10.8.2 rounds 1.5 to 1 here.
19814 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19816         vasnprintf-posix-tests: allow rounding 1.5 to 1
19817         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19818         round-to-even, since POSIX says rounding is implementation-defined
19819         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19820         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19822         bootstrap: port to FreeBSD
19823         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19824         that treat '--' differently.  Reported by Mats Erik Andersson in
19825         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19827 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19829         regex: rename remaining __attribute calls to __attribute__.
19830         2012-02-25 changed definition of __attribute, but left some uses
19831         unchanged, preventing compilation of regex module on most non-gcc
19832         environments.
19833         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19834         (lookup_collation_sequence_value, build_range_exp)
19835         (build_collating_symbol): Set attributes with newly renamed
19836         __attribute__ decorator.
19837         * lib/regex_internal.c (re_string_peek_byte_case)
19838         (re_node_set_compare, re_node_set_contains): Likewise.
19839         * lib/regexec.c (acquire_init_state_context): Likewise.
19841 2013-03-06  Bruno Haible  <bruno@clisp.org>
19843         execute: Revert last change, but use a different condition.
19844         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19845         on Windows.
19847 2013-03-05  Eric Blake  <eblake@redhat.com>
19849         execute: drop dead code
19850         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19852 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19854         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19855         * m4/non-recursive-gnulib-prefix-hack.m4
19856         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19857         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19858         <http://bugs.gnu.org/10305#237>.
19860 2013-03-04  Eric Blake  <eblake@redhat.com>
19862         test-getsockopt: avoid compiler warning
19863         * tests/test-getsockopt.c (includes): Ensure close is declared.
19865 2013-03-02  Bruno Haible  <bruno@clisp.org>
19867         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19868         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19870 2013-03-02  Bruno Haible  <bruno@clisp.org>
19872         gettext: Update to version 0.18.2.
19873         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19874         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19875                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19877 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19879         regex: merge patches from libc
19881         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19882         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19883         All uses changed.
19884         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19885         (re_string_wchar_at, re_string_elem_size_at):
19886         Mark function as possibly unused.
19888         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19889         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19890         elements compare against the byte sequence of it, not its name.
19892 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19894         putenv: port better to native Windows
19895         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19896         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19897         (_unsetenv): Use _putenv if available.
19898         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19899         a bit less likely to cause damage.
19900         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19901         Fix the wrong value with SetEnvironmentVariable.
19902         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19903         code better.
19905 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19907         regex: ignore old-style-definition warnings
19908         * lib/regex.c: Add pragma to ignore these warnings.
19909         Problem reported for GNU tar by Pavel Raiskup.
19911 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19913         getcwd: support coreutils better
19914         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19915         but this might not be correct in coreutils, which disables
19916         the raw decl checks.  Problem reported by Nagendra in
19917         <http://bugs.gnu.org/10305#192>.
19918         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19919         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19920         Test the getcwd function, not any macro, since getcwd.c wants the
19921         function.
19922         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19923         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19924         compile, as might happen if there's a macro but no function.
19926         strtod: support coreutils better
19927         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19928         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19929         disables the raw decl checks.  This assumes there is an underlying
19930         strtod, but that's a safe assumption these days.
19931         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19933         mountlist: port to HP NonStop
19934         Reported by Joachim Schmitz in
19935         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19936         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19937         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19939 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19941         extern-inline: avoid compilation error with HP-UX cc
19942         Reported by Richard Lloyd in
19943         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19944         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19945         Suppress extern inline with HP-UX cc.  This should be safe,
19946         though it may hurt performance.  Perhaps someone with some HP-UX
19947         experience can come up with a higher-performance fix.
19949 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19951         putenv: fix heap corruption with mixed putenv/_putenv
19952         Problem reported by Michael Goffioul in
19953         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19954         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19955         Rely on _putenv to allocate the new environment.
19956         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19957         * modules/putenv (configure.ac): Use it.
19959 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19961         unsetenv etc.: port to Solaris 11 + GNU Emacs
19962         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19963         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19964         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19965         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19966         idea but is too painful to fix right now), and without this gnulib
19967         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19968         compiling unsetenv.c on Solaris 11.  Fix the problem for
19969         unsetenv.c, and fix other similar occurrences.
19971 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19973         secure_getenv: fix C++ declaration typo
19974         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19975         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19976         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19978 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19980         careadlinkat: stop exporting careadlinkatcwd
19981         Only Emacs used it directly, and Emacs no longer needs it.
19982         * NEWS: Document this simplification.
19983         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19984         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19985         for readlink.
19986         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19987         Don't include stdlib.h; no longer needed.
19988         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19989         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19990         * modules/areadlink (Depends-on): Add readlink.
19991         (Maintainer): Add self.
19992         * modules/careadlinkat (Depends-on): Remove readlink.
19994         extensions: port better to HP-UX
19995         This is merged from git Autoconf.
19996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19997         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19998         so that it's compatible with the value used when compiling.
20000         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
20001         Problem reported by Mats Erik Andersson in
20002         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
20003         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
20004         openpty function exists, not merely when we intend to replace it.
20005         This corrects the 2013-01-31 patch, which mistakenly defined
20006         HAVE_OPENPTY even on hosts that lacked it.
20008 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20010         secure_getenv: fix include typo
20011         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
20013         secure_getenv: port better to FreeBSD and Solaris
20014         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
20015         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
20016         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
20017         This works better on BSDish platforms.
20018         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
20019         Test for issetugid if __secure_getenv is missing.
20021 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20023         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
20024         Some of these changes are merged in from git Autoconf.
20025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
20026         When deciding whether to define _XOPEN_SOURCE, inspect the
20027         preprocessor macro __hpux instead of the more-heavyweight
20028         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
20029         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
20030         as the key for __EXTENSIONS__.
20032         unistd: avoid namespace pollution on non-glibc systems
20033         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
20034         This avoids namespace pollution on non-glibc systems, by causing
20035         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
20036         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
20037         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
20039 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20041         tmpdir: use secure_getenv
20042         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
20043         Define to secure_getenv, not getenv.
20044         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
20045         as that's now secure_getenv's job.
20046         * modules/tmpdir (Depends-on): Add secure_getenv.
20048         tempname: use secure_getenv
20049         * lib/tempname.c (__secure_getenv) [!_LIBC]:
20050         Define to secure_getenv, not getenv.
20051         * modules/tempname (Depends-on):
20052         Add secure_getenv.
20054         secure_getenv: new module
20055         * MODULES.html.sh (Extra functions based on ANSI C 89):
20056         Add secure_getenv.
20057         * doc/glibc-functions/secure_getenv.texi: New file.
20058         * doc/gnulib.texi: Include it.
20059         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
20060         New files.
20061         * lib/stdlib.in.h (secure_getenv): New decl.
20062         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
20063         * modules/stdlib (stdlib.h):
20064         Add secure_getenv checks.
20066 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20068         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
20069         Reported for OS X 10.8.2 by Assaf Gordon in
20070         <http://bugs.gnu.org/13516>.
20071         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
20072         !HAVE_OPENAT && !HAVE_FDOPENDIR.
20073         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
20074         so that they can be kept in sync more easily.  Avoid PATH_MAX
20075         test on the Hurd.  Sync from test-getcwd.c for errno tests after
20076         mkdir or chdir failure.
20077         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
20078         lib/getcwd.c.
20079         (test_abort_bug): Do not test for the deep directory bug unless we
20080         have openat support.  Avoid PATH_MAX test on the Hurd.
20082         regex-tests, regex: fix bug: memset undeclared
20083         * tests/test-regex.c: Don't include regex.h twice.  Include
20084         string.h, to declare memset.  Christensen's report also mentioned
20085         this issue.
20086         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
20087         test-regex.c, to avoid future problems like this.  Remove
20088         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
20089         twice.
20091         regex-tests: fix link errors on older Solaris
20092         These need to link with @LIBINTL@ to get libintl_gettext.
20093         Problem reported by Tom G. Christensen in
20094         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
20095         * modules/regex-tests (test_regex_LDADD): New macro.
20097 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
20099         regex-tests: new module
20100         * modules/regex-tests, tests/test-regex.c: New files.
20102         regex: fix off-by-one error in configure test
20103         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
20105 2013-01-31  Eric Blake  <eblake@redhat.com>
20107         regex: avoid infinite configure test
20108         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
20110 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
20112         openpty: fix bug where HAVE_OPENPTY wasn't defined
20113         See the thread starting at:
20114         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
20115         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
20116         openpty function exists, not merely when we intend to replace it.
20118 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20120         sys_time: port to Solaris 2.6
20121         There is a circularity problem on Solaris 2.6, where <time.h> includes
20122         <sys/time.h> for struct timespec.  The include nesting is gnulib
20123         <time.h>, system <time.h>, gnulib <sys/time.h>, system
20124         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
20125         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
20126         <sys/siginfo.h>; the last, innermost file needs struct
20127         timestruc_t, which is defined in <sys/time.h>, which has not been
20128         fully parsed.  Problem reported by Tom G. Christensen in
20129         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
20130         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
20131         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
20132         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
20133         uses split double-inclusion guards.
20135 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20137         regex: test for buffer overrun
20138         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
20139         for the just-fixed regex bug.
20141 2013-01-29  Andreas Schwab  <schwab@suse.de>
20143         regex: fix buffer overrun in regexp matcher [BZ #15078]
20144         * lib/regexec.c (extend_buffers): Add parameter min_len.
20145         (check_matching): Pass minimum needed length.
20146         (clean_state_log_if_needed): Likewise.
20147         (get_subexp): Likewise.
20149 2013-01-28  Pádraig Brady  <P@draigBrady.com>
20151         mountlist: don't consider "devtmpfs" as dummy
20152         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
20153         as there is storage associcated with it.
20155 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20157         futimens-tests, utimens-tests: Depend on gettext.
20158         This works around a problem introduced in my 2013-01-12 patch,
20159         which added @LIBINTL@ to these modules.
20160         * modules/futimens-tests (Depends-on):
20161         * modules/utimens-tests (Depends-on): Add gettext.
20163 2013-01-26  Eric Blake  <eblake@redhat.com>
20165         test-getpeername: fix typo
20166         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
20168 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
20170         bootstrap: remove the need for a sorted .gitignore file
20171         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
20172         rename to insert_if_absent(), so that we don't need or generate
20173         a sorted .gitignore file.  We do require a .gitignore with no
20174         existing duplicate entries and enforce that.
20175         (sort_patterns): Remove this function as we now use the simpler
20176         technigue of inserting blacklist entries at the top of the file,
20177         assuming gnulib won't be inserting !whitelist entries.
20179 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20181         readlinkat: don't depend on gl_FUNC_OPENAT
20182         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
20183         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
20184         renameat.m4, symlinkat.m4; but one thing at a time.
20186         statat: new module, split out from fstatat
20187         GNU Emacs needs the POSIX-specified fstatat, but not the
20188         gnulib-specified statat and lstat.  Split the latter two into a
20189         new module 'statat'.
20190         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
20191         * lib/openat.h, lib/statat.c (STATAT_INLINE):
20192         Rename from FSTATAT_INLINE. All uses changed.
20193         * modules/fstatat (Files): Remove lib/statat.c.
20194         (gl_MODULE_INDICATOR([fstatat])): Remove.
20195         (lib_SOURCES): Remove.
20196         (Maintainer): Add self.
20197         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
20198         * tests/test-fstatat.c (BASE): Don't define if already defined.
20199         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
20201 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20203         tests: don't assume fd 99 is closed
20204         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
20205         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
20206         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
20207         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
20208         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
20209         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
20210         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
20211         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
20212         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
20213         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
20214         * tests/test-fwrite.c, tests/test-getpeername.c:
20215         * tests/test-getsockname.c, tests/test-getsockopt.c:
20216         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
20217         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
20218         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
20219         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
20220         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
20221         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
20222         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
20223         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
20224         * tests/test-unlinkat.c, tests/test-unlockpt.c:
20225         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
20226         Close file descriptor 99, instead of assuming it's already closed.
20228 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20230         stpncpy: port to OS X 10.8
20231         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
20232         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
20234 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20236         unistd: port to recent mingw
20237         * lib/unistd.in.h: Remove special invocation convention for mingw,
20238         which breaks for the latest mingw version.  See John W. Eaton in
20239         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
20241         largefile: port better to Mac OS X 10.5
20242         This patch is backported from Autoconf git.
20243         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
20244         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
20245         with ino_t size being different for configuration time versus
20246         build/run time.  Problem reported by PHO in
20247         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
20249 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20251         doc: clarify -Werror
20252         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
20253         clarify that it's intended for developers, not for ordinary builds,
20254         and mention --enable-gcc-warnings as one possible use.
20256 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
20258         stdint: fix build with Android's Bionic fox x86
20259         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
20260         was already included as _SSIZE_T_DEFINED_ might also be defined
20261         in include/machine/_types.h, which is included by stdio.h
20263 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20265         net_if-tests: port to Solaris 7 + GCC 3.4.6
20266         Problem reported by Tom G. Christensen in
20267         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
20268         * tests/test-net_if.c (ni): Move to next the code that uses it,
20269         so that it's declared only if needed.
20271 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20273         net_if-tests: port to older Solaris
20274         Problem reported by Tom G. Christensen in
20275         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20276         * modules/net_if-tests (NET_IF_LIB): New substitution.
20277         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
20278         (HAVE_IF_NAMEINDEX): New C macro.
20279         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
20281         system-quote-tests: port to older Solaris
20282         Problem reported by Tom G. Christensen in
20283         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20284         * tests/test-system-quote-child.c (fopen, fread): Undef.
20286         c-xvasprintf etc.: fix link errors on older Solaris
20287         These need to link with @LIBINTL@ to get libintl_gettext.
20288         Problem reported by Tom G. Christensen in
20289         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20290         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
20291         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
20292         * modules/futimens-tests (test_futimens_LDADD):
20293         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
20295 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20297         locale: port to Solaris 2.6 and 7 + GNU gettext
20298         * lib/locale.in.h: Just include_next <locale.h> when
20299         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
20300         when combining the localename module with GNU gettext 0.18.2.
20301         Problem reported by Tom G. Christensen in
20302         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
20304 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20306         stdlib: port to Solaris 2.6
20307         Also, the code worked on Solaris 7 through 9 only by accident.
20308         Problem reported by Tom G. Christensen in
20309         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
20310         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
20311         simply include the system stdlib.h.
20312         * lib/getopt.in.h (__need_system_stdlib_h):
20313         * lib/pthread.in.h (__need_system_stdlib_h):
20314         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
20315         Define when including <stdlib.h>, to avoid problems at least for
20316         the pthread case on Solaris 2.6 and 7.  These .h files can get by
20317         with the system stdlib.h.
20319 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20321         doc: update main copyright year
20322         * doc/gnulib.texi: Update copyright date.
20324         doc: improve ISO 8601 discussion
20325         * doc/parse-datetime.texi (Combined date and time of day items):
20326         Specify more carefully what formats are supported and what is
20327         done with excess precision.
20329 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20331         doc: avoid small caps
20332         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
20333         they're more trouble than they're worth.  Suggested by Karl Berry
20334         in <http://bugs.gnu.org/13360>.
20336         regex: conform to strict C
20337         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
20338         From Aharon Robbins.
20340         gnulib-tool: fix incompatibility with autopoint 0.18.2
20341         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
20342         Problem reported by Tom G. Christensen in
20343         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
20345 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20347         fprintftime: bring back and reword fwrite comment
20348         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
20350         stdio: remove now-unnecessary stdio.c
20351         Since stdio.in.h no longer uses inline functions, we no longer
20352         need to compile the extern versions.
20353         * lib/stdio.c: Remove.
20354         * modules/stdio (Files): Remove lib/stdio.c.
20355         (lib_SOURCES): Remove.
20357         unicodeio: depend on stdio, not ignore-value
20358         * lib/unicodeio.c: Do not include ignore-value.h.
20359         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20360         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20362         fprintftime: depend on stdio, not ignore-value
20363         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20364         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20365         since the stdio module arranges to silence that warning now.
20366         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20368 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20370         stdint-tests: Fix expanded-before-required-warning.
20371         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20373 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20375         fwrite: silence __wur only for older glibc versions
20376         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20377         This will help us remove this workaround some time in the far future.
20379 2013-01-03  Eric Blake  <eblake@redhat.com>
20381         fwrite: silence __wur without using inline
20382         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20383         just gcc, and in a way that avoids inline issues.
20384         * modules/stdio (Depends-on): Drop extern-inline.
20386 2013-01-03  Jim Meyering  <jim@meyering.net>
20388         update-copyright: avoid copyright notice date corruption
20389         Given a sequence of copyright year numbers in which the final
20390         one was a two-digit number that happened to be a substring of
20391         a preceding four-digit year number, we would mistakenly update
20392         the substring (from two- to four-digit) rather than the two-digit
20393         number at the end, which, combined with the addition of the current
20394         4-digit year number would yield two 5-digit year numbers, e.g.,
20395         here, it would convert the first "99" to "1999, 2013" rather than
20396         the final one:
20397           1991, 99
20398           11999, 20131, 1999
20399         * build-aux/update-copyright: Tighten a regexp.
20400         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20401         Reported by Joseph Myers in
20402         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20404 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20406         regex: omit needless signed-pointer casts
20407         * lib/regcomp.c (build_charclass, build_charclass_op):
20408         Use char *, not unsigned char *, for class name and extra.
20409         The char values are always nonnegative so there's no need to
20410         insist on unsigned char * here, and using char * removes the need
20411         for casts.  Reported by Aharon Robbins in
20412         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20414         regex: support Gawk, which never uses alloca
20415         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20416         Do not include in this case.  Gawk doesn't supply a substitute
20417         alloca.h and doesn't need one.
20419         regex: port __libc_lock_define usage to C89
20420         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20421         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20422         does not conform to C89, as it has an empty macro argument.
20423         Reported by Aharon Robbins in
20424         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20426 2013-01-01  Eric Blake  <eblake@redhat.com>
20428         maint: update all copyright year number ranges
20429         Run "make update-copyright".
20431         version-etc: bump copyright year reported in --version
20432         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20434 2012-12-31  Eric Blake  <eblake@redhat.com>
20436         sigprocmask-tests: skip test if pid is unexpectedly large
20437         * tests/test-sigprocmask.c (main): Add range check.
20439         git-version-gen: avoid test -z portability glitch
20440         * build-aux/git-version-gen: Prefer portable test spelling, since
20441         git-version-gen is run on more than just developer machines.
20443 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20445         git-version-gen: add --fallback option to use if git is not present
20446         * build-aux/git-version-gen: Add support for the new option --fallback,
20447         which comes into play when there is no $tarball_version_file and
20448         git is not working.
20449         (scriptversion): Update.
20451         maint.mk: handle missing git with more grace
20452         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20453         Quietly proceed if git is not present.
20455 2012-12-31  Eric Blake  <eblake@redhat.com>
20457         dup2: work around cygwin bug
20458         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20459         * lib/dup2.c (rpl_dup2): Work around it.
20460         * doc/posix-functions/dup2.texi (dup2): Document it.
20462 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20464         regex: remove unnecessary dependency on localcharset.h
20465         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20466         hasn't been needed for years.
20467         * modules/regex (Depends-on): Remove localcharset.
20469         regex: revert single-byte change
20470         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20471         to this function.  This was alredy fixed in a different way, at
20472         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20473         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20474         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20476         regex: simplify based on Gawk version
20477         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20478         Reported by Aharon Robbins in
20479         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20481 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20483         regex: check that pattern char is single-byte
20484         Reported by Aharon Robbins in
20485         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20486         * lib/regexec.c (check_node_accept_bytes):
20487         Return 0 if the pattern string has a multibyte character here.
20489         regex: implement rational ranges
20490         Reported by Aharon Robbins in
20491         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20492         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20493         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20494         Implement rational ranges.
20496         regex: avoid redefining __wctype
20497         Reported by Aharon Robbins in
20498         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20499         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20500         #undef before defining.
20502         regex: port to hosts where malloc (0) == NULL
20503         Reported by Aharon Robbins in
20504         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20505         * lib/regex_internal.c (re_node_set_alloc):
20506         Don't assume that malloc (0) yields nonnull.
20507         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20508         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20509         * modules/regex (Files): Add m4/eealloc.m4.
20511         regex: port to C89
20512         Reported by Aharon Robbins in
20513         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20514         * lib/regcomp.c (init_word_char): Declaration before statement.
20516         regex: merge glibc changes
20517         Also, copy the license wording from glibc.  This simplifies
20518         merging changes.  gnulib-tool will change the wording to GPL as
20519         appropriate, when importing it to other packages.  The only
20520         glibc change made since the last merge, which needs merging, is:
20521         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20522         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20524         * users.txt: Add Emacs.
20526         doc: omit mention of version when not needed
20527         * doc/gnulib-intro.texi (Portability and Application Code):
20528         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20529         Don't mention particular dates or versions when not necessary, so
20530         that the documentation won't go out of date so quickly.
20532         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20534 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20536         bootstrap: pass --force to autoreconf.
20537         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20538         Add "--force" so that Automake's ylwrap and other such tools
20539         be updated at each bootstrap invocation.
20540         Use it.
20542 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20544         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20545         The earlier patch forgot to update one of the #if conditions, causing
20546         a problem on Debian testing i386 reported by Mats Erik Andersson
20547         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20548         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20549         (__argp_fmtstream_puts, argp_fmtstream_puts)
20550         (__argp_fmtstream_write, argp_fmtstream_write)
20551         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20553         * doc/gnulib-readme.texi: Minor fixups.
20554         (Portability guidelines): Modernize URLs.  Remove some repetition.
20555         (Indent with spaces not TABs): Reword to avoid too-long lines.
20556         Remove some '@ifset standalone' stuff that isn't used.
20558         * doc/gnulib-readme.texi (Portability guidelines):
20559         ctype.h, not ctime.h.
20561         Correct name of POSIX.1-2001.
20562         * doc/posix-functions/fgetc.texi (fgetc):
20563         * doc/posix-functions/fgets.texi (fgets):
20564         * doc/posix-functions/fread.texi (fread):
20565         * doc/posix-functions/fscanf.texi (fscanf):
20566         * doc/posix-functions/getc.texi (getc):
20567         * doc/posix-functions/getchar.texi (getchar):
20568         * doc/posix-functions/scanf.texi (scanf):
20569         POSIX.1-2001, not POSIX-2001.
20571         doc: move README into manual
20572         * README: Move contents to new file doc/gnulib-readme.texi.
20573         Replace with a one-line summary.
20574         * doc/gnulib.texi (Brief Overview): New section,
20575         with old intro preface.  Include gnulib-readme.texi for contents.
20576         (Philosophy): Rename from "Introduction", since this
20577         section no longer introduces the rest.  Write a new preface.
20578         * doc/gnulib-readme.texi: New file, with the old contents of
20579         README texinfo-ized.  This way, the README info appears
20580         in the online and printed manual.
20582 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20584         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20585         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20586         c_vasprintf() prototype.
20588 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20590         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20591         * lib/c-vasprintf.h: Remove stray semicolon.
20593 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20595         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20596         It is obsolete and is planned to be removed from Automake 1.14; see
20597         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20598         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20599         (installdirs-data, installdirs-data-yes):
20600         Use $(MKDIR_P), not $(mkdir_p).
20601         * m4/intl.m4 (AM_INTL_SUBDIR):
20602         * m4/po.m4 (AM_PO_SUBDIRS):
20603         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20605 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20607         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20608         On this platform, we are not optimizing but we are using
20609         the substitute for extern inlines, so compile as if
20610         C99-style extern inline, or a substitute, is available.
20611         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20612         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20613         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20614         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20615         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20616         Declare as ARGP_FS_EI, not as extern.
20617         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20618         (__option_is_short, _option_is_end, __option_is_end)
20619         [!_LIBC && __USE_EXTERN_INLINES]:
20620         Declare as ARGP_EI, not as extern.
20622 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20624         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20625         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20626         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20627         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20628         ...), as the latter is fatal with older Autoconfs.
20629         Problem reported and fix suggested by Eric Blake in thread starting at
20630         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20632 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20634         AC_PROG_MKDIR_P: don't workaround if not buggy
20635         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20636         Define only for Autoconf versions before 2.62.
20637         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20638         undocumented m4_PACKAGE_VERSION, for consistency with the
20639         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20640         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20641         was introduced in 2.62.
20643 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20645         New 'c-*printf' modules for formatted output in C locale.
20647         New module 'c-vasnprintf'.
20648         * modules/c-vasnprintf: New file.
20649         * lib/c-vasnprintf.c: New file.
20650         * lib/c-vasnprintf.h: New file.
20652         New module 'c-snprintf'.
20653         * modules/c-snprintf: New file.
20654         * modules/c-snprintf-tests: New file.
20655         * lib/c-snprintf.c: New file.
20656         * lib/c-snprintf.h: New file.
20657         * tests/test-c-snprintf.c: New file.
20658         * tests/test-c-snprintf.sh: New file.
20660         New module 'c-vsnprintf'.
20661         * modules/c-vsnprintf: New file.
20662         * modules/c-vsnprintf-tests: New file.
20663         * lib/c-vsnprintf.c: New file.
20664         * lib/c-vsnprintf.h: New file.
20665         * tests/test-c-vsnprintf.c: New file.
20666         * tests/test-c-vsnprintf.sh: New file.
20668         New module 'c-vasprintf'.
20669         * modules/c-vasprintf: New file.
20670         * modules/c-vasprintf-tests: New file.
20671         * lib/c-asprintf.c: New file.
20672         * lib/c-vasprintf.c: New file.
20673         * lib/c-vasprintf.h: New file.
20674         * tests/test-c-vasprintf.c  +: New file.
20675         * tests/test-c-vasprintf.sh: New file.
20677         New module 'c-xvasprintf'.
20678         * modules/c-xvasprintf: New file.
20679         * modules/c-xvasprintf-tests: New file.
20680         * lib/c-xasprintf.c: New file.
20681         * lib/c-xvasprintf.c: New file.
20682         * lib/c-xvasprintf.h: New file.
20683         * tests/test-c-xvasprintf.c: New file.
20684         * tests/test-c-xvasprintf.sh: New file.
20686 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20688         argp: better 'inline'
20689         Use extern-inline module to declare extern inline functions.
20690         This avoids some bogus warning diagnostics.  Problem discovered
20691         when modifying GNU tar to use the manywarnings module.
20692         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20693         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20694         Define based on extern-inline.
20695         * modules/argp (Depends-on): Add extern-inline.
20697 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20699         filemode, sys_stat: Handle MPX files a la AIX.
20700         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20701         * lib/sys_stat.in.h (S_ISMPX): New macro.
20702         * tests/test-sys_stat.c: Add tests for MPX files.
20704 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20706         x-to-1: honor $PERL
20707         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20708         a chance to use his preferred version of Perl.  This is typically
20709         required by Darwin users whose default /usr/bin/perl does not have all
20710         the libraries required by help2man, and who need to use their MacPorts
20711         installation of Perl instead.
20713 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20715         gnu-web-doc-update: add all the new files, even in new directories
20716         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20717         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20718         Use it.
20719         (main): Don't use cvsutils to get the list of unknown files,
20720         just add all the existing files and directories.
20722 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20724         gnu-web-doc-update: improve --help
20725         * build-aux/gnu-web-doc-update: Move comments into --help.
20727 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20729         mountlist: recognize more "dummy" file systems
20730         * lib/mountlist.c (ME_DUMMY_0):
20731         Add these dummy FS names to the list:
20732         - "debugfs" virtual filesystem for kernel debugging
20733         - "devpts" PTY slave filesystem
20734         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20735         - "fusectl" control filesystem for FUSE
20736         - "mqueue" enumerates POSIX message queues
20737         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20738         - "sysfs" is for exporting kernel objects
20739         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20741 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20743         extern-inline: avoid incompatibility with Darwin Libc
20744         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20745         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20746         Problem reported by Akim Demaille in
20747         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20749 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20751         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20752         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20753         let it handle password prompting.
20755 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20757         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20758         * lib/canonicalize.c (canonicalize_filename_mode):
20759         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20760         fetching the current directory.  Don't overrun the beginning of
20761         rpath if there's no slashes after the MS-Windows drive letter.
20763 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20765         maint.mk: avoid extra forks
20766         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20767         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20768         So use that instead of "$(shell test -f FILE && echo FILE)".
20770 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20772         vasnprintf: fix ASCII_ONLY typo
20773         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20774         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20775         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20776         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20777         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20779 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20781         list, oset, xlist, xoset: fix extern inline issue with C99
20782         This was introduced by my recent changes for 'inline'.
20783         Problem reported for gettext by Daiki Ueno in
20784         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20785         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20786         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20787         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20788         (gl_list_previous_node, gl_list_get_at)
20789         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20790         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20791         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20792         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20793         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20794         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20795         (gl_list_iterator_free, gl_sortedlist_search)
20796         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20797         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20798         (gl_sortedlist_remove):
20799         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20800         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20801         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20802         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20803         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20804         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20805         (gl_list_add_at, gl_sortedlist_add):
20806         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20807         Wrap these extern decls inside "#if 0", because they are implemented
20808         as inline functions, and extern inline is not what's wanted here.
20809         It would simplify these .h files to remove the extern decls entirely,
20810         although a downside would be less-clear separation between
20811         specification and implementation.
20813 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20815         sys_stat: no 'static inline'
20816         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20819         extern-inline: no 'static inline'
20820         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20821         Do not require AC_C_INLINE.
20822         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20823         'static inline', for older compilers.
20825         snippet/warn-on-use: no 'static inline'
20826         * build-aux/snippet/warn-on-use.h:
20827         Remove unnecessary 'inline' in comment.
20829         rbtree-list, rbtreehash-list: no 'static inline'
20830         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20831         * lib/gl_anytree_list2.h (node_at):
20832         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20833         (gl_oset_first, add_nodes_to_buckets):
20834         Now static, not static inline.
20836         regex: no 'static inline'
20837         * lib/regex_internal.c (calc_state_hash):
20838         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20839         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20840         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20841         Now static, not static inline.
20842         (inline) [__GNUC__ < 3 && _LIBC]:
20843         Remove macro; no longer needed.
20845         xvasprintf: no 'static inline'
20846         * lib/xvasprintf.c (xstrcat):
20847         Now static, not static inline.
20848         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20849         Do not require AC_C_INLINE.
20851         parse-datetime, parse-duration: no 'static inline'
20852         * lib/parse-datetime.y (to_uchar):
20853         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20854         (scale_n_add):
20855         Now static, not static inline.
20856         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20857         * modules/parse-duration (configure.ac):
20858         Do not require AC_C_INLINE.
20860         getaddrinfo: no 'static inline'
20861         * lib/getaddrinfo.c (validate_family):
20862         Now static, not static inline.
20863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20864         Do not require AC_C_INLINE.
20866         ftruncate, fts, lstat, openat, raise: no 'static inline'
20867         * lib/ftruncate.c (chsize_nothrow):
20868         * lib/fts.c (opendirat, diropen):
20869         * lib/lstat.c (orig_lstat):
20870         * lib/openat.c (orig_openat):
20871         * lib/raise.c (raise_nothrow):
20872         Now static, not static inline.
20873         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20874         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20875         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20876         * m4/openat.m4 (gl_PREREQ_OPENAT):
20877         * m4/raise.m4 (gl_PREREQ_RAISE):
20878         Do not require AC_C_INLINE.
20880         fflush, stat: no 'static inline'
20881         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20882         (clear_ungetc_buffer, disable_seek_optimization)
20883         (restore_seek_optimization, update_fpos_cache):
20884         * lib/stat.c (orig_stat):
20885         Now static, not static inline.
20886         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20887         (update_fpos_cache):
20888         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20889         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20890         * m4/stat.m4 (gl_PREREQ_STAT):
20891         Do not require AC_C_INLINE.
20893         error, filevercmp: no 'static inline'
20894         * lib/error.c (is_open, flush_stdout):
20895         * lib/filevercmp.c (order):
20896         Now static, not static inline.
20897         * m4/error.m4 (gl_PREREQ_ERROR):
20898         * modules/filevercmp (configure.ac):
20899         Do not require AC_C_INLINE.
20901         dup, execute, fatal-signal, etc.: no 'static inline'
20902         * lib/dup.c (dup_nothrow):
20903         * lib/execute.c (nonintr_close, nonintr_open):
20904         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20905         * lib/fopen.c (orig_fopen):
20906         * lib/freadseek.c (freadptrinc):
20907         * lib/freopen.c (orig_freopen):
20908         * lib/fstat.c (orig_fstat, fstat_nothrow):
20909         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20910         (get_rusage_as_via_iterator):
20911         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20912         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20913         * lib/isatty.c (_isatty_nothrow):
20914         * lib/open.c (orig_open):
20915         * lib/read.c (read_nothrow):
20916         * lib/sigprocmask.c (signal_nothrow):
20917         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20918         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20919         * lib/wait-process.c (unregister_slave_subprocess):
20920         * lib/write.c (write_nothrow):
20921         Now static, not static inline.
20922         * lib/spawn-pipe.c (nonintr_open): Define only if
20923         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20924         * m4/dup.m4 (gl_PREREQ_DUP):
20925         * m4/execute.m4 (gl_EXECUTE):
20926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20927         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20928         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20929         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20930         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20931         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20932         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20933         * m4/open.m4 (gl_PREREQ_OPEN):
20934         * m4/read.m4 (gl_PREREQ_READ):
20935         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20936         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20938         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20939         * m4/write.m4 (gl_PREREQ_WRITE):
20940         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20941         Do not require AC_C_INLINE.
20943         c-strtod, memcoll, readutmp: no 'static inline'
20944         * lib/c-strtod.c (c_locale):
20945         * lib/memcoll.c (strcoll_loop):
20946         * lib/readutmp.c (desirable_utmp_entry):
20947         Now static, not static inline.
20948         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20949         * m4/memcoll.m4 (gl_MEMCOLL):
20950         * m4/readutmp.m4 (gl_READUTMP):
20951         Do not require AC_C_INLINE.
20953         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20954         * lib/arctwo.c (to_uchar):
20955         * lib/md4.c (set_uint32):
20956         * lib/md5.c (set_uint32):
20957         * lib/sha1.c (set_uint32):
20958         * lib/sha256.c (set_uint32):
20959         * lib/sha512.c (set_uint64):
20960         Now static, not static inline.  This is a bit simpler, and doesn't
20961         affect performance with GCC and default optimization.
20962         * m4/arctwo.m4 (gl_ARCTWO):
20963         * m4/md4.m4 (gl_MD4):
20964         * m4/md5.m4 (gl_MD5):
20965         * m4/sha1.m4 (gl_SHA1):
20966         * m4/sha256.m4 (gl_SHA256):
20967         * m4/sha512.m4 (gl_SHA512):
20968         Do not require AC_C_INLINE.
20970         cond, lock, thread: better 'inline'
20971         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20972         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20973         New macros.  Use them instead of static inline, for header functions.
20974         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20975         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20976         * lib/glthread/lock.c (gl_waitqueue_init)
20977         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20978         * lib/glthread/thread.c (get_current_thread_handle):
20979         Change 'static inline' to 'inline'.
20980         * lib/glthread/cond.h, lib/glthread/thread.h:
20981         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20982         * m4/cond.m4 (gl_COND):
20983         * m4/lock.m4 (gl_PREREQ_LOCK):
20984         * m4/thread.m4 (gl_THREAD):
20985         Do not require AC_C_INLINE.
20986         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20988         chdir-long, cycle-check, savewd: better 'inline'
20989         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20990         (find_non_slash):
20991         * lib/cycle-check.c (is_zero_or_power_of_two):
20992         * lib/savewd.c (savewd_delegating):
20993         Change 'static inline' to 'inline'.
20994         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20995         Replace all remaining uses of 'static inline' with it.
20996         * lib/savewd.h:
20997         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20998         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20999         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
21000         * m4/savewd.m4 (gl_SAVEWD):
21001         Do not require AC_C_INLINE.
21002         * modules/savewd (Depends-on): Add extern-inline.
21004         base32, base64: no need for 'inline'
21005         * lib/base32.c (to_uchar, get_8, decode_8):
21006         * lib/base64.c (to_uchar, get_4, decode_4):
21007         Change 'static inline' to 'inline'.
21008         * m4/base32.m4 (gl_PREREQ_BASE32):
21009         * m4/base64.m4 (gl_PREREQ_BASE64):
21010         Do not require AC_C_INLINE.
21012         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
21013         * lib/gl_array_oset.c (gl_array_nx_add_at):
21014         (gl_array_remove_at):
21015         * lib/gl_linkedhash_list.c (hash_resize_after_add)
21016         (add_to_bucket, remove_from_bucket):
21017         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
21018         Change 'static inline' to 'static', as it's simpler to omit
21019         'inline' unless there's a significant performance advantage.
21021         list, oset, xlist, xoset, xsublist: simplify via extern inline
21022         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
21023         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
21024         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
21025         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
21026         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
21027         New macro.  Replace all uses of 'static inline' with it.
21028         [HAVE_INLINE]: Implement functions as *_INLINE functions,
21029         instead of as macros FOO that are defined to static inline
21030         functions FOO_inline.
21031         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
21032         * lib/gl_xsublist.c:
21033         Reimplement from scratch, by defining the corresponding *_INLINE
21034         macro and including the corresponding .h file.  This is simpler.
21035         * modules/list, modules/oset, modules/xlist, modules/xoset:
21036         (Files): Remove m4/gl_list.m4.
21037         (configure.ac): Remove gl_LIST.
21038         * m4/gl_list.m4: Remove.
21039         * modules/list, modules/oset, modules/xlist, modules/xoset:
21040         * modules/xsublist:
21041         (Depends-on): Depend on extern-inline, not inline.
21043         xalloc: better 'inline'
21044         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
21045         New macro.  Replace all uses of 'static inline' with it.
21046         (static_inline): Remove.
21047         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21048         Let 'extern inline' do the work automatically, instead of doing
21049         it by hand.
21050         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
21051         Remove.  All uses removed.
21052         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
21054         gethrxtime: better 'inline'
21055         * lib/xtime.c: New file.
21056         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
21057         * lib/xtime.h (XTIME_INCLUDE):
21058         New macros.  Replace all uses of 'static inline' with them.
21059         * lib/gethrxtime.c (gethrxtime): Define only if
21060         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
21061         this source file is now always compiled, because of the extern inline.
21062         * lib/gethrxtime.h, lib/xtime.h:
21063         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21064         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
21065         if gethrtime works, as they're not needed in that case.
21066         (gl_XTIME): Do not require AC_C_INLINE.
21067         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
21068         compiled now.  Move the check into gl_GETHRXTIME.
21069         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
21070         (Depends-on): Add extern-inline.
21071         (configure.ac): gethrxtime is always compiled now.
21072         (lib_SOURCES): Add gethrxtime.c.
21074         wctype-h: better 'inline'
21075         * lib/wctype-h.c: New file.
21076         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
21077         New macro.  Replace all uses of 'static inline' with it.
21078         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21079         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
21080         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
21081         (Depends-on): Add extern-inline.
21083         unistd: better 'inline'
21084         * lib/unistd.c: New file.
21085         * lib/unistd.in.h (_GL_UNISTD_INLINE):
21086         New macro.  Replace all uses of 'static inline' with it.
21087         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21088         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
21089         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
21090         (Depends-on): Add extern-inline.
21092         sys_socket: better 'inline'
21093         * lib/sys_socket.c: New file.
21094         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
21095         New macro.  Replace all uses of 'static inline' with it.
21096         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21097         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
21098         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
21099         (Depends-on): Add extern-inline.
21101         stdio: better 'inline'
21102         * lib/stdio.c: New file.
21103         * lib/stdio.in.h (_GL_STDIO_INLINE):
21104         New macro.  Replace all uses of 'static inline' with it.
21105         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21106         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
21107         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
21108         (Depends-on): Add extern-inline.
21110         sigaction: better 'inline'
21111         * lib/sig-handler.c: New file.
21112         * lib/sig-handler.h (SIG_HANDLER_INLINE):
21113         New macro.  Replace all uses of 'static inline' with it.
21114         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21115         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
21116         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
21117         (Depends-on): Add extern-inline.
21119         selinux-h: better 'inline'
21120         * lib/se-context.c, lib/se-selinux.c: New files.
21121         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
21122         * lib/se-context.in.h (SE_CONTEXT_INLINE):
21123         New macro.  Replace all uses of 'static inline' with it.
21124         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21125         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
21126         New macro.  Replace all uses of 'static inline' with it.
21127         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21128         * modules/selinux-h (Files, lib_SOURCES):
21129         Add lib/se-context.c, lib/se-selinux.c.
21130         (Depends-on): Add extern-inline.
21131         (configure.ac): Do not require AC_C_INLINE.
21133         pthread: better 'inline'
21134         * lib/pthread.c: New file.
21135         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
21136         New macro.  Replace all uses of 'static inline' with it.
21137         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21138         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21139         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
21140         * modules/pthread (Files): Add lib/pthread.c.
21141         (Depends-on): Add extern-inline.
21143         math: better 'inline'
21144         * lib/math.c: New file.
21145         * lib/math.in.h (_GL_MATH_INLINE):
21146         New macro.  Replace all uses of 'static inline' with it.
21147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21148         * m4/math_h.m4 (gl_MATH_H):
21149         Do not require AC_C_INLINE.
21150         * modules/math (Files, lib_SOURCES):
21151         Add lib/math.c.
21152         (Depends-on): Add extern-inline.
21154         count-one-bits: better 'inline'
21155         * lib/count-one-bits.c: New file.
21156         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
21157         New macro.  Replace all uses of 'static inline' with it.
21158         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21159         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
21160         Do not require AC_C_INLINE.
21161         * modules/count-one-bits (Files, lib_SOURCES):
21162         Add lib/count-one-bits.c.
21163         (Depends-on): Add extern-inline.
21165         count-leading-zeros: better 'inline'
21166         * lib/count-leading-zeros.c: New file.
21167         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
21168         New macro.  Replace all uses of 'static inline' with it.
21169         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21170         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
21171         Do not require AC_C_INLINE.
21172         * modules/count-leading-zeros (Files, lib_SOURCES):
21173         Add lib/count-leading-zeros.c.
21174         (Depends-on): Add extern-inline.
21176         bitrotate: better 'inline'
21177         * lib/bitrotate.c: New file.
21178         * lib/bitrotate.h (BITROTATE_INLINE):
21179         New macros.
21180         Replace all uses of 'static inline' with them.
21181         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21182         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
21183         (Depends-on): Add extern-inline.
21184         (configure.ac): Do not require AC_C_INLINE.
21186 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
21188         maint.mk: avoid gratuitous failure
21189         Reported by Stefano Lattarini in
21190         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
21191         * top/maint.mk (public-submodule-commit): Quote more safely.
21193 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
21195         canonicalize, canonicalize-lgpl: support MS-Windows file names
21196         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
21197         for test cases, which it'd be nice to add at some point.
21198         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
21199         * lib/canonicalize.c (canonicalize_filename_mode):
21200         * lib/canonicalize-lgpl.c (__realpath):
21201         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
21202         slash is at the beginning of the file name.  Use ISSLASH, instead
21203         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
21204         the first character with '/'.  Test for
21205         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
21206         with a drive letter.
21207         * lib/canonicalize.c (SLASHES): New macro.
21208         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
21210 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
21212         fts: introduce FTS_VERBATIM
21213         * lib/fts_.h (FTS_VERBATIM): New bit flag.
21214         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
21215         * lib/fts.c (fts_open): Honor it.
21217 2012-11-09  Pádraig Brady  <P@draigBrady.com>
21219         getlogin-tests: allow errno == ENXIO
21220         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21221         with errno == ENXIO (No controlling tty).
21222         getlogin_r-tests: Likewise. Also allow errno == ENOENT
21223         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
21224         with errno == ENOENT.  This was reported to happen in various
21225         situations on GNU/Linux.
21227 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21229         getlogin-tests: allow errno == ENOENT
21230         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21231         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
21232         when running a test in an Emacs shell buffer.
21234 2012-11-08  Jim Meyering  <jim@meyering.net>
21236         tests/nap.h: avoid warning about unused variable
21237         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
21239         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
21240         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
21241         white space before each of the special-cased file names, to avoid
21242         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
21243         in http://bugs.gnu.org/12830.
21245 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21247         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
21248         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
21249         fails with errno == EBADF when fd is opened with O_PATH.
21250         Reported by Jim Meyering in
21251         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
21252         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21253         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
21255 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21257         test-utimens: speed up by taking shorter naps
21258         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
21259         New functions.
21260         (nap): Use them, to do a better job of guessing the delay.
21261         On Fedora 17 with ext4 atop md atop hard disks, this made
21262         test-utimens run 10x faster, because the test napped for
21263         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
21264         <http://bugs.gnu.org/12820#11>.
21266 2012-11-07  Jim Meyering  <jim@meyering.net>
21268         mountlist.c: fix a compilation failure
21269         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
21270         I introduced while transforming commit v0.0-7683-g613bcb6
21272 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21274         errno: port to LynxOS 178 2.2.2
21275         Problem reported by Joel Brobecker in
21276         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
21277         * doc/posix-headers/errno.texi (errno.h): Document this.
21278         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
21279         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
21280         Supply a string for EILSEQ.
21281         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
21283 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21285         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
21286         Linux kernel 2.6.39 introduced O_PATH (see
21287         <http://lwn.net/Articles/433854/>) and this is a better fallback
21288         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
21289         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21290         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
21291         * lib/fcntl.in.h (O_ACCMODE):
21292         * tests/test-fcntl-h.c (main):
21293         Do not reject O_ACCMODE merely because it has more than the
21294         minimal number of bits, as POSIX allows extensions here.
21296 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
21298         mountlist: do not classify a bind-mounted dir entry as "dummy"
21299         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
21300         the "none"-testing clause.
21301         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
21302         exception for bind-mounted directories.
21304 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
21306         quote: provide a means to escape strings with nul characters
21307         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
21308         (quote, quote_n): Rename formal arguments for consistency with
21309         quotearg.
21311 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21313         test-raise: don't assume 199 is an invalid signal
21314         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
21316         sh-quote-tests: port to Solaris 9
21317         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
21318         Problem reported by Dagobert Michelsen in
21319         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
21321 2012-10-28  Jim Meyering  <jim@meyering.net>
21323         maint.mk: rename a new configurable variable
21324         * top/maint.mk (_gl_translatable_string_re): Rename from
21325         translation-markers: _gl_ prefix to insulate from user Makefile code,
21326         and the _re suffix to inform that it's a regular expression.
21328 2012-10-26  Eric Blake  <eblake@redhat.com>
21330         maint.mk: let packages tweak sc_po_check pattern
21331         * top/maint.mk (sc_po_check): Add translation-markers, to allow
21332         finding files with other translation markers.
21334 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21336         euidaccess: speed up 'configure' on GNU hosts
21337         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
21338         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
21339         it's needed only in this case.  Use AC_CHECK_DECLS, not
21340         AC_CHECK_DECLS_ONCE.
21341         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
21342         or AC_REQUIRE for AC_FUNC_GETGROUPS.
21344         * lib/regexec.c (re_search_internal): Fix grammar in comment.
21346 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21348         fchmodat, fchownat, fstatat: port to non-inlining compilers
21349         Problem reported for FreeBSD 9 by Jim Meyering in
21350         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
21351         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
21352         New files, which define FCHMODAT_INLINE etc.
21353         * lib/fchmodat.c (FCHMODAT_INLINE):
21354         * lib/fchownat.c (FCHOWNAT_INLINE):
21355         * lib/fstatat.c (FSTATAT_INLINE):
21356         Remove, as chmodat.c etc. now do this.
21357         * modules/fchmodat (Files): Add lib/chmodat.c.
21358         * modules/fchownat (Files): Add lib/chownat.c.
21359         * modules/fstatat (Files): Add lib/statat.c.
21361 2012-10-15  Jim Meyering  <jim@meyering.net>
21363         fchmodat.c, fchownat.c: compile-impeding typos
21364         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21365         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21366         Introduced in commit v0.0-7636-gd202279.
21368 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21370         fcntl-h: support GNU flags like O_IGNORE_CTTY
21371         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21372         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21373         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21374         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21375         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21376         Define to 0 if not already defined.
21377         * tests/test-fcntl-h.c: Test these new flags.
21379 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21381         faccessat, etc.: support AT_FDCWD-only use
21382         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21383         this function only if its first argument is AT_FDCWD.
21384         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21385         values other than AT_FDCWD, so it doesn't want all the openat
21386         machinery with fchdir etc.
21387         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21388         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21389         * modules/unlinkat (Files):
21390         Remove lib/openat-priv.h, as at-internal supplies this file.
21391         Removing this file here allows us to support programs like Emacs
21392         that avoid at-internal.
21394         faccessat: speed up 'configure' on mainstream hosts
21395         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21396         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21397         since it's only on unusual platforms that we need to check for
21398         'access', and it's better not to slow 'configure' down on all
21399         platforms.
21401         faccessat: port to Solaris 10
21402         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21403         Needed on Solaris 10, which doesn't have AT_EACCESS,
21404         so we need the Gnulib fcntl.h, which defines it.
21406 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21407         canonicalize: fix C89 compilation
21408         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21409         declarations so C89 is supported.  Also remove the comment
21410         referencing memorty allocation as the suggested feature could
21411         not be implemented as suggested.
21412         Reported by Michael Goffioul.
21414 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21416         group-member: omit unnecessary dependencies
21417         This is for Emacs, which has its own allocator and where we
21418         don't want to use xalloc.
21419         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21420         since we no longer use xmalloc.  Do not include stdbool.h, since
21421         the changes below happen to remove the only use of bool.
21422         (GROUPBUF_SIZE): New constant.
21423         (struct group_info): Remove n_groups member.  Add groupbuf member.
21424         This lets us get the groups without using malloc, usually.
21425         (free_group_info, get_group_info): Adjust to this.
21426         (get_group_info): Return the number of groups found, or -1 on error.
21427         Use plain malloc not xmalloc, and treat its failure as if there
21428         are no groups, as the user already loses in case of error.
21429         (group_member): Simplify, based on changes to get_group_info.
21430         * modules/group-member (Depends-on): Remove dependencies on
21431         xalloc and stdbool.  Add dependency on xalloc-oversized.
21433 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21435         gethrxtime: port to C++
21436         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21438 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21440         ptsname: fix macro-name typo
21441         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21443 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21445         inttostr: Relax license.
21446         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21448 2012-10-03  Eric Blake  <eblake@redhat.com>
21450         ptsname_r: support ptys returned by FreeBSD posix_openpt
21451         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21452         lives in /dev/pts/.
21454 2012-10-02  Eric Blake  <eblake@redhat.com>
21456         pselect: reject invalid file descriptors
21457         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21458         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21459         * modules/pselect (Depends-on): Add dup2.
21460         * doc/posix-functions/pselect.texi (pselect): Document this.
21462         select: reject invalid file descriptors
21463         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21464         * lib/select.c (rpl_select) [!win32]: Work around it.
21465         * modules/select (Depends-on): Add dup2.
21466         * doc/posix-functions/select.texi (select): Document this.
21468         select: enhance test
21469         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21470         New functions.
21471         (test_function): Enhance test.
21472         (do_select_bad_fd): Avoid any stale errno values.
21474         ptsname: reject invalid file descriptors
21475         http://www.austingroupbugs.net/view.php?id=503
21476         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21478         * modules/stdlib (Makefile.am): Replace witness.
21479         * lib/stdlib.in.h (ptsname): Allow for replacement.
21480         * modules/ptsname (configure.ac): Trigger replacement.
21481         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21483 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21485         hash-pjw-bare: new module
21486         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21487         * lib/hash-pjw-bare.h: Likewise.
21488         * modules/hash-pjw-bare: New file.
21489         * MODULES.html.sh (Misc): Add it.
21491 2012-10-02  Eric Blake  <eblake@redhat.com>
21493         manywarnings: cater to more gcc infelicities
21494         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21495         -Wuninitialized without -O.
21497 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21499         select, poll tests: Make setsockopt invocation effective.
21500         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21501         the bind() call.
21502         * tests/test-select.h (open_server_socket): Likewise.
21504 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21506         sockets, sys_stat: restore AC_C_INLINE
21507         This undoes the 2012-09-22 patch.
21508         * m4/sockets.m4 (gl_SOCKETS):
21509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21510         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21511         and does not support plain 'inline'.  Reported by Bruno Haible in
21512         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21514 2012-09-30  Bruno Haible  <bruno@clisp.org>
21516         localeconv tests: Avoid test failure on OpenIndiana.
21517         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21518         skip the 'grouping' and 'mon_grouping' tests.
21519         Reported by Jim Meyering.
21521 2012-09-30  Bruno Haible  <bruno@clisp.org>
21523         havelib: Follow libtool developments.
21524         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21525         Suggested by Simon Josefsson.
21527 2012-09-29  Jim Meyering  <meyering@redhat.com>
21529         fstatat.c: fix a compile-impeding typo
21530         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21531         Introduced in commit v0.0-7636-gd202279.
21532         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21534 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21536         extern-inline: provide a -Wundef safe config.h
21537         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21538         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21539         to produce a -Wundef warning free config.h.
21541 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21543         hash-pjw: relax license to LGPLv2+
21544         * modules/hash-pjw (License): Relax, with consent of author.
21546 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21548         maint.mk: fix strict vs. lazy variable issues with RELEASE
21549         * top/maint.mk (_equal): New function.
21550         (member_check): Strip the result to avoid spurious spaces.
21551         (url_dir_list): Do not use ifeq, which is strict, as it will
21552         require RELEASE_TYPE to be defined.
21553         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21554         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21555         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21556         (announcement_Cc_beta,announcement_mail_headers_beta)
21557         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21558         (release): Do not depend on $(release-type), as it forces its
21559         evaluation.  Bounce to it.
21561 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21563         maint.mk: formatting changes
21564         * top/maint.mk: Indent bodies of if's.
21566 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21568         maint.mk: factor the validation of RELEASE_TYPE
21569         With help from Jim Meyering.
21570         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21571         * top/maint.mk (_empty, _sp): Move their definition earlier.
21572         (member-check, release-type): New.
21573         Use the latter instead of $(RELEASE_TYPE).
21574         Remove now useless local checks.
21576 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21578         maint.mk: provide "make upload" to ease uploading
21579         See
21580         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21581         Do not depend simply on the current $(VERSION), as there may have been
21582         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21583         as "make release-commit" already does.
21585         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21586         "make TYPE".
21588         * top/maint.mk (upload_command, upload, release): New.
21589         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21590         (VERSION): first word of $(RELEASE) is always right.
21591         (emit_upload_commands): Adjust.
21592         * top/README-release: Update.
21594 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21596         maint.mk: silent rules
21597         With help from Stefano Lattarini.
21598         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21599         (announcement): Use $(AM_V_at).
21601 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21603         localename: port gl_locale_name_thread_unsafe to FreeBSD
21604         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21605         and use the simpler FreeBSD implementation on Mac OS X as well.
21606         Original idea suggested by Ed Maste in
21607         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21609 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21611         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21612         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21613         * lib/mbuiter.c, lib/xsize.c: New files.
21614         * lib/binary-io.h (BINARY_IO_INLINE):
21615         * lib/eealloc.h (EEALLOC_INLINE):
21616         * lib/mbfile.h (MBFILE_INLINE):
21617         * lib/mbiter.h (MBITER_INLINE):
21618         * lib/mbuiter.h (MBUITER_INLINE):
21619         * lib/xsize.h (XSIZE_INLINE):
21620         New macros.
21621         Replace all uses of 'static inline' with them.
21622         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21623         * m4/eealloc.m4 (gl_EEALLOC):
21624         * m4/mbfile.m4 (gl_MBFILE):
21625         * m4/mbiter.m4 (gl_MBITER):
21626         * m4/xsize.m4 (gl_XSIZE):
21627         Do not require AC_C_INLINE.
21628         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21629         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21630         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21631         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21632         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21633         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21634         * modules/binary-io, modules/eealloc, modules/mbfile:
21635         * modules/mbiter, modules/mbuiter:
21636         (Depends-on): Add extern-inline.
21638         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21639         * lib/pipe-filter-aux.c: New file.
21640         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21641         Replace all uses of 'static inline' with it.
21642         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21643         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21644         (filter_retcode): No real need for inline here.
21645         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21646         (Files): Add lib/pipe-filter-aux.c.
21647         (Depends-on): Add extern-inline.
21648         (configure.ac): Do not require AC_C_INLINE.
21649         (lib_SOURCES): Add pipe-filter-aux.c.
21651         fdutimensat: omit unnecessary AC_C_INLINE
21652         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21654         fchmodat, fchownat, fstatat: use extern-inline
21655         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21656         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21657         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21658         New macros.
21659         * lib/openat.h:
21660         Replace all uses of 'static inline' with them.
21661         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21662         * modules/fchmodat, modules/fchownat, modules/fstatat:
21663         * modules/openat-h:
21664         (Depends-on):
21665         Add extern-inline.
21666         (configure.ac): Remove AC_C_INLINE.
21668         acl, mbchar, priv-set: use extern-inline
21669         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21670         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21671         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21672         New macros.
21673         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21674         Replace all uses of 'static inline' with it.
21675         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21676         * m4/acl.m4 (gl_FUNC_ACL):
21677         * m4/mbchar.m4 (gl_MBCHAR):
21678         * m4/priv-set.m4 (gl_PRIV_SET):
21679         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21680         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21681         Add extern-inline.
21683         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21684         * m4/sockets.m4 (gl_SOCKETS):
21685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21686         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21687         environments where it's already guaranteed to work, so we needn't
21688         check for it at 'configure'-time.
21690         tls-tests: omit unnecessary 'inline'
21691         * tests/test-tls.c (perhaps_yield): No longer inline.
21692         Simplicity and portability trump efficiency in test cases.
21694         utimens-tests: avoid unnecessary 'inline'
21695         * modules/fdutimensat-tests (configure.ac):
21696         * modules/futimens-tests (configure.ac):
21697         * modules/utimens-tests (configure.ac):
21698         * modules/utimensat-tests (configure.ac):
21699         Remove AC_C_INLINE.
21700         * tests/test-utimens-common.h (ctime_compare):
21701         No longer inline.  Simplicity and portability trump efficiency here.
21703         misc: don't limit commentary to inline functions
21704         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21705         * lib/xalloc-oversized.h, lib/xsize.h:
21706         Contrast macros to functions in general, not just to inline functions,
21707         when the commentary does not apply only to inline functions.
21709 2012-09-20  Jim Meyering  <meyering@redhat.com>
21711         non-recursive-gnulib-prefix-hack: new module
21712         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21713         the file that originated in Bison.
21714         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21715         largely copied from a snippet that resided in bison's configure.ac.
21716         * modules/non-recursive-gnulib-prefix-hack: New file.
21717         * MODULES.html.sh (Support for maintaining and releasing projects):
21718         Add it.
21720 2012-09-18  Jim Meyering  <meyering@redhat.com>
21722         maint.mk: generalize _gl_tight_scope for non-recursive make
21723         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21724         that *.h would describe additional .h files in the directory
21725         specified by $(_gl_TS_dir).  I.e., add this...
21726         (_gl_TS_other_headers): New variable.
21728         maint.mk: exempt trailing blanks found in "binary" files
21729         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21730         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21731         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21733 2012-09-17  Jim Meyering  <meyering@redhat.com>
21735         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21736         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21737         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21738         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21740 2012-09-17  Jim Meyering  <meyering@redhat.com>
21742         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21743         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21744         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21745         It is not in the same category as "exit (0)" or "exit (1)", and
21746         besides, I know of no symbolic name for that 77.  Reported by
21747         Richard W.M. Jones in
21748         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21750 2012-09-17  Jim Meyering  <meyering@redhat.com>
21752         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21753         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21754         all uses of #define, not just those that start in column 1.
21755         Richard W.M. Jones reported a false positive in
21756         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21758 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21760         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21761         * lib/localcharset.c (locale_charset) [DARWIN7]:
21762         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21763         as these two values are incompatible.  Problem reported by Max Horn.
21764         For more discussion, please see
21765         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21767         doc: document sticky-EOF issue
21768         * doc/posix-functions/fgetc.texi (fgetc):
21769         * doc/posix-functions/fgets.texi (fgets):
21770         * doc/posix-functions/fread.texi (fread):
21771         * doc/posix-functions/fscanf.texi (fscanf):
21772         * doc/posix-functions/getc.texi (getc):
21773         * doc/posix-functions/getchar.texi (getchar):
21774         * doc/posix-functions/scanf.texi (scanf):
21775         Mention that glibc and default Solaris do not conform to
21776         C99 and POSIX-2001 or later, with respect to how getchar
21777         etc. behave when feof reports nonzero.
21779 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21781         poll: fix poll(0, NULL, msec)
21782         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21783         but nfd is 0.  In that case poll should behave like select.
21785 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21786             Paolo Bonzini  <bonzini@gnu.org>
21788         poll: fix for systems that can't recv() on a non-socket
21789         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21790         is readable.  In this case POLLHUP will not be supported.
21791         * doc/posix-functions/poll.texi: Document this.
21793 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21795         poll/select: document portability problems not fixed by Gnulib.
21796         * doc/posix-functions/poll.texi: poll does not work well on
21797         pipes under Windows.  It has the same limitations as select on
21798         BeOS.
21799         * doc/posix-functions/select.texi: select does not work well
21800         on pipes under Windows.
21802 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21804         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21805         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21806         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21807         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21809 2012-09-06  Eric Blake  <eblake@redhat.com>
21811         net_if: give more details about the bug being fixed
21812         * doc/posix-headers/net_if.texi: Add clarification.
21814 2012-09-05  Eric Blake  <eblake@redhat.com>
21816         net_if: new module
21817         * modules/net_if: New module, borrowing ideas from netinet_in.
21818         * m4/net_if_h.m4: New file.
21819         * lib/net_if.in.h: Likewise.
21820         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21821         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21822         * tests/test-net_if.c: Make function checks conditional.
21823         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21825 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21827         readutmp: fix non-portable UT_PID use
21828         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21829         Use `UT_PID (u) > 0' as absolute condition.
21831 2012-09-04  Jim Meyering  <meyering@redhat.com>
21833         fts: reduce two or more trailing spaces to just one, usually
21834         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21835         or more slashes, trim all but the final one.  But if a name consists
21836         solely of two slashes, don't modify it.  If it consists solely of
21837         three or more slashes, strip all but one.
21839         This is part of the solution to a minor problem with rm:
21840         it would print a bogus ELOOP diagnostic when failing to remove
21841         the slash-decorated name of a symlink-to-directory:
21843             $ mkdir d && ln -s d s && env rm -r s/
21844             rm: cannot remove 's': Too many levels of symbolic links
21846         With the change below and a trivial don't-trim-trailing-slashes
21847         adjustment to remove.c, it does this:
21849             $ env rm -r s/
21850             rm: cannot remove 's/': Not a directory
21852         Improved by: Eric Blake
21854         fts: when there is no risk of overlap, use memcpy, not memmove
21855         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21857 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21859         stdbool: be more compatible with mixed C/C++ compiles
21860         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21861         Define to bool, true, false, respectively, as GCC's builtin
21862         stdbool.h does.  Problem reported by Michael Goffioul in
21863         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21865 2012-08-28  Jim Meyering  <meyering@redhat.com>
21867         revert last change: it was not needed
21868         * tests/test-vc-list-files-git.sh: There's already a test for
21869         a working git, just below.
21871 2012-08-28  Jim Meyering  <meyering@redhat.com>
21873         tests: test-vc-list-files-git.sh: skip if git is not available
21874         * tests/test-vc-list-files-git.sh: Skip this test when git is
21875         not available.
21877 2012-08-26  Bruno Haible  <bruno@clisp.org>
21879         gnulib-tool: Remove no-op option --no-changelog.
21880         * gnulib-tool (func_usage): Don't mention --no-changelog.
21881         (do_changelog): Remove variable.
21882         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21884 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21886         doc: remove fdl-1.2.texi
21887         It is no longer used or maintained, and its use of @acronym
21888         is problematic.  See the thread containing
21889         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21890         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21891         * doc/old-licenses/fdl-1.2.texi: Remove.
21893         execinfo: port to FreeBSD
21894         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21895         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21896         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21897         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21899 2012-08-23  Jim Meyering  <meyering@redhat.com>
21901         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21902         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21903         to placate gcc's -Wold-style-declaration.
21905 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21907         doc: do not use @acronym
21908         * doc/inet_ntoa.texi (inet_ntoa):
21909         * doc/parse-datetime.texi (Seconds since the Epoch)
21910         (Specifying time zone rules):
21911         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21912         Don't use @acronym.  Problem reported by John Darlington in
21913         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21915 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21917         stdnoreturn: port to newer GCCs
21918         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21919         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21920         Problem reported by Jim Meyering in
21921         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21922         Also, rename the 'test' function to a void a clash with the
21923         already-supplied 'main' function; this fixes a bug that incorrectly
21924         rejected GCC 4.7.1's <stdnoreturn.h>.
21925         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21926         Document GCC problem.
21928 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21930         pipe-filter: fix comment typo
21931         * lib/pipe-filter.h: Mention correct function.
21933 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21935         execinfo: new module
21936         This is for Emacs.  Currently, it provides a no-effect stub
21937         on all platforms where it does not already work.
21938         It already works on glibc-based systems, and on Solaris 11.
21939         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21940         New files.
21941         * doc/glibc-headers/execinfo.texi (execinfo.h):
21942         * MODULES.html.sh (Misc): Document it.
21944 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21946         extern-inline: support old GCC 'inline'
21947         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21948         if available.  This applies to GCC versions 2.7 through 4.2, or
21949         when newer GCC is using -fgnu89-inline.  The goal is to address
21950         some of the performance issues mentioned by Bruno Haible in
21951         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21953 2012-08-20  Eric Blake  <eblake@redhat.com>
21955         maint.mk: avoid redundant file name in message
21956         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21957         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21958         (sc_makefile_path_separator_check): Remove bogus $(ME).
21960 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21962         timer-time: fix link order when static linking on glibc
21963         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21964         _after_ -lrt so that it's significant.
21966 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21968         timespec: omit unnecessary AC_C_INLINE
21969         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21971         stat-time: omit unnecessary AC_C_INLINE
21972         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21973         Do not require AC_C_INLINE.
21975         ignore-value: omit unnecessary AC_C_INLINE
21976         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21978         sys_select: avoid 'static inline'
21979         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21981         mktime: avoid 'static inline'
21982         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21983         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21985 2012-08-19  Bruno Haible  <bruno@clisp.org>
21987         gnulib-tool: Improve coding style.
21988         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21989         func_emit_lib_Makefile_am.
21990         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21992 2012-08-19  Bruno Haible  <bruno@clisp.org>
21994         gnulib-tool: Fix indentation.
21995         * gnulib-tool (func_import): Fix indentation.
21997 2012-08-19  Bruno Haible  <bruno@clisp.org>
21999         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
22000         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
22001         on the list of removed files.
22003 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22005         test-parse-datetime: avoid glibc leap-second glitch
22006         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
22007         with the 2012 rules.  Problem reported by Bruce Dubbs in
22008         <http://bugs.gnu.org/12206>.
22010 2012-08-14  Bruno Haible  <bruno@clisp.org>
22012         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
22013         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
22014         from argument.
22015         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22017 2012-08-14  Eric Blake  <eblake@redhat.com>
22019         ldexp: relax license
22020         * modules/ldexp (License): Trivial relax, since the module only
22021         provides a permissively licensed m4 file.
22023 2012-08-13  Bruno Haible  <bruno@clisp.org>
22025         gnulib-tool: Fix persistence of --witness-c-macro option.
22026         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
22027         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22029 2012-08-11  Eric Blake  <eblake@redhat.com>
22031         count-leading-zeros: use a lookup table on non-gcc compilers
22032         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
22033         alternate implementation, suggested by Jim Meyering.
22035 2012-08-10  Eric Blake  <eblake@redhat.com>
22037         count-leading-zeros: new module
22038         * modules/count-leading-zeros: New module.
22039         * m4/count-leading-zeros.m4: New file.
22040         * lib/count-leading-zeros.h: Likewise.
22041         * modules/count-leading-zeros-tests: New test.
22042         * tests/test-count-leading-zeros.c: New file.
22043         * MODULES.html.sh (Integer arithmetic functions): Document it.
22045 2012-08-07  Simon Josefsson  <simon@josefsson.org>
22046             Jim Meyering  <meyering@redhat.com>
22048         maintainer-makefile: Fix syntax error with dash.
22049         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
22050         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
22052 2012-08-05  Jim Meyering  <meyering@redhat.com>
22054         extern-inline: also ignore -Wmissing-declarations
22055         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
22056         required with gcc-4.8.0-to-be.
22058         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
22059         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
22060         for /error ?([^,]*)/.  This avoids false-positives for strings like
22061         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
22063 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
22065         gnumakefile: better interaction with Automake-NG
22066         * modules/gnumakefile [Makefile.am]: The makefiles generated by
22067         Automake-NG always contain a definition of VPATH, even in non-VPATH
22068         builds (its value being simply '.' in that case).  So, in the
22069         'clean-GNUmakefile' rule, to determine whether running under a
22070         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
22071         '$(VPATH)' expands to the empty string.
22073 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
22075         base64: Use extern C scope in header file, for C++.
22076         * lib/base64.h: Add C++ namespace protection.
22078 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22080         stat-time, timespec, u64: support naive out-of-dir builds
22081         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
22082         Use '#include "foo.h"', not '#include <foo.h>', when including
22083         one's own interface.  This works better when configuring with
22084         out-of-directory builds, since packages need not add an
22085         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
22087 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22089         utimens: use extern-inline
22090         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
22091         * lib/utimens.h: Add copyright notice, since this is now large enough
22092         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22093         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
22094         * modules/utimens (Depends-on): Add extern-inline.
22096         u64: use extern-inline
22097         * lib/u64.c: New file.
22098         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22099         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
22100         * modules/u64 (Files): Add lib/u64.c.
22101         (Depends-on): Add extern-inline.
22102         (configure.ac): No need to require AC_C_INLINE, since extern-inline
22103         does that now.
22104         (lib_SOURCES): Add u64.c.
22106         timespec: use extern-inline
22107         * lib/timespec.c: New file.
22108         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22109         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
22110         * modules/timespec (Files): Add lib/timespec.c.
22111         (Depends-on): Add extern-inline.
22112         (lib_SOURCES): Add timespec.c.
22114         stat-time: use extern-inline
22115         * lib/stat-time.c: New file.
22116         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22117         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
22118         * modules/stat-time (Files): Add lib/stat-time.c.
22119         (Depends-on): Add extern-inline.
22120         (lib_SOURCES): Add stat-time.c.
22122         extern-inline: new module
22123         * modules/extern-inline, m4/extern-inline.m4: New files.
22124         This is for better support of 'extern inline' a la ISO C99,
22125         with a portable alternative on compilers that do not support
22126         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
22127         of the Emacs executable, when compiled with debugging disabled,
22128         which is a typical way that Emacs is built while developing.
22130 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
22132         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
22133         * build-aux/do-release-commit-and-tag: Move variable definitions
22134         together.
22135         ($branch): Instead of defaulting to "master", default to the current
22136         branch (as gnu-web-doc-update does).
22137         (help): Display the current values of the option arguments.
22138         * top/maint.mk (release-commit): New.
22139         * top/README-release: Simplify the corresponding step.
22141 2012-07-30  Eric Blake  <eblake@redhat.com>
22143         passfd: fix comment on recvfd
22144         * lib/passfd.c (recvfd): Fix comment.
22145         Reported by Jann Horn <jannhorn@googlemail.com>.
22147 2012-07-30  Jim Meyering  <meyering@redhat.com>
22149         maint.mk: avoid a sub-shell
22150         * top/maint.mk (release-prep): Remove unneeded sub-shell.
22152 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22154         maint.mk: use silent-rules support from Automake
22155         * top/maint.mk (news-check, vc-diff-check, announcement)
22156         (no-submodule-changes, alpha beta stable, release-prep)
22157         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
22159 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22161         maint.mk: provide a web-manual-update target
22162         * top/maint.mk: here.
22163         * top/README-release: Use it to simplify the web manual update step.
22165 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22167         README-release: shorten the circuit to post a news
22168         * top/README-release: Point directly to the news submission form.
22170 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22172         gnu-web-doc-update: fix --help
22173         * build-aux/gnu-web-doc-update: The information "top level" was written
22174         twice.
22176 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22178         maint.mk: absolute VPATH issue
22179         * top/maint.mk (release-prep): Help Git find .git/.
22180         From Jim Meyering.
22182 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22184         gitlog-to-changelog: fix previous change
22185         * build-aux/gitlog-to-changelog: Fix condition.
22186         Add missing ";".
22188 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22190         gitlog-to-changelog: don't expect .git to be in $srcdir
22191         Reported by Bruno Haible.
22192         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
22193         * build-aux/gitlog-to-changelog (&git_dir_option): New.
22194         Use it.
22196 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22198         maint.mk: absolute VPATH build fix
22199         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
22200         $(srcdir) is not a parent of $(builddir).
22202 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
22204         clean-temp: Fix memory leak.
22205         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
22206         'files' members of tmpdir.
22208 2012-07-27  Jim Meyering  <meyering@redhat.com>
22210         maint.mk: new rule: refresh-gnulib-patches
22211         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
22212         Use this rule to refresh them.
22213         * top/maint.mk (refresh-gnulib-patches): New rule.
22215 2012-07-24  Bruno Haible  <bruno@clisp.org>
22217         gnulib-tool: Fix handling of inctests variable.
22218         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
22219         Reported by Nick Bowler <nbowler@elliptictech.com>.
22221 2012-07-22  Bruno Haible  <bruno@clisp.org>
22223         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
22224         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
22225         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22226         Remove exemption for getpass.h.
22227         Suggested by Eric Blake.
22229 2012-07-20  Eric Blake  <eblake@redhat.com>
22231         verify: document conflict with -Wnested-externs
22232         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
22234         maint.mk: forbid exit(-1)
22235         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
22237 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
22239         fsusage: port back to Solaris
22240         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
22241         error (fsd not declared) on Solaris 10.  Reported privately by
22242         Andrew Borodin.
22244 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
22246         gnu-web-doc-update: fix error messages
22247         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
22249         gnu-web-doc-update: check the requirements.
22250         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
22251         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
22252         * build-aux/bootstrap (find_tool): Comment change.
22254 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
22256         maint.mk: minor simplication.
22257         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22258         for default values.
22260 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
22262         gitlog-to-changelog: VPATH build issues
22263         If builddir is not a subdirectory of srcdir, running git from it will
22264         fail.
22265         * build-aux/gitlog-to-changelog (--srcdir): New option.
22267 2012-07-15  Bruno Haible  <bruno@clisp.org>
22269         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
22270         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
22271         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
22272         Remove exemption for fpending.h.
22273         Suggested by Eric Blake.
22275 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22277         pthread_sigmask: fix bug on FreeBSD 9
22278         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
22279         Include string.h.
22280         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
22281         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
22282         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
22283         but pthread_sigmask (1729, NULL, NULL) returns zero.
22284         See <http://bugs.gnu.org/11884>.
22285         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
22286         by inspecting whether the main call changed the old mask.
22288 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
22290         README-release: make it more legible
22291         * top/README-release: Improve typography slightly.
22293 2012-07-15  Jim Meyering  <meyering@redhat.com>
22295         maint: require that each sc_... command start with "@"
22296         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
22297         "make sc_maint" helps us avoid this nit.
22299 2012-07-15  Jim Meyering  <meyering@redhat.com>
22301         maint.mk: add leading "@" to quiet new "make syntax-check" rule
22302         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
22304 2012-07-13  Eric Blake  <eblake@redhat.com>
22306         maint.mk: new syntax check for HAVE_DECL checks
22307         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
22308         * cfg.mk
22309         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22310         Exempt some false positives.
22311         Based on a report by Karel Zak.
22313         argp: make HAVE_DECL usage consistent
22314         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
22315         macros, not whether they are defined.
22316         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
22317         convention with other declaration checks.
22318         Reported by Karel Zak, with suggestions from Paul Eggert.
22320         stat-time: relax license to LGPLv2+
22321         * modules/stat-time (License): Relax, with consent of all authors.
22323         strndup: fix m4 usage error
22324         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
22325         defined, to either 0 or 1.
22326         Reported by Karel Zak.
22328 2012-07-11  Jim Meyering  <meyering@redhat.com>
22330         maint: enable the sc_avoid_if_before_free syntax-check rule
22331         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
22332         (if_before_free_offenders_): Define.
22333         (if_before_free_basename_re_): Define.
22334         Exempt current files with useless if-before-free.
22336 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22338         gettext: do not assume '#define ... defined ...' behavior
22339         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
22340         Do not use '#define FOO ... defined BAR ...', as the C standard says
22341         it's not portable to expect that this works after macro expansion.
22342         Problem reported for gzip by Steven M. Schweda in
22343         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
22345 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22347         getloadavg: clean out old Emacs and Autoconf cruft
22348         See Glenn Morris in <http://bugs.gnu.org/11905>.
22349         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
22350         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
22351         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
22352         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
22354 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
22356         bootstrap: let warn be like tests/init.sh's warn_
22357         Reported by Jim Meyering.
22358         * build-aux/bootstrap (warn): Remove, replaced by...
22359         (warnf_, warn_): these.
22360         Adjust callers.
22361         Shorten messages that no longer fit in 80 columns.
22363 2012-07-09  Bruno Haible  <bruno@clisp.org>
22365         getopt: Simplify after Emacs changed.
22366         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22367         (gl_GETOPT_IFELSE): Remove macro.
22369 2012-07-09  Jim Meyering  <meyering@redhat.com>
22371         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22372         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22374         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22375         Bugs in both of those conspired to make the
22376         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22377         _sc_search_regexp's handling of non-empty $in_files would filter
22378         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22379         choice of in_files value meant there would be no match in most
22380         projects, due to the presence of two or more Makefile.in files.
22381         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22382         Fix a bug in how a non-empty $$in_files was processed:
22383         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22384         in spite of the name, it's a regexp, not a list of file names.
22386 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22388         getloadavg, getopt: fix commentary re configure.in
22389         Autoconf is deprecating the name 'configure.in', so change it to
22390         to the new name 'configure.ac' in a couple of places.
22391         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22392         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22393         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22394         Emacs has renamed it to configure.ac, and it no longer refers
22395         to these macros anyway.
22397         timespec: mark functions with const attributes
22398         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22399         Mark with _GL_ATTRIBUTE_CONST.
22401 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22403         canonicalize[-lgpl]: handle "guessing" values when cross-building
22404         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22405         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22406         matches "*yes" instead of just "yes".  Regression introduced in commit
22407         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22409 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22410             Bruno Haible  <bruno@clisp.org>
22412         canonicalize: make the right guess when cross-compiling to GNU
22413         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22414         determine whether cross-compiling to glibc systems, so as to
22415         include GNU/Hurd.
22417 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22419         timespec-sub: avoid duplicate include
22420         * lib/timespec-sub.c: Do not include <config.h> twice.
22421         Reported by Juanma Barranquero.
22423 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22425         bootstrap: use a more consistent error reporting scheme
22426         * build-aux/bootstrap (warn, die): New.
22427         Use them.
22429 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22431         sys_time: allow too-wide tv_sec
22432         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22433         timeval even if tv_sec is wider than time_t.  This allows
22434         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22435         as without this patch gnulib replaces struct timeval
22436         and OpenBSD futimes therefore has a type mismatch.
22437         * doc/posix-headers/sys_time.texi: Mention this.
22439         pthread: check for both pthread_create and pthread_join
22440         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22441         alter the check so that it tests for both pthread_create and
22442         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22443         Suggested by Bruno Haible and Richard Yao in
22444         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22446         parse-datetime: doc tuneup
22447         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22448         spacing issues.
22450 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22452         do-release-commit-and-tag: fix the previous commit
22453         * build-aux/do-release-commit-and-tag: Actually the test was right,
22454         but the comment and the error message were misleading.
22455         Fix comment, and improve error message.
22456         Perform check first, so that NEWS is not modified uselessly.
22458         do-release-commit-and-tag: fix typo
22459         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22460         _not_ start with a stub.
22462 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22464         pthread: check for pthread_create, not pthread_join
22465         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22466         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22467         pthread_join in libc.  I hope this removes the need for all the
22468         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22469         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22471 2012-07-04  Jim Meyering  <meyering@redhat.com>
22473         parse-datetime: fix failure to diagnose invalid input
22474         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22475         rather than diagnosing the invalid input.  Now it reports this:
22476         date: invalid date '\260'
22477         * lib/parse-datetime.y (to_uchar): Define.
22478         (yylex): Don't sign-extend "other" bytes.
22479         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22480         Thanks to Bruno Haible for the patch to this file.
22481         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22482         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22484 2012-07-03  Jim Meyering  <meyering@redhat.com>
22486         bootstrap: do not require now-removed build-aux/missing
22487         Now that build-aux/missing is, er, missing, bootstrap would
22488         silently fail.
22489         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22490         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22491         no longer part of gnulib.
22492         Diagnose the failure.
22494 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22496         alloca: add support for HP NonStop TNS/E native
22497         * lib/alloca.in.h (alloca): Support the new host.
22498         From a suggestion by Joachim Schmitz in
22499         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22501 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22503         fsusage: remove code not needed on non GNU/Linux systems.
22505         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22506         Don't include headers no longer needed in this case.
22507         * lib/fsusage.c [STAT_STATVFS &&
22508         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22509         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22511 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22513         fsusage: include files needed for glibc 2.6 fallback
22514         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22515         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22516         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22517         Problem reported by Ludovic Courtès in
22518         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22520         fsusage: avoid needless check on GNU/Linux
22521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22522         on GNU/Linux systems, since it can't possibly work.
22524 2012-07-01  Bruno Haible  <bruno@clisp.org>
22526         log: Fix an autoconf >= 2.64 warning.
22527         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22528         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22530 2012-06-28  Bruno Haible  <bruno@clisp.org>
22532         log10f: Fix possible configuration problem.
22533         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22534         $LOGF_LIBM.
22535         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22537 2012-06-28  Bruno Haible  <bruno@clisp.org>
22539         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22540         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22541         not gl_cv_func_unlink_works.
22542         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22544 2012-06-27  Eric Blake  <eblake@redhat.com>
22546         config: drop scripts that automake says are not independent
22547         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22548         * build-aux/elisp-comp: Delete.
22549         * build-aux/missing: Likewise.
22550         * build-aux/ylwrap: Likewise.
22551         * modules/elisp-comp: Likewise.
22552         * MODULES.html.sh: Drop mention of elisp-comp.
22553         * NEWS: Mention this.
22555 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22557         root-uid: new module
22558         This is for portability to Tandem's NonStop Kernel.
22559         * lib/root-uid.h, modules/root-uid: New files.
22560         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22561         * lib/write-any-file.c, tests/test-sethostname2.c:
22562         Include "root-uid.h".
22563         * lib/euidaccess.c (euidaccess):
22564         * lib/pt_chown.c (main):
22565         * lib/unlinkdir.c (cannot_unlink_dir):
22566         * lib/write-any-file.c (can_write_any_file):
22567         * m4/mknod.m4 (gl_FUNC_MKNOD):
22568         * tests/test-sethostname2.c (geteuid, main):
22569         Don't assume ROOT_UID == 0.
22570         * modules/euidaccess (Depends-on):
22571         * modules/pt_chown (Depends-on):
22572         * modules/sethostname-tests (Depends-on):
22573         * modules/unlinkdir (Depends-on):
22574         * modules/write-any-file (Depends-on):
22575         Add root-uid.
22577         regex: use locale-independent comparison for codeset name
22578         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22579         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22580         for codeset name.
22581         * lib/regex_internal.h: Do not include <strings.h>, since we
22582         no longer use strcasecmp.
22583         * modules/regex (Depends-on): Remove strcase.
22585 2012-06-23  Bruno Haible  <bruno@clisp.org>
22587         getopt-posix: No longer guarantee that option processing is resettable.
22588         * doc/posix-functions/getopt.texi: Drop description of problem with
22589         internal state. Fix info about mingw and msvc9.
22590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22591         option processing by getopt(). Run three test programs instead of one.
22592         Simplify cross-compilation guess.
22593         * NEWS: Mention the change.
22594         Reported by Rich Felker <dalias@aerifal.cx>.
22596 2012-06-26  Bruno Haible  <bruno@clisp.org>
22598         argp, regex: Ensure strcasecmp gets declared.
22599         * lib/argp-help.c: Include <strings.h>.
22600         * lib/regex_internal.h: Likewise.
22601         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22603 2012-06-24  Bruno Haible  <bruno@clisp.org>
22605         ptsname_r: Make it consistent with ptsname on AIX.
22606         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22607         implementation as for OSF/1.
22608         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22609         a pty master.
22611         ptsname_r: Make it consistent with ptsname on OSF/1.
22612         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22613         OSF/1.
22615 2012-06-24  Bruno Haible  <bruno@clisp.org>
22617         ttyname_r: Fix result on OSF/1, Solaris.
22618         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22620 2012-06-24  Bruno Haible  <bruno@clisp.org>
22622         ptsname_r: Add support for Solaris.
22623         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22624         Solaris.
22626         ptsname_r: Fix test failure on native Windows.
22627         * modules/ptsname_r (Depends-on): Add isatty.
22629         ptsname_r: Fix test failures on IRIX, Solaris.
22630         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22631         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22632         accordingly.
22633         * lib/ptsname_r.c: Include <fcntl.h>.
22634         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22635         set errno if fd is invalid.
22636         * tests/test-isatty.c (main): Update comments.
22638 2012-06-24  Bruno Haible  <bruno@clisp.org>
22640         ptsname test: Extend test.
22641         * tests/test-ptsname.c: Include <errno.h>.
22642         (main): Test behaviour with invalid file descriptor.
22644 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22646         time: fix obsolete comment
22647         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22648         reference to HAVE_STRUCT_TIMESPEC in comment.
22650 2012-06-23  Bruno Haible  <bruno@clisp.org>
22652         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22654         does not handle abbreviated long options with equivalent
22655         disambiguations, set gl_replace_getopt to yes.
22656         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22658 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22660         time_r: fix typo that always overrode localtime_r decl
22661         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22662         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22663         not in a standard include.
22665 2012-06-22  Bruno Haible  <bruno@clisp.org>
22667         Write "Mac OS X" instead of "MacOS X".
22668         * README: Write "Mac OS X" instead of "MacOS X".
22669         * build-aux/bootstrap: Likewise.
22670         * build-aux/install-reloc: Likewise.
22671         * lib/acl-internal.h: Likewise.
22672         * lib/acl_entries.c: Likewise.
22673         * lib/argp-ba.c: Likewise.
22674         * lib/argp-pv.c: Likewise.
22675         * lib/config.charset: Likewise.
22676         * lib/copy-acl.c: Likewise.
22677         * lib/csharpexec.c: Likewise.
22678         * lib/euidaccess.c: Likewise.
22679         * lib/fbufmode.c: Likewise.
22680         * lib/fflush.c: Likewise.
22681         * lib/file-has-acl.c: Likewise.
22682         * lib/filemode.h: Likewise.
22683         * lib/fpurge.c: Likewise.
22684         * lib/freadable.c: Likewise.
22685         * lib/freadahead.c: Likewise.
22686         * lib/freading.c: Likewise.
22687         * lib/freadptr.c: Likewise.
22688         * lib/freadseek.c: Likewise.
22689         * lib/fseeko.c: Likewise.
22690         * lib/fseterr.c: Likewise.
22691         * lib/fsusage.c: Likewise.
22692         * lib/fwritable.c: Likewise.
22693         * lib/fwriting.c: Likewise.
22694         * lib/get-rusage-as.c: Likewise.
22695         * lib/get-rusage-data.c: Likewise.
22696         * lib/getdomainname.c: Likewise.
22697         * lib/idpriv-drop.c: Likewise.
22698         * lib/idpriv-droptemp.c: Likewise.
22699         * lib/localcharset.c: Likewise.
22700         * lib/locale.in.h: Likewise.
22701         * lib/localename.c: Likewise.
22702         * lib/mbsrtowcs-state.c: Likewise.
22703         * lib/nproc.c: Likewise.
22704         * lib/passfd.c: Likewise.
22705         * lib/posix_openpt.c: Likewise.
22706         * lib/printf-parse.c: Likewise.
22707         * lib/progreloc.c: Likewise.
22708         * lib/safe-read.h: Likewise.
22709         * lib/safe-write.h: Likewise.
22710         * lib/sched.in.h: Likewise.
22711         * lib/set-mode-acl.c: Likewise.
22712         * lib/signal.in.h: Likewise.
22713         * lib/stdint.in.h: Likewise.
22714         * lib/stdio-impl.h: Likewise.
22715         * lib/stdlib.in.h: Likewise.
22716         * lib/strtod.c: Likewise.
22717         * lib/sys_select.in.h: Likewise.
22718         * lib/tcgetsid.c: Likewise.
22719         * lib/unistd.in.h: Likewise.
22720         * lib/unlockpt.c: Likewise.
22721         * lib/vasnprintf.c: Likewise.
22722         * lib/vma-iter.c: Likewise.
22723         * lib/wcsrtombs-state.c: Likewise.
22724         * m4/acl.m4: Likewise.
22725         * m4/acosl.m4: Likewise.
22726         * m4/asinl.m4: Likewise.
22727         * m4/atanl.m4: Likewise.
22728         * m4/c-stack.m4: Likewise.
22729         * m4/cosl.m4: Likewise.
22730         * m4/expl.m4: Likewise.
22731         * m4/extensions.m4: Likewise.
22732         * m4/fdatasync.m4: Likewise.
22733         * m4/fmal.m4: Likewise.
22734         * m4/frexp.m4: Likewise.
22735         * m4/frexpf.m4: Likewise.
22736         * m4/frexpl.m4: Likewise.
22737         * m4/fsusage.m4: Likewise.
22738         * m4/getdomainname.m4: Likewise.
22739         * m4/getloadavg.m4: Likewise.
22740         * m4/getopt.m4: Likewise.
22741         * m4/gettext.m4: Likewise.
22742         * m4/gnulib-common.m4: Likewise.
22743         * m4/intdiv0.m4: Likewise.
22744         * m4/intlmacosx.m4: Likewise.
22745         * m4/largefile.m4: Likewise.
22746         * m4/ldexpl.m4: Likewise.
22747         * m4/link-follow.m4: Likewise.
22748         * m4/locale-ar.m4: Likewise.
22749         * m4/locale-fr.m4: Likewise.
22750         * m4/locale-ja.m4: Likewise.
22751         * m4/locale-tr.m4: Likewise.
22752         * m4/locale-zh.m4: Likewise.
22753         * m4/locale_h.m4: Likewise.
22754         * m4/lock.m4: Likewise.
22755         * m4/logl.m4: Likewise.
22756         * m4/mathfunc.m4: Likewise.
22757         * m4/minus-zero.m4: Likewise.
22758         * m4/mktime.m4: Likewise.
22759         * m4/mmap-anon.m4: Likewise.
22760         * m4/multiarch.m4: Likewise.
22761         * m4/nanosleep.m4: Likewise.
22762         * m4/nocrash.m4: Likewise.
22763         * m4/poll.m4: Likewise.
22764         * m4/printf-frexpl.m4: Likewise.
22765         * m4/printf.m4: Likewise.
22766         * m4/signbit.m4: Likewise.
22767         * m4/sinl.m4: Likewise.
22768         * m4/sqrtl.m4: Likewise.
22769         * m4/strerror_r.m4: Likewise.
22770         * m4/tanl.m4: Likewise.
22771         * m4/threadlib.m4: Likewise.
22772         * m4/ttyname_r.m4: Likewise.
22773         * m4/unlink.m4: Likewise.
22774         * m4/visibility.m4: Likewise.
22775         * m4/wcwidth.m4: Likewise.
22776         * tests/minus-zero.h: Likewise.
22777         * tests/test-alloca-opt.c: Likewise.
22778         * tests/test-copy-acl.sh: Likewise.
22779         * tests/test-copy-file.sh: Likewise.
22780         * tests/test-fdatasync.c: Likewise.
22781         * tests/test-file-has-acl.sh: Likewise.
22782         * tests/test-flock.c: Likewise.
22783         * tests/test-fsync.c: Likewise.
22784         * tests/test-localename.c: Likewise.
22785         * tests/test-malloca.c: Likewise.
22786         * tests/test-nonblocking-pipe.h: Likewise.
22787         * tests/test-nonblocking-socket.h: Likewise.
22788         * tests/test-openpty.c: Likewise.
22789         * tests/test-posix_openpt.c: Likewise.
22790         * tests/test-ptsname.c: Likewise.
22791         * tests/test-ptsname_r.c: Likewise.
22792         * tests/test-sameacls.c: Likewise.
22793         * tests/test-select.h: Likewise.
22794         * tests/test-set-mode-acl.sh: Likewise.
22795         * tests/test-snprintf-posix.h: Likewise.
22796         * tests/test-sprintf-posix.h: Likewise.
22797         * tests/test-strtod.c: Likewise.
22798         * tests/test-time.c: Likewise.
22799         * tests/test-vasnprintf-posix.c: Likewise.
22800         * tests/test-vasprintf-posix.c: Likewise.
22801         * doc/acl-resources.txt: Likewise.
22802         * doc/**/*.texi: Likewise.
22803         Reported by Max Horn <max@quendi.de>.
22805 2012-06-22  Bruno Haible  <bruno@clisp.org>
22807         grantpt: Relax requirement regarding invalid file descriptors.
22808         * lib/grantpt.c: Don't include <fcntl.h>.
22809         (grantpt): Don't verify the validity of the file descriptor.
22810         * modules/grantpt (Depends-on): Remove fcntl-h.
22811         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22812         file descriptors.
22813         * doc/posix-functions/grantpt.texi: Document more platforms on which
22814         grantpt succeeds for invalid file descriptors.
22815         Reported by Rich Felker <dalias@aerifal.cx>.
22817 2012-06-22  Bruno Haible  <bruno@clisp.org>
22819         fbufmode test: Don't test unportable behaviour.
22820         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22821         (main): Invoke it three times.
22822         Reported by Szabolcs Nagy <nsz@port70.net>
22823         and Rich Felker <dalias@aerifal.cx>.
22825 2012-06-21  Bruno Haible  <bruno@clisp.org>
22827         gnulib-tool: Refactor inctests variable.
22828         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22829         (func_modules_transitive_closure,
22830         func_modules_transitive_closure_separately,
22831         func_import, func_create_testdir): Update.
22833         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22834         * gnulib-tool: Accept option --without-tests.
22835         (func_usage): Document --without-tests option. Rearrange.
22836         (inctests): Normalize according to the mode.
22837         * NEWS: Mention the change.
22838         Suggested by Simon Josefsson.
22840 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22842         parse-duration test: Avoid spurious output.
22843         * tests/test-parse-duration.sh: Reindent with leading tabs.
22845 2012-06-21  Jim Meyering  <meyering@redhat.com>
22847         maint: disable the strncpy prohibition
22848         * cfg.mk: Do not prohibit strncpy here.
22850 2012-06-21  Bruno Haible  <bruno@clisp.org>
22852         nonblocking: Avoid compilation error on mingw64.
22853         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22854         fscanf.
22855         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22856         * modules/vfscanf (configure.ac): Likewise.
22857         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22858         definition only if stdio.h has prepared it.
22859         Reported by Daniel P. Berrange <berrange@redhat.com>.
22861 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22863         gnulib-tool: Use readlink if it is available.
22864         * gnulib-tool (func_readlink): Choose function more appropriately.
22866 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22868         posixtm-tests: port to buggy compiler
22869         Problem reported by Simon Josefsson in
22870         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22871         * modules/posixtm-tests (Depends-on): Add stdint.
22872         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22873         Now of type int_least64_t, not int64_t, both because that's
22874         what INT64_C returns and because int_least64_t works even
22875         on 72-bit hosts.
22876         (T): Use INT64_C on constants outside the traditional int range,
22877         to work around compiler bug noted by Simon.
22879         mktime: fix integer overflow in 'configure'-time test
22880         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22881         after integer overflow.  Problem reported by Rich Felker in
22882         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22883         Also, don't look for further instances of a bug if we've already
22884         found one instance; this helps 'configure' run faster.
22886 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22888         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22889         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22890         GetVersionEx correctly.
22891         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22893 2012-06-20  Bruno Haible  <bruno@clisp.org>
22895         fdopen: Allow implementations that don't reject invalid fd arguments.
22896         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22897         succeeds.
22898         Reported by Rich Felker <dalias@aerifal.cx>.
22900 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22902         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22903         bring in LIBINTL.
22905 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22907         init.sh: do not rely on autoupated PWD
22908         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22909         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22910         Although Nelson's bug was not necessarily fixed by this patch,
22911         it seems wise to make the change for safety.
22912         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22913         automagically after 'cd'; this is not reliable on older shells.
22914         (setup_): Fail if we cannot cd to temporary directory.
22916 2012-06-19  Bruno Haible  <bruno@clisp.org>
22918         stat, fstat: Avoid warnings on mingw64.
22919         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22920         redefining.
22921         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22922         Reported by Daniel P. Berrange <berrange@redhat.com>.
22924 2012-06-19  Bruno Haible  <bruno@clisp.org>
22926         stdioext: Add support for musl libc.
22928         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22929         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22931         * m4/fseterr.m4: New file.
22932         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22933         function exists.
22934         * modules/fseterr (Files): Add m4/fseterr.m4.
22935         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22936         __fseterr does not exist.
22937         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22939         * lib/freadable.h: Update comment.
22941         * lib/fwritable.h: Update comment.
22943         * lib/freading.h: Update comment.
22945         * lib/fwriting.h: Update comment.
22947         * m4/freadahead.m4: New file.
22948         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22949         that function exists.
22950         * modules/freadahead (Files): Add m4/freadahead.m4.
22951         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22952         __freadahead does not exist.
22953         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22955         * m4/freadptr.m4: New file.
22956         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22957         function exists.
22958         * modules/freadptr (Files): Add m4/freadptr.m4.
22959         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22960         __freadptr does not exist.
22961         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22963         * m4/freadseek.m4: New file.
22964         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22965         exists.
22966         * modules/freadseek (Files): Add m4/freadseek.m4.
22967         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22969         * lib/fpurge.c (fpurge): Update comment.
22971         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22973 2012-06-19  Bruno Haible  <bruno@clisp.org>
22975         *printf-posix: Put more info into config.log.
22976         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22977         exit code into config.log.
22979 2012-06-19  Bruno Haible  <bruno@clisp.org>
22981         getopt-gnu: Fix exit code overflow in autoconf test.
22982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22983         to keep them below < 128.
22985 2012-06-17  Jim Meyering  <meyering@redhat.com>
22987         maint.mk: fix typo in code to derive GPG key at release time
22988         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22990 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22992         regex: avoid warning when pointers are not long
22993         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22994         and uintptr_t, not long, for portability to hosts where pointers and
22995         long have different sizes.  Issue noted by Daniel P. Berrange in
22996         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22997         and fix suggested by Bruno Haible in
22998         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
23000 2012-06-17  Bruno Haible  <bruno@clisp.org>
23002         dummy: Relicense into the public domain.
23003         * modules/dummy (License): Set to "public domain".
23004         Suggested by Reuben Thomas.
23006 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
23008         announce-gen: VPATH issues
23009         * build-aux/announce-gen (--srcdir): New option, used to trim the
23010         $srcdir part of the path from $builddir to NEWS.
23011         * top/maint.mk (announcement): Adjust.
23013 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
23015         gnu-web-doc-update: VPATH builds
23016         * build-aux/gnu-web-doc-update (--builddir): New option.
23017         Revamp the handling of options.
23018         Prefer $(...) to `...`.
23019         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
23020         the template, and it is GNU mktemp specific.
23021         Prefer set -e to long series of &&.
23022         Restore the initial git branch, not "master".
23023         Properly initialize submodules (don't rely only on bootstrap).
23024         Do not reconfigure blindly, use config.status.
23025         * top/README-release: Update instructions for gnu-web-doc-update.
23027 2012-06-11  Jim Meyering  <meyering@redhat.com>
23029         maint.mk: revert most of the previous change re "all these"
23030         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
23031         For rationale, see the discussion at
23032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
23034 2012-06-10  Karl Berry  <karl@gnu.org>
23036         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
23038         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
23040 2012-06-10  Bruce Korb  <bkorb@gnu.org>
23042         parse-duration: Relicense under LGPLv2+.
23043         * modules/parse-duration (License): Change to LGPLv2+.
23045 2012-06-10  Jim Meyering  <meyering@redhat.com>
23047         maint.mk: prohibit common grammar error: "all these"
23048         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
23049         the list of prohibited word sequences.  It should be "all of these".
23050         * lib/tempname.c (__gen_tempname): Fix one of them.
23052 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23054         do-release-commit-and-tag: support VPATH builds
23055         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
23056         (noteworthy): Defined earlier to factor its value.
23057         (noteworthy_stub): New.
23058         Use it to factor.
23059         (help_version): Split into...
23060         (help, version): these.
23061         Adjust the option processing part.
23062         Support "--option=value" in addition to "--option value".
23063         (builddir): New.
23064         (--builddir): New option.
23065         * top/README-release: Document this.
23066         Reword slightly so that the reader cannot understand that he
23067         has to do these steps before calling do-release-commit-and-tag.
23069 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23071         readme-release: also require announce-gen and maintainer-makefile
23072         * modules/readme-release (Depends-on): here.
23073         * modules/announce-gen, modules/do-release-commit-and-tag,
23074         modules/gnu-web-doc-update, modules/maintainer-makefile
23075         (Description): Point to readme-release.
23077 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23079         maint.mk: fix VPATH issues.
23080         * top/maint.mk (news-check): GNU Make understand $< very well.
23081         (release-prep): NEWS is in $(srcdir).
23083 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
23085         readme-release: require the promoted modules.
23086         * modules/readme-release (Depends-on): Add
23087         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
23088         in this text.
23090 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23091             Bruno Haible  <bruno@clisp.org>
23093         error, strerror-override: Support mingw64 from Fedora 17.
23094         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
23095         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
23096         EINPROGRESS.
23097         * lib/strerror-override.h (strerror_override): Test it.
23098         * lib/strerror-override.c (strerror_override): Likewise.
23099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
23101 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23102             Bruno Haible  <bruno@clisp.org>
23104         error, strerror-override: Support mingw64 from Fedora 17.
23105         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
23106         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
23107         * lib/strerror-override.h (strerror_override): Test it.
23108         * lib/strerror-override.c (strerror_override): Likewise.
23110 2012-06-03  Bruno Haible  <bruno@clisp.org>
23112         error, strerror-override: Support new errno values from POSIX:2008.
23113         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
23114         ENOTRECOVERABLE.
23115         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
23116         platforms.
23117         * lib/strerror-override.c (strerror_override): Conditionalize the
23118         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
23119         * lib/strerror-override.h (strerror_override): Declare also if
23120         GNULIB_defined_EOWNERDEAD is defined.
23121         * tests/test-errno.c (e130, e131): New variables.
23122         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
23123         ENOTRECOVERABLE.
23124         Reported by Paolo Bonzini.
23126 2012-05-31  Jim Meyering  <meyering@redhat.com>
23128         savewd: add missing dependency on sys_wait module
23129         * modules/savewd (Depends-on): Add sys_wait, needed at least
23130         for MSVC.  Report and suggested change by Michael Goffioul.
23132 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23134         system-quote-tests: port to CentOS 5
23135         Problem reported by Tom G. Christensen in
23136         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
23137         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
23139 2012-05-29  Jim Meyering  <meyering@redhat.com>
23141         maint: fix typos in comments and ChangeLog
23142         Culprits identified and fixed mostly automatically using these commands:
23143         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
23144         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
23145         using http://github.com/lyda/misspell-check
23146         * ChangeLog: Fix typos.
23147         * doc/solaris-versions: Likewise.
23148         * lib/regexec.c (re_search_stub): Likewise.
23149         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23151 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23153         manywarnings: remove duplicate -Wmultichar entry
23154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
23155         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
23156         so keep the entry marked as documented.
23158 2012-05-27  Karl Berry  <karl@gnu.org>
23160         * config/srclist.txt (mktime.c): remove last libc sync,
23161         perhaps just temporarily.
23163 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
23165         regex: don't assume uint64_t or uint32_t
23166         * lib/regcomp.c (init_word_char): Don't assume that the types
23167         uint64_t and uint32_t exist.  The C standard doesn't guarantee
23168         them, and on some 32-bit compilers there is no uint64_t.
23169         Problem reported by Gianluigi Tiesi in
23170         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
23172 2012-05-25  Jim Meyering  <meyering@redhat.com>
23174         maint.mk: add strncpy-prohibiting syntax-check rule
23175         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
23177 2012-05-24  Jim Meyering  <meyering@redhat.com>
23179         maint.mk: compute $(gpg_key_ID) more portably
23180         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
23181         That use of sed is not portable to some fringe systems.
23182         Reported by Paul Eggert in
23183         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
23185 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23187         mktime: sync from glibc
23188         * config/srclist.txt: Uncomment mktime.c.
23189         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
23190         First, indent with tabs, since glibc uses tabs and doesn't want to
23191         change and we'd rather be identical to glibc.  Also, two small
23192         coding changes:
23193         (isdst_differ): Use &&, not &, as && is the usual style.
23194         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
23195         for clarity.
23197 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23199         announce-gen: du -h is more portable than du --human
23200         * build-aux/announce-gen (sizes): Invoke du with -h instead
23201         of --human.  Accept leading white space in its output.
23203 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23205         announce-gen: Improve diagnostics.
23206         * build-aux/announce-gen: When parsing command line options,
23207         prefer "announce-gen: option --release-type requires an argument"
23208         to "Option release-type requires an argument".
23210 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23212         maint.mk: gpg_key_ID: use sed more portably
23213         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
23214         the closing brace.
23215         (refresh-po): Fuse two sed invocations into one.
23217 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
23219         gitlog-to-changelog: support the log message format used in Bison.
23220         * build-aux/gitlog-to-changelog: Support --strip-tab and
23221         --strip-cherry-picked.
23223 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23225         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
23226         the rest of the current time slice to another thread in the current
23227         process. So if the thread that feeds the file decscriptor we're
23228         polling is not in the current process, we get busy-waiting.
23229         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
23230         Patch from Theodore Leblond.
23231         * lib/select.c: Split polling out of the loop that sets the output
23232         fd_sets.  Check for zero result and loop if the wait timeout is
23233         infinite.
23235 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23237         select: Fix build error on IRIX 6.5.
23238         * lib/select.c: Include stddef.h for NULL.
23240 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23242         gc: fix libgcrypt detection on older machines.
23243         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
23244         copyright years because the file has been distributed every year
23245         since it was created.
23247 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23249         crypto: fix bug in large buffer handling
23250         Problem reported by Serge Belyshev for glibc in
23251         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
23252         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
23253         * lib/md4.c (md4_process_block):
23254         * lib/md5.c (md5_process_block):
23255         * lib/sha1.c (sha1_process_block):
23256         * lib/sha256.c (sha256_process_block):
23257         Don't assume the buffer length is less than 2**32.
23258         * lib/sha512.c (sha512_process_block): Likewise.
23259         Here, the bug is present only in the rare case where the host does
23260         not support uint64_t or where size_t is wider than 64 bits.
23261         Use u64size to work around the problems.
23262         * lib/u64.h (u64size): New macro.
23264 2012-05-15  Pádraig Brady  <P@draigBrady.com>
23266         fsusage: fix block size returned on older Linux 2.6
23268         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
23269         which is available since Linux 2.6.
23270         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
23271         when the member is available so it can be used as a fallback.
23272         * doc/posix-functions/statvfs.texi: Mention the hang issue
23273         on Linux < 2.6.36.
23275 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23277         bootstrap: suppress stderr chatter
23278         * build-aux/bootstrap (insert_sorted_if_absent, main program):
23279         Omit unnecessary chatter to stderr.  The main program chatter
23280         was there only inadvertantly.
23282         bootstrap: .gitignore files created by autopoint, libtool
23283         I ran into this problem when bootstrapping the latest diffutils.
23284         After './bootstrap', 'git status' reported lots of untracked files
23285         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
23286         autopoint and do not need to be version-controlled.
23287         * build-aux/bootstrap: Put into .gitignore the files that
23288         autopoint and libtool create, by keeping track of files that exist
23289         after but not before these programs are run.
23290         (version_controlled_file): Move up.  2nd arg is now full file
23291         name, not base name; this is more convenient.  Put CVS at the end,
23292         as it's now somewhat deprecated.
23294 2012-05-14  Jim Meyering  <meyering@redhat.com>
23296         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
23297         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
23298         definition.  Reported by Bruno Haible.
23300 2012-05-13  Bruno Haible  <bruno@clisp.org>
23301             Paul Eggert  <eggert@cs.ucla.edu>
23303         binary-io: Define set_binary_mode function.
23304         * lib/binary-io.h (set_binary_mode): New function.
23305         (SET_BINARY): Define in terms of set_binary_mode.
23306         * modules/binary-io (configure.ac): Require AC_C_INLINE.
23307         * tests/test-binary-io.c (main): Accept an argument, and test either
23308         set_binary_mode or SET_BINARY depending on the argument.
23309         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
23310         argument. Clean up also t-bin-out0.tmp.
23312 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
23314         bootstrap: take advantage of POSIX shell features
23316         The 'bootstrap' script offered by Gnulib script already uses POSIX
23317         shell features (like $((...)) arithmetic expansions) that are not
23318         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
23319         means that bootstrap must already be run using a proper POSIX shell,
23320         which will thus provide more features, like ${var#pattern} parameter
23321         expansion or inversion of a command exit status with '!'.  We can
23322         thus use these features to improve the clarity and the performances
23323         of the bootstrap script.
23325         Suggested by Eric Blake.
23327         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
23328         of sed/expr plus command substitutions, to save some forks.  While
23329         we are at it, prefer the POSIX $(...) form of command substitution,
23330         rather than the legacy form `...` (since the former is visually
23331         clearer and interacts better with quoting), and prefer the idiom:
23332           "if ! CMD; then ACTION ..."
23333         over the idiom:
23334           "if CMD; then :; else ACTION ..."
23335         which was required by legacy Bourne shells not supporting '!'.
23337 2012-05-12  Bruno Haible  <bruno@clisp.org>
23339         system-quote: Add more comments.
23340         * lib/system-quote.h: Add more comments about wilcards and limitations.
23341         Suggested by Eli Zaretskii <eliz@gnu.org>.
23343         sh-quote, system-quote: Add comments about wildcards.
23344         * lib/sh-quote.h: Clarify what happens with wildcard characters.
23345         * lib/system-quote.h: Likewise.
23346         Reported by Eli Zaretskii <eliz@gnu.org>.
23348 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23350         fsusage: check for GNU/Linux statvfs problem dynamically
23351         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
23352         Define STAT_STATFS2_BSIZE too, since in this case the code now
23353         checks dynamically whether statvfs is reliable, falling back on
23354         Linux-style statfs otherwise.
23355         (statvfs_works): New function, for dynamically testing statvfs.
23356         (get_fs_usage) [STAT_STATVFS]: Use it.
23357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23358         statvfs on GNU/Linux hosts, since it's now done dynamically.
23360 2012-05-10  Bruno Haible  <bruno@clisp.org>
23362         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23363         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23364         '?' character.
23365         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23366         * tests/test-system-quote-main.c (check_all): Check also strings like
23367         "??????????".
23368         Reported by Eli Zaretskii <eliz@gnu.org>.
23370 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23372         _Noreturn: port config.h to gcc -Wundef
23373         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23374         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23375         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23377 2012-05-10  Bruno Haible  <bruno@clisp.org>
23379         system-quote: Refactor.
23380         * lib/system-quote.h (system_quote_copy): Fix comment.
23381         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23382         New functions, extracted from system_quote_copy.
23383         (system_quote_length, system_quote_copy): Use these functions.
23384         Reported by Paul Eggert.
23386 2012-05-08  Bruno Haible  <bruno@clisp.org>
23388         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23389         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23391 2012-05-08  Bruno Haible  <bruno@clisp.org>
23393         Tests for module 'system-quote'.
23394         * modules/system-quote-tests: New file.
23395         * tests/test-system-quote.sh: New file.
23396         * tests/test-system-quote-main.c: New file.
23397         * tests/test-system-quote-child.c: New file.
23399         New module 'system-quote'.
23400         * lib/system-quote.h: New file.
23401         * lib/system-quote.c: New file.
23402         * modules/system-quote: New file.
23404 2012-05-08  Bruno Haible  <bruno@clisp.org>
23406         sh-quote: Make C++ safe and allow multiple inclusion.
23407         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23408         declarations in extern "C".
23410 2012-05-08  Bruno Haible  <bruno@clisp.org>
23412         sh-quote tests: Make tests stricter.
23413         * tests/test-sh-quote.c (check_one): Check the return value of
23414         shell_quote_copy.
23415         (main): Check a string with a CR character. Check a string that
23416         contains UCHAR_MAX.
23418 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23420         warnings.m4: provide a means to specify the program to compile.
23421         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23422         (gl_WARN_ADD): here.
23423         Use gl_AS_VAR_APPEND.
23424         Support an argument to specify the program to compile.
23425         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23426         AC_SUBST the WARN_CFLAGS when they are used.
23427         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23428         leave this to gl_WARN_ADD.
23430 2012-05-08  Eric Blake  <eblake@redhat.com>
23432         doc: recommendations on gettext version
23433         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23434         choice between versions.
23435         * DEPENDENCIES (gettext): Cover both approaches.
23437 2012-05-08  Jim Meyering  <meyering@redhat.com>
23439         init.sh: explain why EXEEXT support uses aliases rather than functions
23440         * tests/init.sh: Add a comment.
23442         init.sh: don't let bash aliases interfere with tests
23443         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23444         is bash.  This avoids problems for those who alias standard commands to
23445         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23446         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23448 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23450         stdint: be more consistent with glibc, SunOS libc
23451         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23452         (gl_int_fast16_t, gl_uint_fast16_t)
23453         (gl_int_fast32_t, gl_uint_fast32_t)
23454         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23455         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23456         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23457         Be consistent with glibc by default, and with SunOS 5.10 and later
23458         if __sun is defined.  This lessens the likelihood of clashes if
23459         code compiled for older hosts is combined with code compiled for
23460         newer ones.  Problem reported by Niels Möller in
23461         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23463 2012-05-07  Eric Blake  <eblake@redhat.com>
23465         isatty: relax license to LGPLv2+
23466         * modules/isatty (License): Relax license.
23468 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23470         stat-size: comment fix
23471         * lib/stat-size.h: Remove obsolete comment about indenting.
23473 2012-05-06  Bruno Haible  <bruno@clisp.org>
23475         Tests for module 'sh-quote'.
23476         * modules/sh-quote-tests: New file.
23477         * tests/test-sh-quote.c: New file.
23479 2012-05-06  Bruno Haible  <bruno@clisp.org>
23481         sh-quote: Improve shell_quote_argv's signature.
23482         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23483         * lib/sh-quote.c (shell_quote_argv): Likewise.
23485 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23487         stdint: document issues with int_fast8_t etc.
23488         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23489         stdint.h substitutes may define these types differently.  See
23490         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23492 2012-05-05  Bruno Haible  <bruno@clisp.org>
23494         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23496         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23497         or 'guessing no (mishandles large arguments)'.
23499 2012-05-05  Bruno Haible  <bruno@clisp.org>
23501         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23502         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23503         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23504         set gl_cv_func_link_follows_symlink to "guessing no".
23506 2012-05-05  Bruno Haible  <bruno@clisp.org>
23508         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23509         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23510         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23511         "guessing no".
23512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23514 2012-05-05  Bruno Haible  <bruno@clisp.org>
23516         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23518         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23519         set gl_cv_struct_dirent_d_ino to "guessing yes".
23521 2012-05-05  Bruno Haible  <bruno@clisp.org>
23523         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23524         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23525         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23526         "guessing yes".
23528 2012-05-05  Bruno Haible  <bruno@clisp.org>
23530         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23531         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23532         compiling to a glibc system, set gl_cv_func_signbit and
23533         gl_cv_func_signbit_gcc to "guessing yes".
23535 2012-05-05  Bruno Haible  <bruno@clisp.org>
23537         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23538         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23539         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23540         to "guessing yes".
23541         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23542         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23544 2012-05-05  Bruno Haible  <bruno@clisp.org>
23546         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23547         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23548         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23549         gl_cv_func_realpath_works to "guessing yes".
23551 2012-05-05  Bruno Haible  <bruno@clisp.org>
23553         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23555         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23557 2012-05-04  Bruno Haible  <bruno@clisp.org>
23559         Tweak last commit.
23560         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23563 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23565         unistd_h: make it easier to avoid sys_types_h
23566         This is useful for Emacs, which has its own method of porting to
23567         Windows, and which therefore does not need the sys_types_h module.
23568         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23569         code moved here from gl_SYS_TYPES_H.
23570         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23571         using the code directly.
23572         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23573         gl_SYS_TYPES_H.
23574         * modules/sys_types (Files):
23575         * modules/unistd (Files): Add m4/off_t.m4.
23577 2012-05-03  Bruno Haible  <bruno@clisp.org>
23579         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23580         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23581         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23582         "guessing yes" or "guessing no".
23583         (gl_FUNC_LSTAT): Update.
23584         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23585         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23586         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23588 2012-05-03  Bruno Haible  <bruno@clisp.org>
23590         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23591         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23592         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23593         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23594         cross-compiling, choose the first alternative on glibc systems.
23595         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23597 2012-05-03  Bruno Haible  <bruno@clisp.org>
23599         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23600         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23601         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23603 2012-05-03  Bruno Haible  <bruno@clisp.org>
23605         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23606         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23608 2012-05-03  Bruno Haible  <bruno@clisp.org>
23610         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23611         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23612         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23613         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23614         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23615         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23616         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23617         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23618         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23619         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23620         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23621         gl_cv_func_chown_ctime_works to "guessing yes".
23622         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23623         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23624         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23625         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23626         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23628         compiling to glibc systems, set gl_cv_func_open_directory_works to
23629         "guessing yes".
23630         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23631         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23632         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23633         "guessing yes".
23634         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23635         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23636         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23637         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23638         "guessing yes".
23639         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23640         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23641         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23642         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23643         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23644         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23645         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23646         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23647         "guessing yes".
23648         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23649         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23650         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23651         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23652         "guessing yes".
23653         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23654         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23655         "guessing yes".
23656         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23657         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23658         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23659         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23660         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23661         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23662         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23663         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23664         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23665         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23666         "guessing yes".
23667         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23668         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23669         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23670         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23671         "guessing yes".
23672         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23673         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23674         "guessing yes".
23675         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23676         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23677         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23678         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23679         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23680         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23681         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23682         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23683         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23684         "guessing yes".
23685         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23686         compiling to glibc systems, set gl_cv_func_mknod_works to
23687         "guessing yes".
23688         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23689         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23690         "guessing yes".
23691         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23692         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23693         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23694         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23695         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23696         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23697         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23698         compiling to glibc systems, set gl_cv_func_svid_putenv to
23699         "guessing yes".
23700         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23701         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23702         "guessing yes".
23703         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23704         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23705         "guessing yes".
23706         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23707         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23708         to "guessing yes".
23709         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23710         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23711         to "guessing yes".
23712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23713         compiling to glibc systems, set gl_cv_func_rmdir_works to
23714         "guessing yes".
23715         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23716         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23717         gl_cv_func_unlink_parent_fails to "guessing yes".
23718         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23719         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23720         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23721         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23722         gl_cv_func_rename_dest_works to "guessing yes".
23723         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23724         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23726         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23727         "guessing yes".
23728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23729         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23730         "guessing yes".
23731         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23732         compiling to glibc systems, set gl_cv_func_setenv_works to
23733         "guessing yes".
23734         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23735         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23736         "guessing yes".
23737         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23738         compiling to glibc systems, set gl_cv_func_sleep_works to
23739         "guessing yes".
23740         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23741         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23742         "guessing yes".
23743         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23744         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23745         "guessing yes".
23746         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23747         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23748         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23749         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23750         "guessing yes".
23751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23752         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23753         "guessing yes".
23754         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23755         compiling to glibc systems, set gl_cv_func_usleep_works to
23756         "guessing yes".
23757         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23758         compiling to glibc systems, set gl_cv_func_futimesat_works to
23759         "guessing yes".
23761 2012-05-03  Bruno Haible  <bruno@clisp.org>
23763         Say "guessing yes" or "guessing no" when cross-compiling.
23764         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23765         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23766         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23767         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23768         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23769         am_cv_func_working_getline to "guessing yes" or "guessing no".
23770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23771         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23772         (gl_FUNC_MEMMEM): When cross-compiling, set
23773         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23775         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23777         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23778         "guessing no".
23779         (gl_FUNC_STRCASESTR): When cross-compiling, set
23780         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23781         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23782         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23783         (gl_FUNC_STRSTR): When cross-compiling, set
23784         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23785         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23786         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23787         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23788         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23790 2012-05-01  Bruno Haible  <bruno@clisp.org>
23792         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23793         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23794         * build-aux/reloc-ldflags: Likewise.
23795         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23797 2012-05-01  Bruno Haible  <bruno@clisp.org>
23799         gnulib-tool: Remove transitional code.
23800         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23801         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23803 2012-05-01  Bruno Haible  <bruno@clisp.org>
23805         getcwd: Fix misindentation.
23806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23808 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23810         exclude: process exclude and include directives in order
23811         This restores the pre-2009 behavior, and is part of a fix of a
23812         grep bug reported by Quentin Arce in
23813         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23814         * lib/exclude.c (struct exclude): Remove 'tail' member.
23815         (new_exclude_segment): Prepend the new segment instead of appending.
23816         Return void, since that's now more convenient.
23817         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23818         (file_name_matches): Renamed from excluded_file_name_p.
23819         (file_pattern_matches, file_name_matches):
23820         Return true if the pattern matches, not if it excludes.
23821         All callers changed.
23822         (excluded_file_name): Process the list in reverse order;
23823         since the list is now reversed this restores the pre-2009 behavior.
23824         (add_exclude): Adjust to new reversed-order list.  Use local var
23825         rather than macro, for clarity.
23826         * tests/test-exclude7.sh: Adjust to corrected behavior.
23828         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23829         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23830         it's not possible here.  Handle the case of \ at end of pattern
23831         without dumping core.
23832         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23834         _Noreturn: future-proof non-GNU and non-MSVC compilers
23835         * build-aux/snippet/_Noreturn.h (_Noreturn):
23836         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23837         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23838         C11 or later.  This is more likely to work with random future C
23839         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23840         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23842         exclude: handle wildcards with FNM_EXTMATCH
23843         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23844         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23845         comment that "has wildcards" really means "has or may have
23846         wildcards".  Simplify by avoiding the need to call strcspn.
23848 2012-04-29  Bruno Haible  <bruno@clisp.org>
23850         gnulib-tool: Fix list of authors.
23851         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23853 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23855         bootstrap: support Automake-NG in $buildreq
23856         * bootstrap (check_versions): Handle automake and aclocal from
23857         Automake-NG specially.  They can be specified as respectively
23858         the "automake-ng" and "aclocal-ng" requirements.
23860 2012-04-25  Eric Blake  <eblake@redhat.com>
23862         bootstrap: only force latest Makefile.in.in for gettext module
23863         * build-aux/bootstrap (with_gettext): Only install latest
23864         Makefile.in.in for projects requesting bleeding edge gettext.
23866 2012-04-22  Bruno Haible  <bruno@clisp.org>
23868         doc: Mention reason for replacement on glibc/Linux systems.
23869         * doc/posix-functions/dprintf.texi: Mention the problem with special
23870         'long double' values.
23871         * doc/posix-functions/fprintf.texi: Likewise.
23872         * doc/posix-functions/printf.texi: Likewise.
23873         * doc/posix-functions/snprintf.texi: Likewise.
23874         * doc/posix-functions/sprintf.texi: Likewise.
23875         * doc/posix-functions/vdprintf.texi: Likewise.
23876         * doc/posix-functions/vfprintf.texi: Likewise.
23877         * doc/posix-functions/vprintf.texi: Likewise.
23878         * doc/posix-functions/vsnprintf.texi: Likewise.
23879         * doc/posix-functions/vsprintf.texi: Likewise.
23880         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23881         platforms with F_DUPFD_CLOEXEC problems.
23882         * doc/posix-functions/glob.texi: Mention which platforms are affected
23883         by the problem with symbolic links.
23884         * doc/posix-functions/linkat.texi: Mention the problem with
23885         AT_SYMLINK_FOLLOW on Linux.
23887 2012-04-22  Bruno Haible  <bruno@clisp.org>
23889         pwrite: Don't replace on all platforms.
23890         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23892 2012-04-22  Bruno Haible  <bruno@clisp.org>
23894         rint* tests: Avoid gcc warnings.
23895         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23896         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23897         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23899 2012-04-21  Bruno Haible  <bruno@clisp.org>
23901         users.txt: Update.
23902         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23903         switched from CVS to git, bzr, or svn.
23905 2012-04-21  Bruno Haible  <bruno@clisp.org>
23907         Large File Support for native Windows platforms.
23909         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23910         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23912         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23913         type.
23914         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23915         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23916         * doc/posix-headers/sys_types.texi: Mention the effect of the
23917         'largefile' module.
23919         * lib/fcntl.in.h: Add comments about off_t.
23920         * modules/fcntl-h (Depends-on): Add sys_types.
23922         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23923         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23924         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23925         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23926         * modules/unistd (Depends-on): Add sys_types.
23927         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23929         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23930         instead of lseek.
23931         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23932         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23933         * modules/lseek (Depends-on): Add sys_types.
23935         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23936         msvc-nothrow.h.
23937         (SetFileSize): New function.
23938         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23939         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23940         if Large File Support is requested.
23941         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23942         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23944         * lib/stdio.in.h: Add comments about off_t.
23945         * modules/stdio (Depends-on): Add sys_types.
23947         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23948         instead of ftello.
23949         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23950         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23951         (gl_PREREQ_FTELLO): New macro.
23952         * modules/ftello (Depends-on): Add sys_types.
23953         (configure.ac): Incoke gl_PREREQ_FTELLO.
23955         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23956         instead of fseeko.
23957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23958         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23959         (gl_PREREQ_FSEEKO): New macro.
23960         * modules/fseeko (Depends-on): Add sys_types.
23961         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23963         * lib/sys_stat.in.h: Add comments about off_t.
23964         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23965         64-bit integer for st_size in 'struct stat'.
23966         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23967         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23968         * modules/sys_stat (Depends-on): Add sys_types.
23969         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23971         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23972         instead of stat or _stat.
23974         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23975         'struct _stati64' instead of fstat and 'struct stat'.
23976         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23977         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23979         Reported by Ray Satiro <raysatiro@yahoo.com>.
23981 2012-04-19  Eric Blake  <eblake@redhat.com>
23983         bootstrap: accommodate older libtool
23984         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23985         Reported by Daniel P. Berrange.
23987 2012-04-19  Jim Meyering  <meyering@redhat.com>
23989         announce-gen: avoid failure due to lack of Digest::SHA1
23990         Even with the preferred Digest::SHA available, this script
23991         would fail when the backup module, Digest::SHA1, was not installed.
23992         * build-aux/announce-gen: Quote the conditional use of "use".
23993         Reported by Reuben Thomas in:
23994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23996         bootstrap: don't let a user's CDPATH setting affect this script
23997         When CDPATH is set, cd will sometimes generate output.
23998         When "cd" is run in a subshell whose output matters, that
23999         surprising-to-some output can cause malfunction.
24000         Unsetting CDPATH turns off this shell "feature."
24001         * build-aux/bootstrap (CDPATH): Unset.
24002         Reported by Reuben Thomas in:
24003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
24004         and inspired by his patch here:
24005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
24007 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
24008         and Jim Meyering  <meyering@redhat.com>
24010         maint.mk: catch "see @xref{}" and similar
24011         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24012         prohibit "See also @xref{", "Also see @pxref{", and similar.
24014 2012-04-16  Jim Meyering  <meyering@redhat.com>
24016         bootstrap: really use gnulib's po/Makefile.in.in
24017         * build-aux/bootstrap: Correct the source file name in previous change.
24018         Reported by Akim Demaille.
24020         configmake: correct minor inconsistency in Makefile rule
24021         * modules/configmake (Makefile.am): All other rules like this one
24022         run the final "mv -f ..." in the same backslash-continued command
24023         as the one that does everything else.  This one put the mv -f ...
24024         command on a separate, non-backslash-continued line.
24025         Make it like the others.
24027         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
24028         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
24029         the one from gettext.  Reported by Akim Demaille.
24031 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
24033         Fix recursion of install-* into po directories.
24034         Bison's install-pdf bug reported by Hans Aberg at
24035         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
24036         * build-aux/po/Makefile.in.in (install-dvi, install-html)
24037         (install-info, install-pdf, install-ps): New targets.
24039 2012-04-16  Jim Meyering  <meyering@redhat.com>
24041         maint: avoid spurious "make sc_maint" failure
24042         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
24043         exempt all *.class file names, for lib/javaversion.class.
24045 2012-04-15  Bruno Haible  <bruno@clisp.org>
24047         lseek: Make configure test independent of environment.
24048         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
24049         Windows, we know that lseek() on pipes is broken; skip the runtime
24050         test.
24052 2012-04-14  Bruno Haible  <bruno@clisp.org>
24054         stat: Bypass buggy override in mingw64.
24055         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
24056         * lib/stat.c (stat) [mingw64]: Define to _stat.
24057         * doc/posix-functions/stat.texi: Mention mingw64 bug.
24059 2012-04-14  Bruno Haible  <bruno@clisp.org>
24061         pathmax: Fix compilation error on MSVC 9.
24062         * modules/pathmax (Depends-on): Add unistd.
24064 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24066         README: document pointer comparison assumption
24067         * README (Portability guidelines): Document assumption about
24068         pointer comparisons, in response to a recent bug-gnulib comment by
24069         Jeffrey Kegler.
24071 2012-04-12  Bruno Haible  <bruno@clisp.org>
24073         Tests for module 'getrusage'.
24074         * modules/getrusage-tests: New file.
24075         * tests/test-getrusage.c: New file.
24077         New module 'getrusage'.
24078         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
24079         warn-on-use.h.
24080         (getrusage): New declaration.
24081         * lib/getrusage.c: New file.
24082         * m4/getrusage.m4: New file.
24083         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
24084         is declared.
24085         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
24086         HAVE_GETRUSAGE.
24087         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
24088         snippet/c++defs, snippet/warn-on-use.
24089         (Makefile.am): Update generation of sys/resource.h. Substitute
24090         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
24091         * modules/getrusage: New file.
24092         * doc/posix-functions/getrusage.texi: Mention the new module.
24094 2012-04-12  Bruno Haible  <bruno@clisp.org>
24096         Tests for module 'sys_resource'.
24097         * modules/sys_resource-tests: New file.
24098         * tests/test-sys_resource.c: New file.
24100         New module 'sys_resource'.
24101         * lib/sys_resource.in.h: New file.
24102         * m4/sys_resource_h.m4: New file.
24103         * modules/sys_resource: New file.
24104         * doc/posix-headers/sys_resource.texi: Mention the new module.
24106 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
24108         ioctl: Fix compilation error on mingw.
24109         * lib/ioctl.c: Include <windows.h>.
24110         Also reported by Ray Satiro <raysatiro@yahoo.com>.
24112 2012-04-04  Jim Meyering  <meyering@redhat.com>
24114         regex: correct #pragma guard expression
24115         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
24116         not 4.3.  Correct its cpp guard expression.
24118 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24120         regex: remove unnecessary type punning
24121         Problem reported by Vladimir Serbinenko in
24122         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
24123         * lib/regex.h (struct re_pattern_buffer): Change the type of
24124         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
24125         Fix comment to match code.
24126         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
24127         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
24128         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24129         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
24130         (set_regs):
24131         Omit no-longer-necessary casts.
24133 2012-04-03  Bruno Haible  <bruno@clisp.org>
24135         Tests for module 'ilogbl'.
24136         * modules/ilogbl-tests: New file.
24137         * tests/test-ilogbl.c: New file.
24139         New module 'ilogbl'.
24140         * lib/math.in.h (ilogbl): New declaration.
24141         * lib/ilogbl.c: New file.
24142         * m4/ilogbl.m4: New file.
24143         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
24144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
24145         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
24146         Split sed invocation, to avoid the limit of 100 substitutions of
24147         HP-UX 'sed'.
24148         * modules/ilogbl: New file.
24149         * tests/test-math-c++.cc: Check the declaration of ilogbl.
24150         * doc/posix-functions/ilogbl.texi: Mention the new module.
24152 2012-04-03  Bruno Haible  <bruno@clisp.org>
24154         Tests for module 'ilogbf'.
24155         * modules/ilogbf-tests: New file.
24156         * tests/test-ilogbf.c: New file.
24158         New module 'ilogbf'.
24159         * lib/math.in.h (ilogbf): New declaration.
24160         * lib/ilogbf.c: New file.
24161         * m4/ilogbf.m4: New file.
24162         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
24163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
24164         REPLACE_ILOGBF.
24165         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
24166         REPLACE_ILOGBF.
24167         * modules/ilogbf: New file.
24168         * tests/test-math-c++.cc: Check the declaration of ilogbf.
24169         * doc/posix-functions/ilogbf.texi: Mention the new module.
24171 2012-04-03  Bruno Haible  <bruno@clisp.org>
24173         Tests for module 'ilogb'.
24174         * modules/ilogb-tests: New file.
24175         * tests/test-ilogb.c: New file.
24176         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
24177         tests/test-logb-ieee.h.
24179         New module 'ilogb'.
24180         * lib/math.in.h (ilogb): New declaration.
24181         * lib/ilogb.c: New file.
24182         * m4/ilogb.m4: New file.
24183         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
24184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
24185         REPLACE_ILOGB.
24186         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
24187         REPLACE_ILOGB.
24188         * modules/ilogb: New file.
24189         * tests/test-math-c++.cc: Check the declaration of ilogb.
24190         * doc/posix-functions/ilogb.texi: Mention the new module.
24192 2012-04-03  Bruno Haible  <bruno@clisp.org>
24194         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
24195         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
24196         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
24197         (main): Check their values.
24198         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
24199         problem.
24201 2012-04-03  Bruno Haible  <bruno@clisp.org>
24203         Tests for module 'logbl-ieee'.
24204         * modules/logbl-ieee-tests: New file.
24205         * tests/test-logbl-ieee.c: New file.
24207         New module 'logbl-ieee'.
24208         * modules/logbl-ieee: New file.
24210         Tests for module 'logb-ieee'.
24211         * modules/logb-ieee-tests: New file.
24212         * tests/test-logb-ieee.c: New file.
24214         New module 'logb-ieee'.
24215         * modules/logb-ieee: New file.
24217         Tests for module 'logbf-ieee'.
24218         * modules/logbf-ieee-tests: New file.
24219         * tests/test-logbf-ieee.c: New file.
24220         * tests/test-logb-ieee.h: New file.
24222         New module 'logbf-ieee'.
24223         * modules/logbf-ieee: New file.
24225 2012-04-03  Bruno Haible  <bruno@clisp.org>
24227         Tests for module 'logbl'.
24228         * modules/logbl-tests: New file.
24229         * tests/test-logbl.c: New file.
24231         New module 'logbl'.
24232         * lib/math.in.h (logbl): New declaration.
24233         * lib/logbl.c: New file.
24234         * m4/logbl.m4: New file.
24235         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
24236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
24237         REPLACE_LOGBL.
24238         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
24239         REPLACE_LOGBL.
24240         * modules/logbl: New file.
24241         * tests/test-math-c++.cc: Check the declaration of logbl.
24242         * doc/posix-functions/logbl.texi: Mention the new module.
24244 2012-04-02  Bruno Haible  <bruno@clisp.org>
24246         Tests for module 'logbf'.
24247         * modules/logbf-tests: New file.
24248         * tests/test-logbf.c: New file.
24250         New module 'logbf'.
24251         * lib/math.in.h (logbf): New declaration.
24252         * lib/logbf.c: New file.
24253         * m4/logbf.m4: New file.
24254         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
24255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
24256         REPLACE_LOGBF.
24257         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
24258         REPLACE_LOGBF.
24259         * modules/logbf: New file.
24260         * tests/test-math-c++.cc: Check the declaration of logbf.
24261         * doc/posix-functions/logbf.texi: Mention the new module.
24263 2012-04-02  Bruno Haible  <bruno@clisp.org>
24265         logb tests: More tests.
24266         * tests/test-logb.h: New file, based on tests/test-logb.c and
24267         tests/test-frexp.h.
24268         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
24269         (main): Just invoke test_function.
24270         * modules/logb-tests (Files): Add tests/test-logb.h,
24271         tests/minus-zero.h, tests/randomd.c.
24272         (Makefile.am): Add randomd.c to test_logb_SOURCES.
24274         logb: Provide replacement and workarounds.
24275         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
24276         is 1.
24277         * lib/logb.c: New file.
24278         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
24279         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
24280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
24281         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
24282         * modules/logb (Files): Add lib/logb.c.
24283         (Depends-on): Add isfinite, frexp, isnand.
24284         (configure.ac): Compile the replacement code logb.c if needed.
24285         * tests/test-math-c++.cc: Check the declaration of logb.
24286         * doc/posix-functions/logb.texi: Mention the replacement and the bug
24287         with subnormal numbers.
24289 2012-04-02  Bruno Haible  <bruno@clisp.org>
24291         log10* tests: Speed up.
24292         * tests/test-log10.h (test_function): Reduce amount of random numbers
24293         to test.
24295 2012-04-01  Bruno Haible  <bruno@clisp.org>
24297         logf-ieee: Fix test whether logf works.
24298         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
24300 2012-04-01  Bruno Haible  <bruno@clisp.org>
24302         log10l: Work around log10l-ieee test failure on IRIX 6.5.
24303         * lib/log10l.c: Include <float.h>
24304         (log10l): On IRIX, normalize the +Infinity value.
24305         * modules/log10l (Depends-on): Add 'float'.
24306         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
24307         +Infinity.
24309         log10f-ieee: Work around test failure on NetBSD 5.1.
24310         * m4/log10f-ieee.m4: New file.
24311         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
24312         test whether log10f works with a negative argument. Replace it if not.
24313         * lib/log10f.c (log10f): For negative arguments, return NaN.
24314         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
24315         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
24316         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
24318         log10f-ieee: Work around test failure on Solaris 9.
24319         * modules/log10f-ieee (Depends-on): Add log10-ieee.
24320         (configure.ac): Require gl_FUNC_LOG10F.
24322         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24323         * m4/log10-ieee.m4: New file.
24324         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
24325         whether log10 works with a negative argument. Replace it if not.
24326         * lib/log10.c (log10): For negative arguments, return NaN.
24327         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
24328         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
24329         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
24331         Tests for module 'log10l-ieee'.
24332         * modules/log10l-ieee-tests: New file.
24333         * tests/test-log10l-ieee.c: New file.
24335         New module 'log10l-ieee'.
24336         * modules/log10l-ieee: New file.
24338         Tests for module 'log10-ieee'.
24339         * modules/log10-ieee-tests: New file.
24340         * tests/test-log10-ieee.c: New file.
24342         New module 'log10-ieee'.
24343         * modules/log10-ieee: New file.
24345         Tests for module 'log10f-ieee'.
24346         * modules/log10f-ieee-tests: New file.
24347         * tests/test-log10f-ieee.c: New file.
24348         * tests/test-log10-ieee.h: New file.
24350         New module 'log10f-ieee'.
24351         * modules/log10f-ieee: New file.
24353 2012-04-01  Bruno Haible  <bruno@clisp.org>
24355         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
24356         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24357         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24358         workaround.
24359         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24360         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24362         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24363         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24364         (Depends-on): Update conditions.
24365         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24366         IRIX 6.5, OSF/1 5.1 problems.
24368 2012-04-01  Bruno Haible  <bruno@clisp.org>
24370         log10f: Work around OSF/1 5.1 bug.
24371         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24372         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24373         workaround.
24374         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24375         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24377         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24378         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24379         (Depends-on): Update conditions.
24380         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24382 2012-04-01  Bruno Haible  <bruno@clisp.org>
24384         log10: Work around OSF/1 5.1 bug.
24385         * lib/math.in.h (log10): New declaration.
24386         * lib/log10.c: New file.
24387         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24388         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24389         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24391         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24392         * modules/log10 (Files): Add lib/log10.c.
24393         (Depends-on): Add math.
24394         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24395         * tests/test-math-c++.cc: Check the declaration of log10.
24396         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24398 2012-03-31  Bruno Haible  <bruno@clisp.org>
24400         log10l tests: More tests.
24401         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24402         tests/minus-zero.h, tests/randoml.c.
24403         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24404         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24405         (main): Invoke test_function.
24407         log10f tests: More tests.
24408         * modules/log10f-tests (Files): Add tests/test-log10.h,
24409         tests/minus-zero.h, tests/randomf.c.
24410         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24411         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24412         (main): Invoke test_function.
24414         log10 tests: More tests.
24415         * tests/test-log10.h: New file.
24416         * modules/log10-tests (Files): Add tests/test-log10.h,
24417         tests/minus-zero.h, tests/randomd.c.
24418         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24419         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24420         (main): Invoke test_function.
24422 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24424         fflush: Fix syntax error.
24425         * lib/fflush.c: Include unused-parameter.h, needed for
24426         _GL_UNUSED_PARAMETER.
24427         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24429 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24431         regex: pacify GCC when compiling GRUB
24432         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24433         a diagnostic.  Reported by Vladimir Serbinenko in
24434         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24436 2012-03-29  Eric Blake  <eblake@redhat.com>
24438         stdio: don't assume gets any more
24439         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24440         support.
24441         * modules/stdio (Makefile.am): Likewise.
24442         * lib/stdio-read.c (gets): Likewise.
24443         * tests/test-stdio-c++.cc: Likewise.
24444         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24445         * lib/stdio.in.h (gets): Make warning occur in more places.
24446         * doc/posix-functions/gets.texi (gets): Update documentation.
24447         Reported by Christer Solskogen.
24449         maint.mk: fix syntax checks without exclusions
24450         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24451         Reported by Daniel P. Berrange.
24453         strerror_r: avoid compiler warning
24454         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24455         level.
24457         fflush: avoid compiler warning
24458         * lib/fflush.c (update_fpos_cache): Mark variables that are
24459         potentially unused.
24461 2012-03-25  Bruno Haible  <bruno@clisp.org>
24463         Tests for module 'localeconv'.
24464         * modules/localeconv-tests: New file.
24465         * tests/test-localeconv.c: New file.
24467         New module 'localeconv'.
24468         * lib/locale.in.h (localeconv): New declaration.
24469         * lib/localeconv.c: New file.
24470         * m4/localeconv.m4: New file.
24471         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24472         REPLACE_LOCALECONV.
24473         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24474         REPLACE_LOCALECONV.
24475         * modules/localeconv: New file.
24476         * modules/nl_langinfo (Depends-on): Add localeconv.
24477         * modules/human (Depends-on): Likewise.
24478         * doc/posix-functions/localeconv.texi: Mention the new module.
24480 2012-03-25  Bruno Haible  <bruno@clisp.org>
24482         locale: Provide a complete 'struct lconv'.
24483         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24484         'struct lconv' does not contain int_p_cs_precedes.
24485         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24486         * doc/posix-headers/locale.texi: Update.
24488         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24489         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24490         * doc/posix-headers/locale.texi: Update.
24492         locale: Provide a working 'struct lconv'.
24493         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24494         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24495         'struct lconv' does not even contain decimal_point.
24496         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24497         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24498         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24499         * doc/posix-headers/locale.texi: Mention the problems with
24500         'struct lconv'.
24501         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24503 2012-03-24  Bruno Haible  <bruno@clisp.org>
24505         Enable common subexpression optimization in GCC.
24506         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24507         macros.
24508         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24509         GCC attribute 'const'.
24510         (uc_locale_language): Declare with GCC attribute 'pure'.
24511         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24512         with GCC attribute 'const'.
24513         * lib/unictype.in.h (uc_is_general_category_withtable,
24514         uc_combining_class, uc_combining_class_name,
24515         uc_combining_class_long_name, uc_bidi_class_name,
24516         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24517         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24518         uc_decimal_value, uc_digit_value, uc_numeric_value,
24519         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24520         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24521         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24522         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24523         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24524         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24525         Declare with GCC attribute 'const'.
24526         (uc_general_category_name, uc_general_category_long_name,
24527         uc_general_category_byname, uc_general_category,
24528         uc_is_general_category, uc_combining_class_byname,
24529         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24530         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24531         Declare with GCC attribute 'pure'.
24532         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24533         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24534         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24535         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24536         with GCC attribute 'pure'.
24537         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24538         'const'.
24539         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24540         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24541         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24542         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24543         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24544         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24545         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24546         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24547         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24548         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24549         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24550         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24551         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24552         GCC attribute 'pure'.
24553         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24554         'const'.
24555         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24556         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24557         u32_strwidth): Declare with GCC attribute 'pure'.
24559         Enable common subexpression optimization in GCC.
24560         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24561         (alphasort): Declare with GCC attribute 'pure'.
24562         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24563         (atoll): Declare with GCC attribute 'pure'.
24564         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24565         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24566         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24567         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24568         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24569         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24570         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24572 2012-03-24  Bruno Haible  <bruno@clisp.org>
24574         gnulib-tool: Avoid unintended error output from 'cmp'.
24575         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24576         "cmp -s", not "cmp > /dev/null".
24578 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24580         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24582         It's not just Automake versions < 1.9b that creates an empty
24583         pkgdatadir at installation time if pkgdata_DATA is specified
24584         to empty; modern automake versions do this as well, at least
24585         until automake 1.11.4 (not yet released at the moment of writing,
24586         but soon to appear).  That behaviour was generally considered a
24587         feature rather than a bug, at least until this discussion:
24588         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24590         See also automake bugs #10997 and #11030.
24592         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24593         reference to relevant automake bug numbers.
24594         (func_emit_tests_Makefile_am): Likewise.
24596 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24598         announce-gen: use Digest::SHA when possible
24599         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24600         back to Digest::SHA1 if necessary.
24602 2012-03-20  Jim Meyering  <meyering@redhat.com>
24604         tests: avoid gcc warnings about argv vs. const initializers
24605         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24606         warnings about discarding 'const' qualifier from pointer target type.
24607         * tests/test-posix_spawn2.c (main): Likewise.
24609 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24611         README-release: simplify slightly
24612         * top/README-release: Run "git checkout master" only once.
24614 2012-03-15  Mark Wielaard  <mark@klomp.org>
24616         git-merge-changelog: add specific example on how to use with hg.
24617         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24619 2012-03-18  Mark Wielaard  <mark@klomp.org>
24621         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24623 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24625         git-version-gen: don't let "prefix" envvar cause trouble
24626         * build-aux/git-version-gen (prefix): Initialize properly,
24627         so as not to use a value specified via the environment.
24628         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24630 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24632         regex: diagnose too-large repeat counts in EREs
24633         Previously, the code did not diagnose the too-large repeat count
24634         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24635         as if it were 'b\{1000000000}', which is unexpected.
24636         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24637         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24638         is a reasonable one for this problem.  Another option would be to
24639         create a new REG_OVERFLOW error for repeat counts that are too large.
24640         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24641         count is too large, so that the caller can distinguish the two cases.
24642         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24643         "Too large" return code, and that repeat counts are one example of this.
24645 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24647         doc: some glibc x32 integer width issues
24648         * doc/posix-headers/sys_types.texi (sys/types.h):
24649         * doc/posix-headers/time.texi (time.h):
24650         Mention that glibc x32 does not conform to POSIX in a couple of
24651         areas related to integer widths.
24653 2012-03-15  Bruno Haible  <bruno@clisp.org>
24655         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24656         * lib/fma.c (VOLATILE): New macro.
24657         (FUNC): Use it to work around a GCC compiler bug.
24659 2012-03-13  Bruno Haible  <bruno@clisp.org>
24661         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24662         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24663         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24664         REPLACE_HYPOTL to 1.
24665         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24667 2012-03-13  Bruno Haible  <bruno@clisp.org>
24669         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24670         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24671         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24672         REPLACE_REMAINDERL to 1.
24673         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24674         bug.
24676 2012-03-13  Bruno Haible  <bruno@clisp.org>
24678         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24679         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24680         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24681         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24682         too big rounding errors.
24683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24684         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24685         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24686         (Depends-on): Update conditions.
24687         * tests/test-sqrtl.c (my_ldexpl): New function.
24688         (main): Add test of a particular value.
24689         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24691 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24693         doc: Update timer_* platform portability notes.
24694         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24695         that always return ENOSYS.
24696         * doc/posix-functions/timer_delete.texi: Likewise.
24697         * doc/posix-functions/timer_gettime.texi: Likewise.
24698         * doc/posix-functions/timer_settime.texi: Likewise.
24700 2012-03-13  Bruno Haible  <bruno@clisp.org>
24702         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24703         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24704         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24705         REPLACE_CBRTL to 1.
24706         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24708 2012-03-13  Bruno Haible  <bruno@clisp.org>
24710         remainderl: Avoid compilation error on AIX >= 5.2.
24711         * lib/math.in.h (remainderl): Undefine macro from the system header.
24713 2012-03-13  Bruno Haible  <bruno@clisp.org>
24715         Avoid compilation errors with MSVC option -fp:strict.
24716         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24717         * lib/cbrtf.c: Likewise.
24718         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24720 2012-03-12  Bruno Haible  <bruno@clisp.org>
24722         uninorm: Don't crash in out-of-memory conditions.
24723         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24724         gracefully.
24725         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24726         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24728 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24730         quote: fix syntax-check
24731         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24732         also exports quote_quoting_options.
24734 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24736         Collapse list of copyright years to ranges.  See
24737         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24738         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24739         build-aux/csharpexec.sh.in, build-aux/gnupload,
24740         build-aux/install-reloc, build-aux/javacomp.sh.in,
24741         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24742         build-aux/move-if-change, build-aux/reloc-ldflags,
24743         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24745 2012-03-11  Bruno Haible  <bruno@clisp.org>
24747         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24748         * m4/log2f-ieee.m4: New file.
24749         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24750         whether log2f works with a minus zero argument. Replace it if not.
24751         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24752         (Depends-on): Add log2-ieee.
24753         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24754         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24756         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24757         * m4/log2-ieee.m4: New file.
24758         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24759         whether log2 works with a minus zero argument. Replace it if not.
24760         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24761         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24762         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24764         Tests for module 'log2l-ieee'.
24765         * modules/log2l-ieee-tests: New file.
24766         * tests/test-log2l-ieee.c: New file.
24768         New module 'log2l-ieee'.
24769         * modules/log2l-ieee: New file.
24771         Tests for module 'log2-ieee'.
24772         * modules/log2-ieee-tests: New file.
24773         * tests/test-log2-ieee.c: New file.
24775         New module 'log2-ieee'.
24776         * modules/log2-ieee: New file.
24778         Tests for module 'log2f-ieee'.
24779         * modules/log2f-ieee-tests: New file.
24780         * tests/test-log2f-ieee.c: New file.
24781         * tests/test-log2-ieee.h: New file.
24783         New module 'log2f-ieee'.
24784         * modules/log2f-ieee: New file.
24786 2012-03-11  Bruno Haible  <bruno@clisp.org>
24788         Tests for module 'log2l'.
24789         * modules/log2l-tests: New file.
24790         * tests/test-log2l.c: New file.
24792         New module 'log2l'.
24793         * lib/math.in.h (log2l): New declaration.
24794         * lib/log2l.c: New file.
24795         * m4/log2l.m4: New file.
24796         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24798         REPLACE_LOG2L.
24799         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24800         REPLACE_LOG2L.
24801         * modules/log2l: New file.
24802         * tests/test-math-c++.cc: Check the declaration of log2l.
24803         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24804         and OSF/1 problems.
24806 2012-03-11  Bruno Haible  <bruno@clisp.org>
24808         Tests for module 'log2f'.
24809         * modules/log2f-tests: New file.
24810         * tests/test-log2f.c: New file.
24812         New module 'log2f'.
24813         * lib/math.in.h (log2f): New declaration.
24814         * lib/log2f.c: New file.
24815         * m4/log2f.m4: New file.
24816         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24818         REPLACE_LOG2F.
24819         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24820         REPLACE_LOG2F.
24821         * modules/log2f: New file.
24822         * tests/test-math-c++.cc: Check the declaration of log2f.
24823         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24824         and OSF/1 and Cygwin problems.
24826 2012-03-11  Bruno Haible  <bruno@clisp.org>
24828         Tests for module 'log2'.
24829         * modules/log2-tests: New file.
24830         * tests/test-log2.c: New file.
24831         * tests/test-log2.h: New file.
24833         New module 'log2'.
24834         * lib/math.in.h (log2): New declaration.
24835         * lib/log2.c: New file.
24836         * m4/log2.m4: New file.
24837         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24839         REPLACE_LOG2.
24840         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24841         REPLACE_LOG2.
24842         * modules/log2: New file.
24843         * tests/test-math-c++.cc: Check the declaration of log2.
24844         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24845         and OSF/1 and Cygwin problems.
24847 2012-03-11  Bruno Haible  <bruno@clisp.org>
24849         exp2* tests: More tests.
24850         * tests/test-exp2.h (test_function): Test all integral arguments that
24851         don't need to overflow or denormalized numbers.
24852         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24853         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24854         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24856 2012-03-10  Bruno Haible  <bruno@clisp.org>
24858         log1pl-ieee: Work around test failure on AIX 7.1.
24859         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24861         log1pl-ieee: Work around test failure on IRIX 6.5.
24862         * m4/log1pl-ieee.m4: New file.
24863         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24864         test whether log1pl works with a minus zero argument. Replace it if
24865         not.
24866         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24868         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24869         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24870         (Depends-on): Update conditions.
24871         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24872         m4/signbit.m4.
24873         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24874         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24876         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24877         * m4/log1pf-ieee.m4: New file.
24878         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24879         test whether log1pf works with a minus zero argument. Replace it if
24880         not.
24881         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24882         m4/signbit.m4.
24883         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24884         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24886         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24887         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24888         (configure.ac): Require gl_FUNC_LOG1PF.
24890         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24891         * m4/log1p-ieee.m4: New file.
24892         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24893         whether log1p works with a minus zero argument. Replace it if not.
24894         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24896         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24897         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24898         (Depends-on): Update conditions.
24899         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24900         m4/signbit.m4.
24901         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24902         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24904         Tests for module 'log1pl-ieee'.
24905         * modules/log1pl-ieee-tests: New file.
24906         * tests/test-log1pl-ieee.c: New file.
24908         New module 'log1pl-ieee'.
24909         * modules/log1pl-ieee: New file.
24911         Tests for module 'log1p-ieee'.
24912         * modules/log1p-ieee-tests: New file.
24913         * tests/test-log1p-ieee.c: New file.
24915         New module 'log1p-ieee'.
24916         * modules/log1p-ieee: New file.
24918         Tests for module 'log1pf-ieee'.
24919         * modules/log1pf-ieee-tests: New file.
24920         * tests/test-log1pf-ieee.c: New file.
24921         * tests/test-log1p-ieee.h: New file.
24923         New module 'log1pf-ieee'.
24924         * modules/log1pf-ieee: New file.
24926 2012-03-10  Bruno Haible  <bruno@clisp.org>
24928         Tests for module 'log1pl'.
24929         * modules/log1pl-tests: New file.
24930         * tests/test-log1pl.c: New file.
24932         New module 'log1pl'.
24933         * lib/math.in.h (log1pl): New declaration.
24934         * lib/log1pl.c: New file.
24935         * m4/log1pl.m4: New file.
24936         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24938         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24939         * modules/log1pl: New file.
24940         * tests/test-math-c++.cc: Check the declaration of log1pl.
24941         * doc/posix-functions/log1pl.texi: Mention the new module.
24943 2012-03-10  Bruno Haible  <bruno@clisp.org>
24945         Tests for module 'log1pf'.
24946         * modules/log1pf-tests: New file.
24947         * tests/test-log1pf.c: New file.
24949         New module 'log1pf'.
24950         * lib/math.in.h (log1pf): New declaration.
24951         * lib/log1pf.c: New file.
24952         * m4/log1pf.m4: New file.
24953         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24955         REPLACE_LOG1PF.
24956         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24957         REPLACE_LOG1PF.
24958         * modules/log1pf: New file.
24959         * tests/test-math-c++.cc: Check the declaration of log1pf.
24960         * doc/posix-functions/log1pf.texi: Mention the new module.
24962 2012-03-10  Bruno Haible  <bruno@clisp.org>
24964         log1p tests: More tests.
24965         * tests/test-log1p.h: New file.
24966         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24967         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24968         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24969         (main): Invoke test_function.
24971         log1p: Provide replacement for Minix and MSVC.
24972         * lib/math.in.h (log1p): New declaration.
24973         * lib/log1p.c: New file.
24974         * m4/log1p.m4: New file.
24975         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24977         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24978         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24979         (Depends-on): Add math, isnand, log, round.
24980         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24981         HAVE_LOG1P is 0.
24982         * tests/test-math-c++.cc: Check the declaration of log1p.
24983         * doc/posix-functions/log1p.texi: Mention the replacement.
24985 2012-03-10  Bruno Haible  <bruno@clisp.org>
24987         math tests: Small simplification.
24988         * tests/test-exp.h (test_function): Use the same err_bound for
24989         'double' on platforms with sizeof (long double) == sizeof (double)
24990         than on platforms with sizeof (long double) > sizeof (double).
24991         * tests/test-exp2.h (test_function): Likewise.
24992         * tests/test-expm1.h (test_function): Likewise.
24993         * tests/test-log.h (test_function): Likewise.
24995 2012-03-10  Bruno Haible  <bruno@clisp.org>
24997         Fix some comments.
24998         * lib/expl.c: Fix an ambiguous comment.
24999         * lib/expm1.c: Likewise.
25000         * lib/expm1l.c: Likewise.
25001         * lib/exp2.c: Likewise.
25002         * lib/exp2l.c: Likewise.
25004 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
25006         regex: allow inclusion of <regex.h> before <limits.h>
25007         Without this patch, portable programs had to include <limits.h> before
25008         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
25009         I ran into this problem with a test version of GNU grep on Solaris 8.
25010         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
25011         This is done conditionally so that this change can be merged
25012         back to glibc.
25013         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
25014         using the included regex.
25016         fts: depend on fdopendir
25017         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
25018         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
25019         problem was introduced when fdopendir was split out.
25021 2012-03-10  Bruno Haible  <bruno@clisp.org>
25023         Remove unused variables.
25024         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
25025         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25027 2012-03-10  Bruno Haible  <bruno@clisp.org>
25029         isnanf-nolibm: Fix last commit.
25030         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
25032         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
25033         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
25035 2012-03-10  Bruno Haible  <bruno@clisp.org>
25037         logf-ieee: Work around test failure on NetBSD 5.1.
25038         * m4/logf-ieee.m4: New file.
25039         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
25040         whether logf works with a negative argument. Replace it if not.
25041         * lib/logf.c (logf): For negative arguments, return NaN.
25042         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
25043         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
25044         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
25046         logf-ieee: Work around test failure on Solaris 9.
25047         * modules/logf-ieee (Depends-on): Add log-ieee.
25048         (configure.ac): Require gl_FUNC_LOGF.
25050         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
25051         * m4/log-ieee.m4: New file.
25052         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
25053         log works with a negative argument. Replace it if not.
25054         * lib/log.c (log): For negative arguments, return NaN.
25055         * modules/log-ieee (Files): Add m4/log-ieee.m4.
25056         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
25057         * doc/posix-functions/log.texi: Mention the log-ieee module.
25059         Tests for module 'logl-ieee'.
25060         * modules/logl-ieee-tests: New file.
25061         * tests/test-logl-ieee.c: New file.
25063         New module 'logl-ieee'.
25064         * modules/logl-ieee: New file.
25066         Tests for module 'log-ieee'.
25067         * modules/log-ieee-tests: New file.
25068         * tests/test-log-ieee.c: New file.
25070         New module 'log-ieee'.
25071         * modules/log-ieee: New file.
25073         Tests for module 'logf-ieee'.
25074         * modules/logf-ieee-tests: New file.
25075         * tests/test-logf-ieee.c: New file.
25076         * tests/test-log-ieee.h: New file.
25078         New module 'logf-ieee'.
25079         * modules/logf-ieee: New file.
25081 2012-03-10  Bruno Haible  <bruno@clisp.org>
25083         log: Fix bug introduced on 2012-03-09.
25084         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
25086 2012-03-10  Pádraig Brady  <P@draigBrady.com>
25088         timer-time: link explicitly with pthreads on glibc
25089         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
25090         to support static linking, when newer glibc is
25091         detected, as that contains pthread emulation of
25092         POSIX timer functions where required.
25093         * modules/timer-time: Depend on threadlib to
25094         pull in the appropriate library to link.
25096 2012-03-10  Bruno Haible  <bruno@clisp.org>
25098         log* tests: More tests.
25099         * tests/test-log.h: New file.
25100         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
25101         (main): Invoke test_function.
25102         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
25103         (main): Invoke test_function.
25104         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
25105         (main): Invoke test_function.
25106         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25107         tests/randomd.c.
25108         (Makefile.am): Add randomd.c to test_log_SOURCES.
25109         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25110         tests/randomf.c.
25111         (Makefile.am): Add randomf.c to test_logf_SOURCES.
25112         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25113         tests/randoml.c.
25114         (Depends-on): Add 'float'.
25115         (Makefile.am): Add randoml.c to test_logl_SOURCES.
25117 2012-03-09  Bruno Haible  <bruno@clisp.org>
25119         logl: Work around OSF/1 5.1 bug.
25120         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
25121         * lib/logl.c (logl): If logl exists, use it and provide just the
25122         workaround.
25123         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
25124         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
25125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
25126         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
25127         * modules/logl (configure.ac): Consider REPLACE_LOGL.
25128         (Depends-on): Update conditions.
25129         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
25131 2012-03-09  Bruno Haible  <bruno@clisp.org>
25133         logf: Work around OSF/1 5.1 bug.
25134         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
25135         * lib/logf.c (logf): If logf exists, use it and provide just the
25136         workaround.
25137         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
25138         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
25139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
25140         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
25141         * modules/logf (configure.ac): Consider REPLACE_LOGF.
25142         (Depends-on): Update conditions.
25143         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
25145 2012-03-09  Bruno Haible  <bruno@clisp.org>
25147         log: Work around OSF/1 5.1 bug.
25148         * lib/math.in.h (log): New declaration.
25149         * lib/log.c: New file.
25150         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
25151         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
25152         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
25153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
25154         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
25155         * modules/log (Files): Add lib/log.c.
25156         (Depends-on): Add math.
25157         (configure.ac): If REPLACE_LOG is 1, compile an override.
25158         * tests/test-math-c++.cc: Check the declaration of log.
25159         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
25161 2012-03-09  Jim Meyering  <meyering@redhat.com>
25163         readtokens.c: adjust wording in a comment
25164         * lib/readtokens.c: Insert omitted "that" in a comment.
25166 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25168         modechange: add notations +40, 00440, etc.
25169         * lib/modechange.c (mode_compile): Support new notations
25170         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
25172 2012-03-08  Bruno Haible  <bruno@clisp.org>
25174         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
25175         * m4/exp2l-ieee.m4: New file.
25176         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
25177         test whether exp2l works with a NaN argument and with a negative
25178         infinity argument. Replace it if not.
25179         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
25180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
25181         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
25182         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
25183         (Depends-on): Update conditions.
25184         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
25185         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
25186         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
25188         Tests for module 'exp2l-ieee'.
25189         * modules/exp2l-ieee-tests: New file.
25190         * tests/test-exp2l-ieee.c: New file.
25192         New module 'exp2l-ieee'.
25193         * modules/exp2l-ieee: New file.
25195         Tests for module 'exp2-ieee'.
25196         * modules/exp2-ieee-tests: New file.
25197         * tests/test-exp2-ieee.c: New file.
25199         New module 'exp2-ieee'.
25200         * modules/exp2-ieee: New file.
25202         Tests for module 'exp2f-ieee'.
25203         * modules/exp2f-ieee-tests: New file.
25204         * tests/test-exp2f-ieee.c: New file.
25205         * tests/test-exp2-ieee.h: New file.
25207         New module 'exp2f-ieee'.
25208         * modules/exp2f-ieee: New file.
25210 2012-03-08  Bruno Haible  <bruno@clisp.org>
25212         Tests for module 'exp2l'.
25213         * modules/exp2l-tests: New file.
25214         * tests/test-exp2l.c: New file.
25216         New module 'exp2l'.
25217         * lib/math.in.h (exp2l): New declaration.
25218         * lib/exp2l.c: New file.
25219         * lib/expl-table.c: New file, extracted from lib/expl.c.
25220         * lib/expl.c (gl_expl_table): New declaration.
25221         (expl): Remove expl_table. Update reference.
25222         * m4/exp2l.m4: New file.
25223         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
25224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
25225         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
25226         * modules/exp2l: New file.
25227         * modules/expl (Files): Add lib/expl-table.c.
25228         (configure.ac): Compile also expl-table.c.
25229         * tests/test-math-c++.cc: Check the declaration of exp2l.
25230         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
25231         problem.
25233 2012-03-08  Bruno Haible  <bruno@clisp.org>
25235         Tests for module 'exp2f'.
25236         * modules/exp2f-tests: New file.
25237         * tests/test-exp2f.c: New file.
25239         New module 'exp2f'.
25240         * lib/math.in.h (exp2f): New declaration.
25241         * lib/exp2f.c: New file.
25242         * m4/exp2f.m4: New file.
25243         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
25244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
25245         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
25246         * modules/exp2f: New file.
25247         * tests/test-math-c++.cc: Check the declaration of exp2f.
25248         * doc/posix-functions/exp2f.texi: Mention the new module and the
25249         IRIX problem.
25251 2012-03-08  Bruno Haible  <bruno@clisp.org>
25253         Tests for module 'exp2'.
25254         * modules/exp2-tests: New file.
25255         * tests/test-exp2.c: New file.
25256         * tests/test-exp2.h: New file.
25258         New module 'exp2'.
25259         * lib/math.in.h (exp2): New declaration.
25260         * lib/exp2.c: New file.
25261         * m4/exp2.m4: New file.
25262         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
25263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
25264         REPLACE_EXP2.
25265         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
25266         REPLACE_EXP2.
25267         * modules/exp2: New file.
25268         * tests/test-math-c++.cc: Check the declaration of exp2.
25269         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
25270         and OpenBSD problems.
25272 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25274         savedir: fix comment typo
25275         * lib/savedir.c (savedirstream): Fix typo in comment.
25277 2012-03-08  Bruno Haible  <bruno@clisp.org>
25279         test-readtokens.c: use const; remove unwarranted cast
25280         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
25282 2012-03-08  Bruno Haible  <bruno@clisp.org>
25284         fmal: Avoid compilation error on AIX.
25285         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
25286         AIX 5.2..7.1.
25288 2012-03-08  Bruno Haible  <bruno@clisp.org>
25290         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
25291         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
25292         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
25293         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
25294         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
25295         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
25296         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
25298 2012-03-08  Bruno Haible  <bruno@clisp.org>
25300         remainderf: Override buggy system function on IRIX 6.5.
25301         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
25302         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
25303         when it exists.
25304         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
25306 2012-03-08  Jim Meyering  <meyering@redhat.com>
25308         test-readtokens.c: avoid const-related compilation warnings
25309         * tests/test-readtokens.c: Avoid const-related compilation warnings.
25311 2012-03-07  Jim Meyering  <meyering@redhat.com>
25312             Bruno Haible  <bruno@clisp.org>
25314         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
25315         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
25316         tests/randomd.c.
25317         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
25318         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
25319         tests/randoml.c.
25320         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
25322 2012-03-07  Bruno Haible  <bruno@clisp.org>
25324         expm1l: Avoid compilation error on AIX.
25325         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
25326         AIX 5.2..7.1.
25328 2012-03-07  Bruno Haible  <bruno@clisp.org>
25330         expm1l: Don't override undeclared system function on IRIX 6.5.
25331         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
25332         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
25333         it exists. Set HAVE_DECL_EXPM1L.
25334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
25335         HAVE_EXPM1L.
25336         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
25337         HAVE_EXPM1L.
25338         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
25340 2012-03-07  Bruno Haible  <bruno@clisp.org>
25342         remainderl: Don't override undeclared system function on IRIX 6.5.
25343         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
25344         HAVE_REMAINDERL.
25345         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
25346         declared when it exists. Set HAVE_DECL_REMAINDERL.
25347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
25348         not HAVE_REMAINDERL.
25349         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
25350         HAVE_REMAINDERL.
25351         * doc/posix-functions/remainderl.texi: Mention missing declaration
25352         problem.
25354 2012-03-07  Bruno Haible  <bruno@clisp.org>
25356         rintf: Don't override undeclared system function on IRIX 6.5.
25357         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25358         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25359         exists. Set HAVE_DECL_RINTF.
25360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25361         HAVE_RINTF.
25362         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25363         HAVE_RINTF.
25364         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25366 2012-03-07  Bruno Haible  <bruno@clisp.org>
25368         roundl: Avoid compilation error on AIX.
25369         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25370         AIX 5.2..7.1.
25372 2012-03-07  Bruno Haible  <bruno@clisp.org>
25374         roundl: Don't override undeclared system function on IRIX 6.5.
25375         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25376         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25377         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25378         * modules/roundl (configure.ac): For replacement code, test
25379         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25380         (Depends-on): Update conditions.
25381         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25383 2012-03-07  Bruno Haible  <bruno@clisp.org>
25385         roundf: Don't override undeclared system function on IRIX 6.5.
25386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25387         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25388         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25389         * modules/roundf (configure.ac): For replacement code, test
25390         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25391         (Depends-on): Update conditions.
25392         * modules/roundf-ieee (Depends-on): Update conditions.
25393         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25395 2012-03-07  Bruno Haible  <bruno@clisp.org>
25397         round: Don't override undeclared system function on IRIX 6.5.
25398         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25399         argument.
25400         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25401         also when it is not declared. Set HAVE_ROUND. For replacement code,
25402         test HAVE_ROUND, not HAVE_DECL_ROUND.
25403         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25404         not HAVE_DECL_ROUND.
25405         (Depends-on): Update conditions.
25406         * modules/round-ieee (Depends-on): Update conditions.
25407         * doc/posix-functions/round.texi: Mention the IRIX problem.
25409 2012-03-07  Bruno Haible  <bruno@clisp.org>
25411         copysignf: Don't override undeclared system function on IRIX 6.5.
25412         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25413         HAVE_COPYSIGNF.
25414         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25415         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25417         not HAVE_COPYSIGNF.
25418         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25419         HAVE_COPYSIGNF.
25420         * doc/posix-functions/copysignf.texi: Mention missing declaration
25421         problem.
25423 2012-03-07  Jim Meyering  <meyering@redhat.com>
25425         readtokens: add tests
25426         * modules/readtokens-tests: New file.
25427         * tests/test-readtokens.c: New file.
25429 2012-03-07  Jim Meyering  <meyering@redhat.com>
25431         quotearg: the module must now include quote.h
25432         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25433         So must the module.
25434         * modules/quotearg (Files): Add quote.h.
25436 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25438         readtokens: avoid core dumps with unusual calling patterns
25439         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25440         * lib/readtokens.c: Include limits.h.
25441         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25442         (readtoken): Don't cache the delimiters; the cache code was buggy
25443         if !delim && saved_delim, or if the new n_delim differs from the old.
25444         Also, it wasn't thread-safe.
25446 2012-03-07  Bruno Haible  <bruno@clisp.org>
25448         quote: Adhere to common module description layout.
25449         * modules/quote (Makefile.am): Add back empty section.
25451 2012-03-06  Akim Demaille  <demaille@gostai.com>
25453         quote: fuse into quotearg
25454         This patch is made for the benefit of Bison.
25455         quote does not leave the choice of the quoting style to the user.
25456         quoting_style provides poor customizability, yet quoting_options,
25457         which is very rich, is hidden inside quotearg.c.  So in order to
25458         allow quote customization, move its implementation to quotearg.c.
25459         * lib/quote.c: Remove.
25460         * modules/quote: Adjust.
25461         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25462         warning: provide all the members of literal structs.
25463         (quote_quoting_options): New.
25464         (quote, quote_n): Import implementation from quote.c.
25465         * lib/quote.h: Import the comments from quote.c.
25466         (quote_quoting_options): New.
25468 2012-03-06  Bruno Haible  <bruno@clisp.org>
25470         Tests for module 'expm1l-ieee'.
25471         * modules/expm1l-ieee-tests: New file.
25472         * tests/test-expm1l-ieee.c: New file.
25474         New module 'expm1l-ieee'.
25475         * modules/expm1l-ieee: New file.
25477         Tests for module 'expm1f-ieee'.
25478         * modules/expm1f-ieee-tests: New file.
25479         * tests/test-expm1f-ieee.c: New file.
25481         New module 'expm1f-ieee'.
25482         * modules/expm1f-ieee: New file.
25484         Tests for module 'expm1-ieee'.
25485         * modules/expm1-ieee-tests: New file.
25486         * tests/test-expm1-ieee.c: New file.
25487         * tests/test-expm1-ieee.h: New file.
25489         New module 'expm1-ieee'.
25490         * modules/expm1-ieee: New file.
25491         * m4/expm1-ieee.m4: New file.
25492         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25493         whether expm1 works with a minus zero argument. Replace it if not.
25494         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25496         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25497         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25498         (Depends-on): Update conditions.
25499         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25500         AIX problem.
25502 2012-03-06  Bruno Haible  <bruno@clisp.org>
25504         Work around expm1f bug on IRIX 6.5.
25505         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25506         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25507         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25508         not work.
25509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25510         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25511         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25512         (Depends-on): Update conditions.
25513         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25515 2012-03-06  Bruno Haible  <bruno@clisp.org>
25517         Tests for module 'expm1l'.
25518         * modules/expm1l-tests: New file.
25519         * tests/test-expm1l.c: New file.
25521         New module 'expm1l'.
25522         * lib/math.in.h (expm1l): New declaration.
25523         * lib/expm1l.c: New file.
25524         * m4/expm1l.m4: New file.
25525         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25527         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25528         * modules/expm1l: New file.
25529         * tests/test-math-c++.cc: Check the declaration of expm1l.
25530         * doc/posix-functions/expm1l.texi: Mention the new module.
25532 2012-03-06  Bruno Haible  <bruno@clisp.org>
25534         Tests for module 'expm1f'.
25535         * modules/expm1f-tests: New file.
25536         * tests/test-expm1f.c: New file.
25538         New module 'expm1f'.
25539         * lib/math.in.h (expm1f): New declaration.
25540         * lib/expm1f.c: New file.
25541         * m4/expm1f.m4: New file.
25542         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25544         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25545         * modules/expm1f: New file.
25546         * tests/test-math-c++.cc: Check the declaration of expm1f.
25547         * doc/posix-functions/expm1f.texi: Mention the new module.
25549 2012-03-06  Bruno Haible  <bruno@clisp.org>
25551         Tests for module 'expm1'.
25552         * modules/expm1-tests: New file.
25553         * tests/test-expm1.c: New file.
25554         * tests/test-expm1.h: New file.
25556         New module 'expm1'.
25557         * lib/math.in.h (expm1): New declaration.
25558         * lib/expm1.c: New file.
25559         * m4/expm1.m4: New file.
25560         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25562         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25563         * modules/expm1: New file.
25564         * tests/test-math-c++.cc: Check the declaration of expm1.
25565         * doc/posix-functions/expm1.texi: Mention the new module.
25567 2012-03-06  Bruno Haible  <bruno@clisp.org>
25569         math: Ensure declarations of math functions.
25570         * modules/acosf (Depends-on): Add 'extensions'.
25571         * modules/asinf (Depends-on): Likewise.
25572         * modules/atan2f (Depends-on): Likewise.
25573         * modules/atanf (Depends-on): Likewise.
25574         * modules/cbrt (Depends-on): Likewise.
25575         * modules/cbrtf (Depends-on): Likewise.
25576         * modules/cbrtl (Depends-on): Likewise.
25577         * modules/copysignf (Depends-on): Likewise.
25578         * modules/copysignl (Depends-on): Likewise.
25579         * modules/cosf (Depends-on): Likewise.
25580         * modules/coshf (Depends-on): Likewise.
25581         * modules/expf (Depends-on): Likewise.
25582         * modules/fabsf (Depends-on): Likewise.
25583         * modules/fabsl (Depends-on): Likewise.
25584         * modules/fmaf (Depends-on): Likewise.
25585         * modules/fmal (Depends-on): Likewise.
25586         * modules/fmodf (Depends-on): Likewise.
25587         * modules/fmodl (Depends-on): Likewise.
25588         * modules/frexpf (Depends-on): Likewise.
25589         * modules/frexpl (Depends-on): Likewise.
25590         * modules/hypot (Depends-on): Likewise.
25591         * modules/hypotf (Depends-on): Likewise.
25592         * modules/hypotl (Depends-on): Likewise.
25593         * modules/ldexpf (Depends-on): Likewise.
25594         * modules/ldexpl (Depends-on): Likewise.
25595         * modules/log10f (Depends-on): Likewise.
25596         * modules/log10l (Depends-on): Likewise.
25597         * modules/log1p (Depends-on): Likewise.
25598         * modules/logb (Depends-on): Likewise.
25599         * modules/logf (Depends-on): Likewise.
25600         * modules/modff (Depends-on): Likewise.
25601         * modules/modfl (Depends-on): Likewise.
25602         * modules/powf (Depends-on): Likewise.
25603         * modules/remainderf (Depends-on): Likewise.
25604         * modules/remainderl (Depends-on): Likewise.
25605         * modules/rintf (Depends-on): Likewise.
25606         * modules/rintl (Depends-on): Likewise.
25607         * modules/sinf (Depends-on): Likewise.
25608         * modules/sinhf (Depends-on): Likewise.
25609         * modules/sqrtf (Depends-on): Likewise.
25610         * modules/tanf (Depends-on): Likewise.
25611         * modules/tanhf (Depends-on): Likewise.
25612         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25613         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25614         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25615         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25616         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25617         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25618         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25619         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25620         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25621         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25622         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25623         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25624         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25625         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25626         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25627         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25628         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25629         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25630         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25631         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25632         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25633         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25634         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25635         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25636         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25637         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25638         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25639         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25640         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25641         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25642         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25643         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25644         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25645         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25646         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25647         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25648         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25649         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25650         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25651         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25652         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25654 2012-03-06  Bruno Haible  <bruno@clisp.org>
25656         math: Update module names in warnings.
25657         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25658         tanl): Use specific module name in warn-on-use warning.
25660 2012-03-06  Bruno Haible  <bruno@clisp.org>
25662         expl: Simplify computation.
25663         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25665 2012-03-05  Bruno Haible  <bruno@clisp.org>
25667         exp* tests: More tests.
25668         * tests/test-exp.h: New file.
25669         * tests/test-exp.c: Include <float.h> and test-exp.h.
25670         (main): Invoke test_function.
25671         * tests/test-expf.c: Include <float.h> and test-exp.h.
25672         (main): Invoke test_function.
25673         * tests/test-expl.c: Include <float.h> and test-exp.h.
25674         (main): Invoke test_function.
25675         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25676         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25677         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25678         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25679         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25680         (Depends-on): Add 'float'.
25681         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25683         expl: Fix precision of computed result.
25684         * lib/expl.c: Completely rewritten.
25685         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25686         (Maintainer): Add me.
25687         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25689 2012-03-05  Bruno Haible  <bruno@clisp.org>
25691         cbrt* tests: More tests.
25692         * tests/test-cbrt.h: New file.
25693         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25694         (main): Invoke test_function.
25695         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25696         (main): Invoke test_function.
25697         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25698         (main): Invoke test_function.
25699         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25700         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25701         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25702         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25703         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25704         (Depends-on): Add 'float'.
25705         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25707 2012-03-05  Bruno Haible  <bruno@clisp.org>
25709         hypot* tests: More tests.
25710         * tests/test-hypot.h: New file, partially extracted from
25711         tests/test-hypotl.c.
25712         * tests/test-hypot.c: Include test-hypot.h.
25713         (main): Invoke test_function.
25714         * tests/test-hypotf.c: Include test-hypot.h.
25715         (main): Invoke test_function.
25716         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25717         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25718         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25719         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25720         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25721         tests/randomf.c.
25722         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25723         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25724         tests/randoml.c.
25725         (Depends-on): Add 'fpucw', 'float'.
25726         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25728 2012-03-05  Bruno Haible  <bruno@clisp.org>
25730         fpucw: Doc about FreeBSD.
25731         * lib/fpucw.h: Mention FreeBSD in comments.
25733 2012-03-04  Bruno Haible  <bruno@clisp.org>
25735         sqrt* tests: More tests.
25736         * tests/test-sqrt.h: New file.
25737         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25738         (main): Invoke test_function.
25739         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25740         (main): Invoke test_function.
25741         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25742         (main): Invoke test_function.
25743         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25744         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25745         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25746         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25747         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25748         (Depends-on): Add 'float'.
25749         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25751 2012-03-04  Bruno Haible  <bruno@clisp.org>
25753         remainder* tests: More tests.
25754         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25755         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25756         (main): Invoke test_function.
25757         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25758         (main): Invoke test_function.
25759         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25760         (main): Invoke test_function.
25761         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25762         tests/randomd.c.
25763         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25764         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25765         tests/randomf.c.
25766         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25767         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25768         tests/randoml.c.
25769         (Depends-on): Add 'float'.
25770         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25772 2012-03-04  Bruno Haible  <bruno@clisp.org>
25774         remainder, remainderf, remainderl: Fix computation for large quotients.
25775         * lib/remainder.c: Completely rewritten.
25776         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25777         USE_FLOAT.
25778         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25779         USE_LONG_DOUBLE.
25780         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25781         isnand, isinf. Remove round, fma.
25782         * modules/remainderf (Files): Add lib/remainder.c.
25783         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25784         Remove roundf, fmaf.
25785         * modules/remainderl (Files): Add lib/remainder.c.
25786         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25787         isinf. Remove roundl, fmal.
25788         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25789         REMAINDER_LIBM.
25790         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25791         REMAINDERF_LIBM.
25792         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25793         REMAINDERL_LIBM.
25795 2012-03-04  Bruno Haible  <bruno@clisp.org>
25797         fmod* tests: More tests.
25798         * tests/test-fmod.h (my_ldexp): New function.
25799         (test_function): Reduce amount of random numbers to test. Add tests
25800         of very large quotients x / y.
25801         * tests/test-fmod.c (MAX_EXP): New macro.
25802         * tests/test-fmodf.c (MAX_EXP): Likewise.
25803         * tests/test-fmodl.c (MAX_EXP): Likewise.
25805 2012-03-04  Bruno Haible  <bruno@clisp.org>
25807         fmod, fmodl: Fix computation for large quotients x / y.
25808         * lib/fmod.c: Completely rewritten.
25809         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25810         USE_LONG_DOUBLE.
25811         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25812         isnand. Remove fma.
25813         * modules/fmodl (Files): Add lib/fmod.c.
25814         (Depends-on): Add float, isfinite, signbit, fabsl,
25815         frexpl, ldexpl, isnanl. Remove fma.
25816         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25817         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25819 2012-03-03  Bruno Haible  <bruno@clisp.org>
25821         fmod* tests: More tests.
25822         * tests/test-fmod.h: New file.
25823         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25824         (main): Invoke test_function.
25825         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25826         (main): Invoke test_function.
25827         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25828         (main): Invoke test_function.
25829         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25830         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25831         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25832         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25833         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25834         (Depends-on): Add 'float'.
25835         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25837 2012-03-03  Bruno Haible  <bruno@clisp.org>
25839         rint* tests: More tests.
25840         * tests/test-rint.h: New file, partially extracted from
25841         tests/test-rintl.c.
25842         * tests/test-rint.c: Include test-rint.h.
25843         (main): Invoke test_function.
25844         * tests/test-rintf.c: Include test-rint.h.
25845         (main): Invoke test_function.
25846         * tests/test-rintl.c: Include test-rint.h.
25847         (main): Invoke test_function.
25848         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25849         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25850         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25851         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25852         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25853         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25855 2012-03-03  Bruno Haible  <bruno@clisp.org>
25857         modf* tests: More tests.
25858         * tests/test-modf.h: New file.
25859         * tests/test-modf.c: Include <float.h> and test-modf.h.
25860         (main): Invoke test_function.
25861         * tests/test-modff.c: Include <float.h> and test-modf.h.
25862         (main): Invoke test_function.
25863         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25864         (main): Invoke test_function.
25865         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25866         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25867         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25868         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25869         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25870         (Depends-on): Add 'float'.
25871         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25873 2012-03-03  Bruno Haible  <bruno@clisp.org>
25875         fabs* tests: More tests.
25876         * tests/test-fabs.h: New file, partially extracted from
25877         tests/test-fabsl.c.
25878         * tests/test-fabs.c (RANDOM): New macro.
25879         * tests/test-fabsf.c (RANDOM): New macro.
25880         * tests/test-fabsl.c (RANDOM): New macro.
25881         * modules/fabs-tests (Files): Add tests/randomd.c.
25882         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25883         * modules/fabsf-tests (Files): Add tests/randomf.c.
25884         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25885         * modules/fabsl-tests (Files): Add tests/randoml.c.
25886         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25888 2012-03-03  Bruno Haible  <bruno@clisp.org>
25890         ldexp* tests: More tests.
25891         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25892         * tests/test-ldexp.c (RANDOM): New macro.
25893         * tests/test-ldexpf.c (RANDOM): New macro.
25894         * tests/test-ldexpl.c (RANDOM): New macro.
25895         * modules/ldexp-tests (Files): Add tests/randomd.c.
25896         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25897         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25898         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25899         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25900         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25902 2012-03-03  Bruno Haible  <bruno@clisp.org>
25904         frexp* tests: More tests.
25905         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25906         * tests/test-frexp.c (RANDOM): New macro.
25907         * tests/test-frexpf.c (RANDOM): New macro.
25908         * tests/test-frexpl.c (RANDOM): New macro.
25909         * modules/frexp-tests (Files): Add tests/randomd.c.
25910         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25911         * modules/frexpf-tests (Files): Add tests/randomf.c.
25912         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25913         * modules/frexpl-tests (Files): Add tests/randoml.c.
25914         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25916 2012-03-03  Bruno Haible  <bruno@clisp.org>
25918         Support for pseudo-random numbers in tests.
25919         * tests/randomf.c: New file.
25920         * tests/randomd.c: New file.
25921         * tests/randoml.c: New file.
25922         * tests/macros.h (randomf, randomd, randoml): New declarations.
25924 2012-03-03  Bruno Haible  <bruno@clisp.org>
25926         frexp* tests: Refactor.
25927         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25928         * tests/test-frexp.c: Include and use it.
25929         * tests/test-frexpf.c: Likewise.
25930         * tests/test-frexpl.c: Likewise.
25931         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25932         * modules/frexpf-tests (Files): Likewise.
25933         * modules/frexpl-tests (Files): Likewise.
25935 2012-03-02  Jim Meyering  <meyering@redhat.com>
25937         maint: don't specify XZ_OPT=-9ev in dist-related rule
25938         Using xz's -9 option is warranted only if you have a very large
25939         tarball (see xz's documentation for the sizes vs. presets), and
25940         requires 64MiB of memory at decompression time.
25941         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25942         Automake's default of just "-e" is fine.  Override on a
25943         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25945 2012-03-01  Eric Blake  <eblake@redhat.com>
25947         maint.mk: allow announcement for non-gnulib project
25948         * maint.mk (announcement): Skip gnulib version if not used.
25950 2012-03-01  Jim Meyering  <meyering@redhat.com>
25952         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25953         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25954         envvar settings cannot interfere.  Otherwise, setting envvars like
25955         prohibit=foo require=bar, etc. would cause spurious test failures.
25957 2012-03-01  Eric Blake  <eblake@redhat.com>
25959         maint.mk: add per-line exclusions to prohibitions
25960         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25961         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25962         (sc_const_long_option): Use it.
25964 2012-03-01  Bruno Haible  <bruno@clisp.org>
25966         Tests for module 'expl-ieee'.
25967         * modules/expl-ieee-tests: New file.
25968         * tests/test-expl-ieee.c: New file.
25970         New module 'expl-ieee'.
25971         * modules/expl-ieee: New file.
25973         Tests for module 'exp-ieee'.
25974         * modules/exp-ieee-tests: New file.
25975         * tests/test-exp-ieee.c: New file.
25977         New module 'exp-ieee'.
25978         * modules/exp-ieee: New file.
25980         Tests for module 'expf-ieee'.
25981         * modules/expf-ieee-tests: New file.
25982         * tests/test-expf-ieee.c: New file.
25983         * tests/test-exp-ieee.h: New file.
25985         New module 'expf-ieee'.
25986         * modules/expf-ieee: New file.
25988 2012-02-29  Bruno Haible  <bruno@clisp.org>
25990         cbrtl-ieee: Work around test failure on IRIX 6.5.
25991         * m4/cbrtl-ieee.m4: New file.
25992         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25993         test whether cbrtl works with a minus zero argument. Replace it if not.
25994         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25996         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25997         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25998         (Depends-on): Update conditions.
25999         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
26000         m4/signbit.m4.
26001         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
26002         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
26003         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
26005         Tests for module 'cbrtl-ieee'.
26006         * modules/cbrtl-ieee-tests: New file.
26007         * tests/test-cbrtl-ieee.c: New file.
26009         New module 'cbrtl-ieee'.
26010         * modules/cbrtl-ieee: New file.
26012         Tests for module 'cbrt-ieee'.
26013         * modules/cbrt-ieee-tests: New file.
26014         * tests/test-cbrt-ieee.c: New file.
26016         New module 'cbrt-ieee'.
26017         * modules/cbrt-ieee: New file.
26019         Tests for module 'cbrtf-ieee'.
26020         * modules/cbrtf-ieee-tests: New file.
26021         * tests/test-cbrtf-ieee.c: New file.
26022         * tests/test-cbrt-ieee.h: New file.
26024         New module 'cbrtf-ieee'.
26025         * modules/cbrtf-ieee: New file.
26027 2012-02-29  Bruno Haible  <bruno@clisp.org>
26029         cbrtf: Work around bug in IRIX 6.5 system function.
26030         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
26031         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
26032         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
26033         work.
26034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
26035         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
26036         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
26037         (Depends-on): Update conditions.
26038         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
26040 2012-02-29  Bruno Haible  <bruno@clisp.org>
26042         Tests for module 'cbrtl'.
26043         * modules/cbrtl-tests: New file.
26044         * tests/test-cbrtl.c: New file.
26046         New module 'cbrtl'.
26047         * lib/math.in.h (cbrtl): New declaration.
26048         * lib/cbrtl.c: New file.
26049         * m4/cbrtl.m4: New file.
26050         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
26051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
26052         HAVE_DECL_CBRTL.
26053         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
26054         HAVE_DECL_CBRTL.
26055         * modules/cbrtl: New file.
26056         * tests/test-math-c++.cc: Check the declaration of cbrtl.
26057         * doc/posix-functions/cbrtl.texi: Mention the new module.
26059 2012-02-29  Bruno Haible  <bruno@clisp.org>
26061         Tests for module 'cbrtf'.
26062         * modules/cbrtf-tests: New file.
26063         * tests/test-cbrtf.c: New file.
26065         New module 'cbrtf'.
26066         * lib/math.in.h (cbrtf): New declaration.
26067         * lib/cbrtf.c: New file.
26068         * m4/cbrtf.m4: New file.
26069         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
26070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
26071         HAVE_DECL_CBRTF.
26072         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
26073         HAVE_DECL_CBRTF.
26074         * modules/cbrtf: New file.
26075         * tests/test-math-c++.cc: Check the declaration of cbrtf.
26076         * doc/posix-functions/cbrtf.texi: Mention the new module.
26078 2012-02-29  Bruno Haible  <bruno@clisp.org>
26080         cbrt: Provide replacement on MSVC and Minix.
26081         * lib/math.in.h (cbrt): New declaration.
26082         * lib/cbrt.c: New file.
26083         * m4/cbrt.m4: New file.
26084         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
26085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
26086         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
26087         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
26088         (Depends-on): Add dependencies.
26089         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
26090         * tests/test-math-c++.cc: Check the declaration of cbrt.
26091         * doc/posix-functions/cbrt.texi: Mention that the module provides a
26092         replacement.
26094 2012-02-29  Bruno Haible  <bruno@clisp.org>
26096         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
26097         * m4/hypotl-ieee.m4: New file.
26098         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
26099         test whether hypotl works with mixed NaN and Infinity arguments.
26100         Replace it if not.
26101         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
26102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
26103         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
26104         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
26105         (Depends-on): Update conditions.
26106         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
26107         (Depends-on): Add hypot-ieee.
26108         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
26109         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
26111         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
26112         * m4/hypotf-ieee.m4: New file.
26113         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
26114         test whether hypotf works with mixed NaN and Infinity arguments.
26115         Replace it if not.
26116         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
26117         (Depends-on): Add hypot-ieee.
26118         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
26119         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
26121         hypot-ieee: Work around test failure on OSF/1 and native Windows.
26122         * lib/math.in.h (hypot): New declaration.
26123         * lib/hypot.c: New file.
26124         * m4/hypot-ieee.m4: New file.
26125         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
26126         whether hypot works with mixed NaN and Infinity arguments. Replace it
26127         if not.
26128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
26129         REPLACE_HYPOT.
26130         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
26131         * modules/hypot (Files): Add lib/hypot.c.
26132         (Depends-on): Add dependencies.
26133         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
26134         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
26135         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
26136         * tests/test-math-c++.cc: Check the declaration of hypot.
26137         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
26139         Tests for module 'hypotl-ieee'.
26140         * modules/hypotl-ieee-tests: New file.
26141         * tests/test-hypotl-ieee.c: New file.
26143         New module 'hypotl-ieee'.
26144         * modules/hypotl-ieee: New file.
26146         Tests for module 'hypot-ieee'.
26147         * modules/hypot-ieee-tests: New file.
26148         * tests/test-hypot-ieee.c: New file.
26150         New module 'hypot-ieee'.
26151         * modules/hypot-ieee: New file.
26153         Tests for module 'hypotf-ieee'.
26154         * modules/hypotf-ieee-tests: New file.
26155         * tests/test-hypotf-ieee.c: New file.
26156         * tests/test-hypot-ieee.h: New file.
26158         New module 'hypotf-ieee'.
26159         * modules/hypotf-ieee: New file.
26161 2012-02-29  Bruno Haible  <bruno@clisp.org>
26163         Remove unused variables.
26164         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
26165         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
26166         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
26167         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
26169 2012-02-29  Eric Blake  <eblake@redhat.com>
26171         termios: fix pid_t always, not just for tcgetsid
26172         * doc/posix-headers/termios.texi (termios.h): Mention problem.
26173         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
26174         just when building tcgetsid.
26176 2012-02-29  Bruno Haible  <bruno@clisp.org>
26178         Tests for module 'hypotl'.
26179         * modules/hypotl-tests: New file.
26180         * tests/test-hypotl.c: New file.
26182         New module 'hypotl'.
26183         * lib/math.in.h (hypotl): New declaration.
26184         * lib/hypotl.c: New file.
26185         * m4/hypotl.m4: New file.
26186         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
26188         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
26189         * modules/hypotl: New file.
26190         * tests/test-math-c++.cc: Check the hypotl declaration.
26191         * doc/posix-functions/hypotl.texi: Mention the new module.
26193 2012-02-29  Eric Blake  <eblake@redhat.com>
26195         tcgetsid: fix cygwin header bug
26196         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
26198         docs: update cygwin progress
26199         * doc/posix-functions/llround.texi (llround): Added in cygwin
26200         1.7.8.
26201         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
26202         * doc/glibc-functions/program_invocation_name.texi
26203         (program_invocation_name): Likewise.
26204         * doc/glibc-functions/program_invocation_short_name.texi
26205         (program_invocation_short_name): Likewise.
26206         * doc/glibc-functions/madvise.texi (madvise): Likewise.
26207         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
26208         Likewise.
26209         * doc/posix-functions/pthread_spin_destroy.texi
26210         (pthread_spin_destroy): Added in cygwin 1.7.10.
26211         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
26212         Likewise.
26213         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
26214         Likewise.
26215         * doc/posix-functions/pthread_spin_trylock.texi
26216         (pthread_spin_trylock): Likewise.
26217         * doc/posix-functions/pthread_spin_unlock.texi
26218         (pthread_spin_unlock): Likewise.
26219         * doc/posix-functions/pthread_setschedprio.texi
26220         (pthread_setschedprio): Likewise.
26221         * doc/posix-functions/pthread_attr_getstack.texi
26222         (pthread_attr_getstack): Likewise.
26223         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
26224         (pthread_attr_getstackaddr): Likewise.
26225         * doc/glibc-functions/pthread_getattr_np.texi
26226         (pthread_getattr_np): Likewise.
26227         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
26228         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
26229         * doc/posix-functions/clock_settime.texi (clock_settime):
26230         Likewise.
26231         * doc/posix-functions/pthread_attr_getguardsize.texi
26232         (pthread_attr_getguardsize): Likewise.
26233         * doc/posix-functions/pthread_attr_setguardsize.texi
26234         (pthread_attr_setguardsize): Likewise.
26235         * doc/posix-functions/pthread_attr_setstack.texi
26236         (pthread_attr_setstack): Likewise.
26237         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
26238         (pthread_attr_setstackaddr): Likewise.
26239         * doc/posix-functions/clock_getcpuclockid.texi
26240         (clock_getcpuclockid): Likewise.
26241         * doc/posix-functions/pthread_getcpuclockid.texi
26242         (pthread_getcpuclockid): Likewise.
26243         * doc/glibc-functions/error.texi (error): Likewise.
26244         * doc/glibc-functions/error_at_line.texi (error_at_line):
26245         Likewise.
26246         * doc/glibc-functions/error_message_count.texi
26247         (error_message_count): Likewise.
26248         * doc/glibc-functions/error_one_per_line.texi
26249         (error_one_per_line): Likewise.
26250         * doc/glibc-functions/error_print_progname.texi
26251         (error_print_progname): Likewise.
26252         * doc/posix-functions/pthread_condattr_getclock.texi
26253         (pthread_condattr_getclock): Likewise.
26254         * doc/posix-functions/pthread_condattr_setclock.texi
26255         (pthread_condattr_setclock): Likewise.
26256         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
26257         Likewise.
26258         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
26259         * doc/glibc-functions/getpt.texi (getpt): Likewise.
26260         * doc/glibc-functions/get_current_dir_name.texi
26261         (get_current_dir_name): Likewise.
26262         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
26263         Likewise.
26264         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
26265         wrong return type.
26266         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
26267         1.7.11.
26269 2012-02-29  Bruno Haible  <bruno@clisp.org>
26271         Tests for module 'hypotf'.
26272         * modules/hypotf-tests: New file.
26273         * tests/test-hypotf.c: New file.
26275         New module 'hypotf'.
26276         * lib/math.in.h (hypotf): New declaration.
26277         * lib/hypotf.c: New file.
26278         * m4/hypotf.m4: New file.
26279         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
26281         REPLACE_HYPOTF.
26282         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
26283         REPLACE_HYPOTF.
26284         * modules/hypotf: New file.
26285         * tests/test-math-c++.cc: Check the hypotf declaration.
26286         * doc/posix-functions/hypotf.texi: Mention the new module.
26288         hypot: Prepare for hypotf module.
26289         * m4/hypot.m4: New file.
26290         * modules/hypot (Files): Add m4/hypot.m4.
26291         (configure.ac): Invoke gl_FUNC_HYPOT.
26293 2012-02-29  Bruno Haible  <bruno@clisp.org>
26295         hypot tests: More tests.
26296         * tests/test-hypot.c: Include <float.h>.
26297         (main): Add tests about overflow and underflow.
26299 2012-02-29  Bruno Haible  <bruno@clisp.org>
26301         math code: Add comments.
26302         * lib/acosl.c: Add comment about related glibc source files.
26303         * lib/asinl.c: Likewise.
26304         * lib/atanl.c: Likewise.
26305         * lib/expl.c: Likewise.
26306         * lib/logl.c: Likewise.
26307         * lib/sincosl.c: Likewise.
26308         * lib/sinl.c: Likewise.
26309         * lib/tanl.c: Likewise.
26310         * lib/trigl.c: Likewise.
26311         * lib/cosl.c: Likewise. Fix comments.
26313 2012-02-28  Bruno Haible  <bruno@clisp.org>
26315         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
26316         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
26317         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
26318         HUGE_VALL are defined.
26319         (numeric_equald): Renamed from numeric_equal.
26320         (numeric_equalf, numeric_equall): New functions.
26321         (main): Check also HUGE_VALF, HUGE_VALL.
26322         * modules/math-tests (Files): Add tests/macros.h.
26323         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
26324         HUGE_VALL.
26326 2012-02-28  Bruno Haible  <bruno@clisp.org>
26328         doc: Move ISO C11 feature notes into POSIX chapters.
26329         * doc/posix-functions/aligned_alloc.texi: Renamed from
26330         doc/glibc-functions/aligned_alloc.texi.
26331         * doc/posix-functions/quick_exit.texi: Renamed from
26332         doc/glibc-functions/quick_exit.texi.
26333         * doc/posix-headers/uchar.texi: Renamed from
26334         doc/glibc-headers/uchar.texi.
26335         * doc/posix-functions/c16rtomb.texi: Renamed from
26336         doc/glibc-functions/c16rtomb.texi.
26337         * doc/posix-functions/c32rtomb.texi: Renamed from
26338         doc/glibc-functions/c32rtomb.texi.
26339         * doc/posix-functions/mbrtoc16.texi: Renamed from
26340         doc/glibc-functions/mbrtoc16.texi.
26341         * doc/posix-functions/mbrtoc32.texi: Renamed from
26342         doc/glibc-functions/mbrtoc32.texi.
26343         * doc/gnulib.texi: Update.
26344         (Glibc uchar.h): Remove section.
26345         Suggested by Eric Blake.
26347 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
26349         stdnoreturn: port to MSVC better
26350         MSVC standard headers use __declspec(noreturn), so #define noreturn
26351         to empty on that platform.  Reported by Bruno Haible in
26352         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
26353         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
26354         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
26356 2012-02-28  Bruno Haible  <bruno@clisp.org>
26358         doc: Mention new glibc headers and functions.
26359         * doc/glibc-headers/uchar.texi: New file.
26360         * doc/glibc-functions/aligned_alloc.texi: New file.
26361         * doc/glibc-functions/c16rtomb.texi: New file.
26362         * doc/glibc-functions/c32rtomb.texi: New file.
26363         * doc/glibc-functions/clock_adjtime.texi: New file.
26364         * doc/glibc-functions/fanotify_init.texi: New file.
26365         * doc/glibc-functions/fanotify_mark.texi: New file.
26366         * doc/glibc-functions/inet6_opt_append.texi: New file.
26367         * doc/glibc-functions/inet6_opt_find.texi: New file.
26368         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26369         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26370         * doc/glibc-functions/inet6_opt_init.texi: New file.
26371         * doc/glibc-functions/inet6_opt_next.texi: New file.
26372         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26373         * doc/glibc-functions/inet6_rth_add.texi: New file.
26374         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26375         * doc/glibc-functions/inet6_rth_init.texi: New file.
26376         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26377         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26378         * doc/glibc-functions/inet6_rth_space.texi: New file.
26379         * doc/glibc-functions/login.texi: New file.
26380         * doc/glibc-functions/mbrtoc16.texi: New file.
26381         * doc/glibc-functions/mbrtoc32.texi: New file.
26382         * doc/glibc-functions/name_to_handle_at.texi: New file.
26383         * doc/glibc-functions/ntp_gettimex.texi: New file.
26384         * doc/glibc-functions/open_by_handle_at.texi: New file.
26385         * doc/glibc-functions/prlimit.texi: New file.
26386         * doc/glibc-functions/process_vm_readv.texi: New file.
26387         * doc/glibc-functions/process_vm_writev.texi: New file.
26388         * doc/glibc-functions/recvmmsg.texi: New file.
26389         * doc/glibc-functions/scandirat.texi: New file.
26390         * doc/glibc-functions/sendmmsg.texi: New file.
26391         * doc/glibc-functions/setns.texi: New file.
26392         * doc/glibc-functions/timespec_get.texi: New file.
26393         * doc/gnulib.texi: Include them.
26394         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26395         sections.
26396         Reported by Eric Blake.
26398 2012-02-28  Bruno Haible  <bruno@clisp.org>
26400         Avoid compilation errors with MSVC option -fp:strict.
26401         * lib/floor.c: Use MSVC specific pragma fenv_access.
26402         * lib/ceil.c: Likewise.
26403         * lib/trunc.c: Likewise.
26404         * lib/round.c: Likewise.
26405         * lib/rint.c: Likewise.
26406         * lib/fma.c: Likewise.
26407         * lib/integer_length.c: Likewise.
26408         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26409         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26410         * tests/test-floor2.c: Likewise.
26411         * tests/test-floorf2.c: Likewise.
26412         * tests/test-ceil2.c: Likewise.
26413         * tests/test-ceilf2.c: Likewise.
26414         * tests/test-trunc2.c: Likewise.
26415         * tests/test-truncf2.c: Likewise.
26416         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26418 2012-02-27  Bruno Haible  <bruno@clisp.org>
26420         Tests for module 'sqrtl-ieee'.
26421         * modules/sqrtl-ieee-tests: New file.
26422         * tests/test-sqrtl-ieee.c: New file.
26424         New module 'sqrtl-ieee'.
26425         * modules/sqrtl-ieee: New file.
26427         Tests for module 'sqrt-ieee'.
26428         * modules/sqrt-ieee-tests: New file.
26429         * tests/test-sqrt-ieee.c: New file.
26431         New module 'sqrt-ieee'.
26432         * modules/sqrt-ieee: New file.
26434         Tests for module 'sqrtf-ieee'.
26435         * modules/sqrtf-ieee-tests: New file.
26436         * tests/test-sqrtf-ieee.c: New file.
26437         * tests/test-sqrt-ieee.h: New file.
26439         New module 'sqrtf-ieee'.
26440         * modules/sqrtf-ieee: New file.
26442 2012-02-27  Bruno Haible  <bruno@clisp.org>
26444         remainderl-ieee: Work around test failure on OSF/1.
26445         * m4/remainderl-ieee.m4: New file.
26446         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26447         present, test whether remainderl works with a zero second argument.
26448         Replace it if not.
26449         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26451         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26452         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26453         (Depends-on): Update conditions.
26454         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26455         (Depends-on): Add remainder-ieee.
26456         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26457         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26458         module.
26460         remainderf-ieee: Work around test failure on OSF/1.
26461         * m4/remainderf-ieee.m4: New file.
26462         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26463         present, test whether remainderf works with a zero second argument.
26464         Replace it if not.
26465         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26467         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26468         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26469         (Depends-on): Update conditions.
26470         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26471         (Depends-on): Add remainder-ieee.
26472         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26473         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26474         module.
26476         remainder-ieee: Work around test failure on OSF/1.
26477         * m4/remainder-ieee.m4: New file.
26478         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26479         present, test whether remainder works with a zero second argument.
26480         Replace it if not.
26481         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26483         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26484         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26485         (Depends-on): Update dependencies.
26486         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26487         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26488         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26490         Tests for module 'remainderl-ieee'.
26491         * modules/remainderl-ieee-tests: New file.
26492         * tests/test-remainderl-ieee.c: New file.
26494         New module 'remainderl-ieee'.
26495         * modules/remainderl-ieee: New file.
26497         Tests for module 'remainder-ieee'.
26498         * modules/remainder-ieee-tests: New file.
26499         * tests/test-remainder-ieee.c: New file.
26501         New module 'remainder-ieee'.
26502         * modules/remainder-ieee: New file.
26504         Tests for module 'remainderf-ieee'.
26505         * modules/remainderf-ieee-tests: New file.
26506         * tests/test-remainderf-ieee.c: New file.
26507         * tests/test-remainder-ieee.h: New file.
26509         New module 'remainderf-ieee'.
26510         * modules/remainderf-ieee: New file.
26512 2012-02-27  Bruno Haible  <bruno@clisp.org>
26514         modff, modfl: Fix configure syntax error.
26515         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26516         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26518 2012-02-27  Bruno Haible  <bruno@clisp.org>
26520         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26521         * m4/fmodl-ieee.m4: New file.
26522         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26523         whether fmodl works with zero arguments. Replace it if not.
26524         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26525         (Depends-on): Add fmod-ieee.
26526         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26527         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26529         fmodf-ieee: Work around test failure on OSF/1.
26530         * m4/fmodf-ieee.m4: New file.
26531         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26532         whether fmodf works with zero arguments. Replace it if not.
26533         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26535         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26536         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26537         (Depends-on): Update dependencies.
26538         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26539         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26540         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26542         fmodf-ieee: Work around test failure on MSVC 9.
26543         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26544         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26546         fmod-ieee: Work around test failures on OSF/1, mingw.
26547         * m4/fmod-ieee.m4: New file.
26548         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26549         whether fmod works with zero arguments. Replace it if not.
26550         * lib/math.in.h (fmod): New declaration.
26551         * lib/fmod.c: New file.
26552         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26554         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26555         * modules/fmod (Files): Add lib/fmod.c.
26556         (Depends-on): Add math, isinf, trunc, fma.
26557         (configure.ac): Arrange to compile lib/fmod.c if needed.
26558         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26559         m4/signbit.m4.
26560         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26561         * tests/test-math-c++.cc: Check the declaration of fmod.
26562         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26564         fmodl-ieee: Fix test failures.
26565         * lib/fmodl.c (fmodl): Treat Inf specially.
26566         * modules/fmodl (Depends-on): Add isinf.
26568         Tests for module 'fmodl-ieee'.
26569         * modules/fmodl-ieee-tests: New file.
26570         * tests/test-fmodl-ieee.c: New file.
26572         New module 'fmodl-ieee'.
26573         * modules/fmodl-ieee: New file.
26575         Tests for module 'fmod-ieee'.
26576         * modules/fmod-ieee-tests: New file.
26577         * tests/test-fmod-ieee.c: New file.
26579         New module 'fmod-ieee'.
26580         * modules/fmod-ieee: New file.
26582         Tests for module 'fmodf-ieee'.
26583         * modules/fmodf-ieee-tests: New file.
26584         * tests/test-fmodf-ieee.c: New file.
26585         * tests/test-fmod-ieee.h: New file.
26587         New module 'fmodf-ieee'.
26588         * modules/fmodf-ieee: New file.
26590 2012-02-27  Bruno Haible  <bruno@clisp.org>
26592         Tests for module 'rintl-ieee'.
26593         * modules/rintl-ieee-tests: New file.
26594         * tests/test-rintl-ieee.c: New file.
26596         New module 'rintl-ieee'.
26597         * modules/rintl-ieee: New file.
26599         Tests for module 'rint-ieee'.
26600         * modules/rint-ieee-tests: New file.
26601         * tests/test-rint-ieee.c: New file.
26603         New module 'rint-ieee'.
26604         * modules/rint-ieee: New file.
26606         Tests for module 'rintf-ieee'.
26607         * modules/rintf-ieee-tests: New file.
26608         * tests/test-rintf-ieee.c: New file.
26609         * tests/test-rint-ieee.h: New file.
26611         New module 'rintf-ieee'.
26612         * modules/rintf-ieee: New file.
26614 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26616         regex: re_search etc. should return -2 when memory exhausted
26617         This bug was uncovered when testing 'grep'.  Without the fix,
26618         re_search and friends return -1 when memory is exhausted, but -1
26619         means no match, and this causes grep to falsely report no-match
26620         instead of memory-exhaustion.  See
26621         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26622         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26623         trouble; this can occur if re_search_internal ran out of memory.
26625 2012-02-26  Bruno Haible  <bruno@clisp.org>
26627         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26628         * m4/modfl-ieee.m4: New file.
26629         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26630         whether modfl works with Inf. Replace it if not.
26631         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26633         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26634         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26635         (Depends-on): Update dependencies.
26636         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26637         m4/signbit.m4.
26638         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26639         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26641         modfl-ieee: Fix dependencies.
26642         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26644         modfl-ieee: Fix test failures.
26645         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26646         * modules/modfl (Depends-on): Add isfinite, isinf.
26648         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26649         * m4/modff-ieee.m4: New file.
26650         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26651         whether modff works with NaN and Inf. Replace it if not.
26652         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26654         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26655         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26656         (Depends-on): Update dependencies.
26657         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26658         m4/signbit.m4.
26659         (Depends-on): Add modf-ieee.
26660         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26661         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26663         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26664         * m4/modf-ieee.m4: New file.
26665         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26666         whether modf works with NaN and Inf. Replace it if not.
26667         * lib/math.in.h (modf): New declaration.
26668         * lib/modf.c: New file.
26669         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26671         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26672         * modules/modf (Files): Add lib/modf.c.
26673         (Depends-on): Add math, isfinite, trunc, isinf.
26674         (configure.ac): Addrange to compile lib/modf.c if needed.
26675         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26676         m4/signbit.m4.
26677         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26678         * tests/test-math-c++.cc: Check the declaration of modf.
26679         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26681         Tests for module 'modfl-ieee'.
26682         * modules/modfl-ieee-tests: New file.
26683         * tests/test-modfl-ieee.c: New file.
26685         New module 'modfl-ieee'.
26686         * modules/modfl-ieee: New file.
26688         Tests for module 'modf-ieee'.
26689         * modules/modf-ieee-tests: New file.
26690         * tests/test-modf-ieee.c: New file.
26692         New module 'modf-ieee'.
26693         * modules/modf-ieee: New file.
26695         Tests for module 'modff-ieee'.
26696         * modules/modff-ieee-tests: New file.
26697         * tests/test-modff-ieee.c: New file.
26698         * tests/test-modf-ieee.h: New file.
26700         New module 'modff-ieee'.
26701         * modules/modff-ieee: New file.
26703 2012-02-26  Bruno Haible  <bruno@clisp.org>
26705         Tests for module 'fabsl-ieee'.
26706         * modules/fabsl-ieee-tests: New file.
26707         * tests/test-fabsl-ieee.c: New file.
26709         New module 'fabsl-ieee'.
26710         * modules/fabsl-ieee: New file.
26712         Tests for module 'fabs-ieee'.
26713         * modules/fabs-ieee-tests: New file.
26714         * tests/test-fabs-ieee.c: New file.
26716         New module 'fabs-ieee'.
26717         * modules/fabs-ieee: New file.
26719         Tests for module 'fabsf-ieee'.
26720         * modules/fabsf-ieee-tests: New file.
26721         * tests/test-fabsf-ieee.c: New file.
26722         * tests/test-fabs-ieee.h: New file.
26724         New module 'fabsf-ieee'.
26725         * modules/fabsf-ieee: New file.
26727 2012-02-26  Bruno Haible  <bruno@clisp.org>
26729         Tests for module 'fmal-ieee'.
26730         * modules/fmal-ieee-tests: New file.
26731         * tests/test-fmal-ieee.c: New file.
26733         New module 'fmal-ieee'.
26734         * modules/fmal-ieee: New file.
26736         Tests for module 'fma-ieee'.
26737         * modules/fma-ieee-tests: New file.
26738         * tests/test-fma-ieee.c: New file.
26740         New module 'fma-ieee'.
26741         * modules/fma-ieee: New file.
26743         Tests for module 'fmaf-ieee'.
26744         * modules/fmaf-ieee-tests: New file.
26745         * tests/test-fmaf-ieee.c: New file.
26746         * tests/test-fma-ieee.h: New file.
26748         New module 'fmaf-ieee'.
26749         * modules/fmaf-ieee: New file.
26751 2012-02-26  Bruno Haible  <bruno@clisp.org>
26753         Tests for module 'ldexpl-ieee'.
26754         * modules/ldexpl-ieee-tests: New file.
26755         * tests/test-ldexpl-ieee.c: New file.
26757         New module 'ldexpl-ieee'.
26758         * modules/ldexpl-ieee: New file.
26760         Tests for module 'ldexp-ieee'.
26761         * modules/ldexp-ieee-tests: New file.
26762         * tests/test-ldexp-ieee.c: New file.
26764         New module 'ldexp-ieee'.
26765         * modules/ldexp-ieee: New file.
26767         Tests for module 'ldexpf-ieee'.
26768         * modules/ldexpf-ieee-tests: New file.
26769         * tests/test-ldexpf-ieee.c: New file.
26770         * tests/test-ldexp-ieee.h: New file.
26772         New module 'ldexpf-ieee'.
26773         * modules/ldexpf-ieee: New file.
26775 2012-02-26  Bruno Haible  <bruno@clisp.org>
26777         Refactor frexp*-ieee tests.
26778         * tests/test-frexp-ieee.h: New file.
26779         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26780         (main): Just call test_function.
26781         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26782         (main): Just call test_function.
26783         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26784         (main): Just call test_function.
26785         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26786         * modules/frexp-ieee-tests (Files): Likewise.
26787         * modules/frexpl-ieee-tests (Files): Likewise.
26789         Tests for module 'frexpl-ieee'.
26790         * modules/frexpl-ieee-tests: New file.
26791         * tests/test-frexpl-ieee.c: New file.
26793         New module 'frexpl-ieee'.
26794         * modules/frexpl-ieee: New file.
26796         Tests for module 'frexp-ieee'.
26797         * modules/frexp-ieee-tests: New file.
26798         * tests/test-frexp-ieee.c: New file.
26800         New module 'frexp-ieee'.
26801         * modules/frexp-ieee: New file.
26803         Tests for module 'frexpf-ieee'.
26804         * modules/frexpf-ieee-tests: New file.
26805         * tests/test-frexpf-ieee.c: New file.
26807         New module 'frexpf-ieee'.
26808         * modules/frexpf-ieee: New file.
26810 2012-02-26  Bruno Haible  <bruno@clisp.org>
26812         roundl-ieee tests: More tests.
26813         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26814         (main): Add tests for [MX] shaded specification in POSIX.
26815         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26816         (Depends-on): Add isnanl-nolibm.
26818         round-ieee tests: More tests.
26819         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26820         (main): Add tests for [MX] shaded specification in POSIX.
26821         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26822         (Depends-on): Add isnand-nolibm.
26824         roundf-ieee tests: More tests.
26825         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26826         (main): Add tests for [MX] shaded specification in POSIX.
26827         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26828         (Depends-on): Add isnanf-nolibm.
26830         truncl-ieee tests: More tests.
26831         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26832         (main): Add tests for [MX] shaded specification in POSIX.
26833         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26834         (Depends-on): Add isnanl-nolibm.
26836         trunc-ieee tests: More tests.
26837         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26838         (main): Add tests for [MX] shaded specification in POSIX.
26839         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26840         (Depends-on): Add isnand-nolibm.
26842         truncf-ieee tests: More tests.
26843         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26844         (main): Add tests for [MX] shaded specification in POSIX.
26845         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26846         (Depends-on): Add isnanf-nolibm.
26848         ceill-ieee tests: More tests.
26849         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26850         (main): Add tests for [MX] shaded specification in POSIX.
26851         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26852         (Depends-on): Add isnanl-nolibm.
26854         ceil-ieee tests: More tests.
26855         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26856         (main): Add tests for [MX] shaded specification in POSIX.
26857         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26858         (Depends-on): Add isnand-nolibm.
26860         ceilf-ieee tests: More tests.
26861         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26862         (main): Add tests for [MX] shaded specification in POSIX.
26863         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26864         (Depends-on): Add isnanf-nolibm.
26866         floorl-ieee tests: More tests.
26867         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26868         (main): Add tests for [MX] shaded specification in POSIX.
26869         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26870         (Depends-on): Add isnanl-nolibm.
26872         floor-ieee tests: More tests.
26873         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26874         (main): Add tests for [MX] shaded specification in POSIX.
26875         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26876         (Depends-on): Add isnand-nolibm.
26878         floorf-ieee tests: More tests.
26879         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26880         (main): Add tests for [MX] shaded specification in POSIX.
26881         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26882         (Depends-on): Add isnanf-nolibm.
26884 2012-02-26  Bruno Haible  <bruno@clisp.org>
26886         fpieee: More comments.
26887         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26889 2012-02-25  Bruno Haible  <bruno@clisp.org>
26891         Tests for module 'log10l'.
26892         * modules/log10l-tests: New file.
26893         * tests/test-log10l.c: New file.
26894         * tests/test-math-c++.cc: Check the declaration of log10l.
26896         New module 'log10l'.
26897         * lib/math.in.h (log10l): New declaration.
26898         * lib/log10l.c: New file.
26899         * m4/log10l.m4: New file.
26900         * modules/log10l: New file.
26901         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26903         HAVE_DECL_LOG10L.
26904         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26905         HAVE_DECL_LOG10L.
26906         * doc/posix-functions/log10l.texi: Mention the new module.
26908 2012-02-25  Bruno Haible  <bruno@clisp.org>
26910         fmodl, remainder*: Avoid wrong results due to rounding errors.
26911         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26912         expected bounds.
26913         * lib/remainderf.c (remainderf): Likewise.
26914         * lib/remainder.c (remainder): Likewise.
26915         * lib/remainderl.c (remainderl): Likewise.
26917 2012-02-25  Bruno Haible  <bruno@clisp.org>
26919         Tests for module 'remainderl'.
26920         * modules/remainderl-tests: New file.
26921         * tests/test-remainderl.c: New file.
26922         * tests/test-math-c++.cc: Check the declaration of remainderl.
26924         New module 'remainderl'.
26925         * lib/math.in.h (remainderl): New declaration.
26926         * lib/remainderl.c: New file.
26927         * m4/remainderl.m4: New file.
26928         * modules/remainderl: New file.
26929         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26931         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26932         HAVE_REMAINDERL.
26933         * doc/posix-functions/remainderl.texi: Mention the new module.
26935 2012-02-25  Bruno Haible  <bruno@clisp.org>
26937         Tests for module 'remainderf'.
26938         * modules/remainderf-tests: New file.
26939         * tests/test-remainderf.c: New file.
26940         * tests/test-math-c++.cc: Check the declaration of remainderf.
26942         New module 'remainderf'.
26943         * lib/math.in.h (remainderf): New declaration.
26944         * lib/remainderf.c: New file.
26945         * m4/remainderf.m4: New file.
26946         * modules/remainderf: New file.
26947         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26949         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26950         HAVE_REMAINDERF.
26951         * doc/posix-functions/remainderf.texi: Mention the new module.
26953 2012-02-25  Bruno Haible  <bruno@clisp.org>
26955         remainder: Support for MSVC.
26956         * lib/math.in.h (remainder): New declaration.
26957         * lib/remainder.c: New file.
26958         * m4/remainder.m4: New file.
26959         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26960         (Depends-on): Add math, round, fma.
26961         (configure.ac): Use results of gl_FUNC_REMAINDER.
26962         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26964         HAVE_DECL_REMAINDER.
26965         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26966         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26967         * tests/test-math-c++.cc: Check the declaration of remainder.
26968         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26969         problems are fixed.
26971 2012-02-25  Bruno Haible  <bruno@clisp.org>
26973         Tests for module 'fmodl'.
26974         * modules/fmodl-tests: New file.
26975         * tests/test-fmodl.c: New file.
26976         * tests/test-math-c++.cc: Check the declaration of fmodl.
26978         New module 'fmodl'.
26979         * lib/math.in.h (fmodl): New declaration.
26980         * lib/fmodl.c: New file.
26981         * m4/fmodl.m4: New file.
26982         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26984         REPLACE_FMODL.
26985         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26986         REPLACE_FMODL.
26987         * modules/fmodl: New file.
26988         * doc/posix-functions/fmodl.texi: Mention the new module.
26990 2012-02-25  Bruno Haible  <bruno@clisp.org>
26992         Tests for module 'modfl'.
26993         * modules/modfl-tests: New file.
26994         * tests/test-modfl.c: New file.
26995         * tests/test-math-c++.cc: Check the declaration of modfl.
26997         New module 'modfl'.
26998         * lib/math.in.h (modfl): New declaration.
26999         * lib/modfl.c: New file.
27000         * m4/modfl.m4: New file.
27001         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
27002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
27003         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
27004         * modules/modfl: New file.
27005         * doc/posix-functions/modfl.texi: Mention the new module.
27007 2012-02-25  Bruno Haible  <bruno@clisp.org>
27009         Tests for module 'fabsl'.
27010         * modules/fabsl-tests: New file.
27011         * tests/test-fabsl.c: New file.
27012         * tests/test-math-c++.cc: Check the declaration of fabsl.
27014         New module 'fabsl'.
27015         * lib/math.in.h (fabsl): New declaration.
27016         * lib/fabsl.c: New file.
27017         * m4/fabsl.m4: New file.
27018         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
27019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
27020         REPLACE_FABSL.
27021         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
27022         REPLACE_FABSL.
27023         * modules/fabsl: New file.
27024         * doc/posix-functions/fabsl.texi: Mention the new module.
27026 2012-02-25  Bruno Haible  <bruno@clisp.org>
27028         fabs tests: More tests.
27029         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
27030         (zero): New variable.
27031         (main): Add tests for signed zero.
27032         * modules/fabs-tests (Files): Add tests/minus-zero.h.
27034         fabsf tests: More tests.
27035         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
27036         (zero): New variable.
27037         (main): Add tests for signed zero.
27038         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
27040 2012-02-24  Bruno Haible  <bruno@clisp.org>
27042         atanl: Provide function definition on MSVC.
27043         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
27044         function pointer.
27045         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
27047 2012-02-24  Bruno Haible  <bruno@clisp.org>
27049         acosl: Provide function definition on MSVC.
27050         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
27051         function pointer.
27052         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
27054 2012-02-24  Bruno Haible  <bruno@clisp.org>
27056         asinl: Provide function definition on MSVC.
27057         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
27058         function pointer.
27059         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
27061 2012-02-24  Bruno Haible  <bruno@clisp.org>
27063         tanl: Provide function definition on MSVC.
27064         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
27065         function pointer.
27066         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
27068 2012-02-24  Bruno Haible  <bruno@clisp.org>
27070         cosl: Provide function definition on MSVC.
27071         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
27072         function pointer.
27073         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
27075 2012-02-24  Bruno Haible  <bruno@clisp.org>
27077         sinl: Provide function definition on MSVC.
27078         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
27079         function pointer.
27080         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
27082 2012-02-24  Bruno Haible  <bruno@clisp.org>
27084         logl: Provide function definition on MSVC.
27085         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
27086         function pointer.
27087         * lib/math.in.h (logl): Undefine if it does not exist as a function.
27089 2012-02-24  Bruno Haible  <bruno@clisp.org>
27091         expl: Provide function definition on MSVC.
27092         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
27093         function pointer.
27094         * lib/math.in.h (expl): Undefine if it does not exist as a function.
27096 2012-02-24  Bruno Haible  <bruno@clisp.org>
27098         sqrtl: Provide function definition on MSVC.
27099         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
27100         a function pointer.
27101         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
27103 2012-02-24  Bruno Haible  <bruno@clisp.org>
27105         ceill: Provide function definition on MSVC.
27106         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
27107         used as a function pointer.
27108         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
27110 2012-02-24  Bruno Haible  <bruno@clisp.org>
27112         floorl: Provide function definition on MSVC.
27113         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
27114         used as a function pointer.
27115         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
27117 2012-02-24  Bruno Haible  <bruno@clisp.org>
27119         ceilf: Provide function definition on MSVC.
27120         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
27121         used as a function pointer.
27122         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
27124 2012-02-24  Bruno Haible  <bruno@clisp.org>
27126         floorf: Provide function definition on MSVC.
27127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
27128         used as a function pointer.
27129         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
27131 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27133         stdnoreturn: new module
27134         This implements a replacement for C11's <stdnoreturn.h>.
27135         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
27136         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
27137         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
27138         * tests/test-stdnoreturn.c: New files.
27140 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
27142         regex: fix false multibyte matches in some regular expressions
27143         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
27144         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
27145         * lib/regex_internal.c (re_string_skip_chars):
27146         Fix miscomputation of remain_len that may cause incomplete
27147         multi-byte character and false match.
27149 2012-02-24  Jim Meyering  <meyering@redhat.com>
27151         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
27152         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
27153         uses with "==" *before* the call, e.g., 0 == strcmp (...)
27154         Remove now-unnecessary str''cmp obfuscation.
27155         Suggested by Akim Demaille.
27157 2012-02-24  Bruno Haible  <bruno@clisp.org>
27159         streq: Rename macro.
27160         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
27161         * NEWS: Mention the change.
27162         * lib/mbrtowc.c (mbrtowc): Update.
27163         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
27164         * lib/wcwidth.c (wcwidth): Update.
27165         Suggested by Akim Demaille and Jim Meyering.
27167 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27169         regex: fix typo in definition of MIN
27170         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
27171         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
27173 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27174             Bruno Haible  <bruno@clisp.org>
27176         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
27177         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
27178         entries into a stack-allocated buffer directly.
27179         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
27181 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27182             Bruno Haible  <bruno@clisp.org>
27184         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
27186          - There were several instances of this pattern:
27188              for (;;) {
27189                n = acl (f, GETACLCNT, 0, NULL);
27190                [ allocate an array A of size N ]
27191                if (acl (f, GETACL, n, a) == n)
27192                  break;
27193              }
27195            This loop might never terminate if some other process is constantly
27196            manipulating the file's ACL.  The loop should be rewritten to
27197            terminate.
27199          - The acl (... GETACLNT ...) call is merely an optimization; its value
27200            is merely a hint as to how big to make the array.  A better
27201            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
27202            and just guess a reasonably-big size, growing the size and trying
27203            again if it's not large enough.  This guarantees termination, and
27204            saves a system call.
27206         * lib/acl-internal.h: Include <limits.h>.
27207         (MIN, SIZE_MAX): New macros.
27208         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
27209         a stack-allocated buffer, and use malloc if it does not fit. Don't
27210         use GETACLCNT.
27211         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27213 2012-02-19  Bruno Haible  <bruno@clisp.org>
27215         acl: Fix endless loop on Solaris with vxfs.
27216         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
27217         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
27218         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27219         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
27220         * tests/test-sameacls.c (main)[Solaris]: Likewise.
27221         Reported by Bill Jones in
27222         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
27224 2012-02-19  Bruno Haible  <bruno@clisp.org>
27226         acl: Fix copy-acl test failure on Solaris 11.0.
27227         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
27228         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
27229         that this function returns 0 in some more cases.
27231 2012-02-19  Bruno Haible  <bruno@clisp.org>
27233         acl: Update doc references.
27234         * doc/acl-resources.txt: Update links to Solaris documentation.
27236 2012-02-19  Bruno Haible  <bruno@clisp.org>
27238         Fix test failure in many locales on Solaris 11.
27239         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
27240         'tr' arguments.
27241         * tests/test-pipe-filter-ii1.c (main): Likewise.
27242         * build-aux/bootstrap (check_versions): Run 'tr' command with range
27243         expressions in the C locale.
27244         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27245         * m4/host-os.m4 (gl_HOST_OS): Likewise.
27247 2012-02-19  Bruno Haible  <bruno@clisp.org>
27249         gnulib-tool: Improve usage message.
27250         * gnulib-tool (func_usage): Move doc of --help and --version to the
27251         section "Operation modes".
27253 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
27255         README-release: make it easier to execute commands
27256         * top/README-release: break commands out on to separate lines.
27258 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
27260         GNUmakefile: simplify detection of unconfigured trees
27261         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
27262         whether the tree make is being run from is already configured or
27263         not.  Related simplifications.
27265 2012-02-13  Simon Josefsson  <simon@josefsson.org>
27267         * gnulib-tool (func_usage): Document --help and --version.
27269 2012-02-11  Jim Meyering  <meyering@redhat.com>
27271         bootstrap: don't exit 0 upon gnulib-tool failure
27272         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
27273         its exit status, not 0.
27275 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
27277         README-release: various improvements
27278         * top/README-release: Give a command to push changes for the
27279         release.  Add "distcheck" to list of other pre-release checks.
27280         Fix instance of "make stable" which should be "make TYPE".
27282 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27284         maint: replace FSF snail-mail addresses with URLs
27285         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
27286         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
27287         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
27288         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
27289         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
27290         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
27291         * lib/check-version.c, lib/check-version.h, lib/config.charset:
27292         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
27293         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
27294         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
27295         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
27296         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
27297         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
27298         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
27299         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
27300         * lib/glthread/thread.c, lib/glthread/thread.h:
27301         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
27302         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
27303         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
27304         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
27305         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
27306         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
27307         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
27308         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
27309         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
27310         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
27311         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
27312         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
27313         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
27314         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
27315         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
27316         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
27317         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
27318         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
27319         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
27320         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
27321         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
27322         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
27323         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
27324         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
27325         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
27326         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
27327         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
27328         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
27329         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
27330         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
27331         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
27332         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
27333         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
27334         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
27335         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
27336         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
27337         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
27338         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
27339         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
27340         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
27341         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
27342         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
27343         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
27344         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
27345         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
27346         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
27347         * tests/test-poll.c, tests/test-quotearg-simple.c:
27348         * tests/test-quotearg.c, tests/test-quotearg.h:
27349         * tests/test-round-ieee.c, tests/test-round1.c:
27350         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
27351         * tests/test-roundl-ieee.c, tests/test-roundl.c:
27352         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
27353         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
27354         * tests/test-strerror.c, tests/test-strerror_r.c:
27355         * tests/test-strsignal.c, tests/test-strverscmp.c:
27356         * tests/test-xmemdup0.c:
27357         Replace FSF snail mail addresses with URLs, as per GNU coding
27358         standards.  See glibc bug
27359         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27361 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27363         README-release: capitalize a word and split a line
27364         * top/README-release: Fix punctuation and spacing.
27366 2012-02-08  Akim Demaille  <demaille@gostai.com>
27368         fatal-signal: use C prototypes (with explicit void).
27369         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27370         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27372 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27374         regex: spelling fix
27375         * lib/regexec.c: spelling fix
27377         regex: rely on stdint.h for SIZE_MAX
27378         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27380 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27382         regex: merge glibc changes
27384         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27385         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27386         (init_word_char): Work even if bitset words are not exactly 32 or
27387         64 bits wide.  Don't assume there are no padding bits.
27388         * lib/regex.c [_LIBC]: Do not include <config.h>.
27389         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27390         and -Wtype-limits.
27391         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27392         needless disagreement with glibc.  All uses changed.  Define it to
27393         1 only if _GNU_SOURCE, to match glibc.
27394         (_REG_RM_NAME): Remove; no longer needed, since the names in
27395         question are now all protected by __USE_GNU.
27396         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27397         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27398         * lib/regex_internal.h (MIN): New macro.
27400         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27401         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27403         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27404         * lib/regex_internal.c (re_string_fetch_byte_case):
27405         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27406         is miscompiled, and it turns out it is because of an incorrect
27407         attribute on re_string_fetch_byte_case.  Unlike
27408         re_string_peek_byte_case, this one is really not pure, it modifies
27409         memory (increments pstr->cur_idx), and with the pure attribute GCC
27410         assumed it doesn't and it cached the presumed value of
27411         regexp->cur_idx in a variable across the
27412          for (;; ++i)
27413            {
27414              if (i >= BRACKET_NAME_BUF_SIZE)
27415                return REG_EBRACK;
27416              if (token->type == OP_OPEN_CHAR_CLASS)
27417                ch = re_string_fetch_byte_case (regexp);
27418              else
27419                ch = re_string_fetch_byte (regexp);
27420              if (re_string_eoi(regexp))
27421                return REG_EBRACK;
27422              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27423                break;
27424              elem->opr.name[i] = ch;
27425            }
27427         2011-11-29 Andreas Schwab <schwab@redhat.com>
27428         * lib/regcomp.c (build_equiv_class):
27429         Fix access after end of search string in regex matcher.
27431         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27432         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27434         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27435         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27437         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27438         * lib/regcomp.c (parse_branch, parse_sub_exp):
27439         More regex memory leak fixes and tests.
27440         (parse_sub_exp, parse_bracket_exp):
27441         Fix memory leak for some invalid regular expressions.
27443         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27444         * lib/regex_internal.c, lib/regexec.c:
27445         Fix unnecessary overallocation due to incomplete character.  When
27446         incomplete characters are found at the end of a string the code
27447         ran amok and allocated lots of memory.  Stricter limits are now in
27448         place.
27450         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27451         * lib/regex.h: Update documentation.
27453         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27454         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27456         2010-05-05 Andreas Schwab <schwab@redhat.com>
27457         * lib/regexec.c (find_collation_sequence_value):
27458         Fix lookup of collation sequence value during regexp matching.
27460         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27461         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27463         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27464         * lib/regex.h: Cleanup namespace.
27466         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27467         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27469         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27470         * lib/regex_internal.h: Prevent some declarations and definitions
27471         to be seen when used in tests.
27473         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27474         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27475         __libc_lock_* macros if not _LIBC.
27476         (struct re_dfa_t): Add lock.
27478 2012-02-07  Eric Blake  <eblake@redhat.com>
27480         maint.mk: also prohibit lower-case @var@
27481         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27482         lower case, like @top_srcdir@.
27484 2012-02-04  Eric Blake  <eblake@redhat.com>
27486         canonicalize: avoid uninitialized memory use
27487         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27488         random '/' left in dest.
27489         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27491 2012-02-04  Bruno Haible  <bruno@clisp.org>
27493         isatty: Fix test failure of ptsname_r on native Windows.
27494         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27495         and don't set errno.
27496         (isatty): Test first whether fd is valid. Set errno when returning 0.
27498 2012-02-04  Bruno Haible  <bruno@clisp.org>
27500         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27501         * tests/test-spawn-pipe-main.c: Include progname.h.
27502         (main): Invoke set_program_name.
27503         * modules/spawn-pipe-tests (Depends-on): Add progname.
27505         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27506         * tests/test-nonblocking-socket-main.c: Include progname.h.
27507         (main): Invoke set_program_name.
27508         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27510         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27511         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27512         (main): Invoke set_program_name.
27513         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27515 2012-02-04  Eric Blake  <eblake@redhat.com>
27517         canonicalize-lgpl: fix // handling
27518         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27520         canonicalize: fix // handling
27521         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27522         /// to //, since only // is special.
27524 2012-02-04  Bruno Haible  <bruno@clisp.org>
27526         ioctl: Fix test failure on native Windows.
27527         * lib/ioctl.c: Include msvc-nothrow.h.
27528         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27530 2012-02-04  Bruno Haible  <bruno@clisp.org>
27532         fsync: Avoid test failure on native Windows.
27533         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27534         read-only.
27536 2012-02-04  Bruno Haible  <bruno@clisp.org>
27538         sys_select: Avoid syntax error on OpenBSD 5.0.
27539         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27540         currently being included, just include the system's <sys/select.h>.
27542 2012-02-04  Bruno Haible  <bruno@clisp.org>
27544         sys_select: Avoid syntax error on OpenBSD 5.0.
27545         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27546         <sys/select.h>, not before.
27547         Reported by Jiri B <jirib@devio.us>.
27549 2012-02-04  Bruno Haible  <bruno@clisp.org>
27551         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27552         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27553         global variables.
27554         * tests/test-get-rusage-data.c (main): Likewise.
27555         Reported by Jim Meyering.
27557 2012-02-04  Bruno Haible  <bruno@clisp.org>
27559         stdioext: Fix last commit.
27560         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27562 2012-02-03  Bruno Haible  <bruno@clisp.org>
27564         stdioext: Add tentative support for Plan9.
27565         * lib/stdio-impl.h: Include <errno.h>.
27566         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27567         * lib/freadable.c (freadable): Likewise.
27568         * lib/fwritable.c (fwritable): Likewise.
27569         * lib/fbufmode.c (fbufmode): Likewise.
27570         * lib/freading.c (freading): Likewise.
27571         * lib/fwriting.c (fwriting): Likewise.
27572         * lib/freadptr.c (freadptr): Likewise.
27573         * lib/freadseek.c (freadptrinc): Likewise.
27574         * lib/freadahead.c (freadahead): Likewise.
27575         * lib/fpurge.c (fpurge): Likewise.
27576         * lib/fseeko.c (rpl_fseeko): Likewise.
27577         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27578         Reported by Jens Staal <staal1978@gmail.com>.
27580 2012-02-02  Jim Meyering  <meyering@redhat.com>
27582         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27583         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27584         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27585         not even to try to add the attribute.  Instead, add a pragma to suppress
27586         the suggestion/warning.
27588 2012-01-31  Karl Berry  <karl@gnu.org>
27590         setstate doc: typo.
27591         * doc/posix-functions/setstate.texi (setstate): { not (.
27593 2012-01-31  Bruno Haible  <bruno@clisp.org>
27595         popen: Make more robust on Windows.
27596         * lib/popen.c: On native Windows, use the _popen based code even if
27597         HAVE_POPEN is set.
27598         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27599         environment variable on native Windows.
27601 2012-01-30  Bruno Haible  <bruno@clisp.org>
27603         pclose: Fix typo.
27604         * lib/stdio.in.h (pclose): Fix typo in warning message.
27606 2012-01-30  Bruno Haible  <bruno@clisp.org>
27608         doc about getlogin_r, setstate.
27609         * doc/posix-functions/getlogin_r.texi: List the incompatible
27610         declaration problem under "not fixed by gnulib".
27611         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27612         problem on Solaris 11 and other platforms.
27614 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27615             Bruno Haible  <bruno@clisp.org>
27617         poll tests: Make test more robust.
27618         * tests/test-poll.c: Include macros.h.
27619         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27620         return value of various I/O operations.
27621         * modules/poll-tests (Files): Add tests/macros.h.
27623 2012-01-30  Bruno Haible  <bruno@clisp.org>
27625         sys_stat: Fix support for mingw64 and MSVC.
27626         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27627         header files already do it.
27628         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27629         stat itself.
27630         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27632 2012-01-30  Bruno Haible  <bruno@clisp.org>
27634         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27636         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27638 2012-01-29  Bruno Haible  <bruno@clisp.org>
27640         quotearg: Fix test failure on MacOS X 10.5.
27641         * tests/test-quotearg-simple.c: Include localcharset.h.
27642         (main): If the locale encoding is not ASCII, bypass the tests of
27643         locale_quoting_style and clocale_quoting_style.
27644         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27646 2012-01-29  Jim Meyering  <meyering@redhat.com>
27648         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27649         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27650         detect uses of canonicalize_file_name.
27652 2012-01-28  Bruno Haible  <bruno@clisp.org>
27654         test-framework-sh: Fix test failure with AIX 7.1 diff.
27655         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27656         in column 1, like 'diff -c' does.
27657         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27658         whether 'diff -u' is used. Instead, test whether the output contains
27659         some '@' character.
27661 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27663         strtoimax: eliminate need for stdint.h, inttypes.h checks
27664         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27665         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27666         the prerequisites for a recently-introduced strtoimax test.
27667         I guess this might cause strtoimax to be replaced when not
27668         strictly necessary on older hosts, but this shouldn't introduce
27669         any bugs and it should make Emacs 'configure' faster on typical
27670         modern hosts.  Problem discovered when importing the latest gnulib
27671         to an Emacs test version.
27672         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27674 2012-01-28  Bruno Haible  <bruno@clisp.org>
27676         sys_time: Override 'struct timeval' on some native Windows platforms.
27677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27678         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27679         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27680         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27681         needs to be overridden.
27682         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27683         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27684         * tests/test-sys_select.c: Check that the tv_sec member has the same
27685         size as a 'time_t'.
27686         * tests/test-sys_time.c: Likewise.
27687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27688         is set, set also REPLACE_GETTIMEOFDAY.
27689         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27690         convert the resulting 'struct timeval' before returning.
27691         * lib/select.c: Include <sys/time.h>.
27692         (select, timeval): Undefine at the right place.
27693         * modules/select (Depends-on): Add sys_time.
27694         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27695         some Windows platforms.
27696         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27698 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27700         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27701         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27702         an integer.
27703         * lib/fcntl.c (dupfd): Likewise.
27704         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27706 2012-01-28  Bruno Haible  <bruno@clisp.org>
27708         fcntl: Avoid compilation error on native Windows.
27709         * modules/fcntl (Depends-on): Add 'close'.
27711 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27713         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27714         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27715         pointer to an integer.
27716         * lib/poll.c (IsConsoleHandle): Likewise.
27717         * lib/isatty.c (IsConsoleHandle): Likewise.
27719 2012-01-28  Jim Meyering  <meyering@redhat.com>
27721         doc: clarify README-release
27722         * top/README-release: Clarify: you should make a point to have
27723         the latest stable versions of build tools in your PATH, and the
27724         reference to buildreq is solely for its list of tool names, not
27725         for its minimal-functional version numbers.
27726         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27728         maint.mk: use more readable (yet functionally equivalent) quoting
27729         It is common to quote a single quote in a single quoted string like
27730         this:  '...'\''...'.  Unless you know the idiom, that looks like
27731         gibberish, so prefer to double-quote the string when possible.
27732         Then you can use a more readable, lone single quote: "...'..."
27733         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27734         "don't" is more readable than the equivalent 'don'\''t'.
27735         (sc_cast_of_x_alloc_return_value): Likewise.
27736         (sc_cast_of_alloca_return_value): Likewise.
27737         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27738         rather than '\'':'\''.
27740 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27742         stdalign: relax _Alignof and tighten _Alignas test
27743         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27744         as it was too strict: alignof must divide offsetof, but it need
27745         not equal offsetof.  Inspired by Joseph S. Myers's comment
27746         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27747         Conversely, tighten the _Alignas test a bit, as the resulting
27748         alignment must be exactly 8.
27750 2012-01-27  Bruno Haible  <bruno@clisp.org>
27752         stdalign: Document the last change.
27753         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27755 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27757         stdalign: check that alignof and offsetof are consistent
27758         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27759         Problem reported for gnulib by Richard W.M. Jones in
27760         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27762 2012-01-27  Jim Meyering  <meyering@redhat.com>
27764         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27765         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27766         convert a sequence with gaps to the minimal containing range.
27767         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27768         * tests/test-update-copyright.sh: Test for this.
27769         The FSF confirmed it is ok to do this, assuming there is at
27770         least one significant change per year in the affected range:
27771         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27773 2012-01-26  Bruno Haible  <bruno@clisp.org>
27775         pipe2: refine doc about thread-safety
27776         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27777         multithread-safety problem.
27778         * doc/glibc-functions/accept4.texi: Likewise.
27780 2012-01-26  Bruno Haible  <bruno@clisp.org>
27782         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27783         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27784         In the test program, include <fcntl.h>, for O_RDONLY.
27786 2012-01-26  Eric Blake  <eblake@redhat.com>
27788         pipe2: document lack of thread-safety in replacement
27789         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27790         issue in replacement.
27791         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27792         Based on a report by Eric Wong.
27794 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27795             Bruno Haible  <bruno@clisp.org>
27797         malloca: Avoid warnings on x86_64 mingw64.
27798         * lib/malloca.c: Include <stdint.h>.
27799         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27800         * modules/malloca (Depends-on): Add stdint.
27801         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27803 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27805         obstack: remove __STDC__ conditionals
27806         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27807         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27808         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27809         m4/include_next.m4 as the only gnulib-maintained places that still
27810         refer to __STDC__.
27812 2012-01-24  Bruno Haible  <bruno@clisp.org>
27814         havelib: Modern quoting.
27815         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27816         the recent change to the GNU coding standards.
27818 2012-01-24  Bruno Haible  <bruno@clisp.org>
27820         stdint: Improve support for Android.
27821         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27822         Reported by Simon Josefsson <simon@josefsson.org>.
27824 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27826         doc: omit trailing empty lines from INSTALL etc.
27827         * doc/Makefile (INSTALL): Omit trailing empty lines.
27828         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27829         omit trailing empty lines.  This simplifies the build procedure.
27831 2012-01-23  Jim Meyering  <meyering@redhat.com>
27833         tests: avoid spurious warnings about gl_sockets_startup
27834         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27835         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27836         reporting a "statement with no effect".
27837         * tests/test-accept.c (main): Mark as "(void)".
27838         * tests/test-accept4.c (main): Likewise.
27839         * tests/test-bind.c (main): Likewise.
27840         * tests/test-connect.c (main): Likewise.
27841         * tests/test-getpeername.c (main): Likewise.
27842         * tests/test-getsockname.c (main): Likewise.
27843         * tests/test-getsockopt.c (main): Likewise.
27844         * tests/test-listen.c (main): Likewise.
27845         * tests/test-recv.c (main): Likewise.
27846         * tests/test-recvfrom.c (main): Likewise.
27847         * tests/test-send.c (main): Likewise.
27848         * tests/test-sendto.c (main): Likewise.
27849         * tests/test-setsockopt.c (main): Likewise.
27850         * tests/test-shutdown.c (main): Likewise.
27852 2012-01-21  Bruno Haible  <bruno@clisp.org>
27854         locale-fr.m4: Fix for Android.
27855         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27856         failure of the test program on Bionic libc.
27858 2012-01-21  Jim Meyering  <meyering@redhat.com>
27860         bootstrap: fail when bootstrap_post_import_hook fails
27861         Otherwise, it's far too easy to miss diagnostics emitted
27862         between gnulib-tool's output and that of running configure.
27863         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27865 2012-01-17  Jim Meyering  <meyering@redhat.com>
27867         maint: enable sc_trailing_blank
27868         * build-aux/pmccabe.css: Remove trailing blanks.
27869         * doc/acl-cygwin.txt: Likewise.
27870         * doc/gnu-oids.texi: Likewise
27871         * cfg.mk: Enable sc_trailing_blank.
27872         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27874 2012-01-17  Jim Meyering  <meyering@redhat.com>
27876         maint: enable sc_prohibit_openat_without_use
27877         * cfg.mk: Enable sc_prohibit_openat_without_use.
27878         Exempt lib/selinux-at.c.
27880 2012-01-17  Jim Meyering  <meyering@redhat.com>
27882         maint: enable sc_prohibit_cloexec_without_use
27883         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27884         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27886 2012-01-17  Jim Meyering  <meyering@redhat.com>
27888         maint: enable sc_prohibit_intprops_without_use
27889         * cfg.mk: Enable sc_prohibit_intprops_without_use
27890         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27892 2012-01-17  Jim Meyering  <meyering@redhat.com>
27894         maint: enable sc_prohibit_hash_pjw_without_use
27895         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27896         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27897         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27898         following " (".
27900 2012-01-17  Jim Meyering  <meyering@redhat.com>
27902         maint: enable double-word-prohibiting rule
27903         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27904         Exempt three files.
27906 2012-01-17  Jim Meyering  <meyering@redhat.com>
27908         maint: remove empty lines at EOF, but excluding modules/*
27909         Apply syntax rules at home as well as abroad.  Most changes
27910         were induced by running this:
27911           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27912             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27913             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27914         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27915         Exempt modules/* and two binary files.
27916         Also exempt doc/INSTALL*, per request from Bruno Haible.
27917         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27918         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27919         * doc/Copyright/request-assign.future: Likewise.
27920         * doc/Copyright/request-disclaim.changes: Likewise.
27921         * doc/INSTALL: Likewise.
27922         * doc/INSTALL.ISO: Likewise.
27923         * doc/INSTALL.UTF-8: Likewise.
27924         * doc/acl-cygwin.txt: Likewise.
27925         * doc/acl-resources.txt: Likewise.
27926         * doc/fdl-1.2.texi: Likewise.
27927         * doc/fdl-1.3.texi: Likewise.
27928         * doc/fdl.texi: Likewise.
27929         * lib/argp-pin.c: Likewise.
27930         * lib/round.c: Likewise.
27931         * lib/unicase/u16-totitle.c: Likewise.
27932         * lib/unictype/block_test.c: Likewise.
27933         * lib/uninorm/canonical-decomposition.c: Likewise.
27934         * m4/README: Likewise.
27935         * m4/relocatable-lib.m4: Likewise.
27936         * tests/test-isnand-nolibm.c: Likewise.
27937         * tests/test-isnand.c: Likewise.
27938         * tests/uninorm/NormalizationTest.txt: Likewise.
27940 2012-01-17  Jim Meyering  <meyering@redhat.com>
27942         maint: add framework to run syntax-check rules against gnulib sources
27943         * cfg.mk: New file, to disable all currently-failing tests.
27944         We'll enable them one by one, as they are made to pass.
27945         * Makefile (sc_maint): New rule.
27947 2012-01-21  Bruno Haible  <bruno@clisp.org>
27949         stdint: Add support for Android.
27950         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27951         include the system's <stdint.h>.
27952         Reported by Simon Josefsson <simon@josefsson.org>.
27954 2012-01-19  Jim Meyering  <meyering@redhat.com>
27956         bootstrap: add bootstrap_post_import_hook
27957         Bison does still need something like the gnulib_mk_hook whose
27958         invocation I had to remove along with slurp in commit 767ccd40.
27959         Technically, we could get along without it, but doing so would
27960         have required living with a warning and a mandatory post-bootstrap
27961         automake rerun.
27962         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27963         (bootstrap_post_import_hook): New function.
27964         Invoke it after gnulib-tool --import and before autoreconf.
27966 2012-01-18  Jim Meyering  <meyering@redhat.com>
27968         gitlog-to-changelog: don't use "no_"-prefixed variable name
27969         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27970         to enable both --cluster and --no-cluster.  Change variable name,
27971         s/\$no_cluster/$cluster/, and reverse usage to match.
27973         gitlog-to-changelog: use "||", not "or" in expressions
27974         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27975         expressions.
27977 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27979         gitlog-to-changelog: new option --no-cluster
27980         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27981         clustering of adjacent commit messages.
27983 2012-01-17  Jim Meyering  <meyering@redhat.com>
27985         maint: spell file systems with two words, not one
27986         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27987         two words, not one.
27989 2012-01-16  Jim Meyering  <meyering@redhat.com>
27991         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27992         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27994 2012-01-16  Eric Blake  <eblake@redhat.com>
27996         bootstrap: cater to autoconf 2.59
27997         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27998         is not available.
28000         bootstrap: properly check for libtool
28001         * build-aux/bootstrap (libtoolize): Also run libtool when older
28002         usage is detected.
28004 2012-01-15  Bruno Haible  <bruno@clisp.org>
28006         Improve support for MSVC 9.
28007         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
28008         clashes on MSVC.
28009         * lib/fcntl.in.h: Likewise.
28010         * lib/stdlib.in.h: Likewise.
28011         * lib/sys_stat.in.h: Likewise.
28013 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
28015         gnupload: we hold the master copy of this script now
28016         For motivation and more information, see:
28017         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
28018         * build-aux/gnupload: Make it clear in the heading comments that the
28019         master copy of this file is maintained by gnulib.  Since we are at
28020         it, bump its copyright year and ...
28021         ($scriptversion): ... the date in its version.
28022         ($usage): Patches and bug reports should be sent to the gnulib list,
28023         not the automake one.
28024         * config/srclist.txt: Don't try to sync 'gnupload' from automake
28025         anymore.
28027 2012-01-15  Bruno Haible  <bruno@clisp.org>
28029         Fix module 'random'.
28030         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
28031         initstate, setstate are declared.
28033 2012-01-14  Bruno Haible  <bruno@clisp.org>
28035         Tests for module 'random'.
28036         * modules/random-tests: New file.
28037         * tests/test-random.c: New file, based on tests/test-random_r.c.
28039         New module 'random'.
28040         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
28041         declarations.
28042         * lib/random.c: New file, based on glibc/stdlib/random.c.
28043         * m4/random.m4: New file.
28044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
28045         HAVE_RANDOM.
28046         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
28047         * modules/random: New file.
28048         * config/srclist.txt: Add an entry for random.c.
28049         * doc/posix-functions/random.texi: Mention the 'random' module.
28050         * doc/posix-functions/initstate.texi: Likewise.
28051         * doc/posix-functions/setstate.texi: Likewise.
28052         * doc/posix-functions/srandom.texi: Likewise.
28054 2012-01-12  Bruno Haible  <bruno@clisp.org>
28056         random_r: Use common idioms.
28057         * lib/random_r.c: Include <stdlib.h> first.
28059         random_r: Override incompatible API on AIX, OSF/1.
28060         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
28061         Override the system function if REPLACE_RANDOM_R is 1.
28062         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
28063         and OSF/1, set REPLACE_RANDOM_R.
28064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
28065         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
28066         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
28067         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
28068         * doc/glibc-functions/random_r.texi: Likewise.
28069         * doc/glibc-functions/setstate_r.texi: Likewise.
28071         random_r: Support for MSVC 9.
28072         * lib/random_r.c: Include stdint.h, not inttypes.h.
28074 2012-01-12  Eric Blake  <eblake@redhat.com>
28076         inet_ntop: guard extra work by IF_LINT
28077         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
28078         better code generation when not checking for warnings.
28079         Suggested by Paul Eggert and Jim Meyering.
28081         strptime: fix regression on mingw
28082         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
28083         Fix regression.  Reported by Bruno Haible.
28085 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
28086             Bruno Haible  <bruno@clisp.org>
28088         copy-file: add error-code-returning variant.
28089         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
28090         (qcopy_file_preserving): New declaration.
28091         * lib/copy-file.c (qcopy_file_preserving): Renamed from
28092         copy_file_preserving. Change return type to 'int'. Don't emit an error
28093         message here.
28094         (copy_file_preserving): New function.
28095         * tests/test-copy-file.c: Include <stdlib.h>.
28096         (main): Test qcopy_file_preserving if the environment variable
28097         NO_STDERR_OUTPUT is set.
28098         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
28099         with NO_STDERR_OUTPUT
28100         * tests/test-copy-file-2.sh: Likewise.
28102 2012-01-10  Bruno Haible  <bruno@clisp.org>
28104         copy-file: Use 'quote' module consistently.
28105         * lib/copy-file.c (copy_file_preserving): Use quote().
28107         copy-file: Refactor.
28108         * lib/copy-file.c: Include quote.h.
28109         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
28110         message here.
28111         * modules/copy-file (Depends-on): Add quote.
28113         acl: Export qcopy_acl.
28114         * lib/acl.h (qcopy_acl): New declaration.
28115         * lib/copy-acl.c (qcopy_acl): Make non-static.
28117         acl: Rename a local variable.
28118         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
28120         acl: Align return values of copy_acl and qcopy_acl.
28121         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
28122         maybe < -1.
28124 2012-01-11  Eric Blake  <eblake@redhat.com>
28126         strptime: silence gcc warnings
28127         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
28128         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
28129         Reported by Daniel P. Berrange.
28131         inet_ntop: silence gcc warning
28132         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
28133         Reported by Daniel P. Berrange.
28135 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
28137         getloadavg test: skip the test on GNU/Linux without /proc mounted
28138         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
28139         file.  When /proc is not mounted, it always fails with ENOENT.
28140         * tests/test-getloadavg.c (main): Treat ENOENT return code from
28141         getloadavg(3) the same way as ENOSYS and ENOTSUP.
28143 2012-01-10  Bruno Haible  <bruno@clisp.org>
28145         regex: Avoid link error on MSVC 9.
28146         * modules/regex (Depends-on): Add wctype.
28148 2012-01-10  Bruno Haible  <bruno@clisp.org>
28150         doc: Mention --with-tests option.
28151         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
28152         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
28153         --with-tests.
28154         Reported by Reuben Thomas.
28156 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
28158         users.txt: order package names lexicographically.
28159         * users.txt: Order package names lexicographically.
28161 2012-01-10  Jim Meyering  <meyering@redhat.com>
28163         maint.mk: fix description in comment
28164         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
28166         ignore-value: remove deprecated ignore_ptr function
28167         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
28168         * NEWS: Note this.
28170 2012-01-09  Jim Meyering  <meyering@redhat.com>
28172         test-init.sh: avoid a subshell
28173         * tests/test-init.sh: Remove protective subshell.
28174         Suggested by Bernhard Voelker.  While a subshell is normally
28175         required to protect against older shells (Solaris, FreeBSD) that
28176         warn about a missing program before performing redirection, the
28177         shell-selection tests performed by init.sh probably exclude any
28178         offending shell.
28180 2012-01-08  Bruno Haible  <bruno@clisp.org>
28182         setlocale tests: Avoid test failure on Solaris 11.0.
28183         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
28184         variable.
28186 2012-01-08  Bruno Haible  <bruno@clisp.org>
28188         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
28189         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28190         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28191         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
28192         macro.
28193         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
28194         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28195         * lib/spawn_faction_addopen.c: Add workaround implementation if
28196         HAVE_WORKING_POSIX_SPAWN.
28197         * modules/spawn (Makefile): Substitute
28198         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28199         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
28200         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
28201         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28202         (Depends-on): Update conditions.
28203         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28204         the Solaris 11 bug.
28206 2012-01-08  Bruno Haible  <bruno@clisp.org>
28208         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
28209         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28211         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
28212         macro.
28213         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
28214         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28215         * lib/spawn_faction_adddup2.c: Add workaround implementation if
28216         HAVE_WORKING_POSIX_SPAWN.
28217         * modules/spawn (Makefile): Substitute
28218         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28219         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
28220         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
28221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28222         (Depends-on): Update conditions.
28223         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28224         the Solaris 11 bug.
28226 2012-01-08  Bruno Haible  <bruno@clisp.org>
28228         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
28229         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28230         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28231         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
28232         HAVE_WORKING_POSIX_SPAWN.
28233         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
28234         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
28235         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28236         * lib/spawn_faction_addclose.c: Add workaround implementation if
28237         HAVE_WORKING_POSIX_SPAWN.
28238         * modules/spawn (Makefile): Substitute
28239         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28240         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
28241         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
28242         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28243         (Depends-on): Update conditions.
28244         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28245         the Solaris 11 bug.
28247 2012-01-08  Bruno Haible  <bruno@clisp.org>
28249         doc: Update for Solaris 11.0.
28250         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
28251         * m4/printf.m4: Update comments.
28253 2012-01-08  Bruno Haible  <bruno@clisp.org>
28255         mktime: Avoid compilation error on Solaris 11.
28256         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
28258 2012-01-08  Bruno Haible  <bruno@clisp.org>
28260         doc: Small fix.
28261         * doc/posix-headers/nl_types.texi: Correct platforms list.
28263 2012-01-08  Simon Josefsson  <simon@josefsson.org>
28265         Add lgpl-3.0 module.
28266         * MODULES.html.sh (Support for building documentation): Add
28267         lgpl-3.0.
28268         * modules/lgpl-3.0: New file.
28270 2012-01-08  Jim Meyering  <meyering@redhat.com>
28272         select.c: indent with spaces, not TABs
28273         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
28275 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28277         quotearg: do not use grave accent for left quote
28278         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
28279         locale_quoting_style.
28280         (quotearg_buffer_restyled): Fix example.
28281         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
28283 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28285         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
28286         Most programs do not have translation catalogs for English and much
28287         less separate catalogs for British and American English.  Drop the
28288         suggestion to translators about these two, and provide it
28289         automatically for Unicode locales.  Like most programs, even those
28290         using American English, we use single quotation marks.  This conflicts
28291         with the American typographic convention, but works better when you
28292         cite the entire error message within double quotes.  It also tries not
28293         to clash with established practice and with what non-gnulib programs
28294         will usually do.
28295         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
28296         using an UTF-8 or GB-18030 locale.  The list of other locales with
28297         quotes was provided by Bruno Haible.
28298         (quotearg_buffer_restyled): Adjust instructions to translators.
28299         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
28300         text, since this would be wrong when using Unicode.
28301         * modules/quotearg: Depend on c-strcaseeq.
28303 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28305         quotearg: fix Wikipedia link
28306         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
28308 2012-01-07  Simon Josefsson  <simon@josefsson.org>
28310         Fix for mingw with MSVC9.
28311         * m4/ld-version-script.m4: Check that compiler rejects version
28312         scripts with syntax errors.  Reported by Bruno Haible
28313         <bruno@clisp.org>.
28315 2012-01-06  Bruno Haible  <bruno@clisp.org>
28317         Talk about "native Windows API", not "Woe32".
28318         * lib/accept4.c: Update comments to mention native Windows.
28319         * lib/execute.c: Likewise.
28320         * lib/fatal-signal.c: Likewise.
28321         * lib/localcharset.c: Likewise.
28322         * lib/nanosleep.c: Likewise.
28323         * lib/nl_langinfo.c: Likewise.
28324         * lib/pclose.c: Likewise.
28325         * lib/pipe-filter-gi.c: Likewise.
28326         * lib/pipe-filter-ii.c: Likewise.
28327         * lib/pipe.c: Likewise.
28328         * lib/pipe2.c: Likewise.
28329         * lib/popen.c: Likewise.
28330         * lib/progreloc.c: Likewise.
28331         * lib/relocatable.c: Likewise.
28332         * lib/sigaction.c: Likewise.
28333         * lib/sigprocmask.c: Likewise.
28334         * lib/spawn-pipe.h: Likewise.
28335         * lib/spawn-pipe.c: Likewise.
28336         * lib/spawni.c: Likewise.
28337         * lib/stat-time.h: Likewise.
28338         * lib/w32spawn.h: Likewise.
28339         * tests/test-isatty.c: Likewise.
28340         * lib/config.charset: More comments.
28341         * doc/gnulib-intro.texi: Mention native Windows.
28342         * doc/posix-functions/_Exit_C99.texi: Likewise.
28343         * doc/posix-headers/fcntl.texi: Likewise.
28345 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
28347         argp: Avoid crash if translator uses % characters in a translation.
28348         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
28349         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28351 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28353         doc: C11 and C++11 are now official
28354         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
28355         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
28356         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28357         * modules/stdalign:
28358         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28360 2012-01-06  Bruno Haible  <bruno@clisp.org>
28362         uc-is-grapheme-break tests: Tweak.
28363         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28364         message.
28366 2012-01-06  Bruno Haible  <bruno@clisp.org>
28368         test-init.sh: correct the test for diff -u
28369         * tests/test-init.sh: Also redirect stdout to /dev/null.
28371 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28373         Use ', not `, for quoting output.
28374         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28375         (print_changelog_deltas, get_tool_versions, main program):
28376         * build-aux/git-version-gen:
28377         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28378         * build-aux/move-if-change (help):
28379         * build-aux/useless-if-before-free (usage, main program):
28380         * check-module (parse_module_file, usage)
28381         (find_included_lib_files, check_module):
28382         * lib/argmatch.c (main) [TEST]:
28383         * lib/argp-help.c (_help):
28384         * lib/getopt1.c (main) [TEST]:
28385         * lib/git-merge-changelog.c (usage):
28386         * lib/xstrtol-error.c (xstrtol_error):
28387         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28388         * m4/argz.m4 (gl_FUNC_ARGZ):
28389         * m4/bison.m4 (gl_BISON):
28390         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28391         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28392         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28393         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28394         * m4/gc-random.m4 (gl_GC_RANDOM):
28395         * m4/intl.m4 (gt_CHECK_DECL):
28396         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28397         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28398         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28400         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28401         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28402         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28403         * tests/test-dirname.c (main):
28404         * tests/test-getpass.c (main):
28405         * tests/test-iconvme.c (main):
28406         * tests/test-parse-datetime.c (LOG):
28407         * tests/test-xstrtoimax.sh:
28408         * tests/test-xstrtol.sh:
28409         * tests/test-xstrtoll.sh:
28410         * tests/test-xstrtoumax.sh:
28411         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28412         * top/GNUmakefile (abort-due-to-no-makefile):
28413         Quote 'like this', not `like this', as per the recent change to
28414         the GNU coding standards.
28416 2012-01-05  Bruno Haible  <bruno@clisp.org>
28418         strtoimax: Don't force a replacement on systems where intmax_t is int.
28419         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28420         'intmax_t' is not larger than 'int'.
28421         Reported by Pádraig Brady <P@draigBrady.com>.
28423 2012-01-05  Bruno Haible  <bruno@clisp.org>
28425         doc: Mention NetBSD bugs.
28426         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28427         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28429 2012-01-05  Bruno Haible  <bruno@clisp.org>
28431         strtoumax tests: Enhance tests.
28432         * tests/test-strtoumax.c (main): Add tests for large values.
28434 2012-01-05  Bruno Haible  <bruno@clisp.org>
28436         strtoimax: Work around AIX 5.1 bug.
28437         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28438         definition.
28439         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28440         Set HAVE_STRTOIMAX.
28441         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28442         REPLACE_STRTOIMAX.
28443         * modules/inttypes-incomplete (Makefile.am): Substitute
28444         REPLACE_STRTOIMAX.
28445         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28446         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28447         (Depends-on): Update conditions.
28448         * tests/test-strtoimax.c (main): Add tests for large values.
28449         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28451 2012-01-05  Bruno Haible  <bruno@clisp.org>
28453         inttypes: Modernize.
28454         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28455         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28456         (Makefile.am): Update inttypes.h rule.
28458 2012-01-05  Jim Meyering  <meyering@redhat.com>
28460         init.sh: don't waste a subshell just to redirect stderr
28461         * tests/init.sh: In testing for diff -u and diff -c, use a
28462         stderr-redirecting exec inside `...` rather than a subshell.
28464         test-init.sh: avoid failure on HP-UX 11.00
28465         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28466         resolves to diff -c or cmp.  Reported by Bruno Haible.
28468 2012-01-05  Bruno Haible  <bruno@clisp.org>
28470         Tests for module 'strtoull'.
28471         * modules/strtoull-tests: New file.
28472         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28474 2012-01-05  Bruno Haible  <bruno@clisp.org>
28476         Tests for module 'strtoll'.
28477         * modules/strtoll-tests: New file.
28478         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28480 2012-01-05  Bruno Haible  <bruno@clisp.org>
28482         Tests for module 'strtoul'.
28483         * modules/strtoul-tests: New file.
28484         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28486 2012-01-05  Bruno Haible  <bruno@clisp.org>
28488         Tests for module 'strtol'.
28489         * modules/strtol-tests: New file.
28490         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28492 2012-01-04  Jim Meyering  <meyering@redhat.com>
28494         test-init.sh: accommodate Solaris 5.10's different diff -u output
28495         * tests/test-init.sh: Also exempt @@ lines from the comparison
28496         of diff output, since Solaris 5.10 and GNU diff formats differ.
28497         Reported by Stefano Lattarini.
28499 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28501         test-posixtm: don't assume signed integer wraparound
28502         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28503         after signed integer overflow.  Inspired by (though it may not
28504         fix) Bruno Haible's bug report in
28505         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28507         Spell out "Windows 9x" and "Windows XP".
28508         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28509         "Windows 9x" and "WinXP" with "Windows XP".
28511 2012-01-04  Jim Meyering  <meyering@redhat.com>
28513         test-vc-list-files-cvs.sh: remove obsolete comment
28514         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28515         double exit.  Now that's all encapsulated via skip_ and Exit.
28517 2012-01-04  Bruno Haible  <bruno@clisp.org>
28519         Talk about "native Windows API", not "Win32".
28520         * lib/classpath.c: Update comments to mention native Windows.
28521         * lib/csharpexec.c: Likewise.
28522         * lib/dup2.c: Likewise.
28523         * lib/error.c: Likewise.
28524         * lib/fcntl.c: Likewise.
28525         * lib/filename.h: Likewise.
28526         * lib/findprog.c: Likewise.
28527         * lib/get-rusage-as.c: Likewise.
28528         * lib/get-rusage-data.c: Likewise.
28529         * lib/getpagesize.c: Likewise.
28530         * lib/javaexec.c: Likewise.
28531         * lib/msvc-inval.c: Likewise.
28532         * lib/msvc-nothrow.c: Likewise.
28533         * lib/nanosleep.c: Likewise.
28534         * lib/nonblocking.c: Likewise.
28535         * lib/printf-parse.c: Likewise.
28536         * lib/setlocale.c: Likewise.
28537         * lib/sigaction.c: Likewise.
28538         * lib/strerror_r.c: Likewise.
28539         * lib/tmpdir.c: Likewise.
28540         * lib/vasnprintf.c: Likewise.
28541         * lib/w32spawn.h: Likewise.
28542         * lib/waitpid.c: Likewise.
28543         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28544         * m4/locale-ar.m4: Likewise.
28545         * m4/locale-fr.m4: Likewise.
28546         * m4/locale-ja.m4: Likewise.
28547         * m4/locale-tr.m4: Likewise.
28548         * m4/locale-zh.m4: Likewise.
28549         * m4/printf.m4: Likewise.
28550         * tests/test-cloexec.c: Likewise.
28551         * tests/test-copy-acl.sh: Likewise.
28552         * tests/test-copy-file.sh: Likewise.
28553         * tests/test-file-has-acl.sh: Likewise.
28554         * tests/test-set-mode-acl.sh: Likewise.
28555         * tests/test-dup-safer.c: Likewise.
28556         * tests/test-dup2.c: Likewise.
28557         * tests/test-dup3.c: Likewise.
28558         * tests/test-fcntl.c: Likewise.
28559         * tests/test-nonblocking-pipe.h: Likewise.
28560         * tests/test-nonblocking-socket.h: Likewise.
28561         * tests/test-pipe.c: Likewise.
28562         * tests/test-pipe2.c: Likewise.
28563         * tests/test-spawn-pipe-child.c: Likewise.
28564         * doc/acl-resources.txt: Likewise.
28565         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28566         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28567         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28568         * lib/localcharset.c: Update comments to mention native Windows.
28569         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28570         * lib/localename.c: Likewise.
28571         * lib/progreloc.c: Likewise.
28572         * lib/relocatable.c: Likewise.
28573         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28574         (windows_compute_revents): Renamed from win32_compute_revents.
28575         (windows_compute_revents_socket): Renamed from
28576         win32_compute_revents_socket.
28577         * lib/select.c: Update comments to mention native Windows.
28578         (windows_poll_handle): Renamed from win32_poll_handle.
28579         * m4/threadlib.m4: Update comments to mention native Windows.
28580         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28581         --enable-threads=windows instead of --enable-threads=win32. Set
28582         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28583         * lib/glthread/lock.h: Update comments to mention native Windows.
28584         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28585         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28586         USE_WIN32_THREADS.
28587         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28588         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28589         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28590         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28591         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28592         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28593         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28594         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28595         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28596         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28597         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28598         * tests/test-tls.c: Likewise.
28599         Rationale:
28600         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28601         on both 32-bit and 64-bit Windows systems.
28602         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28603         line of distinction is between "native Windows" on one side and Unix/
28604         POSIX systems on the other side. More details in
28605         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28606         Suggested by Paul Eggert.
28608 2012-01-03  Bruno Haible  <bruno@clisp.org>
28610         isatty: Support for MSVC 9.
28611         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28612         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28613         (_isatty_nothrow): New function.
28614         (isatty): Use it instead of _isatty.
28615         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28616         * lib/poll.c (IsConsoleHandle): Likewise.
28617         * lib/select.c (IsConsoleHandle): Likewise.
28618         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28619         (gl_PREREQ_ISATTY): New macro.
28620         * modules/isatty (Depends-on): Add msvc-inval.
28621         (configure.ac): Invoke gl_PREREQ_ISATTY.
28623 2012-01-03  Jim Meyering  <meyering@redhat.com>
28625         maint.mk: remove temporary transition aid from over 1.5 years ago
28626         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28627         purpose was to aid in the transition (avoiding silent malfunction)
28628         from that old name to the new _sc_search_regexp.  This shim was
28629         added by commit 219c504b.
28631         init.sh: do not try to accommodate compare arguments starting with "-"
28632         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28633         compare arguments that start with "-".  Besides, we do not worry
28634         about this when invoking diff or cmp; why start now with sed?
28635         Using "--" to separate options from argument would trigger sed
28636         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28637         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28639 2012-01-02  Bruno Haible  <bruno@clisp.org>
28641         Enhance tests for module 'isatty'.
28642         * modules/isatty-tests (Depends-on): Add pipe-posix.
28643         * tests/test-isatty.c: Include <fcntl.h>.
28644         (DEV_NULL): New macro.
28645         (main): Test the resut of isatty() also on regular files, pipes, and
28646         /dev/null.
28648         New module 'isatty'.
28649         * lib/unistd.in.h (isatty): New declaration.
28650         * lib/isatty.c: New file, based on an idea of
28651         Bastien Roucariès <roucaries.bastien@gmail.com>.
28652         * m4/isatty.m4: New file.
28653         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28654         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28655         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28656         REPLACE_ISATTY.
28657         * modules/isatty: New file.
28658         * doc/posix-functions/isatty.texi: Mention the new module.
28659         Suggested by Paolo Bonzini.
28661 2012-01-02  Bruno Haible  <bruno@clisp.org>
28663         canonicalize: Tweak 2011-12-29 commit.
28664         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28665         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28667 2012-01-02  Jim Meyering  <meyering@redhat.com>
28669         gitlog-to-changelog: describe input syntax in --help output
28670         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28672         gitlog-to-changelog: fix typo in --help: show backslash before email @
28673         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28674         in sources, but not in actual output.
28676 2011-12-30  Jim Meyering  <meyering@redhat.com>
28678         gitlog-to-changelog: don't malfunction when name contains %-directive
28679         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28680         in a name string cause trouble.  E.g., with a user name of "%s",
28681         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28683 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28685         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28686         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28687         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28688         the "  (tiny change)" notation that is appended to the standard
28689         ChangeLog "date  name  email" header line.
28691 2012-01-01  Jim Meyering  <meyering@redhat.com>
28693         test-framework-sh: init.sh: fix "make dist" failure
28694         When using gnulib-tool's --with-tests option and any module that
28695         depends on test-framework-sh, "make dist" would fail due to the
28696         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28697         in the gltests directory, and not in the gllib/ directory.
28698         One way to work around that is to move the EXTRA_DIST += init.sh
28699         from the primary module to the -tests one:
28700         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28701         * modules/test-framework-sh (Makefile.am): ...not here.
28702         Reported by Tom G. Christensen in
28703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28705         version-etc: update copyright year reported by --version
28706         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28708 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28710         canonicalize: only stat() if required
28711         * lib/canonicalize.c (canonicalize_filename_mode):
28712         Avoid calling l?stat() when both CAN_MISSING,
28713         and CAN_NOLINKS are set, as we neither need
28714         to resolve symlinks or test component existence.
28716 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28718         doc: cover st_ino issues once; add OpenVMS etc.
28719         * doc/posix-functions/stat.texi (stat):
28720         * doc/posix-functions/lstat.texi (lstat):
28721         * doc/posix-functions/fstatat.texi (fstatat):
28722         * doc/posix-functions/fstat.texi (fstat):
28723         Move general 'struct stat' stuff to sys_stat.texi,
28724         leaving behind a pointer.
28725         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28726         Merge duplicate info about 'struct stat' problems into here.
28727         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28728         and suggest partial workarounds.
28730         same-inode: port to OpenVMS
28731         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28732         three st_ino values.
28734 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28736         canonicalize: fix references to stat() and lstat()
28737         * lib/canonicalize.c (canonicalize_filename_mode):
28738         Ensure references always resolve to a replacement
28739         function if required (even via a macro).
28741 2011-12-30  Jim Meyering  <meyering@redhat.com>
28743         gitlog-to-changelog: remove a little duplication
28744         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28745         rather than twice.
28747 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28749         canonicalize: add support for not resolving symlinks
28750         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28751         indicate we don't want to follow symlinks.  Also
28752         provide CAN_MODE_MASK to aid setting these existing
28753         mutually exclusive values.
28754         * lib/canonicalize.c (canonicalize_filename_mode):
28755         Extract the flags from can_mode parameter, which
28756         are currently just used to select between stat()
28757         and lstat().  Also ensure that mutually exclusive
28758         values are flagged immediately as invalid.
28759         * tests/test-canonicalize.c: Verify symlinks are
28760         not followed, and that invalid flag combinations
28761         are diagnosed.
28763 2011-12-25  Jim Meyering  <meyering@redhat.com>
28765         gitlog-to-changelog: do not clump multi-paragraph entries
28766         Identical header lines (date,name,email+coauthors) are suppressed,
28767         thus putting all entries with those same characteristics under
28768         a single header.  However, when a log entry consists of two or
28769         more paragraphs, it may not be clear where it starts and ends.
28770         This change makes it so that such an entry is always separated
28771         from others by a header line, even when that header would
28772         otherwise be suppressed.
28773         * build-aux/gitlog-to-changelog: Implement the above.
28774         Inspired by a related request from Stefano Lattarini in
28775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28777 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28779         announce-gen: fix `cmd' typo in diagnostic
28780         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28781         diagnostic: a missing '$' meant that the command was not output.
28783 2011-12-23  Jim Meyering  <meyering@redhat.com>
28785         test-framework-sh: distribute init.sh
28786         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28787         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28788         fail due to the lack of init.sh.
28790         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28791         * modules/atexit-tests: Rather than listing tests/init.sh,
28792         now that there's a module for it, simply depend on that new module.
28793         * modules/closein-tests: Likewise.
28794         * modules/exclude-tests: Likewise.
28795         * modules/getcwd-tests: Likewise.
28796         * modules/perror-tests: Likewise.
28797         * modules/pread-tests: Likewise.
28798         * modules/pwrite-tests: Likewise.
28799         * modules/vc-list-files-tests: Likewise.
28800         * modules/verify-tests: Likewise.
28801         * modules/xalloc-die-tests: Likewise.
28802         * modules/xstrtoimax-tests: Likewise.
28803         * modules/xstrtol-tests: Likewise.
28804         * modules/xstrtoll-tests: Likewise.
28805         * modules/xstrtoumax-tests: Likewise.
28806         * modules/yesno-tests: Likewise.
28808 2011-12-22  Jim Meyering  <meyering@redhat.com>
28810         test-framework-sh: add minimal tests of init.sh's compare function
28811         * modules/test-framework-sh-tests: New file.
28812         * tests/test-init.sh: New file.
28814         test-framework-sh: new module
28815         * modules/test-framework-sh: New file.
28816         * MODULES.html.sh (Support for maintaining and releasing projects):
28817         List it.
28819         init.sh: do not emit simulated diff output to stderr
28820         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28822 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28824         .gitignore: ignore gnulib.dvi and regex.info
28825         * doc/.gitignore:add gnulib.dvi and regex.info
28827 2011-12-22  Jim Meyering  <meyering@redhat.com>
28829         init.sh: correct previous change
28830         * tests/init.sh (compare): My previous change was wrong.
28831         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28833         init.sh: avoid unwarranted test failure when using "set -e"
28834         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28835         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28836         a use like "compare exp out" would get evoke an unconditional failure.
28838 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28840         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28841         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28842         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28843         autoreconf that did not.
28844         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28845         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28847 2011-12-17  Jim Meyering  <meyering@redhat.com>
28849         bootstrap: remove some now-unneeded code
28850         This script arose back when gnulib-tool was young.
28851         Since then, it has seen improvements that render much of this
28852         script unnecessary.  In particular, it can now make symlinks
28853         to the files it uses.  Also, I no longer see as much value in
28854         marking files as read-only via comments.
28855         If you relied on the symlink-creation feature of the preceding
28856         version of this script, you can get most of that functionality
28857         by adding the --symlink option to the definition of
28858         gnulib_tool_option_extras in your bootstrap.conf file.
28859         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28860         Run autopoint and libtoolize *before* gnulib-tool.
28861         After it, run an abbreviated autoreconf, rather than a loop around
28862         all tools.
28863         (slirp, bt_mark_as_generated): Remove functions.
28865 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28867         ftoastr: fix typo
28868         * lib/ftoastr.h: Fix misspelling in comment.
28870 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28872         * top/README-release: fix punctuation.
28874 2011-12-17  Jim Meyering  <meyering@redhat.com>
28876         bootstrap: correct the recent buildreq change
28877         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28878         had no effect.
28879         * build-aux/bootstrap (buildreq): Bracket each search term with
28880         "*...*", so that the shell "case" statement works as intended.
28881         Add comments.
28883 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28885         build: let bootstrap resort to wget when downloading .po files
28886         * build-aux/bootstrap (download_po_files): Fallback to wget when
28887         downloading the .po files via rsync fails.  This is necessary to
28888         bootstrap from behind a strict firewall.
28890 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28892         stdint: don't assume C++11 when compiling with g++
28893         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28894         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28895         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28896         work also in C++ before C++11, as that improperly inhibits
28897         generating a substitute stdint.h for that case.
28899 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28901         alloca: protect comment from gnulib-tool
28902         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28903         that gnulib-tool doesn't think it's a license, and munge it to
28904         say "GCC version 3".
28906 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28908         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28909         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28910         $(abs_top_builddir) instead of $(top_builddir).
28912 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28914         strftime-tests: also test nanoseconds
28915         * tests/test-strftime.c (T): Add a test of %N.
28917 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28919         inttypes, stdint: add C++11 support
28920         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28921         when including inttypes.h and stdint.h.  Support this change to
28922         the standard.
28923         * doc/posix-headers/inttypes.texi (inttypes.h):
28924         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28925         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28926         Define if not defined already, for the benefit of pre-C++11 hosts.
28927         Define the standard format macros (e.g., PRId8) always.
28928         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28929         Likewise, if __cpluspus.  Define the standard constant and limit
28930         macros (e.g., INT8_C, INT8_MAX) always.
28931         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28932         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28933         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28934         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28935         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28936         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28937         Likewise.
28939 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28941         nonblocking tests: Fix test failure on Linux/PPC.
28942         Suggested by Prerna Saxena in
28943         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28944         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28945         Set to 1100000.
28947 2011-12-12  Jim Meyering  <meyering@redhat.com>
28949         argmatch: don't hard-code `' when listing valid option arguments
28950         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28951         use the quote function to add quotes.  Use fputs rather than
28952         fprintf for the format string with no format directive.
28954 2011-12-07  Eric Blake  <eblake@redhat.com>
28956         bootstrap: detect tools required by gnulib-tool
28957         * build-aux/bootstrap (buildreq): Provide minimum implicit
28958         dependencies.
28959         * DEPENDENCIES: Mention patch as a prereq.
28961 2011-12-04  Bruno Haible  <bruno@clisp.org>
28963         sethostname: Port to Windows platforms.
28964         * lib/sethostname.c: Provide an alternate implementation for Windows
28965         platforms.
28966         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28967         (main): Skip the test if sethostname() fails with EPERM. On Windows
28968         platforms, don't check the result of gethostname().
28970 2011-12-04  Bruno Haible  <bruno@clisp.org>
28971             Jim Meyering  <meyering@redhat.com>
28973         tests: Avoid spurious error message on platforms without mktemp program.
28974         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28976 2011-12-04  Bruno Haible  <bruno@clisp.org>
28978         sethostname: Fix documentation.
28979         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28980         "not fixed" section.
28982 2011-12-03  Bruno Haible  <bruno@clisp.org>
28984         gnulib-tool: Verify that the License field is present and non-empty.
28985         * gnulib-tool (func_get_license_raw): New function, extracted from
28986         func_get_license.
28987         (func_get_license): Use it. Warn if the module is not a test module and
28988         has no license.
28989         Suggested by Jim Meyering.
28991 2011-12-03  Bruno Haible  <bruno@clisp.org>
28993         sethostname tests: Fix link error on mingw.
28994         * tests/test-sethostname1.c: New file, extracted from
28995         tests/test-sethostname.c.
28996         * tests/test-sethostname2.c: New file, extracted from
28997         tests/test-sethostname.c.
28998         * tests/test-sethostname.c: Remove file.
28999         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
29000         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
29001         (Depends-on): Add gethostname.
29002         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
29003         Link the latter with $(GETHOSTNAME_LIB).
29005         sethostname tests: Fix compilation error on mingw.
29006         * tests/test-sethostname.c: Don't include <sys/types.h>.
29007         (geteuid): Use a dummy value without uid_t.
29008         * modules/sethostname-tests (Depends-on): Remove sys_types.
29010         sethostname tests: Avoid a gcc warning.
29011         * tests/test-sethostname.c (main): Remove an unused variable.
29013         Tweak last commit.
29014         * modules/sethostname-tests (Files): Sort by decreasing importance.
29015         (configure.ac): Check for geteuid.
29016         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
29017         the test when there's nothing to test. Drop an unnecessary cast.
29018         Improve an error message. Verify that the final sethostname() call
29019         succeeds.
29021 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29023         Add a test suite for the sethostname module.
29024         * modules/sethostname-tests: New file.  A test program
29025         for the sethostname module.
29026         * tests/test-sethostname.c: Likewise.
29028 2011-12-03  Bruno Haible  <bruno@clisp.org>
29030         Tweak last commit.
29031         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
29032         Fix preprocessor directives indentation. Fix typos.
29033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
29034         * modules/unistd (Makefile): Likewise.
29036 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29038         Integrate the sethostname module into unistd.
29039         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
29040         into the unistd.h header.
29041         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
29042         preprocessor directives.
29043         * modules/unistd: Setup the Makefile substitutions of the
29044         SETHOSTNAME preprocessor directives.
29046 2011-12-03  Bruno Haible  <bruno@clisp.org>
29048         Tweak last commit.
29049         * lib/sethostname.c: Don't include <string.h>.
29050         (sethostname): No need to copy the argument string to the stack. Don't
29051         call clearerr. Preserve errno when fprintf failed.
29052         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
29053         Don't invoke AC_REPLACE_FUNCS.
29054         * modules/sethostname (Link): Remove empty section.
29055         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
29056         failure problem.
29058 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29060         New module 'sethostname'.
29061         * lib/sethostname.c (sethostname): New file.  Provide sethostname
29062         for systems that lack it.
29063         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
29064         sethostname declaration and function.
29065         * modules/sethostname: New file.  Define the sethostname module.
29067 2011-12-03  Bruno Haible  <bruno@clisp.org>
29069         Tweak last commit.
29070         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
29072 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29074         Split the HOST_NAME_MAX detection into a separate m4 macro.
29075         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
29076         macro so it can be used by the pending sethostname module.
29078 2011-12-03  Bruno Haible  <bruno@clisp.org>
29080         Fix module descriptions syntax.
29081         * modules/argv-iter (License): Fix syntax.
29082         * modules/di-set (License): Likewise.
29083         * modules/ino-map (License): Likewise.
29084         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
29086 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29088         stdalign: port to Clang 3.0
29089         Problem reported by Simon Josefsson in
29090         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
29091         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
29092         which has <stdalign.h> but which does not define alignof.
29093         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
29095 2011-12-01  Eric Blake  <eblake@redhat.com>
29097         mktempd: silence dd usage
29098         * build-aux/mktempd (rand_bytes): Silence dd.
29100 2011-11-30  Simon Josefsson  <simon@josefsson.org>
29102         manywarnings: Don't mention gcc version in docstring.
29103         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
29104         Jim Meyering <meyering@redhat.com>.
29106 2011-11-30  Jim Meyering  <meyering@redhat.com>
29108         hash: mark a few floating point constants with "f" suffix
29109         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
29110         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
29111         floating point constants with "f", since they're destined to be
29112         saved/used as "float"s.
29114 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
29116         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
29117         * tests/test-float.c (test_long_double): Correct and re-enable the
29118         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
29120 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
29122         Avoid subtracting two pointers that don't point into the same block.
29123         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
29124         only pointers into the same memory block are subtracted. We cannot
29125         assume that sizeof (ptrdiff_t) == sizeof (void *).
29127 2011-11-29  Eric Blake  <eblake@redhat.com>
29129         maint.mk: add syntax check for use of compare from init.sh
29130         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
29131         moved here from coreutils.
29133         manywarnings: drop -Wunsuffixed-float-constants
29134         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
29135         '1.0D', which is the only way to silence this warning for 'double'.
29137 2011-11-29  Jim Meyering  <meyering@redhat.com>
29139         hash: mark compute_bucket_size with the pure attribute
29140         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
29142         quotearg, propername: correct pragma guard expression
29143         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
29144         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
29146 2011-11-28  Jim Meyering  <meyering@redhat.com>
29148         propername: do not mark proper_name with the const attribute
29149         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
29150         since it examines data pointed to by its parameter.
29151         * lib/propername.c (proper_name): Instead, add a pragma to suppress
29152         the suggestion from -Wsuggest-attribute=const.
29154         propername: mark one more function as const
29155         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
29157 2011-11-27  Jim Meyering  <meyering@redhat.com>
29159         mark functions with const and pure attributes
29161         Mark functions per suggestions from gcc-4.6 when using these options:
29162         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
29163         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
29164         Follow these guidelines: when possible, apply the attribute to
29165         an extern declaration, not to its definition.  Apply it to the
29166         definition only when the definition is static.
29167         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
29168         * lib/argv-iter.h (argv_iter_n_args): Likewise.
29169         * lib/base64.h (isbase64): Likewise.
29170         * lib/basename-lgpl.c (last_component, base_len): Likewise.
29171         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
29172         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
29173         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
29174         (c_tolower, c_toupper): Likewise.
29175         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
29176         * lib/chdir-long.c (find_non_slash): Likewise.
29177         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
29178         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
29179         * lib/file-type.h (file_type): Likewise.
29180         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
29181         * lib/filevercmp.c (verrevcmp): Likewise.
29182         * lib/freadahead.h (freadahead): Likewise.
29183         * lib/fts.c (fts_maxarglen): Likewise.
29184         * lib/hash-pjw.h (hash_pjw): Likewise.
29185         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
29186         * lib/hash.c (is_prime, next_prime): Likewise.
29187         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
29188         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
29189         (hash_table_ok, hash_get_first, hash_string): Likewise.
29190         (compute_bucket_size): Likewise.
29191         * lib/i-ring.h (i_ring_empty): Likewise.
29192         * lib/isnan.c (isnanl): Likewise.
29193         * lib/math.h (isnanl, rpl_isnanl): Likewise.
29194         * lib/memcasecmp.h (memcasecmp): Likewise.
29195         * lib/memchr2.h (memchr2): Likewise.
29196         * lib/memcmp2.h (memcmp2): Likewise.
29197         * lib/parse-datetime.y (lookup_zone): Likewise.
29198         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
29199         [!WINDOWS_SOCKETS]: Likewise.
29200         * lib/strnlen1.h (strnlen1): Likewise.
29201         * lib/uniwidth.in.h (uc_width): Likewise.
29202         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
29203         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
29204         (quoting_options_from_style): Add a comment.
29205         * lib/propername.h (proper_name): Add a comment.
29207 2011-11-27  Bruno Haible  <bruno@clisp.org>
29209         Remove unused macros from !_LIBC code in glibc-borrowed files.
29210         * lib/fnmatch.c (STRCOLL): Remove macro.
29211         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
29212         * lib/glob.c (__stat, __readdir64): Remove macros.
29213         * lib/tempname.c (__open64, __xstat64): Remove macros.
29214         Suggested by Paul Eggert.
29216 2011-11-27  Bruno Haible  <bruno@clisp.org>
29218         getcwd: Fix link error on MSVC 9.
29219         * modules/getcwd (Depends-on): Add readdir, rewinddir.
29221 2011-11-27  Bruno Haible  <bruno@clisp.org>
29223         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
29224         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
29225         HAVE_OPENDIR is 0.
29226         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
29227         HAVE_CLOSEDIR is 0.
29228         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
29229         is 0.
29230         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
29232 2011-11-27  Bruno Haible  <bruno@clisp.org>
29234         getcwd: Fix bug from 2011-08-17.
29235         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
29236         platforms that need it.
29237         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
29238         code of 4 to be a failure, not a success. This ensures that
29239         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
29241 2011-11-27  Bruno Haible  <bruno@clisp.org>
29243         binary-io tests: Avoid test failure on mingw when libtool is used.
29244         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
29245         Don't verify the size of t-bin-out1.tmp here.
29246         * tests/test-binary-io.sh: Verify it here.
29247         Reported by Simon Josefsson.
29249 2011-11-26  Bruno Haible  <bruno@clisp.org>
29251         Fix conflict between two instantiations of module 'unistd'.
29252         * gnulib-tool (func_emit_autoconf_snippet): Substitute
29253         ${include_guard_prefix} also in the autoconf snippet.
29254         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
29255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
29256         GNULIB_UNISTD_H_GETOPT.
29257         * modules/getopt-posix (configure.ac): Set the
29258         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
29259         * modules/getopt-gnu (configure.ac): Likewise.
29260         * modules/unistd (Makefile.am): Change the substitution value of
29261         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
29262         Reported by Simon Josefsson.
29264 2011-11-25  Bruno Haible  <bruno@clisp.org>
29266         pagealign_alloc: Doc and comments.
29267         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
29268         module.
29269         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
29271 2011-11-25  Jim Meyering  <meyering@redhat.com>
29273         test-update-copyright.sh: avoid false-positive failure
29274         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
29275         around false positive failure on Cygwin/Windows.  The latter was
29276         matching erroneously-created files with names like
29277         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
29279 2011-11-25  Simon Josefsson  <simon@josefsson.org>
29281         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
29282         * m4/valgrind-tests.m4: Check that the parameters that will be
29283         used works, not just a subset of them.  Reported by Bruno Haible
29284         <bruno@clisp.org>.
29286 2011-11-24  Jim Meyering  <meyering@redhat.com>
29288         test-stdalign.c: comment out long double tests
29289         * tests/test-stdalign.c: Don't try to reduce alignment of long double
29290         variables.  That provokes errors like this from gcc-4.7.0 20111124:
29291         error: '_Alignas' specifiers cannot reduce alignment of \
29292         'static_longdouble_alignas'.
29294 2011-11-22  Jim Meyering  <meyering@redhat.com>
29296         init.sh: make "compare /dev/null FILE" output more readable
29297         * tests/init.sh (compare_): Document the preferred order of arguments.
29298         (emit_diff_u_header_): New function.
29299         (compare_dev_null_): Emit a simulated diff, rather than just the
29300         contents of the unexpected file.  Suggestion from Bruno Haible.
29302 2011-11-21  Jim Meyering  <meyering@redhat.com>
29303             Eric Blake  <eblake@redhat.com>
29305         init.sh: work around OSF/1 5.1's mishandling of /dev/null
29306         * tests/init.sh: Make our compare function slightly more portable.
29307         Reported by Bruno Haible in
29308         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
29310 2011-11-21  Simon Josefsson  <simon@josefsson.org>
29312         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
29313         before using it, in code that ends up in config.h.
29315 2011-11-20  Bruno Haible  <bruno@clisp.org>
29317         getcwd: Work around getcwd bug on AIX 5..7.
29318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
29319         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
29320         Use a different value for gl_cv_func_getcwd_path_max. Move the
29321         definition of HAVE_PARTLY_WORKING_GETCWD from here...
29322         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
29323         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
29324         Define HAVE_MINIMALLY_WORKING_GETCWD.
29325         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
29326         where it is not even minimally working, that is, on AIX.
29327         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
29328         m4/getcwd-path-max.m4.
29329         (main): Update exit code computation.
29330         * doc/posix-functions/getcwd.texi: Mention list of platforms where
29331         getcwd does not handle long file names.
29333 2011-11-20  Bruno Haible  <bruno@clisp.org>
29335         getcwd: Fix bug from 2009-09-10.
29336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
29337         like "no".
29339 2011-11-20  Simon Josefsson  <simon@josefsson.org>
29341         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
29343 2011-11-20  Bruno Haible  <bruno@clisp.org>
29345         fma tests: Avoid shadowing local variables.
29346         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
29347         expected.
29349 2011-11-20  Bruno Haible  <bruno@clisp.org>
29351         copysignf tests: Fix.
29352         * tests/test-copysignf.c: Fix signature check.
29354 2011-11-20  Bruno Haible  <bruno@clisp.org>
29356         fma: Remove unused code.
29357         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29358         unused macros.
29360 2011-11-20  Bruno Haible  <bruno@clisp.org>
29362         sethostname: Fix doc about AIX.
29363         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29364         sethostname; it has it.
29366         sethostname: Mention more portability problems.
29367         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29368         problem.
29369         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29371 2011-11-19  Bruno Haible  <bruno@clisp.org>
29373         Depend on module fcntl-h when AT_FDCWD is used.
29374         * modules/utimens (Depends-on): Add fcntl-h.
29375         * modules/areadlinkat (Depends-on): Likewise.
29376         * modules/areadlinkat-with-size (Depends-on): Likewise.
29377         * modules/faccessat (Depends-on): Likewise.
29378         * modules/fchmodat (Depends-on): Likewise.
29379         * modules/fchownat (Depends-on): Likewise.
29380         * modules/getcwd (Depends-on): Likewise.
29381         * modules/mkdirat (Depends-on): Likewise.
29382         * modules/mkfifoat (Depends-on): Likewise.
29383         * modules/readlinkat (Depends-on): Likewise.
29384         * modules/symlinkat (Depends-on): Likewise.
29385         * modules/dup2-tests (Depends-on): Likewise.
29386         * modules/fdutimensat-tests (Depends-on): Likewise.
29387         * modules/futimens-tests (Depends-on): Likewise.
29389 2011-11-19  Bruno Haible  <bruno@clisp.org>
29391         euidaccess: Update a comment.
29392         * lib/euidaccess.c: Update comment about platforms with faccessat.
29394 2011-11-19  Bruno Haible  <bruno@clisp.org>
29396         openat: Fix file list.
29397         * modules/openat (Files): Remove lib/at-func.c.
29399 2011-11-19  Bruno Haible  <bruno@clisp.org>
29401         fstatat: Simplify.
29402         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29403         gnulib should define rpl_fstatat, there is a
29404         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29406 2011-11-19  Bruno Haible  <bruno@clisp.org>
29408         Ensure 'inline' can be used in tests/test-utimens-common.h.
29409         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29410         * modules/futimens-tests (configure.ac): Likewise.
29411         * modules/utimens-tests (configure.ac): Likewise.
29412         * modules/utimensat-tests (configure.ac): Likewise.
29414 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29416         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29417         not hash_insert0.
29418         (hash_insert_if_absent): Doc fix.
29420 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29422         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29424 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29426         test-getcwd: disambiguate exit status
29427         * tests/test-getcwd.c (test_long_name): Return 0..7.
29428         (main): Exit with an unambiguous exit status.  The old
29429         code yielded a mysterious mixture of two failure codes.
29431         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29432         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29433         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29434         rpl_fstatat or fstatat.  This should fix the other problem
29435         reported by Kai Habel in
29436         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29437         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29438         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29439         and I reproduced it on a Solaris 8 host we still have in production.
29441 2011-11-18  Jim Meyering  <meyering@redhat.com>
29443         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29444         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29445         Add a sentence to the comment.
29446         (hash_insert0): New function that simply calls hash_insert_if_absent.
29447         * lib/hash.h (hash_insert_if_absent): Declare it.
29448         (hash_insert0): Add deprecation attribute.
29449         (_GL_ATTRIBUTE_DEPRECATED): Define.
29450         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29451         not hash_insert0.
29452         * NEWS: Mention it, even though it's not really an incompatible change.
29454 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29456         openat: avoid compilation failure due to lack of <errno.h> inclusion
29457         * lib/openat.c: Include <errno.h>.
29459 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29461         * modules/getcwd (Depends-on): Add fdopendir.
29462         This fixes one of the two problems reported by Kai Habel in
29463         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29465         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29466         stdalign problem reported by Ian Beckwith in
29467         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29468         * modules/crypto/gc-arcfour (Depends-on):
29469         Depend conditionally on crypto/arcfour.
29470         * modules/crypto/gc-arctwo (Depends-on):
29471         Depend conditionally on crypto/arctwo.
29472         * modules/crypto/gc-des (Depends-on):
29473         Depend conditionally on crypto/des.
29474         * modules/crypto/gc-hmac-md5 (Depends-on):
29475         Depend conditionally on crypto/hmac-md5.
29476         * modules/crypto/gc-hmac-sha1 (Depends-on):
29477         Depend conditionally on crypto/hmac-sha1.
29478         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29479         * modules/crypto/gc-md4 (Depends-on):
29480         Depend conditionally on crypto/md4.
29481         * modules/crypto/gc-md5 (Depends-on):
29482         Depend conditionally on crypto/md5.
29483         * modules/crypto/gc-rijndael (Depends-on):
29484         Depend conditionally on crypto/rijndael.
29485         * modules/crypto/gc-sha1 (Depends-on):
29486         Depend conditionally on crypto/sha1.
29487         * modules/crypto/gc-arcfour:
29488         * modules/crypto/gc-arctwo:
29489         * modules/crypto/gc-des:
29490         * modules/crypto/gc-hmac-md5:
29491         * modules/crypto/gc-hmac-sha1:
29492         * modules/crypto/gc-md2:
29493         * modules/crypto/gc-md4:
29494         * modules/crypto/gc-md5:
29495         * modules/crypto/gc-rijndael:
29496         * modules/crypto/gc-sha1:
29497         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29498         now that the conditional dependencies do the work for us.
29500 2011-11-17  Jim Meyering  <meyering@redhat.com>
29502         tests: factor st_ctime-comparison out of two headers
29503         * tests/test-utimens-common.h (ctime_compare): Define.
29504         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29505         * tests/test-lutimens.h (test_lutimens): Likewise.
29506         * tests/test-utimens.h (test_utimens): Likewise.
29508         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29509         Invoke the test program via an init.sh-using wrapper.
29510         * tests/test-getcwd.sh: New file.
29511         * modules/getcwd-tests (Files): Add it.
29512         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29514 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29516         gitlog-to-changelog: support multi-author commits.
29517         The FSF cares about keeping track of all authors of patches to its
29518         projects, but Git doesn't provide obvious support for multi-author
29519         changesets. Consensus seems to be forming around the use of extra
29520         Signed-off-by inspired lines in the log message formatted as
29521         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29522         multi-author commits between version control systems.
29523         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29524         log message and output in standard ChangeLog multi-author format.
29525         Reported by Peter Rosin <peda@lysator.liu.se>
29527 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29528             Bruno Haible  <bruno@clisp.org>
29530         Fix some modules' file list.
29531         * modules/fstatat (Files): Add m4/lstat.m4.
29532         * modules/openat (Files): Likewise.
29533         * modules/unlinkat (Files): Likewise.
29535 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29537         maint.mk: fix tight-scope.mk generation in VPATH builds.
29538         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29539         reference with $(srcdir) so that the file is found correctly even
29540         when running `make syntax-check' in a VPATH build.
29542 2011-11-13  Bruno Haible  <bruno@clisp.org>
29543             Jim Meyering  <meyering@redhat.com>
29545         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29546         * tests/init.sh (compare): Remove "No differences encountered" or
29547         synonymous output from the 'diff' program.
29549 2011-11-13  Bruno Haible  <bruno@clisp.org>
29551         Makefile: Tweak indentation.
29552         * Makefile: Use tab as first character in every line that contains rule
29553         commands.
29555 2011-11-13  Bruno Haible  <bruno@clisp.org>
29557         Syntax check for copyright statements.
29558         * check-copyright: New file.
29559         * Makefile (sc_check_copyright): New rule.
29561 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29563         * build-aux/git-version-gen: Add --prefix to configure the tag
29564         match string.
29566 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29568         * build-aux/git-version-gen: Add --help and --version.
29570 2011-11-12  Jim Meyering  <meyering@redhat.com>
29572         revamp the other test-exclude?.sh scripts to use init.sh, too
29573         * tests/test-exclude1.sh: Use init.sh.
29574         * tests/test-exclude2.sh: Likewise.
29575         * tests/test-exclude3.sh: Likewise.
29576         * tests/test-exclude4.sh: Likewise.
29577         * tests/test-exclude5.sh: Likewise.
29578         * tests/test-exclude6.sh: Likewise.
29579         * tests/test-exclude7.sh: Likewise.
29580         * tests/test-exclude8.sh: Likewise.
29581         * modules/exclude-tests (Files): List init.sh.
29583         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29584         These shell scripts ignored failure of the binary test-exclude,
29585         so making the latter return 77 didn't cause them to be skipped.
29586         * tests/test-exclude5.sh: Exit with test-exclude's error status
29587         when that program fails.  Revamp to use init.sh.
29588         * tests/test-exclude2.sh: Likewise.
29590         test-exclude: fix a typo
29591         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29593 2011-11-11  Bruno Haible  <bruno@clisp.org>
29595         obstack: Fix compilation error on MSVC 9.
29596         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29598 2011-11-11  Jim Meyering  <meyering@redhat.com>
29600         test-exclude: skip tests rather than failing on deficient systems
29601         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29602         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29603         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29604         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29606 2011-11-10  Bruno Haible  <bruno@clisp.org>
29608         ptsname_r test: Avoid gcc warning on glibc systems.
29609         * tests/test-ptsname_r.c (null_ptr): New function.
29610         (test_errors): Use it.
29612 2011-11-10  Bruno Haible  <bruno@clisp.org>
29614         ptsname_r: Avoid compilation error on OSF/1 5.1.
29615         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29617         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29618         function is not declared or incompatibly declared.
29619         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29620         * modules/ptsname_r (Depends-on, configure.ac): Update.
29621         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29623 2011-11-10  Bruno Haible  <bruno@clisp.org>
29625         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29626         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29627         When cross-compiling, guess yes on all platforms except AIX.
29628         Reported by Ludovic Courtès <ludo@gnu.org>.
29630 2011-11-09  Bruno Haible  <bruno@clisp.org>
29632         ptsname_r tests: Fix bugs.
29633         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29634         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29636 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29638         fstatat: work with cross-compilation
29639         Problem reported by Ludovic Courtès in
29640         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29641         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29642         "cross-compiling" and assume the bug is present.  Replace
29643         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29644         an inverted sense, to be more conservative about our assumptions.
29645         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29647 2011-11-09  Bruno Haible  <bruno@clisp.org>
29649         Improve MODULES.html output.
29650         * modules/mkfifoat (Description): Use the word "function".
29651         * modules/readlinkat (Description): Likewise.
29652         * modules/symlinkat (Description): Likewise.
29654 2011-11-09  Eric Blake  <eblake@redhat.com>
29656         ptsname_r-tests: new test module
29657         * modules/ptsname_r-tests: New module.
29658         * tests/test-ptsname_r.c: New file.
29660         ptsname_r: new module
29661         * modules/ptsname_r: New module.
29662         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29663         * lib/ptsname.c (__ptsname_r): Split...
29664         * lib/ptsname_r.c: ...into new file.
29665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29666         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29667         * modules/stdlib (Makefile.am): Substitute witnesses.
29668         * lib/stdlib.in.h (ptsname_r): Declare it.
29669         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29670         * MODULES.html.sh (Misc): Likewise.
29671         * modules/ptsname (Depends-on): Alter dependency.
29672         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29674 2011-11-09  Jim Meyering  <meyering@redhat.com>
29676         announce-gen: be more concise when there's only one URL+tarball
29677         * build-aux/announce-gen (get_tool_versions): When you distribute
29678         only one type of tarball, combine the first two "Here are..."
29679         sections and make the key-checking grammar independent of
29680         how many tarballs there are.
29682 2011-11-09  Eric Blake  <eblake@redhat.com>
29684         openpty: provide a stub on mingw
29685         * lib/pty.in.h (includes): Provide forward declarations.
29686         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29688         raise: fix mingw handling of SIGPIPE
29689         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29691 2011-11-08  Bruno Haible  <bruno@clisp.org>
29693         More conditional dependencies.
29694         * modules/faccessat (Depends-on): Add conditions.
29695         * modules/fchmodat (Depends-on): Likewise.
29696         * modules/fchownat (Depends-on): Likewise.
29697         * modules/fstatat (Depends-on): Likewise.
29698         * modules/mkfifoat (Depends-on): Likewise.
29699         * modules/readlinkat (Depends-on): Likewise.
29700         * modules/symlinkat (Depends-on): Likewise.
29701         * modules/unlinkat (Depends-on): Likewise.
29702         * modules/utimensat (Depends-on): Likewise.
29703         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29704         * modules/linkat (Depends-on): Refine the conditions.
29705         * modules/renameat (Depends-on): Likewise.
29707 2011-11-08  Bruno Haible  <bruno@clisp.org>
29709         faccessat: Move AC_LIBOBJ invocation to module description.
29710         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29711         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29712         invocation from here...
29713         * modules/faccessat (configure.ac): ... to here. Invoke
29714         gl_PREREQ_FACCESSAT.
29716 2011-11-08  Bruno Haible  <bruno@clisp.org>
29718         faccessat: Simplify autoconf macro.
29719         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29720         gl_FUNC_EUIDACCESS.
29722 2011-11-08  Bruno Haible  <bruno@clisp.org>
29724         renameat: Fix dependencies.
29725         * modules/renameat (Depends-on): Add stdbool.
29727 2011-11-08  Bruno Haible  <bruno@clisp.org>
29729         mkfifoat: Fix module description.
29730         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29731         not gl_UNISTD_MODULE_INDICATOR.
29733 2011-11-08  Bruno Haible  <bruno@clisp.org>
29735         fstatat: Remove unused dependency.
29736         * modules/fstatat (Depends-on): Remove fstat.
29738 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29740         GNUmakefile: behave when Makefile is missing.
29741         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29743 2011-11-08  Bruno Haible  <bruno@clisp.org>
29745         openat: Conditionalize dependencies.
29746         * lib/openat.c: Reduce the scope of some #includes.
29747         * modules/openat (Depends-on): Add conditions.
29749 2011-11-07  Jim Meyering  <meyering@redhat.com>
29751         maint.mk: extract GPG key ID without using a temporary file
29752         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29753         without using a temporary file.  Based on a suggestion from Werner Koch
29754         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29756 2011-11-07  Eric Blake  <eblake@redhat.com>
29758         grantpt: fix typo
29759         * lib/stdlib.in.h (grantpt): Check correct function.
29761         maint.mk: silence new syntax check
29762         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29764 2011-11-06  Bruno Haible  <bruno@clisp.org>
29766         Doc about floating-point and math API.
29767         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29768         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29770 2011-11-06  Bruno Haible  <bruno@clisp.org>
29772         stdalign tests: Skip the test when compiled by Sun C.
29773         * tests/test-stdalign.c (main): Skip the test on Sun C.
29775 2011-11-06  Bruno Haible  <bruno@clisp.org>
29777         ansi-c++-opt: Complete the 2011-06-05 change.
29778         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29779         does not support namespaces, set the variable to "no", not to ":".
29781 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29783         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29785 2011-11-06  Bruno Haible  <bruno@clisp.org>
29787         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29788         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29789         (minus_zerol) [HP-UX]: New macro.
29790         (unary_minus) [HP-UX]: New function.
29791         (copysignl) [HP-UX]: Use unary_minus function.
29793 2011-11-06  Bruno Haible  <bruno@clisp.org>
29795         ldexp, ldexpf, ldexpl: Enhance tests.
29796         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29797         and tests/test-ldexpl.c.
29798         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29799         LDEXP, MIN_EXP, MAX_EXP): New macros.
29800         Include test-ldexp.h.
29801         (main): Just call test_function.
29802         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29803         infinity.h, nan.h.
29804         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29805         MAX_EXP): New macros.
29806         Include test-ldexp.h.
29807         (x, y): Remove variables.
29808         (main): Just call test_function.
29809         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29810         infinity.h, nan.h.
29811         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29812         MAX_EXP): New macros.
29813         Include test-ldexp.h.
29814         (x, y): Remove variables.
29815         (main): Just call test_function.
29816         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29817         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29818         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29819         (Depends-on): Add isnand-nolibm, signbit, float.
29820         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29821         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29822         (Depends-on): Add isnanf-nolibm, signbit, float.
29824 2011-11-06  Bruno Haible  <bruno@clisp.org>
29826         math tests: Cosmetics.
29827         * tests/test-math-c++.cc: Reorder declarations.
29829 2011-11-05  Bruno Haible  <bruno@clisp.org>
29831         fma*: Simplify test.
29832         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29833         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29835         Tests for module 'fmal'.
29836         * modules/fmal-tests: New file.
29837         * tests/test-fmal1.c: New file.
29838         * tests/test-fmal2.c: New file.
29840         New module 'fmal'.
29841         * lib/math.in.h (fmal): New declaration.
29842         * lib/fmal.c: New file.
29843         * m4/fmal.m4: New file.
29844         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29846         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29847         REPLACE_FMAL.
29848         * modules/fmal: New file.
29849         * doc/posix-functions/fmal.texi: Mention the new module and the various
29850         bugs.
29852         Tests for module 'fmaf'.
29853         * modules/fmaf-tests: New file.
29854         * tests/test-fmaf1.c: New file.
29855         * tests/test-fmaf2.c: New file.
29857         New module 'fmaf'.
29858         * lib/math.in.h (fmaf): New declaration.
29859         * lib/fmaf.c: New file.
29860         * m4/fmaf.m4: New file.
29861         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29863         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29864         REPLACE_FMAF.
29865         * modules/fmaf: New file.
29866         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29867         bugs.
29869         Tests for module 'fma'.
29870         * modules/fma-tests: New file.
29871         * tests/test-fma1.c: New file.
29872         * tests/test-fma1.h: New file.
29873         * tests/test-fma2.c: New file.
29874         * tests/test-fma2.h: New file.
29876         New module 'fma'.
29877         * lib/math.in.h (fma): New declaration.
29878         * lib/fma.c: New file.
29879         * m4/fma.m4: New file.
29880         * m4/fegetround.m4: New file.
29881         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29883         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29884         REPLACE_FMA.
29885         * modules/fma: New file.
29886         * doc/posix-functions/fma.texi: Mention the new module and the various
29887         bugs.
29889         Extend gl_MATHFUNC.
29890         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29891         Support 'void' as argument type.
29892         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29894 2011-11-05  Jim Meyering  <meyering@redhat.com>
29896         maint.mk: also prohibit inclusion of dirent.h without use
29897         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29899 2011-11-05  Bruno Haible  <bruno@clisp.org>
29901         ldexpl tests: Avoid test failure on MSVC 9.
29902         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29903         value. Needed in order to enforce the conversion from a value greater
29904         than LDBL_MAX to Infinity.
29906 2011-11-05  Bruno Haible  <bruno@clisp.org>
29908         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29909         * modules/at-internal: New file, extracted from modules/openat.
29910         * modules/openat-h: New file.
29911         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29912         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29913         * modules/openat (Description): Add reference to POSIX function.
29914         (Files): Remove lib/openat.h, lib/openat-proc.c.
29915         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29916         intprops, unistd.
29917         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29918         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29919         gl_FCNTL_MODULE_INDICATOR.
29920         (Include): Remove unistd.h, openat.h.
29921         * modules/areadlinkat (Files): Add lib/at-func.c.
29922         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29923         openat-die, openat-h, save-cwd.
29924         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29925         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29926         openat-die, openat-h, save-cwd, unistd.
29927         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29928         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29929         openat-h, save-cwd. Remove fcntl-h, openat.
29930         * modules/fchmodat (Files): Remove lib/openat.h.
29931         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29932         openat, stdbool, unistd.
29933         * modules/fchownat (Files): Remove lib/openat.h.
29934         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29935         openat, stdbool, sys_stat.
29936         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29937         lib/openat-proc.c.
29938         (Depends-on): Add at-internal.
29939         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29940         * modules/fstatat (Files): Remove lib/openat.h.
29941         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29942         stdbool, unistd.
29943         * modules/fts (Depends-on): Add openat-h.
29944         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29945         openat.
29946         * modules/mkdirat (Files): Remove lib/openat.h.
29947         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29948         openat, stdbool, sys_stat.
29949         * modules/mkfifoat (Files): Add lib/at-func.c.
29950         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29951         openat-h, save-cwd. Remove fcntl-h, openat.
29952         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29953         * modules/readlinkat (Files): Add lib/at-func.c.
29954         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29955         openat-h, save-cwd. Remove fcntl-h, openat.
29956         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29957         openat.
29958         * modules/selinux-at (Files): Add lib/at-func.c.
29959         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29960         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29961         * modules/symlinkat (Files): Add lib/at-func.c.
29962         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29963         openat-h, save-cwd. Remove fcntl-h, openat.
29964         * modules/unlinkat (Files): Remove lib/openat.h.
29965         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29966         stdbool.
29967         * modules/utimensat (Files): Add lib/at-func.c.
29968         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29969         openat-die, openat-h, save-cwd.
29970         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29971         * modules/fdutimensat-tests (Depends-on): Add openat.
29972         * modules/fstatat-tests (Depends-on): Add openat-h.
29973         * modules/readlinkat-tests (Depends-on): Add openat.
29974         * modules/symlinkat-tests (Depends-on): Add openat.
29976 2011-11-05  Bruno Haible  <bruno@clisp.org>
29978         openat: Include <stdbool.h>.
29979         * lib/openat.c: Include <stdbool.h>.
29981 2011-11-04  Bruno Haible  <bruno@clisp.org>
29983         fchownat, renameat, unlinkat: Fix dependencies.
29984         * modules/fchownat (Depends-on): Add fstatat.
29985         * modules/renameat (Depends-on): Likewise.
29986         * modules/unlinkat (Depends-on): Likewise.
29988 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29990         openat: remove direct dependency on dirent
29991         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29992         and hasn't been needed ever since fdopendir was split into its own
29993         module on 2009-08-31.
29994         * modules/openat (Depends-on): Remove dirent.
29996 2011-11-04  Bruno Haible  <bruno@clisp.org>
29998         renameat: Optimize code size.
29999         * modules/renameat (configure.ac): Don't compile at-func2.c if
30000         REPLACE_RENAMEAT is 1.
30002 2011-11-04  Bruno Haible  <bruno@clisp.org>
30004         openat tests: Fix file list.
30005         * modules/openat-tests (Files): Add tests/test-open.h.
30007 2011-11-04  Bruno Haible  <bruno@clisp.org>
30009         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
30010         * modules/fchmodat (Depends-on): Add openat-die.
30011         * modules/fchownat (Depends-on): Likewise.
30012         * modules/linkat (Depends-on): Likewise.
30013         * modules/renameat (Depends-on): Likewise.
30014         * modules/openat (Depends-on): Add dirent.
30016 2011-11-04  Jim Meyering  <meyering@redhat.com>
30018         at-func*.c: fix comments
30019         * lib/at-func2.c: Correct/improve first-line comment.
30020         * lib/at-func.c: Correct grammar in first-line comment.
30022 2011-11-04  Bruno Haible  <bruno@clisp.org>
30024         New module 'mkdirat', split off from module 'openat'.
30025         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
30026         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
30027         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
30028         * modules/mkdirat: New file, extracted from modules/openat.
30029         * modules/openat (Files): Remove lib/mkdirat.c.
30030         (Depends-on): Remove mkdir.
30031         (configure.ac): Remove AC_LIBOBJ of mkdirat.
30032         (Include): Remove <sys/stat.h>.
30033         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
30034         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
30035         tests/test-mkdir.h.
30036         (Depends-on): Remove ignore-value.
30037         (Makefile.am): Remove rules for test-mkdirat.
30038         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
30039         of module 'openat'.
30040         * NEWS: Mention the change.
30042 2011-11-04  Bruno Haible  <bruno@clisp.org>
30044         closedir: Avoid warning on mingw.
30045         * lib/closedir.c: Include <unistd.h>.
30047 2011-11-04  Bruno Haible  <bruno@clisp.org>
30049         New module 'fstatat', split off from module 'openat'.
30050         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
30051         defined.
30052         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
30053         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
30054         gl_FUNC_FSTATAT.
30055         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
30056         * modules/fstatat: New file, extracted from modules/openat.
30057         * modules/openat (Files): Remove lib/fstatat.c.
30058         (Depends-on): Remove lstat.
30059         (configure.ac): Remove AC_LIBOBJ of fstatat.
30060         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
30061         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
30062         tests/test-lstat.h, tests/test-stat.h.
30063         (Depends-on): Remove getcwd-lgpl.
30064         (Makefile.am): Remove rules for test-fstatat.
30065         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
30066         of module 'openat'.
30067         * NEWS: Mention the change.
30068         * modules/getcwd (Depends-on): Add fstatat.
30069         * modules/linkat (Depends-on): Likewise.
30070         * modules/mkfifoat-tests (Depends-on): Likewise.
30071         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
30073 2011-11-03  Bruno Haible  <bruno@clisp.org>
30075         New module 'unlinkat', split off from module 'openat'.
30076         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
30077         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
30078         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
30079         * modules/unlinkat: New file, extracted from modules/openat. Correct
30080         the dependency conditions.
30081         * modules/openat (Files): Remove lib/unlinkat.c.
30082         (Depends-on): Remove rmdir, unlink.
30083         (configure.ac): Remove AC_LIBOBJ of unlinkat.
30084         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
30085         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
30086         tests/test-rmdir.h, tests/test-unlink.h.
30087         (Depends-on): Remove unlinkdir.
30088         (Makefile.am): Remove rules for test-unlinkat.
30089         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
30090         of module 'openat'.
30091         * NEWS: Mention the change.
30092         * modules/linkat-tests (Depends-on): Add unlinkat.
30093         * modules/mkfifoat-tests (Depends-on): Likewise.
30094         * modules/readlinkat-tests (Depends-on): Likewise.
30096 2011-11-02  Bruno Haible  <bruno@clisp.org>
30098         New module 'fchmodat', split off from module 'openat'.
30099         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
30100         defined.
30101         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
30102         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
30103         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
30104         * modules/fchmodat: New file, extracted from modules/openat.
30105         * modules/openat (Files): Remove lib/fchmodat.c.
30106         (configure.ac): Remove AC_LIBOBJ of fchmodat.
30107         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
30108         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
30109         (Makefile.am): Remove rules for test-fchmodat.
30110         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
30111         of module 'openat'.
30112         * NEWS: Mention the change.
30114 2011-11-02  Jim Meyering  <meyering@redhat.com>
30116         putenv: indent #definition of "environ" to placate cppi
30117         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
30119         gitlog-to-changelog: provide a ChangeLog-repair mechanism
30120         Git logs are often treated as immutable, because editing them
30121         changes the SHA1 checksums of all descendants.  Thus, errors in
30122         git logs tend to stay there forever.  However, when we generate
30123         a ChangeLog file -- typically for distribution -- from that git log,
30124         we can actually make corrections in the generated file.  The key
30125         lies in recording in machine-readable/applicable form the desired
30126         corrections.  See --help for description and an example.
30127         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
30128         (usage): Describe it; alphabetize option descriptions.
30129         (main): Honor the new option, carefully.
30131 2011-11-01  Jim Meyering  <meyering@redhat.com>
30133         gitlog-to-changelog: avoid an infloop
30134         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
30135         that ends up being empty.
30137 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30139         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
30140         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
30141         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
30142         contains (possibly-quoted) backslashes.  This should avoid
30143         all-too-common shell bugs if COMPLICATED contains backslashes in
30144         the "wrong" places.  Reported by David Evans in
30145         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
30146         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
30147         because we want ASCII ranges.  Is there some reason we don't use
30148         the C locale everywhere in this script?
30149         (func_module, top level): Avoid unwanted pathname expansion when
30150         $repo_url_prefix or $repo_url_suffix_repl contain shell
30151         metacharacters like '?' and '*'.
30153 2011-11-01  Bruno Haible  <bruno@clisp.org>
30155         fchownat: Improve description.
30156         * modules/fchownat (Description): Add link to function.
30158 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30160         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
30161         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
30162         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
30163         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
30165 2011-11-01  Bruno Haible  <bruno@clisp.org>
30167         alignof: Avoid collision with stdalign module.
30168         * lib/alignof.h (alignof): Remove macro.
30169         * NEWS: Mention the change.
30170         Reported by Paul Eggert.
30172 2011-11-01  Bruno Haible  <bruno@clisp.org>
30174         New module 'fchownat', split off from module 'openat'.
30175         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
30176         defined.
30177         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
30178         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
30179         invoke gl_FUNC_FCHOWNAT.
30180         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
30181         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
30182         * modules/fchownat: New file, extracted from modules/openat.
30183         * modules/openat (Files): Remove lib/fchownat.c.
30184         (Depends-on): Remove lchown.
30185         (configure.ac): Remove AC_LIBOBJ of fchownat.
30186         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
30187         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
30188         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
30189         (Depends-on): Remove mgetgroups, usleep, stat-time.
30190         (configure.ac): Remove test for getegid.
30191         (Makefile.am): Remove rules for test-fchownat.
30192         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
30193         of module 'openat'.
30194         * NEWS: Mention the change.
30196 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30198         stdalign: port better to MSVC and to Sun C 5.11
30199         This fixes some of the problems reported by Bruno Haible in
30200         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
30201         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
30202         shortcomings of MSVC and of Sun C 5.11.
30203         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
30204         around __declspec arg.
30205         * modules/stdalign-tests (Files): Add tests/macros.h.
30206         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
30207         Include macros.h, for ASSERT.
30208         (DECLARE_ALIGNED): Remove.
30209         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
30210         to catch bug), and to 1 if not (simplifies the rest of the code).
30211         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
30212         (CHECK_AUTO): Remove.
30213         (CHECK_ALIGNED): Check only the alignment of the static vars,
30214         since auto var alignment isn't supported by Sun C 5.11.
30215         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
30216         ASSERT failures are easier to diagnose.
30218 2011-10-31  Bruno Haible  <bruno@clisp.org>
30220         doc about some IRIX 5.3 problems.
30221         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
30222         on IRIX 5.3.
30223         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
30224         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
30225         5.3.
30226         * doc/posix-functions/grantpt.texi: Likewise.
30227         * doc/posix-functions/unlockpt.texi: Likewise.
30228         * doc/posix-functions/lgamma.texi: Likewise.
30229         * doc/posix-functions/nextafter.texi: Likewise.
30230         * doc/posix-functions/remainder.texi: Likewise.
30231         * doc/posix-functions/select.texi: Mention misplaced declaration on
30232         IRIX 5.3.
30233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30235 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
30237         gitlog-to-changelog: fix git-log invocation.
30238         git-log mishandles date strings before 1970-01-01 UTC, and there is
30239         no use to specify --since=1970-01-01 by default anyway.
30240         * build-aux/gitlog-to-changelog: By default, when no --since option
30241         was given, do not specify explicit --since option to git-log.
30243 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
30245         gitlog-to-changelog: new option --append-dot.
30246         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
30247         first non-blank line of each commit message terminated with a dot.
30249 2011-10-30  Bruno Haible  <bruno@clisp.org>
30251         ffsl, ffsll: Avoid compilation error due to 'restrict'.
30252         * lib/ffsl.h: Include <config.h>.
30253         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
30255 2011-10-30  Jim Meyering  <meyering@redhat.com>
30257         GNUmakefile: reenable "make syntax-check" for most projects
30258         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
30259         build-aux variable", "syntax-check" would do nothing but succeed with
30260         the "No version control files detected..." diagnostic (unless you
30261         happened to override _build-aux via cfg.mk).
30262         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
30263         to precede inclusion of maint.mk.  Otherwise, these variables would
30264         be used undefined in any project that does not override the default.
30266 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
30268         gitlog-to-changelog: treat a message with only blank lines as empty.
30269         * build-aux/gitlog-to-changelog: Move the code that removes leading and
30270         trailing blank lines before the code that issues a warning about an
30271         empty commit message.
30273 2011-10-30  Jim Meyering  <meyering@redhat.com>
30275         test-parse-datetime.c: avoid new DST-related false positive test failure
30276         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
30277         based on the time/date we'll convert, not the current time.
30278         Otherwise, the moment we cross a DST boundary like today's in
30279         Europe, (CEST to CET), that offset ends up being one hour off.
30281 2011-10-27  Bruno Haible  <bruno@clisp.org>
30283         fstat: Tweak documentation.
30284         * modules/fstat (Description): More precise description.
30286 2011-10-27  Bruno Haible  <bruno@clisp.org>
30288         Update documentation regarding 'largefile' module.
30289         * doc/posix-functions/fstat.texi: Tweak wording.
30290         * doc/posix-functions/opendir.texi: Mention that the module fixes the
30291         problems with huge directories and/or small ino_t types.
30292         * doc/posix-functions/readdir.texi: Likewise.
30293         * doc/posix-functions/rewinddir.texi: Likewise.
30295 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
30297         maint.mk: don't maintain a second build-aux variable.
30298         * maint.mk (build_aux): Removed.  The maintainer-makefile module
30299         depends on GNUmakefile, which already maintains a cfg.mk
30300         overridable $(_build-aux) for projects with a non-standard
30301         build-aux directory location, although without the $(srcdir)
30302         prefix.  Use that variable consistently instead of introducing a
30303         second one.  Adjust all call sites.
30305 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30307         Add stdalign module and use it in other modules.
30308         This is based on a previous proposal by Bruno Haible
30309         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
30311         stdalign: new module
30312         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
30313         * modules/stdalign: New files.
30314         * MODULES.html.sh (c1x_core_properties): Add stdalign.
30315         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
30317         stdalign-tests: new module
30318         * modules/stdalign-tests, tests/test-stdalign.c: New files.
30320         argp: use stdalign
30321         * lib/argp-parse.c: Include <stdalign.h>.
30322         (alignof): Remove.
30323         * modules/argp (Depends-on): Add stdalign.
30325         crypto libraries: use stdalign
30326         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
30327         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
30328         Do not include <stdlib.h> twice, in md4.c.
30329         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
30330         because we are accessing a pointer's bit-pattern, not a size.
30331         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
30332         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
30333         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
30334         * modules/crypto/sha512: Likewise.
30336         sys_socket: use stdalign, not alignof
30337         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
30338         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
30340 2011-10-27  Bruno Haible  <bruno@clisp.org>
30342         raise test: Avoid a test failure on Linux/MIPS.
30343         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
30344         because 99 is a valid signal on Linux/MIPS.
30346 2011-10-27  Bruno Haible  <bruno@clisp.org>
30348         nonblocking tests: Fix test failure on Linux/MIPS.
30349         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
30350         Set to 270000.
30352 2011-10-27  Bruno Haible  <bruno@clisp.org>
30354         utimensat: Work around problem on Linux/hppa.
30355         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
30356         values.
30357         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30359 2011-10-25  Jim Meyering  <meyering@redhat.com>
30361         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30362         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30363         after symbols like NULL, size_t, etc.
30364         Reported by Alfred M. Szmidt.
30366         maint.mk: exempt ENODATA from a syntax-check rule
30367         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30368         from the sc_prohibit_always-defined_macros syntax-check rule.
30369         Add a comment.  See this for more details:
30370         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30372 2011-10-23  Jim Meyering  <meyering@redhat.com>
30374         fts: close parent dir FD before returning from post-traversal fts_read
30375         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30376         unlink A, even though an FD open on A remained.  This is suboptimal
30377         (holding a file descriptor open longer than needed), but otherwise not
30378         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30379         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30380         that represents a real problem: it causes the removal of A to fail
30381         with e.g., "rm: cannot remove `A': Device or resource busy"
30383         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30384         directory file descriptors.  After completing the final, FTS_DP,
30385         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30386         cache, but then proceeded to add a new FD to it via the subsequent
30387         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30388         final file descriptor would be closed only via fts_close's call to
30389         fd_ring_clear.  Now, it is usually closed earlier, via the final
30390         FTS_DP-returning fts_read call.
30391         * lib/fts.c (restore_initial_cwd): New function, converted from
30392         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30393         Update callers.
30394         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30395         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30397 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30398             Bruno Haible  <bruno@clisp.org>
30399             Jim Meyering  <jim@meyering.net>
30401         readme-release: improve safety of release prep instructions.
30402         * README-release: Don't git pull all branches when only master
30403         is needed for the release process.
30404         Run make maintainer-clean before changing trees and merging.
30405         Don't try to run ./configure right after git pull in case files
30406         that influence the bootstrap process have changed, move the
30407         ./configure step to after running ./bootstrap.
30408         Don't bootstrap "one last time"... it's the first time!
30410 2011-10-22  Bruno Haible  <bruno@clisp.org>
30412         errno, strerror-override: Support for MSVC 10.
30413         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30414         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30415         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30416         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30417         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30418         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30419         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30420         Assign values compatible with MSVC 10.
30421         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30422         New macros.
30423         (GNULIB_defined_EWINSOCK): New macro.
30424         * lib/strerror-override.c (strerror_override): Update accordingly.
30425         * lib/strerror-override.h: Likewise.
30426         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30427         longer equal to the corresponding errno value.
30428         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30430 2011-10-22  Bruno Haible  <bruno@clisp.org>
30432         perror: Recognize when test program crashes.
30433         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30434         strerror, set gl_cv_func_perror_works to no.
30435         Reported by Daniel Richard G. <skunk@iskunk.org>.
30437         perror: Fix indentation.
30438         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30440 2011-10-22  Bruno Haible  <bruno@clisp.org>
30442         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30443         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30444         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30445         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30446         functions, not as a macro.
30447         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30448         macros.
30449         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30450         absence of macro.
30451         Suggested by Eric Blake.
30452         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30454 2011-10-21  Bruno Haible  <bruno@clisp.org>
30456         relocatable-prog-wrapper: Don't leave object files behind.
30457         * build-aux/install-reloc: Re-synchronize list of .o files to be
30458         removed with list of compilation units.
30460 2011-10-20  Bruno Haible  <bruno@clisp.org>
30462         openpty, posix_openpt: Remove code duplication.
30463         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30464         * lib/openpty.c: Include <stdlib.h>.
30465         (openpty): Use posix_openpt on all platforms except IRIX.
30466         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30468 2011-10-20  Bruno Haible  <bruno@clisp.org>
30470         unlockpt: Detect invalid argument.
30471         * lib/unlockpt.c: Include <fcntl.h>.
30472         (unlockpt): Check whether fd is valid, using fcntl().
30473         * modules/unlockpt (Depends-on): Add fcntl-h.
30475 2011-10-20  Bruno Haible  <bruno@clisp.org>
30477         openpty: Avoid compilation error on AIX 6.1.
30478         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30480 2011-10-20  Bruno Haible  <bruno@clisp.org>
30482         posix_openpt: Support for OpenBSD.
30483         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30484         (posix_openpt) [OpenBSD]: New code.
30485         * lib/grantpt.c: Include <fcntl.h>.
30486         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30487         * modules/grantpt (Depends-on): Add fcntl-h.
30489 2011-10-20  Bruno Haible  <bruno@clisp.org>
30491         posix_openpt test: Coding style.
30492         * tests/test-posix_openpt.c: Use GNU coding style.
30494 2011-10-20  Bruno Haible  <bruno@clisp.org>
30496         grantpt: Support --avoid=pt_chown.
30497         * modules/grantpt (Files): Add lib/pty-private.h.
30499 2011-10-20  Bruno Haible  <bruno@clisp.org>
30501         posix_openpt: Fix autoconf macro.
30502         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30503         unneeded check for _getpty.
30505 2011-10-20  Bruno Haible  <bruno@clisp.org>
30507         openpty: Update comments.
30508         * lib/openpty.c: Add comments about Minix.
30510 2011-10-19  Eric Blake  <eblake@redhat.com>
30512         openpty: relax license
30513         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30515         pt_chown: use configmake to simplify build
30516         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30518         ptsname and others: relax license
30519         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30520         * modules/unlockpt (License): Likewise.
30521         * modules/pt_chown (License): Likewise.
30522         * modules/ptsname (License): Likewise.
30523         * modules/ttyname_r (License): Likewise.
30525 2011-10-19  Jim Meyering  <meyering@redhat.com>
30527         posix_openpt: remove spurious #endif
30528         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30530 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30532         maint.mk: Respect $(build_aux) in web-manual rule.
30533         * top/maint.mk (web-manual): Find gen-announce script in user's
30534         $(build_aux) directory instead of hard-coding 'build-aux'.
30536 2011-10-19  Bruno Haible  <bruno@clisp.org>
30538         posix_openpt: Fix compilation error.
30539         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30540         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30541         Mention the openpty module as an alternative.
30543 2011-10-19  Bruno Haible  <bruno@clisp.org>
30545         Support for old NeXTstep 3.3 frexp().
30546         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30547         execution time of the test to 5 seconds.
30548         Reported by Daniel Richard G. <skunk@iskunk.org>.
30550 2011-10-19  Bruno Haible  <bruno@clisp.org>
30552         Support for old NeXTstep 3.3 sed.
30553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30554         part, use /.../, not \|...|. Escape periods in the header file name.
30555         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30556         Reported by Daniel Richard G. <skunk@iskunk.org>.
30558 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30560         Support for old NeXTstep 3.3 gcc.
30561         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30562         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30563         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30564         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30565         * lib/regex.h (_Restrict_arr_): Likewise.
30566         * lib/regex_internal.h (re_token_t): Likewise.
30567         * lib/regexec.c (check_node_accept_bytes): Likewise.
30568         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30570 2011-10-18  Eric Blake  <eblake@redhat.com>
30572         posix_openpt: new module
30573         * modules/posix_openpt: New module.
30574         * m4/posix_openpt.m4: New file.
30575         * lib/posix_openpt.c: Likewise.
30576         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30577         (gl_STDLIB_H_DEFAULTS): Set defaults.
30578         * modules/stdlib (Makefile.am): Substitute macros.
30579         * lib/stdlib.in.h (posix_openpt): Declare.
30580         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30581         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30582         * modules/posix_openpt-tests: New test module.
30583         * tests/test-posix_openpt.c: New test.
30585 2011-10-15  Bruno Haible  <bruno@clisp.org>
30587         xstrtoll: Fix compilation failure.
30588         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30589         from lib/strtol.c.
30590         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30591         some platforms.
30592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30594 2011-10-15  Bruno Haible  <bruno@clisp.org>
30596         vasnprintf: Optimize bit search operation.
30597         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30599         gl_DOUBLE_EXPONENT_LOCATION.
30600         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30601         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30602         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30603         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30604         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30605         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30606         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30607         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30608         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30610 2011-10-15  Bruno Haible  <bruno@clisp.org>
30612         vasnprintf: Fix comments.
30613         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30615 2011-10-14  Bruno Haible  <bruno@clisp.org>
30617         Tests for module 'integer_length_ll'.
30618         * modules/integer_length_ll-tests: New file.
30619         * tests/test-integer_length_ll.c: New file.
30621         New module 'integer_length_ll'.
30622         * lib/integer_length_ll.c: New file.
30623         * modules/integer_length_ll: New file.
30625 2011-10-14  Bruno Haible  <bruno@clisp.org>
30627         Tests for module 'integer_length_l'.
30628         * modules/integer_length_l-tests: New file.
30629         * tests/test-integer_length_l.c: New file.
30631         New module 'integer_length_l'.
30632         * lib/integer_length_l.c: New file.
30633         * modules/integer_length_l: New file.
30635 2011-10-14  Bruno Haible  <bruno@clisp.org>
30637         Tests for module 'integer_length'.
30638         * modules/integer_length-tests: New file.
30639         * tests/test-integer_length.c: New file.
30641         New module 'integer_length'.
30642         * lib/integer_length.h: New file.
30643         * lib/integer_length.c: New file.
30644         * modules/integer_length: New file.
30646 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30648         popen: Fix dependency conditions.
30649         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30651 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30653         perror: Fix autoconf test.
30654         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30655         <stdlib.h> and <string.h>.
30657 2011-10-14  Bruno Haible  <bruno@clisp.org>
30659         ffsl: Optimize on 64-bit platforms.
30660         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30661         unrolling.
30663 2011-10-13  Bruno Haible  <bruno@clisp.org>
30665         ffsl: Optimize on 32-bit platforms.
30666         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30667         use ffs() without a loop.
30669         ffsl, ffsll: Optimize for GCC.
30670         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30671         * lib/ffsl.c (GCC_BUILTIN): New macro.
30672         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30674 2011-10-13  Bruno Haible  <bruno@clisp.org>
30676         ffs, bcopy, memset: Support symbol renaming via config.h.
30677         * lib/ffs.c: Include <config.h>.
30678         * lib/bcopy.c: Likewise.
30679         * lib/memset.c: Likewise.
30681 2011-10-10  Bruno Haible  <bruno@clisp.org>
30683         atanl: Simplify for platforms where 'long double' == 'double'.
30684         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30685         alternative implementation.
30686         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30687         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30688         * modules/atanl (Depends-on): Add atan. Update conditions.
30690 2011-10-10  Bruno Haible  <bruno@clisp.org>
30692         acosl: Simplify for platforms where 'long double' == 'double'.
30693         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30694         alternative implementation.
30695         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30696         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30697         * modules/acosl (Depends-on): Add acos. Update conditions.
30699 2011-10-10  Bruno Haible  <bruno@clisp.org>
30701         asinl: Simplify for platforms where 'long double' == 'double'.
30702         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30703         alternative implementation.
30704         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30705         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30706         * modules/asinl (Depends-on): Add asin. Update conditions.
30708 2011-10-10  Bruno Haible  <bruno@clisp.org>
30710         tanl: Simplify for platforms where 'long double' == 'double'.
30711         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30712         implementation.
30713         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30714         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30715         * modules/tanl (Depends-on): Add tan. Update conditions.
30716         (configure.ac): Don't compile trigl.c if
30717         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30719 2011-10-10  Bruno Haible  <bruno@clisp.org>
30721         cosl: Simplify for platforms where 'long double' == 'double'.
30722         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30723         implementation.
30724         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30725         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30726         * modules/cosl (Depends-on): Add cos. Update conditions.
30727         (configure.ac): Don't compile sincosl.c and trigl.c if
30728         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30730 2011-10-10  Bruno Haible  <bruno@clisp.org>
30732         sinl: Simplify for platforms where 'long double' == 'double'.
30733         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30734         implementation.
30735         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30736         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30737         * modules/sinl (Depends-on): Add sin. Update conditions.
30738         (configure.ac): Don't compile sincosl.c and trigl.c if
30739         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30741 2011-10-10  Bruno Haible  <bruno@clisp.org>
30743         logl: Simplify for platforms where 'long double' == 'double'.
30744         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30745         implementation.
30746         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30747         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30748         * modules/logl (Depends-on): Add log. Update conditions.
30750 2011-10-10  Bruno Haible  <bruno@clisp.org>
30752         expl: Simplify for platforms where 'long double' == 'double'.
30753         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30754         implementation.
30755         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30756         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30757         * modules/expl (Depends-on): Add exp. Update conditions.
30759 2011-10-10  Bruno Haible  <bruno@clisp.org>
30761         sqrtl: Simplify for platforms where 'long double' == 'double'.
30762         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30763         alternative implementation.
30764         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30765         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30766         * modules/sqrtl (Depends-on): Update conditions.
30768 2011-10-10  Bruno Haible  <bruno@clisp.org>
30770         ldexpl: Simplify for platforms where 'long double' == 'double'.
30771         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30772         alternative implementation.
30773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30774         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30775         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30777 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30779         ffsll: set correct witness
30780         * modules/ffsll (configure.ac): Fix typo.
30782 2011-10-10  Bruno Haible  <bruno@clisp.org>
30784         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30785         * lib/printf-frexpl.c: Include <config.h>.
30786         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30787         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30788         second time.
30789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30790         gl_LONG_DOUBLE_VS_DOUBLE.
30791         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30792         conditions.
30794 2011-10-10  Bruno Haible  <bruno@clisp.org>
30796         frexpl: Simplify for platforms where 'long double' == 'double'.
30797         * lib/frexpl.c: Include <config.h>.
30798         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30799         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30800         time.
30801         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30802         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30803         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30804         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30805         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30806         conditions.
30808 2011-10-10  Jim Meyering  <meyering@redhat.com>
30810         test-renameat: don't leave behind a temporary file
30811         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30812           ERROR: files left in build directory after distclean:
30813           ./gltests/test-renameat.too
30814           make[1]: *** [distcleancheck] Error 1
30815         Reported by Tom G. Christensen.
30817 2011-10-09  Bruno Haible  <bruno@clisp.org>
30819         rint: Determine RINT_LIBM correctly on AIX 7.
30820         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30821         directly, not only through a function pointer. Also accept an optional
30822         4th argument with extra code.
30823         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30824         rintf() call by gcc when optimizing.
30826         mathfunc.m4: Refactor.
30827         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30828         m4 variable.
30830 2011-10-09  Bruno Haible  <bruno@clisp.org>
30832         rintl: Simplify for platforms where 'long double' == 'double'.
30833         * lib/rintl.c: Include <config.h>.
30834         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30835         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30836         time.
30837         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30838         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30839         * modules/rintl (Depends-on): Add rint. Update conditions.
30841 2011-10-09  Bruno Haible  <bruno@clisp.org>
30843         roundl: Simplify for platforms where 'long double' == 'double'.
30844         * lib/roundl.c: Include <config.h>.
30845         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30846         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30847         time.
30848         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30849         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30850         * modules/roundl (Depends-on): Add round. Update conditions.
30852 2011-10-09  Bruno Haible  <bruno@clisp.org>
30854         truncl: Simplify for platforms where 'long double' == 'double'.
30855         * lib/truncl.c: Include <config.h>.
30856         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30857         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30858         time.
30859         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30860         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30861         * modules/truncl (Depends-on): Add trunc. Update conditions.
30863 2011-10-09  Bruno Haible  <bruno@clisp.org>
30865         ceill: Simplify for platforms where 'long double' == 'double'.
30866         * lib/ceill.c: Include <config.h>.
30867         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30868         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30869         time.
30870         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30871         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30872         * modules/ceill (Depends-on): Add ceil. Update conditions.
30874 2011-10-09  Bruno Haible  <bruno@clisp.org>
30876         floorl: Simplify for platforms where 'long double' == 'double'.
30877         * lib/floorl.c: Include <config.h>.
30878         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30879         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30880         time.
30881         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30882         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30883         * modules/floorl (Depends-on): Add floor. Update conditions.
30885 2011-10-09  Bruno Haible  <bruno@clisp.org>
30887         rint: Fix ordering constraints.
30888         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30889         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30890         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30892 2011-10-09  Bruno Haible  <bruno@clisp.org>
30894         copysignl: Simplify for platforms where 'long double' == 'double'.
30895         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30896         alternative.
30897         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30898         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30899         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30901 2011-10-09  Bruno Haible  <bruno@clisp.org>
30903         Tests for module 'rintl'.
30904         * modules/rintl-tests: New file.
30905         * tests/test-rintl.c: New file.
30907         New module 'rintl'.
30908         * lib/math.in.h (rintl): New declaration.
30909         * lib/rintl.c: New file.
30910         * m4/rintl.m4: New file.
30911         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30913         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30914         * modules/rintl: New file.
30915         * tests/test-math-c++.cc: Check the declaration of rintl.
30916         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30917         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30918         * doc/posix-functions/rintl.texi: Mention the new module.
30920 2011-10-09  Bruno Haible  <bruno@clisp.org>
30922         Tests for module 'rintf'.
30923         * modules/rintf-tests: New file.
30924         * tests/test-rintf.c: New file.
30926         New module 'rintf'.
30927         * lib/math.in.h (rintf): New declaration.
30928         * lib/rintf.c: New file.
30929         * m4/rintf.m4: New file.
30930         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30932         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30933         * modules/rintf: New file.
30934         * tests/test-math-c++.cc: Check the declaration of rintf.
30935         * doc/posix-functions/rintf.texi: Mention the new module.
30937 2011-10-09  Bruno Haible  <bruno@clisp.org>
30939         rint: Support for MSVC.
30940         * lib/math.in.h (rint): New declaration.
30941         * lib/rint.c: New file.
30942         * m4/rint.m4: New file.
30943         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30945         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30946         * modules/rint (Description): Fix.
30947         (Files): Add lib/rint.c, m4/rint.m4.
30948         (Depends-on): Add math.
30949         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30950         gl_MATH_MODULE_INDICATOR.
30951         * tests/test-math-c++.cc: Check the declaration of rint.
30952         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30953         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30954         * doc/posix-functions/rint.texi: Mention the replacement provided by
30955         the module.
30957         rint tests: More tests.
30958         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30959         minus-zero.h, infinity.h, nan.h.
30960         (main): Skip the test if the current rounding mode is not standard. Add
30961         tests for negative numbers, minus zero, infinity, NaN.
30962         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30963         tests/nan.h.
30964         (Depends-on): Add isnand-nolibm.
30966 2011-10-09  Bruno Haible  <bruno@clisp.org>
30968         Tests for module 'copysignl'.
30969         * modules/copysignl-tests: New file.
30970         * tests/test-copysignl.c: New file.
30972         New module 'copysignl'.
30973         * lib/math.in.h (copysignl): New declaration.
30974         * lib/copysignl.c: New file.
30975         * m4/copysignl.m4: New file.
30976         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30978         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30979         HAVE_COPYSIGNL.
30980         * modules/copysignl: New file.
30981         * tests/test-math-c++.cc: Check the declaration of copysignl.
30982         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30983         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30984         * doc/posix-functions/copysignl.texi: Mention the new module.
30986 2011-10-09  Bruno Haible  <bruno@clisp.org>
30988         Tests for module 'copysignf'.
30989         * modules/copysignf-tests: New file.
30990         * tests/test-copysignf.c: New file.
30992         New module 'copysignf'.
30993         * lib/math.in.h (copysignf): New declaration.
30994         * lib/copysignf.c: New file.
30995         * m4/copysignf.m4: New file.
30996         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30998         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30999         HAVE_COPYSIGNF.
31000         * modules/copysignf: New file.
31001         * tests/test-math-c++.cc: Check the declaration of copysignf.
31002         * doc/posix-functions/copysignf.texi: Mention the new module.
31004 2011-10-09  Bruno Haible  <bruno@clisp.org>
31006         Ensure that HAVE_* variables are set to 1 before they are set to 0.
31007         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
31008         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
31009         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
31010         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
31011         gl_SIGNAL_H_DEFAULTS.
31013 2011-10-09  Bruno Haible  <bruno@clisp.org>
31015         poll: Make macro safer.
31016         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
31017         ac_cv_header_poll_h is not set.
31019 2011-10-09  Bruno Haible  <bruno@clisp.org>
31021         copysign: Provide replacement.
31022         * lib/math.in.h (copysign): New declaration.
31023         * lib/copysign.c: New file.
31024         * m4/copysign.m4: New file.
31025         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
31026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
31027         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
31028         HAVE_COPYSIGN.
31029         * modules/copysign (Description): Clarify.
31030         (Files): Add lib/copysign.c, m4/copysign.m4.
31031         (Depends-on): Add math, signbit.
31032         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
31033         gl_MATH_MODULE_INDICATOR.
31034         * tests/test-math-c++.cc: Check the declaration of copysign.
31035         * doc/posix-functions/copysign.texi: Mention the effects of the module
31036         on Minix and MSVC.
31038 2011-10-09  Bruno Haible  <bruno@clisp.org>
31040         isinf: Ensure macro on AIX 5.1.
31041         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
31042         macro.
31043         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
31045 2011-10-09  Bruno Haible  <bruno@clisp.org>
31047         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
31048         * modules/snprintf-posix-tests (configure.ac): Require
31049         gl_LONG_DOUBLE_VS_DOUBLE.
31050         * modules/sprintf-posix-tests (configure.ac): Likewise.
31051         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
31052         * modules/vasprintf-posix-tests (configure.ac): Likewise.
31053         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
31054         * modules/vsprintf-posix-tests (configure.ac): Likewise.
31055         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
31056         tests on platforms where 'long double' is the same as 'double'.
31057         * tests/test-sprintf-posix.h (test_function): Likewise.
31058         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31059         * tests/test-vasprintf-posix.c (test_function): Likewise.
31061         *printf: Fix for platforms where 'long double' == 'double'.
31062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31063         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
31064         * modules/dprintf-posix (Files): Add m4/math_h.m4.
31065         * modules/fprintf-posix (Files): Likewise.
31066         * modules/obstack-printf-posix (Files): Likewise.
31067         * modules/snprintf-posix (Files): Likewise.
31068         * modules/sprintf-posix (Files): Likewise.
31069         * modules/vasnprintf (Files): Likewise.
31070         * modules/vasnprintf-posix (Files): Likewise.
31071         * modules/vasprintf-posix (Files): Likewise.
31072         * modules/vdprintf-posix (Files): Likewise.
31073         * modules/vfprintf-posix (Files): Likewise.
31074         * modules/vsnprintf-posix (Files): Likewise.
31075         * modules/vsprintf-posix (Files): Likewise.
31076         * modules/unistdio/u8-vasnprintf (Files): Likewise.
31077         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
31078         * modules/unistdio/u16-vasnprintf (Files): Likewise.
31079         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
31080         * modules/unistdio/u32-vasnprintf (Files): Likewise.
31081         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
31082         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
31084         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
31085         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
31086         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
31087         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
31088         'long double'.
31089         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
31091         isinf: Fix for platforms where 'long double' == 'double'.
31092         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
31093         Don't blindly assume 80-bit 'long double'.
31095         isfinite: Fix for platforms where 'long double' == 'double'.
31096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
31097         Don't blindly assume 80-bit 'long double'.
31099         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
31100         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
31101         * modules/isfinite-tests (configure.ac): Require
31102         gl_LONG_DOUBLE_VS_DOUBLE.
31103         * modules/isinf-tests (configure.ac): Likewise.
31104         * modules/isnan-tests (configure.ac): Likewise.
31105         * modules/isnanl-tests (configure.ac): Likewise.
31106         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
31107         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
31108         tests on platforms where 'long double' is the same as 'double'.
31109         * tests/test-isinf.c (test_isinfl): Likewise.
31110         * tests/test-isnan.c (test_long_double): Likewise.
31111         * tests/test-isnanl.h (main): Likewise.
31113 2011-10-08  Bruno Haible  <bruno@clisp.org>
31115         Tests for module 'tanhf'.
31116         * modules/tanhf-tests: New file.
31117         * tests/test-tanhf.c: New file.
31119         New module 'tanhf'.
31120         * lib/math.in.h (tanhf): New declaration.
31121         * lib/tanhf.c: New file.
31122         * m4/tanhf.m4: New file.
31123         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
31124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
31125         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
31126         * modules/tanhf: New file.
31127         * tests/test-math-c++.cc: Check the declaration of tanhf.
31128         * doc/posix-functions/tanhf.texi: Mention the new module.
31130         tanh: Use a .m4 file.
31131         * m4/tanh.m4: New file.
31132         * modules/tanh (Files): Add it.
31133         (configure.ac): Just invoke gl_FUNC_TANH.
31135 2011-10-08  Bruno Haible  <bruno@clisp.org>
31137         Tests for module 'coshf'.
31138         * modules/coshf-tests: New file.
31139         * tests/test-coshf.c: New file.
31141         New module 'coshf'.
31142         * lib/math.in.h (coshf): New declaration.
31143         * lib/coshf.c: New file.
31144         * m4/coshf.m4: New file.
31145         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
31146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
31147         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
31148         * modules/coshf: New file.
31149         * tests/test-math-c++.cc: Check the declaration of coshf.
31150         * doc/posix-functions/coshf.texi: Mention the new module.
31152         cosh: Use a .m4 file.
31153         * m4/cosh.m4: New file.
31154         * modules/cosh (Files): Add it.
31155         (configure.ac): Just invoke gl_FUNC_COSH.
31157 2011-10-08  Bruno Haible  <bruno@clisp.org>
31159         Tests for module 'sinhf'.
31160         * modules/sinhf-tests: New file.
31161         * tests/test-sinhf.c: New file.
31163         New module 'sinhf'.
31164         * lib/math.in.h (sinhf): New declaration.
31165         * lib/sinhf.c: New file.
31166         * m4/sinhf.m4: New file.
31167         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
31168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
31169         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
31170         * modules/sinhf: New file.
31171         * tests/test-math-c++.cc: Check the declaration of sinhf.
31172         * doc/posix-functions/sinhf.texi: Mention the new module.
31174         sinh: Use a .m4 file.
31175         * m4/sinh.m4: New file.
31176         * modules/sinh (Files): Add it.
31177         (configure.ac): Just invoke gl_FUNC_SINH.
31179 2011-10-08  Bruno Haible  <bruno@clisp.org>
31181         Tests for module 'atan2f'.
31182         * modules/atan2f-tests: New file.
31183         * tests/test-atan2f.c: New file.
31185         New module 'atan2f'.
31186         * lib/math.in.h (atan2f): New declaration.
31187         * lib/atan2f.c: New file.
31188         * m4/atan2f.m4: New file.
31189         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
31190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
31191         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
31192         * modules/atan2f: New file.
31193         * tests/test-math-c++.cc: Check the declaration of atan2f.
31194         * doc/posix-functions/atan2f.texi: Mention the new module.
31196         atan2: Use a .m4 file.
31197         * m4/atan2.m4: New file.
31198         * modules/atan2 (Files): Add it.
31199         (configure.ac): Just invoke gl_FUNC_ATAN2.
31201 2011-10-08  Bruno Haible  <bruno@clisp.org>
31203         Tests for module 'atanf'.
31204         * modules/atanf-tests: New file.
31205         * tests/test-atanf.c: New file.
31207         New module 'atanf'.
31208         * lib/math.in.h (atanf): New declaration.
31209         * lib/atanf.c: New file.
31210         * m4/atanf.m4: New file.
31211         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
31212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
31213         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
31214         * modules/atanf: New file.
31215         * tests/test-math-c++.cc: Check the declaration of atanf.
31216         * doc/posix-functions/atanf.texi: Mention the new module.
31218         atan: Use a .m4 file.
31219         * m4/atan.m4: New file.
31220         * modules/atan (Files): Add it.
31221         (configure.ac): Just invoke gl_FUNC_ATAN.
31223 2011-10-08  Bruno Haible  <bruno@clisp.org>
31225         Tests for module 'acosf'.
31226         * modules/acosf-tests: New file.
31227         * tests/test-acosf.c: New file.
31229         New module 'acosf'.
31230         * lib/math.in.h (acosf): New declaration.
31231         * lib/acosf.c: New file.
31232         * m4/acosf.m4: New file.
31233         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
31234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
31235         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
31236         * modules/acosf: New file.
31237         * tests/test-math-c++.cc: Check the declaration of acosf.
31238         * doc/posix-functions/acosf.texi: Mention the new module.
31240         acos: Use a .m4 file.
31241         * m4/acos.m4: New file.
31242         * modules/acos (Files): Add it.
31243         (configure.ac): Just invoke gl_FUNC_ACOS.
31245 2011-10-08  Bruno Haible  <bruno@clisp.org>
31247         Tests for module 'asinf'.
31248         * modules/asinf-tests: New file.
31249         * tests/test-asinf.c: New file.
31251         New module 'asinf'.
31252         * lib/math.in.h (asinf): New declaration.
31253         * lib/asinf.c: New file.
31254         * m4/asinf.m4: New file.
31255         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
31256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
31257         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
31258         * modules/asinf: New file.
31259         * tests/test-math-c++.cc: Check the declaration of asinf.
31260         * doc/posix-functions/asinf.texi: Mention the new module.
31262         asin: Use a .m4 file.
31263         * m4/asin.m4: New file.
31264         * modules/asin (Files): Add it.
31265         (configure.ac): Just invoke gl_FUNC_ASIN.
31267 2011-10-08  Bruno Haible  <bruno@clisp.org>
31269         Tests for module 'tanf'.
31270         * modules/tanf-tests: New file.
31271         * tests/test-tanf.c: New file.
31273         New module 'tanf'.
31274         * lib/math.in.h (tanf): New declaration.
31275         * lib/tanf.c: New file.
31276         * m4/tanf.m4: New file.
31277         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
31278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
31279         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
31280         * modules/tanf: New file.
31281         * tests/test-math-c++.cc: Check the declaration of tanf.
31282         * doc/posix-functions/tanf.texi: Mention the new module.
31284         tan: Use a .m4 file.
31285         * m4/tan.m4: New file.
31286         * modules/tan (Files): Add it.
31287         (configure.ac): Just invoke gl_FUNC_TAN.
31289 2011-10-08  Bruno Haible  <bruno@clisp.org>
31291         Tests for module 'cosf'.
31292         * modules/cosf-tests: New file.
31293         * tests/test-cosf.c: New file.
31295         New module 'cosf'.
31296         * lib/math.in.h (cosf): New declaration.
31297         * lib/cosf.c: New file.
31298         * m4/cosf.m4: New file.
31299         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
31300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
31301         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
31302         * modules/cosf: New file.
31303         * tests/test-math-c++.cc: Check the declaration of cosf.
31304         * doc/posix-functions/cosf.texi: Mention the new module.
31306         cos: Use a .m4 file.
31307         * m4/cos.m4: New file.
31308         * modules/cos (Files): Add it.
31309         (configure.ac): Just invoke gl_FUNC_COS.
31311 2011-10-08  Bruno Haible  <bruno@clisp.org>
31313         Tests for module 'sinf'.
31314         * modules/sinf-tests: New file.
31315         * tests/test-sinf.c: New file.
31317         New module 'sinf'.
31318         * lib/math.in.h (sinf): New declaration.
31319         * lib/sinf.c: New file.
31320         * m4/sinf.m4: New file.
31321         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
31322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
31323         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
31324         * modules/sinf: New file.
31325         * tests/test-math-c++.cc: Check the declaration of sinf.
31326         * doc/posix-functions/sinf.texi: Mention the new module.
31328         sin: Use a .m4 file.
31329         * m4/sin.m4: New file.
31330         * modules/sin (Files): Add it.
31331         (configure.ac): Just invoke gl_FUNC_SIN.
31333 2011-10-08  Bruno Haible  <bruno@clisp.org>
31335         Tests for module 'powf'.
31336         * modules/powf-tests: New file.
31337         * tests/test-powf.c: New file.
31339         New module 'powf'.
31340         * lib/math.in.h (powf): New declaration.
31341         * lib/powf.c: New file.
31342         * m4/powf.m4: New file.
31343         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
31344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
31345         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
31346         * modules/powf: New file.
31347         * tests/test-math-c++.cc: Check the declaration of powf.
31348         * doc/posix-functions/powf.texi: Mention the new module.
31350         pow: Use a .m4 file.
31351         * m4/pow.m4: New file.
31352         * modules/pow (Files): Add it.
31353         (configure.ac): Just invoke gl_FUNC_POW.
31355 2011-10-08  Bruno Haible  <bruno@clisp.org>
31357         Tests for module 'log10f'.
31358         * modules/log10f-tests: New file.
31359         * tests/test-log10f.c: New file.
31361         New module 'log10f'.
31362         * lib/math.in.h (log10f): New declaration.
31363         * lib/log10f.c: New file.
31364         * m4/log10f.m4: New file.
31365         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31367         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31368         * modules/log10f: New file.
31369         * tests/test-math-c++.cc: Check the declaration of log10f.
31370         * doc/posix-functions/log10f.texi: Mention the new module.
31372         log10: Use a .m4 file.
31373         * m4/log10.m4: New file.
31374         * modules/log10 (Files): Add it.
31375         (configure.ac): Just invoke gl_FUNC_LOG10.
31377 2011-10-08  Bruno Haible  <bruno@clisp.org>
31379         Tests for module 'logf'.
31380         * modules/logf-tests: New file.
31381         * tests/test-logf.c: New file.
31383         New module 'logf'.
31384         * lib/math.in.h (logf): New declaration.
31385         * lib/logf.c: New file.
31386         * m4/logf.m4: New file.
31387         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31389         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31390         * modules/logf: New file.
31391         * tests/test-math-c++.cc: Check the declaration of logf.
31392         * doc/posix-functions/logf.texi: Mention the new module.
31394         log: Use a .m4 file.
31395         * m4/log.m4: New file.
31396         * modules/log (Files): Add it.
31397         (configure.ac): Just invoke gl_FUNC_LOG.
31399 2011-10-08  Bruno Haible  <bruno@clisp.org>
31401         Tests for module 'expf'.
31402         * modules/expf-tests: New file.
31403         * tests/test-expf.c: New file.
31405         New module 'expf'.
31406         * lib/math.in.h (expf): New declaration.
31407         * lib/expf.c: New file.
31408         * m4/expf.m4: New file.
31409         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31411         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31412         * modules/expf: New file.
31413         * tests/test-math-c++.cc: Check the declaration of expf.
31414         * doc/posix-functions/expf.texi: Mention the new module.
31416         exp: Use a .m4 file.
31417         * m4/exp.m4: New file.
31418         * modules/exp (Files): Add it.
31419         (configure.ac): Just invoke gl_FUNC_EXP.
31421 2011-10-08  Bruno Haible  <bruno@clisp.org>
31423         Tests for module 'sqrtf'.
31424         * modules/sqrtf-tests: New file.
31425         * tests/test-sqrtf.c: New file.
31427         New module 'sqrtf'.
31428         * lib/math.in.h (sqrtf): New declaration.
31429         * lib/sqrtf.c: New file.
31430         * m4/sqrtf.m4: New file.
31431         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31433         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31434         * modules/sqrtf: New file.
31435         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31436         * doc/posix-functions/sqrtf.texi: Mention the new module.
31438 2011-10-08  Bruno Haible  <bruno@clisp.org>
31440         Tests: Avoid link failures w.r.t. libintl.
31441         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31442         $(LIBINTL).
31443         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31444         $(LIBINTL).
31445         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31446         against $(LIBINTL).
31447         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31448         $(LIBINTL).
31449         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31450         $(LIBINTL).
31451         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31453 2011-10-08  Bruno Haible  <bruno@clisp.org>
31455         pow tests: Defeat compiler optimizations.
31456         * tests/test-pow.c (main): Assign arguments to x and y before use.
31458 2011-10-08  Bruno Haible  <bruno@clisp.org>
31460         gnulib-tool: Improve last commit.
31461         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31462         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31463         ignore dependencies that are not among the modules list.
31465 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31467         gnulib-tool: don't follow dependencies to avoided modules
31468         This fixes a bug that is related to the previous one.
31469         * gnulib-tool (func_modules_transitive_closure)
31470         (func_emit_autoconf_snippets):
31471         Check whether a dependency is acceptable before using it.
31472         (--extract-dependencies): Report an error if --avoid is also used,
31473         since this combination of options is not yet supported.
31475         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31476         Problem reported by Peter Dyballa in
31477         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31478         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31479         when echoing "$condition".
31481 2011-10-07  Bruno Haible  <bruno@clisp.org>
31483         Fix documentation about math functions on MacOS X.
31484         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31485         MacOS X 10.5.
31486         * doc/posix-functions/fdim.texi: Likewise.
31487         * doc/posix-functions/feclearexcept.texi: Likewise.
31488         * doc/posix-functions/fegetenv.texi: Likewise.
31489         * doc/posix-functions/fegetround.texi: Likewise.
31490         * doc/posix-functions/feholdexcept.texi: Likewise.
31491         * doc/posix-functions/feraiseexcept.texi: Likewise.
31492         * doc/posix-functions/fesetenv.texi: Likewise.
31493         * doc/posix-functions/fesetround.texi: Likewise.
31494         * doc/posix-functions/fetestexcept.texi: Likewise.
31495         * doc/posix-functions/feupdateenv.texi: Likewise.
31496         * doc/posix-functions/fmax.texi: Likewise.
31497         * doc/posix-functions/fmin.texi: Likewise.
31498         * doc/posix-functions/log2.texi: Likewise.
31499         * doc/posix-functions/modff.texi: Likewise.
31500         * doc/posix-functions/nan.texi: Likewise.
31501         * doc/posix-functions/nanf.texi: Likewise.
31502         * doc/posix-functions/nextafterf.texi: Likewise.
31503         * doc/posix-functions/remquo.texi: Likewise.
31505 2011-10-07  Bruno Haible  <bruno@clisp.org>
31507         modff: Drop assumption about library that defines modff.
31508         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31509         AC_CHECK_FUNCS.
31510         * modules/modff (Files): Add m4/mathfunc.m4.
31512 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31514         raise tests: Avoid a GCC warning.
31515         * tests/test-raise.c (handler): Use _Noreturn.
31517 2011-10-07  Bruno Haible  <bruno@clisp.org>
31519         Tests for module 'ldexpf'.
31520         * modules/ldexpf-tests: New file.
31521         * tests/test-ldexpf.c: New file.
31523         New module 'ldexpf'.
31524         * lib/math.in.h (ldexpf): New declaration.
31525         * lib/ldexpf.c: New file.
31526         * m4/ldexpf.m4: New file.
31527         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31529         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31530         * modules/ldexpf: New file.
31531         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31532         * doc/posix-functions/ldexpf.texi: Mention the new module.
31534 2011-10-06  Bruno Haible  <bruno@clisp.org>
31536         frexpf: Work around problems on IRIX and mingw.
31537         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31539         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31540         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31541         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31542         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31543         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31545 2011-10-06  Bruno Haible  <bruno@clisp.org>
31547         fabsf: Drop assumption about library that defines fabsf.
31548         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31549         AC_CHECK_FUNCS.
31550         * modules/fabsf (Files): Add m4/mathfunc.m4.
31552 2011-10-06  Bruno Haible  <bruno@clisp.org>
31554         frexpf: Drop assumption about library that defines frexpf.
31555         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31556         'int *', 'float *', 'long double *', 'float', 'long double'.
31557         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31558         AC_CHECK_FUNCS.
31559         * modules/frexpf (Files): Add m4/mathfunc.m4.
31561         Tests for module 'frexpf'.
31562         * modules/frexpf-tests: New file.
31563         * tests/test-frexpf.c: New file.
31565         New module 'frexpf'.
31566         * lib/math.in.h (frexpf): New declaration.
31567         * lib/frexpf.c: New file.
31568         * m4/frexpf.m4: New file.
31569         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31571         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31572         * modules/frexpf: New file.
31573         * tests/test-math-c++.cc: Check the declaration of frexpf.
31574         * doc/posix-functions/frexpf.texi: Mention the new module.
31576 2011-10-06  Bruno Haible  <bruno@clisp.org>
31578         math: Sort function declarations of math.in.h.
31579         * lib/math.in.h (frexp, logb): Move declarations.
31581 2011-10-05  Bruno Haible  <bruno@clisp.org>
31583         Tests for module 'modff'.
31584         * modules/modff-tests: New file.
31585         * tests/test-modff.c: New file.
31587         New module 'modff'.
31588         * lib/math.in.h (modff): New declaration.
31589         * lib/modff.c: New file.
31590         * m4/modff.m4: New file.
31591         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31593         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31594         * modules/modff: New file.
31595         * tests/test-math-c++.cc: Check the declaration of modff.
31596         * doc/posix-functions/modff.texi: Mention the new module.
31598         modf tests: Make test sharper.
31599         * tests/test-modf.c (main): Strengthen upper bound.
31601         modf: Use a .m4 file.
31602         * m4/modf.m4: New file.
31603         * modules/modf (Files): Add it.
31604         (configure.ac): Just invoke gl_FUNC_MODF.
31606 2011-10-05  Bruno Haible  <bruno@clisp.org>
31608         Tests for module 'fmodf'.
31609         * modules/fmodf-tests: New file.
31610         * tests/test-fmodf.c: New file.
31612         New module 'fmodf'.
31613         * lib/math.in.h (fmodf): New declaration.
31614         * lib/fmodf.c: New file.
31615         * m4/fmodf.m4: New file.
31616         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31618         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31619         * modules/fmodf: New file.
31620         * tests/test-math-c++.cc: Check the declaration of fmodf.
31621         * doc/posix-functions/fmodf.texi: Mention the new module.
31623         fmod: Use a .m4 file.
31624         * m4/fmod.m4: New file.
31625         * modules/fmod (Files): Add it.
31626         (configure.ac): Just invoke gl_FUNC_FMOD.
31628 2011-10-05  Bruno Haible  <bruno@clisp.org>
31630         Tests for module 'fabsf'.
31631         * modules/fabsf-tests: New file.
31632         * tests/test-fabsf.c: New file.
31634         New module 'fabsf'.
31635         * lib/math.in.h (fabsf): New declaration.
31636         * lib/fabsf.c: New file.
31637         * m4/fabsf.m4: New file.
31638         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31640         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31641         * modules/fabsf: New file.
31642         * tests/test-math-c++.cc: Check the declaration of fabsf.
31643         * doc/posix-functions/fabsf.texi: Mention the new module.
31645         fabs: Use a .m4 file.
31646         * m4/fabs.m4: New file.
31647         * modules/fabs (Files): Add it.
31648         (configure.ac): Just invoke gl_FUNC_FABS.
31650 2011-10-05  Jim Meyering  <meyering@redhat.com>
31652         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31653         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31654         ls -lL regression introduced in coreutils-8.12, it does so at the
31655         cost of an additional stat call in the common case.  Besides, now
31656         that the kernel change that prompted commit 95f7c57f has been reverted
31657         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31658         we have no use for commit 95f7c57f, "file-has-acl: use
31659         acl_extended_file_nofollow if available".
31661 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31663         file-has-acl: revert unintended change in behavior of ls -L
31664         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31665         derived from...
31666         (file_has_acl): ...code here.  Call it.
31667         This problem was introduced with 2011-07-22 commit 95f7c57f,
31668         "file-has-acl: use acl_extended_file_nofollow if available".
31669         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31671 2011-10-03  Bruno Haible  <bruno@clisp.org>
31673         poll: Avoid link errors on MSVC.
31674         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31675         * modules/poll (Depends-on): Add sockets.
31676         (Link): New section.
31677         * NEWS: Mention the change.
31678         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31679         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31680         $(LIB_POLL) instead of $(LIBSOCKET).
31682 2011-10-03  Bruno Haible  <bruno@clisp.org>
31684         sys_select tests: Fix link error on MSVC 9.
31685         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31686         with $(LIB_SELECT) instead of $(LIBSOCKET).
31688 2011-10-03  Bruno Haible  <bruno@clisp.org>
31690         sys_select: Fix compilation error on mingw.
31691         * lib/sys_select.in.h: On native Windows, include <io.h>.
31693 2011-10-03  Bruno Haible  <bruno@clisp.org>
31695         wmemset: Support for MSVC.
31696         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31697         whether wmemset() exists.
31699 2011-10-03  Bruno Haible  <bruno@clisp.org>
31701         wmemmove: Support for MSVC.
31702         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31703         whether wmemmove() exists.
31705 2011-10-03  Bruno Haible  <bruno@clisp.org>
31707         wmemcpy: Support for MSVC.
31708         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31709         whether wmemcpy() exists.
31711 2011-10-03  Bruno Haible  <bruno@clisp.org>
31713         wmemcmp: Support for MSVC.
31714         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31715         whether wmemcmp() exists.
31717 2011-10-03  Bruno Haible  <bruno@clisp.org>
31719         wmemchr: Support for MSVC.
31720         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31721         whether wmemchr() exists.
31723 2011-10-03  Bruno Haible  <bruno@clisp.org>
31725         glthread/*, strsignal: Support for MSVC.
31726         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31727         including <winsock.h> on MSVC 9.
31728         * lib/glthread/lock.h: Likewise.
31729         * lib/glthread/thread.h: Likewise.
31730         * lib/glthread/tls.h: Likewise.
31731         * lib/glthread/yield.h: Likewise.
31732         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31733         if HAVE_UNISTD_H is false.
31734         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31736 2011-10-03  Bruno Haible  <bruno@clisp.org>
31738         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31739         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31740         Set to 100000.
31742 2011-10-03  Bruno Haible  <bruno@clisp.org>
31744         acl: Fix specification.
31745         * lib/file-has-acl.c (file_has_acl): Fix specification.
31747 2011-10-03  Bruno Haible  <bruno@clisp.org>
31749         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31750         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31751         (compute_curr_prefix, shared_library_fullname,
31752         find_shared_library_fullname, get_shared_library_fullname, relocate):
31753         Use it together with PIC && INSTALLDIR.
31754         Reported by <jojelino@gmail.com>
31755         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31757 2011-10-01  Jim Meyering  <meyering@redhat.com>
31759         maint.mk: adjust a release-related rule not to require use of gzip
31760         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31761         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31762         projects that build only .tar.xz files.  Also fix an erroneous test.
31764         test-linkat: don't leave behind a temporary file
31765         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31766         Otherwise, coreutils' "make distcheck" would fail with this:
31767           Only in /c/cu/tests/torture/coreutils/test/\
31768             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31769           make[2]: *** [my-distcheck] Error 1
31771         float, math: add omitted file
31772         * lib/itold.c: Add file, required for yesterday's float change.
31774 2011-10-01  Bruno Haible  <bruno@clisp.org>
31776         isinf: Fix for OpenBSD/x86.
31777         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31778         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31779         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31781 2011-10-01  Bruno Haible  <bruno@clisp.org>
31783         isfinite: Fix syntax error in configure test.
31784         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31786         isfinite: Fix typo.
31787         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31788         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31790 2011-10-01  Bruno Haible  <bruno@clisp.org>
31792         nonblocking tests: Fix test failure on Linux/IA-64.
31793         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31794         Set to 270000.
31796 2011-10-01  Bruno Haible  <bruno@clisp.org>
31798         mkfifoat tests: Fix a test failure on mingw.
31799         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31800         with error ENOSYS.
31802 2011-09-30  Bruno Haible  <bruno@clisp.org>
31804         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31805         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31806         'long double'. Set REPLACE_ITOLD.
31807         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31808         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31809         * lib/itold.c: New file.
31810         * modules/float (Files): Add lib/itold.c.
31811         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31812         (Makefile.am): Substitute REPLACE_ITOLD.
31813         * modules/math (Depends-on): Add float.
31814         (Makefile.am): Substitute REPLACE_ITOLD.
31815         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31816         * doc/posix-headers/math.texi: Likewise.
31817         * doc/posix-functions/logl.texi: Likewise.
31819 2011-09-30  Bruno Haible  <bruno@clisp.org>
31821         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31822         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31823         Set to 140000.
31825 2011-09-30  Bruno Haible  <bruno@clisp.org>
31827         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31828         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31829         invocation, say "right after AC_PROG_CC_STDC", not "right after
31830         AC_PROG_CC".
31831         Reported by Gary V. Vaughan <gary@gnu.org>.
31833 2011-09-30  Bruno Haible  <bruno@clisp.org>
31835         Centralize C99 requirement.
31836         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31837         * modules/stdarg (configure.ac-early): Invoke it instead of
31838         AC_PROG_CC_STDC.
31839         Reported by Gary V. Vaughan and Paul Eggert.
31841 2011-09-29  Bruno Haible  <bruno@clisp.org>
31843         float: Fix LDBL_MAX value on Linux/PowerPC.
31844         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31845         on Linux/PowerPC.
31846         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31847         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31848         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31849         platform.
31850         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31852 2011-09-29  Bruno Haible  <bruno@clisp.org>
31854         doc: Improve doc about gl_EARLY.
31855         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31856         AC_PROG_CC_STDC invocation.
31857         Reported by Gary V. Vaughan <gary@gnu.org>.
31859 2011-09-28  Bruno Haible  <bruno@clisp.org>
31861         fgetc, fputc, fread, fwrite tests: Fix link error.
31862         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31863         on non-MSVC platforms.
31864         * tests/test-fputc.c (main): Likewise.
31865         * tests/test-fread.c (main): Likewise.
31866         * tests/test-fwrite.c (main): Likewise.
31867         Reported by Jim Meyering.
31869 2011-09-27  Bruno Haible  <bruno@clisp.org>
31871         fputc, fwrite tests: Avoid test failure on MSVC.
31872         * tests/test-fgetc.c: Include msvc-inval.h.
31873         (main): Invoke gl_msvc_inval_ensure_handler.
31874         * tests/test-fputc.c: Include msvc-inval.h.
31875         (main): Invoke gl_msvc_inval_ensure_handler.
31876         * tests/test-fread.c: Include msvc-inval.h.
31877         (main): Invoke gl_msvc_inval_ensure_handler.
31878         * tests/test-fwrite.c: Include msvc-inval.h.
31879         (main): Invoke gl_msvc_inval_ensure_handler.
31880         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31881         * modules/fputc-tests (Depends-on): Likewise.
31882         * modules/fread-tests (Depends-on): Likewise.
31883         * modules/fwrite-tests (Depends-on): Likewise.
31885 2011-09-27  Bruno Haible  <bruno@clisp.org>
31887         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31888         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31889         (raise): Remove older, duplicated declaration.
31890         (_gl_raise_SIGPIPE): New declaration.
31891         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31892         (rpl_raise): Remove function.
31893         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31894         a gnulib-defined SIGPIPE here.
31895         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31896         'sigprocmask' has detected missing signal-blocking and the module
31897         'sigpipe' is enabled.
31898         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31900 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31902         base64-tests: avoid memory leak
31903         * tests/test-base64.c (main): Plug memory leak.
31905         base32: new module
31906         * modules/base32: New module.
31907         * lib/base32.c: New file.
31908         * lib/base32.h: Likewise.
31909         * m4/base32.m4: Likewise.
31910         * modules/base32-tests: New test.
31911         * tests/test-base32.c: Likewise.
31912         * MODULES.html.sh (Misc): Mention it.
31914 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31916         gnulib: use more-standard license notice wording
31917         * gnulib-tool (func_emit_copyright_notice): When emitting a
31918         license notice into a file, use the standard wording as suggested
31919         by the current information for GNU maintainers, except say "file"
31920         rather than "program".  The new wording gives a license version
31921         number, which addresses an issue raised by Glenn Morris in
31922         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31923         * m4/onceonly.m4: Use that same wording here, too.
31925         dup2: minor simplification
31926         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31927         as lib/dup2.c no longer uses 'inline'.
31929 2011-09-25  Bruno Haible  <bruno@clisp.org>
31931         strings: Fix compilation error on MSVC.
31932         * lib/strings.in.h: Include <stddef.h> for size_t.
31934 2011-09-25  Bruno Haible  <bruno@clisp.org>
31936         fflush et al.: Document limitation on MSVC.
31937         * doc/posix-functions/fflush.texi: Document possible crash in handling
31938         mode other than DEFAULT_HANDLING.
31939         * doc/posix-functions/fgetc.texi: Likewise.
31940         * doc/posix-functions/fputc.texi: Likewise.
31941         * doc/posix-functions/fread.texi: Likewise.
31942         * doc/posix-functions/fwrite.texi: Likewise.
31944 2011-09-25  Bruno Haible  <bruno@clisp.org>
31946         msvc-inval: Allow three invalid parameter handling modes.
31947         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31948         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31949         macros.
31950         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31951         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31952         SANE_LIBRARY_HANDLING as a no-op.
31953         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31954         <stdlib.h>.
31955         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31957 2011-09-25  Bruno Haible  <bruno@clisp.org>
31959         msvc-inval: Make handler multithread-safe.
31960         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31961         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31962         declarations.
31963         (gl_msvc_inval_current): New declaration.
31964         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31965         Operate on the structure returned by gl_msvc_inval_current().
31966         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31967         Remove varaiables.
31968         (tls_index, tls_initialized): New variables.
31969         (not_per_thread): New variable.
31970         (gl_msvc_inval_current): New function.
31971         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31972         returned by gl_msvc_inval_current().
31974 2011-09-25  Bruno Haible  <bruno@clisp.org>
31976         msvc-inval: Install handler globally.
31977         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31978         !_MSC_VER.
31979         (gl_msvc_invalid_parameter_handler): Remove declaration.
31980         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31981         declarations.
31982         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31983         Install the handler globally, don't uninstall it.
31984         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31985         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31986         currently valid, call RaiseException instead.
31987         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31988         for !_MSC_VER.
31990 2011-09-25  Bruno Haible  <bruno@clisp.org>
31992         strerror_r-posix: Fix for MSVC 9.
31993         * lib/strerror_r.c (local_snprintf): New function.
31994         (snprintf): Define to local_snprintf, not to _snprintf.
31996 2011-09-25  Bruno Haible  <bruno@clisp.org>
31998         ftruncate: Support for MSVC 9.
31999         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
32000         (chsize_nothrow): New function.
32001         (chsize): Redefine as a macro.
32002         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
32003         * modules/ftruncate (Depends-on): Add msvc-inval.
32005 2011-09-25  Bruno Haible  <bruno@clisp.org>
32007         New module 'fstat'.
32008         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
32009         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
32010         * lib/fchdir.c (rpl_fstat): Remove function.
32011         * m4/fstat.m4: New file.
32012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
32013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
32014         declared.
32015         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
32016         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
32017         * modules/fstat: New file.
32018         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
32019         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
32020         is set.
32021         * doc/posix-functions/fstat.texi: Mention the new module and the
32022         problem on MSVC.
32023         * NEWS: Mention the change.
32024         * modules/acl (Depends-on): Add fstat.
32025         * modules/chdir-safer (Depends-on): Likewise.
32026         * modules/chown (Depends-on): Likewise.
32027         * modules/copy-file (Depends-on): Likewise.
32028         * modules/fchdir (Depends-on): Likewise.
32029         * modules/fdopendir (Depends-on): Likewise.
32030         * modules/fopen (Depends-on): Likewise.
32031         * modules/fts (Depends-on): Likewise.
32032         * modules/getcwd (Depends-on): Likewise.
32033         * modules/isapipe (Depends-on): Likewise.
32034         * modules/linkat (Depends-on): Likewise.
32035         * modules/lseek (Depends-on): Likewise.
32036         * modules/mkdir-p (Depends-on): Likewise.
32037         * modules/open (Depends-on): Likewise.
32038         * modules/openat (Depends-on): Likewise.
32039         * modules/read-file (Depends-on): Likewise.
32040         * modules/renameat (Depends-on): Likewise.
32041         * modules/utimens (Depends-on): Likewise.
32043 2011-09-25  Bruno Haible  <bruno@clisp.org>
32045         linkat: Fix compilation on MSVC 9.
32046         * lib/linkat.c: Don't include <stdint.h>.
32048 2011-09-25  Bruno Haible  <bruno@clisp.org>
32050         fclose: Support for MSVC 9.
32051         * lib/fclose.c: Include msvc-inval.h.
32052         (fclose_nothrow): New function.
32053         (rpl_fclose): Use it.
32054         * modules/fclose (Depends-on): Add msvc-inval.
32055         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
32057 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
32059         dup2: minor simplifications
32060         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
32061         that it's a performance win.
32062         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
32063         ! defined __CYGWIN__)" to "ifdef F_GETFL".
32065 2011-09-24  Jim Meyering  <meyering@redhat.com>
32067         test-futimens: avoid a warning from gcc -Wshadow
32068         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
32069         to avoid a shadowing warning.
32071 2011-09-24  Bruno Haible  <bruno@clisp.org>
32073         fdopen: Support for MSVC 9.
32074         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
32075         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
32076         * lib/fdopen.c: Include msvc-inval.h.
32077         (fdopen_nothrow): New function.
32078         (rpl_fdopen): Use it.
32079         * modules/fdopen (Depends-on): Add msvc-inval.
32080         * modules/fclose-tests (Depends-on): Add fdopen.
32081         * modules/fflush-tests (Depends-on): Likewise.
32082         * modules/fgetc-tests (Depends-on): Likewise.
32083         * modules/fputc-tests (Depends-on): Likewise.
32084         * modules/fread-tests (Depends-on): Likewise.
32085         * modules/freopen-tests (Depends-on): Likewise.
32086         * modules/fseeko-tests (Depends-on): Likewise.
32087         * modules/ftello-tests (Depends-on): Likewise.
32088         * modules/fwrite-tests  (Depends-on): Likewise.
32089         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
32091 2011-09-24  Bruno Haible  <bruno@clisp.org>
32093         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
32094         * modules/fgetc-tests (Depends-on): Add unistd.
32095         * modules/fputc-tests (Depends-on): Likewise.
32096         * modules/fread-tests (Depends-on): Likewise.
32097         * modules/fwrite-tests (Depends-on): Likewise.
32099 2011-09-24  Bruno Haible  <bruno@clisp.org>
32101         dup: Simplify autoconf test.
32102         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
32103         on gl_MSVC_INVAL's result.
32105 2011-09-24  Bruno Haible  <bruno@clisp.org>
32107         Tests for function fwrite().
32108         * modules/fwrite-tests: New file.
32109         * tests/test-fwrite.c: New file.
32110         * modules/stdio-tests (Depends-on): Add fwrite-tests.
32112         Tests for function fread().
32113         * modules/fread-tests: New file.
32114         * tests/test-fread.c: New file.
32115         * modules/stdio-tests (Depends-on): Add fread-tests.
32117         Activate fputc tests.
32118         * modules/stdio-tests (Depends-on): Add fputc-tests.
32120         Enhance fgetc, fputc tests.
32121         * tests/test-fgetc.c (main): Also test the stream's error indicator.
32122         * tests/test-fputc.c (main): Likewise.
32124 2011-09-24  Bruno Haible  <bruno@clisp.org>
32126         write: Support for MSVC 9.
32127         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32128         is not 1.
32129         * lib/write.c (write_nothrow): New function.
32130         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
32131         not 1. Use write_nothrow.
32132         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
32133         invalid parameter handler.
32134         (gl_PREREQ_WRITE): New macro.
32135         * modules/write (Depends-on): Add msvc-inval.
32136         (configure.ac): Invoke gl_PREREQ_WRITE.
32137         * doc/posix-functions/write.texi: Mention the problem on MSVC.
32139 2011-09-24  Bruno Haible  <bruno@clisp.org>
32141         read: Fix last commit.
32142         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
32144 2011-09-24  Bruno Haible  <bruno@clisp.org>
32146         dup2: Fix last commit.
32147         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
32148         (rpl_dup2): Disable fcntl workaround on native Windows.
32150         sigprocmask: Make code safer.
32151         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
32152         section that changes macro definitions for this compilation unit.
32154 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32156         dup2: clarify by coalescing Windows-specific material
32157         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
32158         "msvc-nothrow.h"' to the Windows-specific section, so that the
32159         Emacs source need not contain these include files.
32160         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
32161         Windows-specific fixes into this function rather than just the
32162         nothrow fix, as this shortens and clarifies the code.  Always
32163         define as a function, as that's a bit cleaner than having it be
32164         sometimes a function and sometimes a macro.
32165         (rpl_dup2): Move the Windows-specific stuff out of here and into
32166         ms_windows_dup2.  Don't protect the Haiku-related fix with
32167         "#if !defined __linux__", as the same code also works around
32168         a Linux kernel bug, and it doesn't add any system calls on any
32169         platform.  Add comment about FreeBSD 6.1.
32171         sigprocmask: move #include directive
32172         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
32173         Windows-specific section, so that the Emacs source need not
32174         contain msvc-inval.h.
32176 2011-09-23  Bruno Haible  <bruno@clisp.org>
32178         read: Support for MSVC 9.
32179         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32180         is not 1.
32181         * lib/read.c (read_nothrow): New function.
32182         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
32183         read_nothrow.
32184         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
32185         invalid parameter handler.
32186         (gl_PREREQ_READ): New macro.
32187         * modules/read (Depends-on): Add msvc-inval.
32188         (configure.ac): Invoke gl_PREREQ_READ.
32189         * doc/posix-functions/read.texi: Mention the problem on MSVC.
32191 2011-09-23  Bruno Haible  <bruno@clisp.org>
32193         close: Support for MSVC 9.
32194         * lib/close.c: Include <errno.h>, msvc-inval.h.
32195         (close_nothrow): New function.
32196         (rpl_close): Use it.
32197         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
32198         invalid parameter handler.
32199         * modules/close (Depends-on): Add msvc-inval.
32200         * modules/dup2-tests (Depends-on): Add close.
32201         * modules/dup3-tests (Depends-on): Likewise.
32202         * modules/fcntl-tests (Depends-on): Likewise.
32203         * modules/spawn-pipe-tests (Depends-on): Likewise.
32204         * modules/unistd-safer-tests (Depends-on): Likewise.
32205         * doc/posix-functions/close.texi: Mention the problem on MSVC.
32207 2011-09-23  Bruno Haible  <bruno@clisp.org>
32209         New module 'dup'.
32210         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
32211         Allow replacement.
32212         * lib/dup.c: New file.
32213         * lib/fchdir.c (rpl_dup): Remove function.
32214         * m4/dup.m4: New file.
32215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
32216         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
32217         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
32218         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
32219         * modules/dup: New file.
32220         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
32221         'dup' module is in use.
32222         * modules/fdopendir (Depends-on): Add dup.
32223         * modules/fdutimensat-tests (Depends-on): Likewise.
32224         * modules/fts (Depends-on): Likewise.
32225         * modules/futimens-tests (Depends-on): Likewise.
32226         * modules/posix_spawnp-tests (Depends-on): Likewise.
32227         * modules/unistd-safer-tests (Depends-on): Likewise.
32228         * modules/utimens-tests (Depends-on): Likewise.
32229         * doc/posix-functions/dup.texi: Mention the new module and the problem
32230         on MSVC.
32232 2011-09-23  Bruno Haible  <bruno@clisp.org>
32234         getdtablesize: Support for MSVC 9.
32235         * lib/getdtablesize.c: Include msvc-inval.h.
32236         (_setmaxstdio_nothrow): New function.
32237         (_setmaxstdio): Redefine it.
32238         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
32239         * modules/getdtablesize (Depends-on): Add msvc-inval.
32240         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
32242 2011-09-23  Bruno Haible  <bruno@clisp.org>
32244         signal-h: Rename from signal.
32245         * modules/signal-h: Renamed from modules/signal.
32246         * modules/pthread_sigmask (Depends-on): Update.
32247         * modules/raise (Depends-on): Likewise.
32248         * modules/sigaction (Depends-on): Likewise.
32249         * modules/sigpipe (Depends-on): Likewise.
32250         * modules/sigprocmask (Depends-on): Likewise.
32251         * modules/sys_select (Depends-on): Likewise.
32252         * modules/signal-h-tests: Renamed from modules/signal-tests.
32253         (Files, Depends-on, Makefile.am): Update.
32254         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
32255         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
32256         (Files, Makefile.am): Update.
32257         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
32258         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
32259         * modules/signal: New placeholder file.
32260         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
32261         * doc/posix-headers/signal.texi: Update.
32262         * NEWS: Mention the change.
32264 2011-09-23  Bruno Haible  <bruno@clisp.org>
32266         sigprocmask: Avoid crashes through signal() on MSVC 9.
32267         * lib/sigprocmask.c: Include msvc-inval.h.
32268         (signal_nothrow): New function.
32269         (signal): Redefine it.
32270         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
32271         * modules/sigprocmask (Depends-on): Add msvc-inval.
32272         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
32274 2011-09-23  Bruno Haible  <bruno@clisp.org>
32276         Tests for module 'raise'.
32277         * modules/raise-tests: New file.
32278         * tests/test-raise.c: New file.
32280         raise: Support for MSVC.
32281         * lib/signal.in.h (raise): New declaration.
32282         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
32283         for native Windows platforms.
32284         * m4/raise.m4: New file.
32285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
32286         HAVE_RAISE, REPLACE_RAISE.
32287         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
32288         REPLACE_RAISE.
32289         * modules/raise (Status, Notice): Remove fields.
32290         (Files): Add m4/raise.m4.
32291         (Depends-on): Add signal, msvc-inval.
32292         (configure.ac): Use the common idioms.
32293         (Maintainer): Add me.
32294         * tests/test-signal-c++.cc: Check the signature of raise.
32295         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
32297 2011-09-23  Bruno Haible  <bruno@clisp.org>
32299         pipe2: Fix compilation on pre-C99 compilers.
32300         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
32302 2011-09-23  Bruno Haible  <bruno@clisp.org>
32304         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
32305         * lib/msvc-nothrow.h: New file.
32306         * lib/msvc-nothrow.c: New file.
32307         * m4/msvc-nothrow.m4: New file.
32308         * modules/msvc-nothrow: New file.
32309         * lib/dup2.c: Include msvc-nothrow.h.
32310         (rpl_dup2): No need to protect _get_osfhandle call here.
32311         * lib/accept4.c: Include msvc-nothrow.h.
32312         * lib/error.c: Likewise.
32313         * lib/fcntl.c: Likewise.
32314         * lib/lseek.c: Likewise.
32315         * lib/nonblocking.c: Likewise.
32316         * lib/poll.c: Likewise.
32317         * lib/read.c: Likewise.
32318         * lib/select.c: Likewise.
32319         * lib/sockets.h: Likewise.
32320         * lib/sockets.c: Likewise.
32321         * lib/stdio-read.c: Likewise.
32322         * lib/stdio-write.c: Likewise.
32323         * lib/write.c: Likewise.
32324         * lib/w32sock.h: Likewise.
32325         * lib/w32spawn.h: Likewise.
32326         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
32327         * lib/fsync.c: Likewise.
32328         * lib/isapipe.c: Likewise.
32329         * modules/dup2 (Depends-on): Add msvc-nothrow.
32330         * modules/accept4 (Depends-on): Likewise.
32331         * modules/error (Depends-on): Likewise.
32332         * modules/fcntl (Depends-on): Likewise.
32333         * modules/lseek (Depends-on): Likewise.
32334         * modules/nonblocking (Depends-on): Likewise.
32335         * modules/poll (Depends-on): Likewise.
32336         * modules/read (Depends-on): Likewise.
32337         * modules/select (Depends-on): Likewise.
32338         * modules/sockets (Depends-on): Likewise.
32339         * modules/sigpipe (Depends-on): Likewise.
32340         * modules/write (Depends-on): Likewise.
32341         * modules/accept (Depends-on): Likewise.
32342         * modules/bind (Depends-on): Likewise.
32343         * modules/connect (Depends-on): Likewise.
32344         * modules/gethostname (Depends-on): Likewise.
32345         * modules/getpeername (Depends-on): Likewise.
32346         * modules/getsockname (Depends-on): Likewise.
32347         * modules/getsockopt (Depends-on): Likewise.
32348         * modules/ioctl (Depends-on): Likewise.
32349         * modules/listen (Depends-on): Likewise.
32350         * modules/recv (Depends-on): Likewise.
32351         * modules/recvfrom (Depends-on): Likewise.
32352         * modules/send (Depends-on): Likewise.
32353         * modules/sendto (Depends-on): Likewise.
32354         * modules/setsockopt (Depends-on): Likewise.
32355         * modules/shutdown (Depends-on): Likewise.
32356         * modules/socket (Depends-on): Likewise.
32357         * modules/execute (Depends-on): Likewise.
32358         * modules/spawn-pipe (Depends-on): Likewise.
32359         * modules/flock (Depends-on): Likewise.
32360         * modules/fsync (Depends-on): Likewise.
32361         * modules/isapipe (Depends-on): Likewise.
32362         * tests/test-cloexec.c: Include msvc-nothrow.h.
32363         * tests/test-dup-safer.c: Likewise.
32364         * tests/test-dup2.c: Likewise.
32365         * tests/test-dup3.c: Likewise.
32366         * tests/test-fcntl.c: Likewise.
32367         * tests/test-pipe.c: Likewise.
32368         * tests/test-pipe2.c: Likewise.
32369         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32370         * modules/unistd-safer-tests (Depends-on): Likewise.
32371         * modules/dup2-tests (Depends-on): Likewise.
32372         * modules/dup3-tests (Depends-on): Likewise.
32373         * modules/fcntl-tests (Depends-on): Likewise.
32374         * modules/pipe-posix-tests (Depends-on): Likewise.
32375         * modules/pipe2-tests (Depends-on): Likewise.
32377 2011-09-23  Bruno Haible  <bruno@clisp.org>
32379         dup2: Make code more maintainable.
32380         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32381         (rpl_dup2): Use it.
32382         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32383         * modules/dup2 (configure.ac): Invoke it.
32384         Reported by Paul Eggert.
32386 2011-09-23  Bruno Haible  <bruno@clisp.org>
32388         msvc-inval: Fix compilation error.
32389         * lib/msvc-inval.h: Include <excpt.h>.
32391 2011-09-23  Bruno Haible  <bruno@clisp.org>
32393         mkdir: Tweak for MSVC 9.
32394         * lib/sys_stat.in.h: Update comments.
32395         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32397         Tests for module 'chdir'.
32398         * modules/chdir-tests: New file.
32399         * tests/test-chdir.c: New file.
32401         New module 'chdir'.
32402         * modules/chdir: New file.
32403         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32404         (chdir): New declaration.
32405         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32406         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32407         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32408         * tests/test-unistd-c++.cc: Check signature of chdir.
32409         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32410         * modules/chdir-long (Depends-on): Add chdir.
32411         * modules/fchdir (Depends-on): Likewise.
32412         * modules/rename (Depends-on): Likewise.
32413         * modules/savewd (Depends-on): Likewise.
32415         rmdir: Support for mingw, MSVC 9.
32416         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32417         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32419         getcwd: Tweak for MSVC 9.
32420         * lib/unistd.in.h: Update comments.
32421         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32423 2011-09-22  Bruno Haible  <bruno@clisp.org>
32425         strerror_r-posix: Avoid a link error on MSVC.
32426         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32427         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32429 2011-09-22  Bruno Haible  <bruno@clisp.org>
32431         select: Avoid link errors on MSVC.
32432         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32433         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32434         * modules/pselect (Link): Likewise.
32435         * NEWS: Mention the change.
32436         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32437         test-select-stdin against $(LIB_SELECT).
32438         * modules/pselect-tests (Makefile.am): Link test-pselect against
32439         $(LIB_SELECT).
32441 2011-09-22  Bruno Haible  <bruno@clisp.org>
32443         select: Avoid compilation error on MSVC.
32444         * lib/select.c: Don't include <stdbool.h>.
32446 2011-09-21  Bruno Haible  <bruno@clisp.org>
32448         Consolidate all uses of PATH_MAX in *.m4 files.
32449         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32450         macros.
32451         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32452         and gl_PATHMAX_SNIPPET.
32453         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32455         * modules/chdir-long (Files): Add m4/pathmax.m4.
32456         * modules/getcwd (Files): Likewise.
32458 2011-09-21  Bruno Haible  <bruno@clisp.org>
32460         ftruncate: Un-deprecate, concentrate on Win32 support.
32461         * modules/ftruncate (Status, Notice): Remove sections.
32462         (Depends-on): Add largefile.
32463         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32464         non-mingw platforms.
32465         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32466         include <io.h>.
32467         * modules/perror-tests (Depends-on): Add ftruncate.
32468         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32469         'ftruncate' module.
32471 2011-09-21  Bruno Haible  <bruno@clisp.org>
32473         Add dependencies to new dirent related modules.
32474         * modules/opendir (Depends-on): Add closedir.
32475         * modules/getcwd (Depends-on): Add opendir, closedir.
32476         * modules/dirent-safer-tests (Depends-on): Likewise.
32477         * modules/fdopendir-tests (Depends-on): Likewise.
32478         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32479         * modules/renameat-tests (Depends-on): Likewise.
32481 2011-09-21  Bruno Haible  <bruno@clisp.org>
32483         opendir: Avoid compilation error on mingw.
32484         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32485         * modules/opendir (Depends-on): Add unistd.
32487 2011-09-21  Bruno Haible  <bruno@clisp.org>
32489         ftruncate tests: Avoid a test failure on mingw.
32490         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32492 2011-09-21  Bruno Haible  <bruno@clisp.org>
32494         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32495         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32496         native Windows.
32498 2011-09-21  Bruno Haible  <bruno@clisp.org>
32500         New module 'fdopen'.
32501         * lib/stdio.in.h (fdopen): New declaration.
32502         * lib/fdopen.c: New file.
32503         * m4/fdopen.m4: New file.
32504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32505         REPLACE_FDOPEN.
32506         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32507         REPLACE_FDOPEN.
32508         * modules/fdopen: New file.
32509         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32510         * tests/test-stdio-c++.cc: Check signature of fdopen.
32511         * doc/posix-functions/fdopen.texi: Mention the new module.
32513 2011-09-21  Bruno Haible  <bruno@clisp.org>
32515         unlockpt tests: Avoid test failure on NetBSD 5.1.
32516         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32517         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32519 2011-09-21  Bruno Haible  <bruno@clisp.org>
32521         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32522         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32523         * tests/test-getlogin_r.c (main): Likewise.
32525 2011-09-20  Bruno Haible  <bruno@clisp.org>
32527         time tests: Don't require pid_t.
32528         * doc/posix-headers/time.texi: Revert last change.
32529         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32530         * tests/test-time.c: Comment out the check for pid_t.
32532 2011-09-20  Bruno Haible  <bruno@clisp.org>
32534         fsync tests: Avoid a test failure on mingw.
32535         * tests/test-fsync.c (main): Allow a failure with EIO.
32537 2011-09-20  Bruno Haible  <bruno@clisp.org>
32539         euidaccess: Update comments.
32540         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32542 2011-09-20  Bruno Haible  <bruno@clisp.org>
32544         Ensure EBADF returns for socket functions on mingw.
32545         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32546         descriptor is invalid.
32547         * lib/bind.c (rpl_bind): Likewise.
32548         * lib/connect.c (rpl_connect): Likewise.
32549         * lib/getpeername.c (rpl_getpeername): Likewise.
32550         * lib/getsockname.c (rpl_getsockname): Likewise.
32551         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32552         * lib/listen.c (rpl_listen): Likewise.
32553         * lib/recv.c (rpl_recv): Likewise.
32554         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32555         * lib/send.c (rpl_send): Likewise.
32556         * lib/sendto.c (rpl_sendto): Likewise.
32557         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32558         * lib/shutdown.c (rpl_shutdown): Likewise.
32560 2011-09-20  Bruno Haible  <bruno@clisp.org>
32562         select tests: EBADF tests.
32563         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32564         test_bad_fd): New functions.
32565         (test_function): Invoke also test_bad_fd.
32567 2011-09-20  Bruno Haible  <bruno@clisp.org>
32569         Tests for module 'posix_spawn_file_actions_addopen.
32570         * modules/posix_spawn_file_actions_addopen-tests: New file.
32571         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32573         Tests for module 'posix_spawn_file_actions_adddup2'.
32574         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32575         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32577         Tests for module 'posix_spawn_file_actions_addclose'.
32578         * modules/posix_spawn_file_actions_addclose-tests: New file.
32579         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32581 2011-09-20  Bruno Haible  <bruno@clisp.org>
32583         Tests for module 'unlockpt'.
32584         * modules/unlockpt-tests: New file.
32585         * tests/test-unlockpt.c: New file.
32586         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32588         Tests for module 'grantpt'.
32589         * modules/grantpt-tests: New file.
32590         * tests/test-grantpt.c: New file.
32591         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32593 2011-09-20  Bruno Haible  <bruno@clisp.org>
32595         freopen tests: EBADF tests.
32596         * tests/test-freopen.c: Include errno.h, unistd.h.
32597         (main): Add tests for EBADF, commented out for the moment.
32599         fclose tests: EBADF tests.
32600         * tests/test-fclose.c (main): Add tests for EBADF.
32602         fflush tests: EBADF tests.
32603         * tests/test-fflush.c: Include errno.h, macros.h.
32604         (main): Add tests for EBADF.
32606         ftello tests: EBADF tests.
32607         * tests/test-ftello4.sh: New file.
32608         * tests/test-ftello4.c: New file.
32609         * modules/ftello-tests (Files): Add them.
32610         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32612         fseeko tests: EBADF tests.
32613         * tests/test-fseeko4.sh: New file.
32614         * tests/test-fseeko4.c: New file.
32615         * modules/fseeko-tests (Files): Add them.
32616         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32618         Tests for function fputc().
32619         * modules/fputc-tests: New file.
32620         * tests/test-fputc.c: New file.
32621         * modules/stdio-tests (Depends-on): Add fputc-tests.
32623         Tests for function fgetc().
32624         * modules/fgetc-tests: New file.
32625         * tests/test-fgetc.c: New file.
32626         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32628         Tests for function fdopen().
32629         * modules/fdopen-tests: New file.
32630         * tests/test-fdopen.c: New file.
32631         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32633         Tests for module 'vdprintf'.
32634         * modules/vdprintf-tests: New file.
32635         * tests/test-vdprintf.c: New file.
32637         Tests for module 'dprintf'.
32638         * modules/dprintf-tests: New file.
32639         * tests/test-dprintf.c: New file.
32641 2011-09-20  Bruno Haible  <bruno@clisp.org>
32643         Tests for module 'ioctl'.
32644         * modules/ioctl-tests: New file.
32645         * tests/test-ioctl.c: New file.
32647 2011-09-20  Bruno Haible  <bruno@clisp.org>
32649         fcntl tests: EBADF tests.
32650         * tests/test-fcntl.c (main): Add more tests for EBADF.
32652 2011-09-20  Bruno Haible  <bruno@clisp.org>
32654         utimensat tests: EBADF tests.
32655         * tests/test-utimensat.c (main): Add tests for EBADF.
32657         renameat tests: EBADF tests.
32658         * tests/test-renameat.c (main): Add tests for EBADF.
32660         mkfifoat tests: EBADF tests.
32661         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32663         readlinkat tests: EBADF tests.
32664         * tests/test-readlinkat.c (main): Add tests for EBADF.
32666         symlinkat tests: EBADF tests.
32667         * tests/test-symlinkat.c (main): Add tests for EBADF.
32669         linkat tests: EBADF tests.
32670         * tests/test-linkat.c (main): Add tests for EBADF.
32672         Tests for module 'faccessat'.
32673         * modules/faccessat-tests: New file.
32674         * tests/test-faccessat.c: New file.
32676         fdopendir tests: EBADF tests.
32677         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32679         openat tests: EBADF tests.
32680         * tests/test-fchownat.c (main): Add tests for EBADF.
32681         * tests/test-fstatat.c (main): Likewise.
32682         * tests/test-mkdirat.c (main): Likewise.
32683         * tests/test-openat.c (main): Likewise.
32684         * tests/test-unlinkat.c (main): Likewise.
32685         * tests/test-fchmodat.c: New file.
32686         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32687         (Makefile.am): Also run 'test-fchmodat'.
32689 2011-09-20  Bruno Haible  <bruno@clisp.org>
32691         utimens, futimens, fdutimensat tests: EBADF tests.
32692         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32694         Tests for function fstat().
32695         * modules/fstat-tests: New file.
32696         * tests/test-fstat.c: New file.
32697         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32699 2011-09-20  Bruno Haible  <bruno@clisp.org>
32701         test-ttyname_r tests: EBADF tests.
32702         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32704         Tests for module 'isatty'.
32705         * modules/isatty-tests: New file.
32706         * tests/test-isatty.c: New file.
32708         Tests for module 'write'.
32709         * modules/write-tests: New file.
32710         * tests/test-write.c: New file.
32712         Tests for module 'read'.
32713         * modules/read-tests: New file.
32714         * tests/test-read.c: New file.
32716         pwrite tests: EBADF tests.
32717         * tests/test-pwrite.c (main): Add tests for EBADF.
32719         pread tests: EBADF tests.
32720         * tests/test-pread.c (main): Add tests for EBADF.
32722         lseek tests: EBADF tests.
32723         * tests/test-lseek.c (main): Add more tests for EBADF.
32725         Tests for module 'ftruncate'.
32726         * modules/ftruncate-tests: New file.
32727         * tests/test-ftruncate.sh: New file.
32728         * tests/test-ftruncate.c: New file.
32730         fsync tests: EBADF tests.
32731         * tests/test-fsync.c (main): Add more tests for EBADF.
32733         fdatasync tests: EBADF tests.
32734         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32736         Tests for module 'fchown'.
32737         * modules/fchown-tests: New file.
32738         * tests/test-fchown.c: New file.
32740         Tests for module 'fchmod'.
32741         * modules/fchmod-tests: New file.
32742         * tests/test-fchmod.c: New file.
32744         fchdir tests: EBADF tests.
32745         * tests/test-fchdir.c (main): Add more tests for EBADF.
32747         dup2 tests: EBADF tests.
32748         * tests/test-dup2.c (main): Add more tests for EBADF.
32750         Tests for module 'dup'.
32751         * modules/dup-tests: New file.
32752         * tests/test-dup.c: New file.
32754         Tests for module 'close'.
32755         * modules/close-tests: New file.
32756         * tests/test-close.c: New file.
32758 2011-09-20  Bruno Haible  <bruno@clisp.org>
32760         Tests for module 'shutdown'.
32761         * modules/shutdown-tests: New file.
32762         * tests/test-shutdown.c: New file.
32764         Tests for module 'setsockopt'.
32765         * modules/setsockopt-tests: New file.
32766         * tests/test-setsockopt.c: New file.
32768         Tests for module 'sendto'.
32769         * modules/sendto-tests: New file.
32770         * tests/test-sendto.c: New file.
32772         Tests for module 'send'.
32773         * modules/send-tests: New file.
32774         * tests/test-send.c: New file.
32776         Tests for module 'recvfrom'.
32777         * modules/recvfrom-tests: New file.
32778         * tests/test-recvfrom.c: New file.
32780         Tests for module 'recv'.
32781         * modules/recv-tests: New file.
32782         * tests/test-recv.c: New file.
32784         Tests for module 'listen'.
32785         * modules/listen-tests: New file.
32786         * tests/test-listen.c: New file.
32788         Tests for module 'getsockopt'.
32789         * modules/getsockopt-tests: New file.
32790         * tests/test-getsockopt.c: New file.
32792         Tests for module 'getsockname'.
32793         * modules/getsockname-tests: New file.
32794         * tests/test-getsockname.c: New file.
32796         Tests for module 'getpeername'.
32797         * modules/getpeername-tests: New file.
32798         * tests/test-getpeername.c: New file.
32800         Tests for module 'connect'.
32801         * modules/connect-tests: New file.
32802         * tests/test-connect.c: New file.
32804         Tests for module 'bind'.
32805         * modules/bind-tests: New file.
32806         * tests/test-bind.c: New file.
32808         accept4 tests: Fix for native Windows.
32809         * tests/test-accept4.c: Include sockets.h.
32810         (main): Invoke gl_sockets_startup.
32811         * modules/accept4-tests (Depends-on): Add sockets.
32813         accept tests: Fix for native Windows.
32814         * tests/test-accept.c: Include sockets.h.
32815         (main): Invoke gl_sockets_startup.
32816         * modules/accept-tests (Depends-on): Add sockets.
32818 2011-09-19  Bruno Haible  <bruno@clisp.org>
32820         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32821         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32822         do...while(0).
32823         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32824         Suggested by Paul Eggert.
32826 2011-09-19  Bruno Haible  <bruno@clisp.org>
32828         sched: Ensure pid_t is defined.
32829         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32830         not define pid_t.
32831         * lib/sched.in.h: Include <sys/types.h>.
32832         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32835 2011-09-19  Bruno Haible  <bruno@clisp.org>
32837         msvc-inval: Ensure the entire expansion is a single statement.
32838         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32839         of braces.
32841 2011-09-19  Jim Meyering  <meyering@redhat.com>
32843         tests: use printf, not echo in init.sh's warn_ function
32844         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32845         misbehave when given strings containing a backslash or starting
32846         with e.g., -n.  James Youngman suggested setting IFS.
32848 2011-09-19  Eric Blake  <eblake@redhat.com>
32850         futimens: enhance test
32851         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32852         closed non-negative fd.
32854         date: accept 'hence' as opposite of 'ago'
32855         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32856         * tests/test-parse-datetime.c (main): Enhance test.
32857         Suggested by Jesse Wilson.
32859 2011-09-19  Jim Meyering  <meyering@redhat.com>
32861         getcwd: don't fail in a deep directory on a system without openat
32862         Before this change, getcwd would fail when called from a directory
32863         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32864         the non-openat implementation used "..", "../..", "../../..", etc.
32865         to access ancestor directories.  With too many, that string would
32866         be longer than PATH_MAX.
32867         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32868         using gnulib's openat replacement.
32869         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32870         we're using the replacement function.
32872 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32874         maint.mk: avoid warnings from perl about missing files
32875         * top/maint.mk (def_sym_regex): Ignore files listed in
32876         $(gl_other_headers_) that do not exist, say because a project
32877         does not use a corresponding module.
32879 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32881         stat: use pathmax.h only if needed
32882         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32883         This is better for Emacs, which does not have a mingw port and
32884         therefore can avoid the pathmax module.
32886         utimens: remove dependency on dup2
32887         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32888         to work around the Linux kernel bug.
32889         * modules/utimens (Depends-on): Remove dup2.
32891 2011-09-18  Bruno Haible  <bruno@clisp.org>
32893         inet_ntop, inet_pton: Look for it also in libresolv.
32894         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32895         libnsl, search for it in libresolv.
32896         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32897         Needed on Solaris 7.
32899 2011-09-18  Bruno Haible  <bruno@clisp.org>
32901         accept, accept4 tests: Avoid link error on Solaris.
32902         * modules/accept-tests (Makefile.am): Link test-accept against
32903         $(LIBSOCKET).
32904         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32905         $(LIBSOCKET).
32907         accept4: Avoid link error on Solaris.
32908         * modules/accept4 (Link): New section.
32910         socket functions: Avoid link errors on Solaris.
32911         * modules/accept (Depends-on): Add socketlib.
32912         (Link): New section.
32913         * modules/bind (Depends-on): Add socketlib.
32914         (Link): New section.
32915         * modules/connect (Depends-on): Add socketlib.
32916         (Link): New section.
32917         * modules/getpeername (Depends-on): Add socketlib.
32918         (Link): New section.
32919         * modules/getsockname (Depends-on): Add socketlib.
32920         (Link): New section.
32921         * modules/getsockopt (Depends-on): Add socketlib.
32922         (Link): New section.
32923         * modules/listen (Depends-on): Add socketlib.
32924         (Link): New section.
32925         * modules/recv (Depends-on): Add socketlib.
32926         (Link): New section.
32927         * modules/recvfrom (Depends-on): Add socketlib.
32928         (Link): New section.
32929         * modules/send (Depends-on): Add socketlib.
32930         (Link): New section.
32931         * modules/sendto (Depends-on): Add socketlib.
32932         (Link): New section.
32933         * modules/setsockopt (Depends-on): Add socketlib.
32934         (Link): New section.
32935         * modules/shutdown (Depends-on): Add socketlib.
32936         (Link): New section.
32937         * modules/socket (Depends-on): Add socketlib.
32938         (Link): New section.
32940 2011-09-18  Bruno Haible  <bruno@clisp.org>
32942         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32943         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32944         than 5 seconds.
32945         * modules/ptsname-tests (configure.ac): Test for alarm.
32947 2011-09-18  Bruno Haible  <bruno@clisp.org>
32949         posix_spawn_file_actions_add*: Fix module dependencies.
32950         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32951         posix_spawn_file_actions_init.
32952         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32953         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32955 2011-09-18  Bruno Haible  <bruno@clisp.org>
32957         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32958         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32959         * tests/test-renameat.c (main): Likewise.
32961 2011-09-18  Bruno Haible  <bruno@clisp.org>
32963         Tests for module 'accept4'.
32964         * modules/accept4-tests: New file.
32965         * tests/test-accept4.c: New file.
32967 2011-09-18  Bruno Haible  <bruno@clisp.org>
32969         Tests for module 'accept'.
32970         * modules/accept-tests: New file.
32971         * tests/test-accept.c: New file.
32973 2011-09-18  Bruno Haible  <bruno@clisp.org>
32975         dup2: Support for MSVC.
32976         * lib/dup2.c: Include msvc-inval.h.
32977         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32978         _get_osfhandle calls.
32979         * modules/dup2 (Depends-on): Add msvc-inval.
32980         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32982         New module 'msvc-inval'.
32983         * lib/msvc-inval.h: New file.
32984         * lib/msvc-inval.c: New file.
32985         * m4/msvc-inval.m4: New file.
32986         * modules/msvc-inval: New file.
32988 2011-09-17  Bruno Haible  <bruno@clisp.org>
32990         Tests for module 'pclose'.
32991         * modules/pclose-tests: New file.
32993         New module 'pclose'.
32994         * lib/stdio.in.h (pclose): New declaration.
32995         * lib/pclose.c: New file.
32996         * m4/pclose.m4: New file.
32997         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32998         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32999         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
33000         * modules/pclose: New file.
33001         * modules/popen-tests (Depends-on): Add pclose.
33002         * modules/popen-safer-tests (Depends-on): Likewise.
33003         * doc/posix-functions/pclose.texi: Mention the new module.
33005 2011-09-17  Bruno Haible  <bruno@clisp.org>
33007         popen: Support for MSVC.
33008         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
33009         * lib/popen.c (popen): Provide alternate definition for native Windows.
33010         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
33011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
33012         * modules/popen (Depends-on, configure.ac): Update condition.
33013         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
33014         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
33015         fixed.
33017 2011-09-17  Bruno Haible  <bruno@clisp.org>
33019         isnanl, isnand, isnanf: Work around MSVC bug.
33020         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
33022 2011-09-17  Bruno Haible  <bruno@clisp.org>
33024         sys_socket tests: Fix recent mistake.
33025         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
33027 2011-09-17  Bruno Haible  <bruno@clisp.org>
33029         putenv: Support for MSVC.
33030         * modules/putenv (Depends-on): Add environ.
33031         * lib/putenv.c (environ): Disable declaration.
33032         * lib/unistd.in.h: Update comment.
33034 2011-09-17  Bruno Haible  <bruno@clisp.org>
33036         math: Avoid macro redefinition warnings on MSVC.
33037         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
33038         Undefine before redefining.
33040 2011-09-17  Bruno Haible  <bruno@clisp.org>
33042         doc: Mention functions which are declared as macros.
33043         * doc/posix-functions/*[fl].texi: Mention that some functions are
33044         defined as macros with arguments only.
33046 2011-09-17  Bruno Haible  <bruno@clisp.org>
33048         Add dependencies to new dirent related modules.
33049         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
33050         * modules/fts (Depends-on): Likewise.
33051         * modules/glob (Depends-on): Likewise.
33052         * modules/savedir (Depends-on): Likewise.
33053         * modules/scandir (Depends-on): Likewise.
33054         * modules/dirent-safer (Depends-on): Add opendir, closedir.
33055         * modules/fdopendir (Depends-on): Add opendir.
33057 2011-09-17  Bruno Haible  <bruno@clisp.org>
33059         inet_pton: Support for MSVC on Windows Vista or newer.
33060         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
33061         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
33062         HAVE_DECL_INET_PTON is defined.
33063         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
33064         On platforms with <winsock2.h>, test whether inet_pton is declared in
33065         <ws2tcpip.h>. If so, arrange to replace it.
33066         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
33067         REPLACE_INET_PTON.
33068         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
33069         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
33070         (Depends-on, configure.ac): Update condition.
33071         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
33073 2011-09-17  Bruno Haible  <bruno@clisp.org>
33075         inet_ntop: Support for MSVC on Windows Vista or newer.
33076         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
33077         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
33078         HAVE_DECL_INET_NTOP is defined.
33079         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
33080         On platforms with <winsock2.h>, test whether inet_ntop is declared in
33081         <ws2tcpip.h>. If so, arrange to replace it.
33082         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
33083         REPLACE_INET_NTOP.
33084         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
33085         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
33086         (Depends-on, configure.ac): Update condition.
33087         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
33089 2011-09-16  Eric Blake  <eblake@redhat.com>
33091         test-fsync: yet another enhancement
33092         * tests/test-fsync.c (main): Also test behavior on read-only text
33093         file.
33095 2011-09-16  Bruno Haible  <bruno@clisp.org>
33097         Enhance fsync, fdatasync tests.
33098         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
33099         * tests/test-fdatasync.c (main): Likewise.
33101 2011-09-16  Bruno Haible  <bruno@clisp.org>
33103         Support for MSVC compiler: Ensure mode_t gets defined.
33104         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
33105         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33107         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
33108         * tests/test-fcntl-h.c: Check that mode_t is defined.
33109         * tests/test-sys_stat.c: Likewise.
33110         * tests/test-sys_types.c: Likewise.
33111         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
33112         * doc/posix-headers/sys_stat.texi: Likewise.
33113         * doc/posix-headers/sys_types.texi: Likewise.
33115 2011-09-16  Bruno Haible  <bruno@clisp.org>
33117         sys_stat: Support for MSVC.
33118         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
33119         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
33120         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
33121         MSVC.
33123 2011-09-16  Bruno Haible  <bruno@clisp.org>
33125         Support for MSVC compiler: Ensure off_t gets defined.
33126         * lib/unistd.in.h: Include <sys/types.h>.
33127         * tests/test-fcntl-h.c: Check that off_t is defined.
33128         * tests/test-sys_stat.c: Likewise.
33129         * tests/test-sys_types.c: Likewise.
33131 2011-09-16  Eric Blake  <eblake@redhat.com>
33133         fdatasync: port to Solaris
33134         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
33135         * modules/fdatasync (Link): Document it.
33136         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
33138         fdatasync: port to MacOS X 10.7
33139         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
33140         declared.
33141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
33142         * modules/unistd (Makefile.am): Substitute it.
33143         * lib/unistd.in.h (fdatasync): Declare on MacOS.
33144         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
33146         fdatasync: minor improvements
33147         * modules/fdatasync (Depends-on): Add condition for fsync.
33148         * lib/fdatasync.c (fdatasync): Add comment.
33149         * tests/test-unistd-c++.cc: Test fdatasync.
33151         unistd: update refs to newer POSIX
33152         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
33153         Suggested by Bruno Haible.
33155         fdatasync: new module
33156         * modules/fsync (Description): Document difference to fdatasync.
33157         * modules/fdatasync: New module.
33158         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
33159         * lib/fdatasync.c (fdatasync): Likewise.
33160         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
33161         defaults.
33162         * modules/unistd (Makefile.am): Set witnesses.
33163         * lib/unistd.in.h (fdatasync): Declare.
33164         * MODULES.html.sh: Document it.
33165         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
33166         * modules/fdatasync-tests: New test.
33167         * tests/test-fdatasync.c: Likewise.
33169 2011-09-16  Eric Blake  <eblake@redhat.com>
33171         test-fsync: enhance tests
33172         * modules/fsync-tests (Depends-on): Add errno, for mingw.
33173         * tests/test-fsync.c (main): Enhance test.
33175 2011-09-15  Bruno Haible  <bruno@clisp.org>
33177         Support for MSVC compiler: Ensure ssize_t gets defined.
33178         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
33179         * doc/posix-headers/stdio.texi: Likewise.
33180         * modules/stdio (Depends-on): Add ssize_t.
33181         * modules/sys_socket (Depends-on): Likewise.
33182         * modules/sys_types (Depends-on): Likewise.
33183         * modules/sys_uio (Depends-on): Likewise.
33184         * modules/unistd (Depends-on): Likewise.
33185         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
33186         * tests/test-sys_types.c: Check that ssize_t is defined.
33188 2011-09-14  Bruno Haible  <bruno@clisp.org>
33190         Avoid using #, the m4 comment starter character, near brackets.
33191         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
33192         delimiter character in sed expressions.
33193         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
33194         Suggested by Eric Blake.
33196         Properly quote AC_CHECK_DECLS' 4th argument.
33197         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
33198         argument.
33199         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33200         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33202         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33203         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33204         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
33205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
33206         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
33207         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
33208         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33209         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
33210         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
33211         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33212         * m4/isinf.m4 (gl_ISINF): Likewise.
33213         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
33214         * m4/readutmp.m4 (gl_READUTMP): Likewise.
33215         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33216         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33218         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33219         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
33220         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
33221         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
33222         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33223         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33224         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
33226         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33228         Reported by Eric Blake.
33230         Properly quote AC_CHECK_DECL's 4th argument.
33231         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
33232         argument.
33233         * m4/argp.m4 (gl_ARGP): Likewise.
33234         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
33235         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33236         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
33237         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
33238         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
33239         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
33240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33241         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
33242         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33243         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
33244         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
33245         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
33246         Reported by Eric Blake.
33248 2011-09-14  Eric Blake  <eblake@redhat.com>
33250         opendir: avoid compile warning
33251         * lib/opendir.c (includes): Always include errno.h.
33252         Reported by Tatsuro MATSUOKA.
33254 2011-09-14  Jim Meyering  <meyering@redhat.com>
33256         maint.mk: sc_tight_scope: propagate failure from sub-make
33257         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
33258         Reported by Martin von Gagern.
33260 2011-09-13  Bruno Haible  <bruno@clisp.org>
33262         tempname: Support for MSVC.
33263         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
33264         MSVC.
33265         * modules/tempname (Depends-on): Add fcntl-h.
33267 2011-09-13  Bruno Haible  <bruno@clisp.org>
33269         sys_time: Support for MSVC.
33270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
33271         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
33272         include <winsock2.h>.
33273         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
33274         function declarations that collide with POSIX.
33275         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
33276         (Makefile.am): Substitute HAVE_WINSOCK2_H.
33278 2011-09-13  Bruno Haible  <bruno@clisp.org>
33280         stat: Support for MSVC.
33281         * lib/stat.c: Include pathmax.h.
33282         * modules/stat (Depends-on): Add pathmax.
33284         pathmax: Support for native Windows.
33285         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
33287 2011-09-12  Bruno Haible  <bruno@clisp.org>
33289         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
33290         * lib/dirent.in.h (struct dirent): New type.
33291         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
33292         DT_WHT): New macros.
33293         (DIR): New type.
33294         (opendir, closedir): Declare only if the module 'opendir' is enabled.
33295         (readdir, rewinddir): New declarations.
33296         * lib/dirent-private.h: New file.
33297         * lib/opendir.c: New file.
33298         * lib/readdir.c: New file.
33299         * lib/rewinddir.c: New file.
33300         * lib/closedir.c: New file.
33301         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
33302         * m4/opendir.m4: New file.
33303         * m4/readdir.m4: New file.
33304         * m4/rewinddir.m4: New file.
33305         * m4/closedir.m4: New file.
33306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
33307         REPLACE_CLOSEDIR here.
33308         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
33309         readdir, rewinddir are declared.
33310         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
33311         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
33312         HAVE_REWINDDIR, HAVE_CLOSEDIR.
33313         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33314         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
33315         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
33316         * modules/opendir: New file.
33317         * modules/readdir: New file.
33318         * modules/rewinddir: New file.
33319         * modules/closedir: New file.
33320         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
33321         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
33322         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
33323         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
33324         * NEWS: Mention the 'fchdir' change.
33326 2011-09-11  Bruno Haible  <bruno@clisp.org>
33328         asm-underscore.m4: Support for MSVC.
33329         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
33330         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
33332 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
33334         Doc about crypt functions.
33335         * doc/posix-functions/crypt.texi: Expand range of glibc versions
33336         needing for _GNU_SOURCE to get crypt.
33337         * doc/posix-functions/encrypt.texi: Likewise.
33338         * doc/posix-functions/setkey.texi: Likewise.
33340 2011-09-11  Bruno Haible  <bruno@clisp.org>
33342         doc: Update regarding MSVC 9.
33343         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
33344         tested".
33345         * doc/posix-functions/*.texi: Update with info about MSVC 9.
33346         * doc/posix-headers/*.texi: Likewise.
33347         * doc/pastposix-functions/*.texi: Likewise.
33348         * doc/glibc-functions/*.texi: Likewise.
33349         * doc/glibc-headers/*.texi: Likewise.
33351 2011-09-11  Bruno Haible  <bruno@clisp.org>
33353         unistd et al.: Don't assume <unistd.h> exists.
33354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
33355         does not exist.
33356         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33357         exist. But include <stdlib.h>.
33358         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33359         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33360         symlink() does not exist.
33361         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33362         include <io.h> instead.
33363         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33365         include <direct.h> instead.
33366         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33367         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33368         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33369         <io.h> instead.
33370         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33371         correctly if the system does not have hard links.
33372         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33373         <direct.h> instead.
33374         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33375         it when looking for function declarations.
33376         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33377         <direct.h> and <io.h> instead.
33378         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33380 2011-09-11  Bruno Haible  <bruno@clisp.org>
33382         strcase: Support for MSVC.
33383         * modules/strcase (Status, Notice): Remove obsoletion mark.
33384         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33385         * doc/posix-functions/strncasecmp.texi: Likewise.
33387         strings: Don't assume <strings.h> exists.
33388         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33389         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33390         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33391         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33393 2011-09-11  Bruno Haible  <bruno@clisp.org>
33395         dirent: Don't assume <dirent.h> exists.
33396         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33397         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33398         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33399         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33401 2011-09-11  Bruno Haible  <bruno@clisp.org>
33403         Fix wint_t on MSVC.
33404         * lib/wchar.in.h (wint_t): On MSVC, override it.
33405         * lib/wctype.in.h (wint_t): Likewise.
33406         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33407         MSVC.
33408         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33409         * doc/posix-headers/wctype.texi: Likewise.
33411 2011-09-11  Bruno Haible  <bruno@clisp.org>
33413         sys_types: Fix typo.
33414         * lib/sys_types.in.h: Fix typo in comment.
33415         Reported by Paul Eggert.
33417         Support for MSVC compiler: Ensure size_t gets defined.
33418         * modules/strings (Depends-on): Add 'sys_types'.
33419         * modules/sys_uio (Depends-on): Likewise.
33420         * lib/sys_uio.in.h: Update comment.
33422         C++ tests for module 'sys_types'.
33423         * modules/sys_types-c++-tests: New file.
33424         * tests/test-sys_types-c++.cc: New file.
33426         Tests for module 'sys_types'.
33427         * modules/sys_types-tests: New file.
33428         * tests/test-sys_types.c: New file.
33430         New module 'sys_types'.
33431         * lib/sys_types.in.h: New file.
33432         * m4/sys_types_h.m4: New file.
33433         * modules/sys_types: New file.
33434         * doc/posix-headers/sys_types.texi: Mention the new module and the
33435         size_t problem on MSVC 9.
33437 2011-09-11  Bruno Haible  <bruno@clisp.org>
33439         Support for MSVC compiler: Avoid division by a literal 0.
33440         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33441         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33442         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33443         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33444         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33445         * tests/infinity.h: New file.
33446         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33447         on MSVC.
33448         * tests/test-ceilf1.c: Include infinity.h.
33449         (main): Use Infinityf.
33450         * tests/test-ceil1.c: Include infinity.h.
33451         (main): Use Infinityd.
33452         * tests/test-ceill.c: Include infinity.h.
33453         (main): Use Infinityl.
33454         * tests/test-dprintf-posix.c: Include infinity.h.
33455         (test_function): Use Infinityd.
33456         * tests/test-floorf1.c: Include infinity.h.
33457         (main): Use Infinityf.
33458         * tests/test-floor1.c: Include infinity.h.
33459         (main): Use Infinityd.
33460         * tests/test-floorl.c: Include infinity.h.
33461         (main): Use Infinityl.
33462         * tests/test-fprintf-posix.c: Include infinity.h.
33463         (test_function): Use Infinityd.
33464         * tests/test-frexp.c: Include infinity.h.
33465         (main): Use Infinityd.
33466         * tests/test-frexpl.c: Include infinity.h.
33467         (main): Use Infinityl.
33468         * tests/test-isfinite.c: Include infinity.h.
33469         (test_isfinitef): Use Infinityf.
33470         (test_isfinited): Use Infinityd.
33471         (test_isfinitel): Use Infinityl.
33472         * tests/test-isinf.c: Include infinity.h.
33473         (test_isinff): Use Infinityf.
33474         (test_isinfd): Use Infinityd.
33475         (test_isinfl): Use Infinityl.
33476         * tests/test-isnan.c: Include infinity.h.
33477         (test_float): Use Infinityf.
33478         (test_double): Use Infinityd.
33479         (test_long_double): Use Infinityl.
33480         * tests/test-isnanf.h: Include infinity.h.
33481         (main): Use Infinityf.
33482         * tests/test-isnand.h: Include infinity.h.
33483         (main): Use Infinityd.
33484         * tests/test-isnanl.h: Include infinity.h.
33485         (main): Use Infinityl.
33486         * tests/test-ldexpl.c: Include infinity.h.
33487         (main): Use Infinityl.
33488         * tests/test-printf-posix.h: Include infinity.h.
33489         (test_function): Use Infinityd.
33490         * tests/test-roundf1.c: Include infinity.h.
33491         (main): Use Infinityf.
33492         * tests/test-round1.c: Include infinity.h.
33493         (main): Use Infinityd.
33494         * tests/test-roundl.c: Include infinity.h.
33495         (main): Use Infinityl.
33496         * tests/test-signbit.c: Include infinity.h.
33497         (test_signbitf): Use Infinityf.
33498         (test_signbitd): Use Infinityd.
33499         (test_signbitl): Use Infinityl.
33500         * tests/test-snprintf-posix.h: Include infinity.h.
33501         (test_function): Use Infinityd, Infinityl.
33502         * tests/test-sprintf-posix.h: Include infinity.h.
33503         (test_function): Use Infinityd, Infinityl.
33504         * tests/test-truncf1.c: Include infinity.h.
33505         (main): Use Infinityf.
33506         * tests/test-trunc1.c: Include infinity.h.
33507         (main): Use Infinityd.
33508         * tests/test-truncl.c: Include infinity.h.
33509         (main): Use Infinityl.
33510         * tests/test-vasnprintf-posix.c: Include infinity.h.
33511         (test_function): Use Infinityd, Infinityl.
33512         * tests/test-vasprintf-posix.c: Include infinity.h.
33513         (test_function): Use Infinityd, Infinityl.
33514         * modules/ceilf-tests (Files): Add tests/infinity.h.
33515         * modules/ceil-tests (Files): Likewise.
33516         * modules/ceill-tests (Files): Likewise.
33517         * modules/dprintf-posix-tests (Files): Likewise.
33518         * modules/floorf-tests (Files): Likewise.
33519         * modules/floor-tests (Files): Likewise.
33520         * modules/floorl-tests (Files): Likewise.
33521         * modules/fprintf-posix-tests (Files): Likewise.
33522         * modules/frexp-tests (Files): Likewise.
33523         * modules/frexp-nolibm-tests (Files): Likewise.
33524         * modules/frexpl-tests (Files): Likewise.
33525         * modules/frexpl-nolibm-tests (Files): Likewise.
33526         * modules/isfinite-tests (Files): Likewise.
33527         * modules/isinf-tests (Files): Likewise.
33528         * modules/isnan-tests (Files): Likewise.
33529         * modules/isnanf-tests (Files): Likewise.
33530         * modules/isnanf-nolibm-tests (Files): Likewise.
33531         * modules/isnand-tests (Files): Likewise.
33532         * modules/isnand-nolibm-tests (Files): Likewise.
33533         * modules/isnanl-tests (Files): Likewise.
33534         * modules/isnanl-nolibm-tests (Files): Likewise.
33535         * modules/ldexpl-tests (Files): Likewise.
33536         * modules/printf-posix-tests (Files): Likewise.
33537         * modules/roundf-tests (Files): Likewise.
33538         * modules/round-tests (Files): Likewise.
33539         * modules/roundl-tests (Files): Likewise.
33540         * modules/signbit-tests (Files): Likewise.
33541         * modules/snprintf-posix-tests (Files): Likewise.
33542         * modules/sprintf-posix-tests (Files): Likewise.
33543         * modules/truncf-tests (Files): Likewise.
33544         * modules/trunc-tests (Files): Likewise.
33545         * modules/truncl-tests (Files): Likewise.
33546         * modules/vasnprintf-posix-tests (Files): Likewise.
33547         * modules/vasprintf-posix-tests (Files): Likewise.
33548         * modules/vdprintf-posix-tests (Files): Likewise.
33549         * modules/vfprintf-posix-tests (Files): Likewise.
33550         * modules/vprintf-posix-tests (Files): Likewise.
33551         * modules/vsnprintf-posix-tests (Files): Likewise.
33552         * modules/vsprintf-posix-tests (Files): Likewise.
33553         * modules/xprintf-posix-tests (Files): Likewise.
33555 2011-09-11  Bruno Haible  <bruno@clisp.org>
33557         Ensure pid_t gets defined.
33558         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33559         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33560         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33561         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33562         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33563         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33564         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33565         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33566         * tests/test-fcntl-h.c: Check that pid_t is defined.
33567         * tests/test-sched.c: Likewise.
33568         * tests/test-termios.c: Likewise.
33569         * tests/test-time.c: Likewise.
33570         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33571         * doc/posix-headers/signal.texi: Likewise.
33572         * doc/posix-headers/sys_types.texi: Likewise.
33573         * doc/posix-headers/time.texi: Likewise.
33575 2011-09-11  Bruno Haible  <bruno@clisp.org>
33577         acl: Fix compilation on Solaris 10 (older version).
33578         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33579         of ACE_EVERYONE.
33580         * lib/set-mode-acl.c (qset_acl): Likewise.
33581         Reported by Christian Jullien <eligis@orange.fr>.
33583 2011-09-10  Bruno Haible  <bruno@clisp.org>
33585         iconv, unsetenv: Add support for MSVC compiler.
33586         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33587         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33589 2011-09-10  Bruno Haible  <bruno@clisp.org>
33591         *printf: Add support for MSVC compiler.
33592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33593         handles the exception caused by the %n directive. When cross-compiling,
33594         guess no on native Windows.
33595         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33596         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33597         emulate it through vsnprintf.
33598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33599         * doc/posix-functions/dprintf.texi: Update documentation regarding
33600         MSVC 9.
33601         * doc/posix-functions/fprintf.texi: Likewise.
33602         * doc/posix-functions/printf.texi: Likewise.
33603         * doc/posix-functions/snprintf.texi: Likewise.
33604         * doc/posix-functions/sprintf.texi: Likewise.
33605         * doc/posix-functions/swprintf.texi: Likewise.
33606         * doc/posix-functions/vdprintf.texi: Likewise.
33607         * doc/posix-functions/vfprintf.texi: Likewise.
33608         * doc/posix-functions/vprintf.texi: Likewise.
33609         * doc/posix-functions/vsnprintf.texi: Likewise.
33610         * doc/posix-functions/vsprintf.texi: Likewise.
33611         * doc/glibc-functions/asprintf.texi: Likewise.
33612         * doc/glibc-functions/obstack_printf.texi: Likewise.
33613         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33614         * doc/glibc-functions/vasprintf.texi: Likewise.
33616 2011-09-10  Bruno Haible  <bruno@clisp.org>
33618         nocrash: Add support for native Windows.
33619         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33621 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33622             Bruno Haible  <bruno@clisp.org>
33624         absolute-header, include-next: Add support for MSVC compiler.
33625         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33626         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33627         directory separator in #line directives.
33628         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33629         recognize also backslash as directory separator in #line directives.
33631 2011-09-08  Jim Meyering  <meyering@redhat.com>
33633         maint.mk: mark the post-release commit log with "maint: " prefix
33634         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33635         one-line commit-log summary.
33637 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33638             Bruno Haible  <bruno@clisp.org>
33640         Doc about crypt functions.
33641         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33642         systems.
33643         * doc/posix-functions/encrypt.texi: Likewise.
33644         * doc/posix-functions/setkey.texi: Likewise.
33646 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33648         * lib/gc.h: Fix copyright header.
33650 2011-09-07  Bruno Haible  <bruno@clisp.org>
33652         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33653         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33654         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33656 2011-09-07  Bruno Haible  <bruno@clisp.org>
33658         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33659         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33660         * lib/freopen.c: Likewise.
33661         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33662         * lib/lstat.c: Likewise.
33663         * lib/stat.c: Likewise.
33664         * lib/open.c: Use different syntax for include of <fcntl.h>.
33665         * lib/openat.c: Include fcntl.h again, explicitly.
33667 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33669         parse-datetime: document the newly accepted format
33670         * doc/parse-datetime.texi (Combined date and time of day items):
33671         New section.
33673 2011-09-06  Bruno Haible  <bruno@clisp.org>
33675         acl: Fix a test failure on newer Solaris 10 with ZFS.
33676         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33677         ENOSYS as no ACL.
33678         Reported by Jim Meyering.
33680 2011-09-06  Bruno Haible  <bruno@clisp.org>
33682         acl: Update for AIX >= 5.3 with NFS.
33683         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33684         ENOSYS as no ACL.
33686         acl: Fix a test failure on AIX >= 5.3 with NFS.
33687         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33688         as no ACL.
33690 2011-09-06  Bruno Haible  <bruno@clisp.org>
33692         acl: Fix a test failure on IRIX 6.5 with NFS.
33693         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33694         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33695         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33696         * lib/copy-acl.c (qcopy_acl): Likewise.
33698 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33700         openat: port to AIX 7.1 with large files
33701         AIX 7.1 does a "#define openat open64at" if large files are in use,
33702         so we can't simply #undef openat.  Use the orig_openat trick (similar
33703         to orig_open in lib/open.c) to work around the problem.  Problem
33704         reported by Kevin Brott for GNU tar, in the thread containing
33705         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33706         * lib/openat.c (__need_system_fcntl_h): Define first.
33707         Include <fcntl.h> and <sys/types.h> before undefining.
33708         (orig_openat) [HAVE_OPENAT]: New inline function.
33709         (openat) [HAVE_OPENAT]: Do not undef.
33710         (rpl_openat): Use orig_openat, not openat.
33712 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33713             Bruno Haible  <bruno@clisp.org>
33715         acl: Avoid errors on NonStop Kernel.
33716         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33717         ENOTSUP errors.
33719 2011-09-05  Bruno Haible  <bruno@clisp.org>
33721         acl: Clean up Solaris code.
33722         * lib/acl-internal.h: Remove no-op #if.
33723         * lib/file-has-acl.c: Likewise.
33724         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33725         * lib/copy-acl.c (qcopy_acl): Likewise.
33727 2011-09-05  Bruno Haible  <bruno@clisp.org>
33729         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33730         binaries built on the original Solaris 10.
33731         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33732         trivial.
33734 2011-09-05  Bruno Haible  <bruno@clisp.org>
33736         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33737         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33738         10.
33739         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33740         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33741         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33742         instead of acl_get, facl_get, acl_set, facl_set.
33744 2011-09-05  Bruno Haible  <bruno@clisp.org>
33746         copy-file: Try unit tests on more file systems.
33747         * tests/test-copy-file-1.sh: New file.
33748         * tests/test-copy-file-2.sh: New file.
33749         * modules/copy-file-tests (Files): Add them.
33750         (Makefile.am): Add them to TESTS.
33752         acl: Try unit tests on more file systems.
33753         * tests/test-file-has-acl-1.sh: New file.
33754         * tests/test-file-has-acl-2.sh: New file.
33755         * tests/test-set-mode-acl-1.sh: New file.
33756         * tests/test-set-mode-acl-2.sh: New file.
33757         * tests/test-copy-acl-1.sh: New file.
33758         * tests/test-copy-acl-2.sh: New file.
33759         * modules/acl-tests (Files): Add them.
33760         (Makefile.am): Add them to TESTS.
33762 2011-09-04  Bruno Haible  <bruno@clisp.org>
33764         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33765         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33766         10.
33767         (OLD_ALLOW, OLD_DENY): New macros.
33768         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33769         ACE_ACCESS_ALLOWED_ACE_TYPE.
33770         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33771         ACE_ACCESS_DENIED_ACE_TYPE.
33772         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33773         (NEW_ACE_EXECUTE): Fix value.
33774         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33775         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33776         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33777         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33778         NEW_ACE_SYNCHRONIZE): New macros.
33779         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33780         instead of acl_fromtext, acl_set, facl_set.
33781         Fixes a coreutils/tests/cp/perm failure.
33783 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33785         openat: test for fstatat (..., 0) bug
33786         Further testing with tar suggests that fstatat (..., 0)
33787         does not work in general, on AIX 7.1; see
33788         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33789         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33790         replacement fstatat (which is what older AIX releases were using
33791         anyway).
33792         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33793         use is now changed to orig_fstatat.  This was probably the right
33794         thing to do anyway.
33795         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33796         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33797         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33798         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33799         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33800         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33801         if the bug is found.
33803         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33804         This tests for another fstatat bug on AIX 7.1:
33805         fstatat (AT_FDCWD, ..., 0) does not work.  See
33806         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33807         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33808         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33809         (rpl_fstatat): Adjust so that it works around either (or both)
33810         bugs if present.
33811         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33813 2011-09-03  Karl Berry  <karl@gnu.org>
33815         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33816         in index entries.
33818 2011-09-02  Bruno Haible  <bruno@clisp.org>
33820         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33821         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33822         values of AR, ARFLAGS, RANLIB.
33823         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33825 2011-09-02  Bruno Haible  <bruno@clisp.org>
33827         Find 'ar' program that fits with --host argument.
33828         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33830 2011-09-02  Bruno Haible  <bruno@clisp.org>
33832         tests: init.sh: Support any non-GNU diff.
33833         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33834         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33835         Solaris 8.
33837 2011-09-02  Bruno Haible  <bruno@clisp.org>
33839         tests: init.sh: work also with any non-GNU diff that supports -u
33840         * tests/init.sh: Relax check for diff -u support.
33841         Rather than checking for GNU diff via --version, simply check
33842         for support for -u itself.  Useful at least on OpenBSD 4.9,
33843         AIX 7.1, IRIX 6.5, and Solaris 10.
33845 2011-09-01  Bruno Haible  <bruno@clisp.org>
33847         strtoimax, strtoumax: Document problem on HP-UX 11.
33848         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33849         * doc/posix-functions/strtoumax.texi: Likewise.
33851 2011-09-01  Bruno Haible  <bruno@clisp.org>
33853         strtoumax: Avoid link error on OSF/1 with DTK cc.
33854         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33855         defined as a function.
33856         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33857         strtoumax is defined, not whether it is declared.
33859 2011-09-01  Bruno Haible  <bruno@clisp.org>
33861         strtoimax: Avoid link error on OSF/1 with DTK cc.
33862         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33863         defined as a function.
33864         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33865         strtoimax is defined, not whether it is declared.
33867 2011-09-01  Bruno Haible  <bruno@clisp.org>
33869         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33870         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33871         as a function.
33872         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33873         whether it is declared.
33875 2011-09-01  Bruno Haible  <bruno@clisp.org>
33877         imaxabs: Avoid link error on OSF/1 with DTK cc.
33878         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33879         as a function.
33880         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33881         whether it is declared.
33883 2011-09-01  Bruno Haible  <bruno@clisp.org>
33885         Tests for module 'strtoumax'.
33886         * modules/strtoumax-tests: New file.
33887         * tests/test-strtoumax.c: New file.
33889         Tests for module 'strtoimax'.
33890         * modules/strtoimax-tests: New file.
33891         * tests/test-strtoimax.c: New file.
33893         Tests for module 'imaxdiv'.
33894         * modules/imaxdiv-tests: New file.
33895         * tests/test-imaxdiv.c: New file.
33897         Tests for module 'imaxabs'.
33898         * modules/imaxabs-tests: New file.
33899         * tests/test-imaxabs.c: New file.
33901 2011-09-01  Bruno Haible  <bruno@clisp.org>
33903         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33904         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33905         pthread_create.
33907 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33909         openat: work around AIX 7.1 fstatat issue
33910         This should fix the problem that was not properly fixed
33911         in the previous change, dated 2011-08-30.
33912         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33913         __need_system_stat_h defined.
33914         (orig_fstatat) [HAVE_FSTATAT]: New function.
33915         (rpl_fstatat): Go back to the old way of doing things,
33916         except call orig_fstatat instead of fstatat.
33917         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33918         Remove unnecessary check whether fstatat fills in st_size etc.
33920 2011-09-01  Bruno Haible  <bruno@clisp.org>
33922         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33923         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33924         just include the system's header.
33926 2011-08-31  Jim Meyering  <meyering@redhat.com>
33928         tests: avoid spurious assertion failure in test-float.c on ppc64
33929         * tests/test-float.c (test_long_double): Comment out an assertion,
33930         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33931         with gcc-4.4.4.
33933         maint: indent with spaces, not TABs
33934         I need to get in the habit of running gnulib's "make check".
33935         Both of these would have been caught.
33936         * m4/largefile.m4: Indent with spaces, not TABs.
33937         * lib/parse-datetime.y (iso_8601_time): Likewise.
33938         Spotted by Pádraig Brady.
33940         test-parse-datetime.c: accommodate a relatively strict gcc warning
33941         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33942         to avoid a warning from gcc's -Werror=missing-declarations.
33943         Insert a few spaces-before-funcall-parenthesis.
33945 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33947         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33948         The parser now accepts ISO 8601 date-time strings with "T" as the
33949         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33950         with a space between the date and time strings.  Now it also parses
33951         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33952         variants like "2004-02-29T16:21:42.333-07:00"
33953         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33954         of day representation using the 'T' separator character.
33955         * doc/parse-datetime.texi (General date syntax): replace use of
33956         deprecated --iso-8601 option with --rfc-3339 in example of date
33957         command output formats that can be parsed.
33958         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33959         lib/parse-datetime.y.
33960         (gmt_offset): New function.
33961         (main): Add additional test cases to validate ISO8601 extended
33962         date and time of day parsing.
33964 2011-08-31  Bruno Haible  <bruno@clisp.org>
33966         freopen: Documentation.
33967         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33968         name.
33969         Reported by Claudio Bley <claudio.bley@gmail.com>.
33971 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33973         freopen: Don't crash if the filename argument is NULL.
33974         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33975         NULL.
33977 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33979         openat: work around AIX 7.1 fstatat bug
33980         Problem reported by Kevin Brott for GNU tar, in the thread containing
33981         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33982         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33983         FSTATAT_ST_SIZE_ETC_BROKEN.
33984         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33985         rpl_fstatat.
33986         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33987         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33988         AC_CHECK_FUNCS_ONCE for fstatat.
33989         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33990         fchmodat, mkdirat, openat and unlinkat.
33992 2011-08-30  Bruno Haible  <bruno@clisp.org>
33994         Avoid endless recursions if config.h includes some header files.
33995         * lib/fopen.c (__need_FILE): Define already before including config.h.
33996         * lib/freopen.c (__need_FILE): Likewise.
33997         * lib/open.c (__need_system_fcntl_h): Likewise.
33998         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33999         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
34000         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34002 2011-08-25  Karl Berry  <karl@gnu.org>
34004         * config/srclist.txt (ylwrap): new try.
34005         * build-aux/ylwrap: new file.
34007 2011-08-23  Bruno Haible  <bruno@clisp.org>
34009         tmpdir: Use a good default directory on native Windows.
34010         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
34011         (P_tmpdir): Default to _P_tmpdir on native Windows.
34012         (path_search): On native Windows, try the value returned by GetTempPath
34013         before trying P_tmpdir.
34014         * modules/tmpdir (Depends-on): Add pathmax.
34015         Suggested by John Darrington <john@darrington.wattle.id.au>.
34017 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
34019         doc: fix typo in README-release
34020         * top/README-release: Capitalize first word of a sentence.
34022 2011-08-19  Jim Meyering  <meyering@redhat.com>
34024         fts: do not exhaust memory when processing million-entry directories
34025         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
34026         directory would require about 256*N bytes of memory.  Thus, it was
34027         easy to construct a directory too large to be processed by any of
34028         those tools.  With this change, fts' maximum memory utilization is
34029         now limited to around 30MB.
34030         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
34031         (fts_read): When we've processed the final entry (i.e., when
34032         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
34033         using the parent entry to read any remaining entries.  Dispatch
34034         depending on what fts_build returns:
34035         - NULL+stop, aka failure: stop
34036         - NULL otherwise: move up in the dir hierarchy
34037         - non-NULL: handle this new entry
34038         (fts_build): Declare and use new local, continue_readdir.
34039         Prepare to be called from fts_read, when the entries
34040         from a partially-read directory have just been exhausted.
34041         In that case, we'll skip the opendir and instead use the parent's
34042         fts_dirp and derive dir_fd from that.
34043         Finally, in the readdir loop, if we read max_entries entries,
34044         exit the loop ensuring *not* to call closedir.  This is required
34045         so that fts_dirp can be reused on a subsequent call.
34046         Prompted by Ben England's report of memory exhaustion in find
34047         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
34049         maint: fts: move decl of `dp' down into while loop; split a long line
34050         * lib/fts.c (fts_build): No semantic change.
34052         fts: add/use new struct member, fts_dirp
34053         We are about to use this to manage any directory with
34054         too many entries to read all of them into memory at once.
34055         To do that, we'll need to save the DIR* pointer in each
34056         affected FTSENT struct.
34057         * lib/fts_.h: Include <dirent.h>.
34058         (struct FTSENT) [fts_dirp]: New member.
34059         * lib/fts.c (closedir_and_clear): Define.
34060         Use it in place of closedir so that we are sure to
34061         clear the new fts_dirp member when done with it.
34062         (fts_alloc): Initialize the new member.
34063         (fts_lfree): Free, if needed.
34065         maint: fts: give __opendir2 a new parameter and rename
34066         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
34067         than surreptitiously using sole caller's "dir_fd".
34068         (fts_opendir): Rename from __opendir2.
34070         maint: fts.c: remove __opendir2's now-unused parameter, oflag
34071         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
34073         maint: fts.c: correct off-by-one indentation
34074         * lib/fts.c (fts_build): Correct indentation, change style
34075         of a couple of block comments, and bracing style.
34077         maint: fts.c: move __opendir2 #define "up" out of function body
34078         * lib/fts.c (__opendir2): Move "up".  No semantic change.
34080         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
34081         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
34082         out for a long time and besides was useful only on BSD systems.
34084 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
34086         regex: port to Stratus OpenVOS
34087         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
34088         define to empty, rather than attempting nonportable optimizations.
34089         Problem reported by Paul Green in:
34090         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
34091         and fix suggested by Eric Blake in:
34092         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
34094 2011-08-17  Eric Blake  <eblake@redhat.com>
34096         getcwd: fix test failures on mingw
34097         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
34098         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
34099         test if long directory cannot be created, and allow mingw errno.
34101         getcwd-lgpl: fix m4 to match relaxed test for BSD
34102         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
34103         (gl_FUNC_GETCWD_SIGNATURE): New macro.
34104         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
34105         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
34106         signature problem.
34108         getcwd: fix compilation on mingw64
34109         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
34110         getcwd.
34111         Reported by Marc-André Lureau.
34113         pipe2: silence compiler warning
34114         * lib/pipe2.c (pipe2): Hide label if it is not used.
34116 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
34118         relocatable-prog: fix link error
34119         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
34120         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
34121         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
34122         into modules/relocatable-lib without noticing that
34123         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
34124         also needs to build relocatable.c.
34126 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34128         getaddrinfo: fix sh typo in gai_strerrorA decl checking
34129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
34130         shell code: it contained a 'break' that was not in a loop.
34131         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
34132         via a shell-language loop; this may have been true in old Autoconf
34133         versions, but it's not true in Autoconf 2.68.  I found this bug
34134         when testing coreutils git on Solaris 8, whose shell complains
34135         about the syntax error.
34137 2011-08-12  Simon Josefsson  <simon@josefsson.org>
34139         * lib/base64.c: Fix comment to reference RFC 4648.
34140         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
34141         <gvtulder@gmail.com>.
34143 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34145         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
34147         po/Makefile.in.in: fix make -q problem
34148         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
34149         rule, since there's no file named 'check-macro-version' and its
34150         use as a file breaks make -q.
34151         (all): Don't depend on check-macro-version.
34152         (CHECK_MACRO_VERSION): New macro.
34153         (stamp-po): Use it.
34155         configmake: fix make -q problem
34156         * modules/configmake (configmake.h): Update configmake.h's time stamp
34157         even if the file does not change.  Otherwise, 'make -q' fails.
34158         Problem reported by Simon Josefsson in
34159         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
34161 2011-08-11  Jim Meyering  <meyering@redhat.com>
34163         git-version-gen: correct the advice in a comment
34164         * build-aux/git-version-gen: Correct comment.
34165         Don't recommend to list .tarball-version in .gitignore.
34167 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34169         base64: fix off-by-one buffer size bug
34170         Problem and (trivial) fix reported by Gijs van Tulder in
34171         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
34172         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
34173         * tests/test-base64.c (main): Catch the bug.
34175 2011-08-10  Eric Blake  <eblake@redhat.com>
34177         closein: correct comments
34178         * lib/closein.c (close_stdin): Improve comments.
34180 2011-08-09  Bruno Haible  <bruno@clisp.org>
34182         More tests for 'fseeko'.
34183         * tests/test-fseeko3.c: New file, from Eric Blake.
34184         * tests/test-fseeko3.sh: New file.
34185         * modules/fseeko-tests (Files): Add them.
34186         (TESTS): Add test-fseeko3.sh.
34187         (check_PROGRAMS): Add test-fseeko3.
34189 2011-08-09  Eric Blake  <eblake@redhat.com>
34191         fseeko: remove unneeded hack
34192         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
34194         fseeko: fix bug on glibc
34195         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
34196         Reported by John W. Eaton.
34198 2011-08-08  Bruno Haible  <bruno@clisp.org>
34200         unictype/base: Fix interoperability with preinstalled libunistring.
34201         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
34202         Reported by Simon Josefsson.
34204 2011-08-08  Bruno Haible  <bruno@clisp.org>
34206         iswblank: Detect declaration correctly.
34207         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
34208         AC_CHECK_DECLS invocation.
34210 2011-08-08  Bruno Haible  <bruno@clisp.org>
34212         tcgetsid: Detect declaration correctly.
34213         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
34214         AC_CHECK_DECLS invocation.
34215         Reported by Simon Josefsson.
34217 2011-08-08  Eric Blake  <eblake@redhat.com>
34219         largefile: fix typo that regressed large file support
34220         * modules/largefile (configure.ac-early): Fix section name.
34222 2011-08-06  Karl Berry  <karl@gnu.org>
34224         * MODULES.html.sh (func_all_files): _Noreturn is no longer
34225         a separate module.
34227 2011-08-05  Simon Josefsson  <simon@josefsson.org>
34229         openat: Fix warnings and commens when building unlinkat.c on Hurd.
34230         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
34231         get prototype for free.
34233 2011-08-04  Bruno Haible  <bruno@clisp.org>
34235         Tests for module 'pathmax'.
34236         * modules/pathmax-tests: New file.
34237         * tests/test-pathmax.c: New file.
34239         canonicalize-lgpl: Support larger filenames on the Hurd.
34240         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
34241         Reported by Paul Eggert.
34243         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
34244         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
34245         * lib/chdir-long.h: Include pathmax.h.
34246         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
34247         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
34248         (PATH_MAX): Remove code that is done by pathmax.h.
34249         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
34250         * lib/tmpfile.c: Add a comment.
34251         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
34252         * modules/chdir-long (Depends-on): Add pathmax.
34253         * modules/getcwd (Depends-on): Add pathmax.
34254         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
34255         is not defined.
34256         * doc/posix-headers/limits.texi: Mention the pathmax module.
34257         * NEWS: Mention the change.
34259 2011-08-02  Bruno Haible  <bruno@clisp.org>
34261         pthread_sigmask: Actually use results of gl_THREADLIB.
34262         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
34263         gl_THREADLIB, not gl_[]THREADLIB.
34264         Reported by Eric Blake.
34266 2011-08-02  Jim Meyering  <meyering@redhat.com>
34268         maint.mk: relax the default _gl_TS_function_match regexp
34269         * top/maint.mk (_gl_TS_function_match): Don't require at least one
34270         space between function name and "(" in an "extern" declaration.
34271         That would fail to match a decl with no space there: extern void foo();
34273 2011-07-31  Iain Nicol  <iain@thenicols.net>
34275         git-version-gen: document that EXTRA_DIST must include .version
34276         * build-aux/git-version-gen: In the how-to-use comment, document
34277         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
34278         will fail when run from an unpacked distribution tarball.
34280 2011-08-01  Bruno Haible  <bruno@clisp.org>
34282         wctype-h: Fix last change.
34283         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
34284         REPLACE_TOWLOWER to 0.
34285         Reported by Sam Steingold <sds@gnu.org>.
34287 2011-07-31  Bruno Haible  <bruno@clisp.org>
34289         frexpl: Update autoconf test.
34290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
34291         according to changes of 2011-06-20.
34293 2011-07-31  Bruno Haible  <bruno@clisp.org>
34295         sys_utsname: Add support for Minix.
34296         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
34297         <sys/utsname.h>.
34298         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34299         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
34301 2011-07-31  Bruno Haible  <bruno@clisp.org>
34303         strings: Add support for Minix.
34304         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
34305         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34306         * doc/posix-headers/strings.texi: Document the Minix problem.
34308 2011-07-31  Bruno Haible  <bruno@clisp.org>
34310         wctype-h: Add support for Minix.
34311         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
34312         REPLACE_TOWLOWER.
34313         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
34314         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
34315         REPLACE_ISWCNTRL.
34317 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
34319         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
34320         This is a performance improvement for 64-bit hosts: it causes the
34321         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
34323 2011-07-31  Bruno Haible  <bruno@clisp.org>
34325         stdioext: Add support for Minix.
34326         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
34327         * lib/fpurge.c (fpurge): Likewise.
34328         * lib/freadahead.c (freadahead): Likewise.
34329         * lib/freadable.c (freadable): Likewise.
34330         * lib/freading.c (freading): Likewise.
34331         * lib/freadptr.c (freadptr): Likewise.
34332         * lib/freadseek.c (freadptrinc): Likewise.
34333         * lib/fseeko.c (rpl_fseeko): Likewise.
34334         * lib/fseterr.c (fseterr): Likewise.
34335         * lib/fwritable.c (fwritable): Likewise.
34336         * lib/fwriting.c (fwriting): Likewise.
34337         * lib/fflush.c (clear_ungetc_buffer): Update comment.
34338         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
34340 2011-07-31  Bruno Haible  <bruno@clisp.org>
34342         errno: Port to Minix.
34343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
34344         ECONNABORTED are defined.
34345         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
34346         GNULIB_defined_ECONNABORTED): New macros.
34347         * lib/strerror-override.h (strerror_override): Test also
34348         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
34349         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
34350         ECONNABORTED.
34351         * doc/posix-headers/errno.texi: Mention the Minix problem.
34353 2011-07-31  Bruno Haible  <bruno@clisp.org>
34355         Work around declaration collisions on Minix.
34356         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34357         defined, set REPLACE_MBSINIT.
34358         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34359         defined, set REPLACE_MBRTOWC.
34360         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34361         set REPLACE_MBRLEN.
34362         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34363         defined, set REPLACE_MBSRTOWCS.
34364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34365         defined, set REPLACE_WCRTOMB.
34366         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34367         defined, set REPLACE_WCSRTOMBS.
34369 2011-07-31  Bruno Haible  <bruno@clisp.org>
34371         Add support for Minix with ACK compiler.
34372         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34373         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34374         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34376 2011-07-31  Bruno Haible  <bruno@clisp.org>
34378         Documentation about Minix.
34379         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34380         * doc/glibc-headers/*.texi: Likewise.
34381         * doc/posix-functions/*.texi: Likewise.
34382         * doc/glibc-functions/*.texi: Likewise.
34384 2011-07-31  Bruno Haible  <bruno@clisp.org>
34386         snippet/warn-on-use: Fix indentation.
34387         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34389 2011-07-25  Jim Meyering  <meyering@redhat.com>
34391         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34392         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34393         commands.
34395 2011-07-27  Jim Meyering  <meyering@redhat.com>
34397         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34398         * top/maint.mk (gl_extract_significant_defines_): Now that
34399         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34400         gnulib/lib/signal.in.h, and now that we recommend to
34401         define-if-undefined those two symbols in application code,
34402         we must filter them out of the "significant" list.
34403         This avoids a "make syntax-check" failure in coreutils.
34405 2011-07-26  Eric Blake  <eblake@redhat.com>
34407         warnings: add comments about previous patch
34408         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34409         * m4/include_next.m4: Likewise.
34410         * m4/warn-on-use.m4: Likewise.
34411         * m4/warnings.m4: Likewise, and simplify use.
34412         Suggested by Stefano Lattarini.
34414         include-next, warnings: support older autoconf
34415         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34416         AS_VAR_PUSHDEF in a way that works with older autoconf.
34417         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34418         Reported by Daniel P. Berrange.
34420 2011-07-25  Bruno Haible  <bruno@clisp.org>
34422         fseek, ftell: Fix doc.
34423         * doc/posix-functions/fseek.texi: Reword statement about
34424         AC_SYS_LARGEFILE.
34425         * doc/posix-functions/ftell.texi: Likewise.
34427 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34428             Bruno Haible  <bruno@clisp.org>
34430         Add dependencies to the 'largefile' module.
34431         * modules/fopen (Depends-on): Add 'largefile'.
34432         * modules/freopen (Depends-on): Likewise.
34433         * modules/fseeko (Depends-on): Likewise.
34434         * modules/ftello (Depends-on): Likewise.
34435         * modules/glob (Depends-on): Likewise.
34436         * modules/lseek (Depends-on): Likewise.
34437         * modules/lstat (Depends-on): Likewise.
34438         * modules/mkostemp (Depends-on): Likewise.
34439         * modules/mkostemps (Depends-on): Likewise.
34440         * modules/mkstemp (Depends-on): Likewise.
34441         * modules/mkstemps (Depends-on): Likewise.
34442         * modules/open (Depends-on): Likewise.
34443         * modules/openat (Depends-on): Likewise.
34444         * modules/pread (Depends-on): Likewise.
34445         * modules/pwrite (Depends-on): Likewise.
34446         * modules/scandir (Depends-on): Likewise.
34447         * modules/stat (Depends-on): Likewise.
34448         * modules/tmpfile (Depends-on): Likewise.
34449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34450         since the containing module now depends on the largefile module.
34451         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34452         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34453         off_t is fixed by gnulib.
34454         * doc/posix-functions/freopen.texi: Likewise.
34455         * doc/posix-functions/fseeko.texi: Likewise.
34456         * doc/posix-functions/fstatat.texi: Likewise.
34457         * doc/posix-functions/ftello.texi: Likewise.
34458         * doc/posix-functions/glob.texi: Likewise.
34459         * doc/posix-functions/lseek.texi: Likewise.
34460         * doc/posix-functions/lstat.texi: Likewise.
34461         * doc/posix-functions/mkstemp.texi: Likewise.
34462         * doc/posix-functions/open.texi: Likewise.
34463         * doc/posix-functions/openat.texi: Likewise.
34464         * doc/posix-functions/pread.texi: Likewise.
34465         * doc/posix-functions/pwrite.texi: Likewise.
34466         * doc/posix-functions/scandir.texi: Likewise.
34467         * doc/posix-functions/stat.texi: Likewise.
34468         * doc/posix-functions/tmpfile.texi: Likewise.
34469         * doc/glibc-functions/mkostemp.texi: Likewise.
34470         * doc/glibc-functions/mkostemps.texi: Likewise.
34471         * doc/glibc-functions/mkstemps.texi: Likewise.
34473 2011-07-25  Bruno Haible  <bruno@clisp.org>
34475         fcntl: Move AC_LIBOBJ invocation to module description.
34476         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34477         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34479         fcntl: Remove call-in from fchdir.m4.
34480         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34483         dup3: Remove potential call-in from fchdir.m4.
34484         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34487         dup2: Move AC_LIBOBJ invocation to module description.
34488         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34489         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34490         Don't invoke AC_LIBOBJ.
34491         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34493         dup2: Remove call-in from fchdir.m4.
34494         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34497         fclose: Move AC_LIBOBJ invocation to module description.
34498         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34499         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34500         to 1.
34501         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34503         fclose: Remove call-in from close.m4.
34504         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34505         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34507         close: Move AC_LIBOBJ invocation to module description.
34508         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34509         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34510         1.
34511         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34513         close: Remove call-in from fchdir.m4.
34514         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34517         open: Move AC_LIBOBJ invocation to module description.
34518         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34519         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34520         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34522         open: Remove call-in from fchdir.m4.
34523         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34526         fchdir: Start to remove gl_REPLACE_* idiom.
34527         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34528         (gl_FUNC_FCHDIR): Invoke it.
34530 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34532         * lib/ftell.c (ftell): Comment out cast.
34534         close: use gl_REPLACE_FCLOSE only if defined
34535         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34536         is defined.  The close module doesn't depend on the fclose module
34537         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34538         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34539         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34541 2011-07-24  Jim Meyering  <meyering@redhat.com>
34543         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34544         * tests/test-select.h (test_function): Declare as "static".
34546 2011-07-24  Bruno Haible  <bruno@clisp.org>
34548         doc: Mention the effects of AC_SYS_LARGEFILE.
34549         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34550         on this function.
34551         * doc/posix-functions/aio_error.texi: Likewise.
34552         * doc/posix-functions/aio_fsync.texi: Likewise.
34553         * doc/posix-functions/aio_read.texi: Likewise.
34554         * doc/posix-functions/aio_return.texi: Likewise.
34555         * doc/posix-functions/aio_suspend.texi: Likewise.
34556         * doc/posix-functions/aio_write.texi: Likewise.
34557         * doc/posix-functions/fgetpos.texi: Likewise.
34558         * doc/posix-functions/fopen.texi: Likewise.
34559         * doc/posix-functions/freopen.texi: Likewise.
34560         * doc/posix-functions/fsetpos.texi: Likewise.
34561         * doc/posix-functions/fstatvfs.texi: Likewise.
34562         * doc/posix-functions/ftruncate.texi: Likewise.
34563         * doc/posix-functions/ftw.texi: Likewise.
34564         * doc/posix-functions/getrlimit.texi: Likewise.
34565         * doc/posix-functions/glob.texi: Likewise.
34566         * doc/posix-functions/lio_listio.texi: Likewise.
34567         * doc/posix-functions/lockf.texi: Likewise.
34568         * doc/posix-functions/mkstemp.texi: Likewise.
34569         * doc/posix-functions/mmap.texi: Likewise.
34570         * doc/posix-functions/nftw.texi: Likewise.
34571         * doc/posix-functions/openat.texi: Likewise.
34572         * doc/posix-functions/opendir.texi: Likewise.
34573         * doc/posix-functions/posix_fadvise.texi: Likewise.
34574         * doc/posix-functions/posix_fallocate.texi: Likewise.
34575         * doc/posix-functions/pread.texi: Likewise.
34576         * doc/posix-functions/pwrite.texi: Likewise.
34577         * doc/posix-functions/readdir.texi: Likewise.
34578         * doc/posix-functions/readdir_r.texi: Likewise.
34579         * doc/posix-functions/rewinddir.texi: Likewise.
34580         * doc/posix-functions/scandir.texi: Likewise.
34581         * doc/posix-functions/seekdir.texi: Likewise.
34582         * doc/posix-functions/setrlimit.texi: Likewise.
34583         * doc/posix-functions/statvfs.texi: Likewise.
34584         * doc/posix-functions/telldir.texi: Likewise.
34585         * doc/posix-functions/tmpfile.texi: Likewise.
34586         * doc/posix-functions/truncate.texi: Likewise.
34587         * doc/glibc-functions/fallocate.texi: Likewise.
34588         * doc/glibc-functions/fstatfs.texi: Likewise.
34589         * doc/glibc-functions/fts_children.texi: Likewise.
34590         * doc/glibc-functions/fts_read.texi: Likewise.
34591         * doc/glibc-functions/getdirentries.texi: Likewise.
34592         * doc/glibc-functions/mkostemp.texi: Likewise.
34593         * doc/glibc-functions/mkostemps.texi: Likewise.
34594         * doc/glibc-functions/mkstemps.texi: Likewise.
34595         * doc/glibc-functions/preadv.texi: Likewise.
34596         * doc/glibc-functions/pwritev.texi: Likewise.
34597         * doc/glibc-functions/sendfile.texi: Likewise.
34598         * doc/glibc-functions/statfs.texi: Likewise.
34600 2011-07-24  Bruno Haible  <bruno@clisp.org>
34602         doc: Fix typo.
34603         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34605 2011-07-24  Bruno Haible  <bruno@clisp.org>
34607         doc: Mention fsusage.
34608         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34610 2011-07-24  Bruno Haible  <bruno@clisp.org>
34612         doc: Mention new glibc headers and functions.
34613         * doc/glibc-headers/gshadow.texi: New file.
34614         * doc/glibc-functions/endsgent.texi: New file.
34615         * doc/glibc-functions/fgetsgent.texi: New file.
34616         * doc/glibc-functions/fgetsgent_r.texi: New file.
34617         * doc/glibc-functions/getsgent.texi: New file.
34618         * doc/glibc-functions/getsgent_r.texi: New file.
34619         * doc/glibc-functions/getsgnam.texi: New file.
34620         * doc/glibc-functions/getsgnam_r.texi: New file.
34621         * doc/glibc-functions/putsgent.texi: New file.
34622         * doc/glibc-functions/setsgent.texi: New file.
34623         * doc/glibc-functions/sgetsgent.texi: New file.
34624         * doc/glibc-functions/sgetsgent_r.texi: New file.
34625         * doc/glibc-functions/malloc_info.texi: New file.
34626         * doc/glibc-functions/preadv.texi: New file.
34627         * doc/glibc-functions/pwritev.texi: New file.
34628         * doc/glibc-functions/register_printf_modifier.texi: New file.
34629         * doc/glibc-functions/register_printf_specifier.texi: New file.
34630         * doc/glibc-functions/register_printf_type.texi: New file.
34631         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34632         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34633         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34634         * doc/glibc-functions/pthread_getname_np.texi: New file.
34635         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34636         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34637         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34638         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34639         * doc/glibc-functions/pthread_setname_np.texi: New file.
34640         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34641         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34642         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34643         * doc/glibc-functions/qsort_r.texi: New file.
34644         * doc/glibc-functions/quick_exit.texi: New file.
34645         * doc/glibc-functions/syncfs.texi: New file.
34646         * doc/gnulib.texi: Include them.
34647         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34648         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34649         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34650         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34651         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34652         * doc/glibc-functions/execvpe.texi: Likewise.
34654 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34656         ftell: don't include <unistd.h>
34657         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34658         guaranteed to define off_t, and the ftell module depends on the
34659         stdio module.
34661         ftell: do not assume wraparound signed arithmetic
34662         * lib/ftell.c: Include <limits.h>.
34663         (ftell): Don't assume wraparound signed arithmetic.
34665 2011-07-24  Bruno Haible  <bruno@clisp.org>
34667         close: No longer depend on module 'fclose'.
34668         * modules/close (Depends-on): Remove fclose.
34669         * NEWS: Mention the change.
34670         Suggested by Sam Steingold <sds@gnu.org>.
34672 2011-07-24  Bruno Haible  <bruno@clisp.org>
34674         fsusage: Enable large volume support on AIX >= 5.2.
34675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34676         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34677         instead of STAT_STATVFS.
34678         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34680         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34681         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34682         f_blocks field only on MacOS X.
34684         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34686         * modules/fsusage (Depends-on): Add largefile.
34688 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34690         * README: Modernize discussion of signed integers.
34691         Assuming overflow wraparound is no longer safe.
34692         Mention ones' complement and signed magnitude.
34694 2011-07-22  Bruno Haible  <bruno@clisp.org>
34696         select tests, pselect tests: Refactor.
34697         * tests/test-select.h: New file, extracted from tests/test-select.c.
34698         (select_fn): New type.
34699         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34700         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34701         test_pipe): Add my_select argument.
34702         (test_function): Renamed from main. Add my_select argument.
34703         * tests/test-select.c: Move most code to tests/test-select.h. Include
34704         test-select.h.
34705         * modules/select-tests (Files): Add tests/test-select.h.
34706         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34707         (my_select, main): New functions.
34708         * modules/pselect-tests (Files): Add tests/test-select.h,
34709         tests/macros.h, tests/signature.h.
34710         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34711         (configure.ac): Check for <sys/wait.h>.
34713 2011-07-22  Bruno Haible  <bruno@clisp.org>
34715         sys_select tests: Check the signature of FD_*.
34716         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34717         signature tests from here...
34718         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34719         here.
34720         * modules/sys_select-tests (Files): Add tests/signature.h.
34722 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34724         largefile: new module, replacing large-inode
34725         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34726         * MODULES.html.sh: Add largefile, remove large-inode.
34727         * modules/largefile, m4/largefile.m4: New files.
34728         * modules/large-inode, m4/large-inode.m4: Remove.
34730         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34732         implementations that use only 32 bits to count blocks.
34733         On typical hosts with 1024-byte blocks, this fails with file
34734         systems as small as 4 TiB.  Problem reported by Herb Wartens
34735         <http://debbugs.gnu.org/9140> and this should also fix a similar
34736         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34738         large-inode: New module
34739         * MODULES.html.sh: Add it.
34740         * modules/large-inode, m4/large-inode.m4: New files.
34742         extensions: Enable extensions on MacOS X 10.5 and later.
34743         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34745 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34747         file-has-acl: use acl_extended_file_nofollow if available
34748         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34749         (acl_extended_file): New macro.
34750         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34751         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34753 2011-07-21  Bruno Haible  <bruno@clisp.org>
34755         Declare system functions in a way that works with C++.
34756         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34757         declare fdopendir as extern "C".
34758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34759         declare frexpl as extern "C".
34760         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34761         declare gai_strerror as extern "C".
34762         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34763         programs, declare gai_strerror as extern "C".
34764         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34765         declare getlogin_r as extern "C".
34766         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34767         as extern "C".
34768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34769         declare ldexpl as extern "C".
34770         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34771         as extern "C".
34772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34773         program, declare getmntinfo as extern "C".
34774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34775         stpncpy as extern "C".
34776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34777         program, declare __xpg_strerror_r as extern "C".
34778         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34779         strndup as extern "C".
34780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34781         declare memset and bzero as extern "C".
34782         Reported by Sam Steingold <sds@gnu.org>.
34784 2011-07-12  Jim Meyering  <meyering@redhat.com>
34786         maint.mk: prohibit inclusion of "verify.h" without use
34787         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34789 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34791         timer-time: A new module to check for timer_settime()
34792         * m4/timer_time.m4: Check for the posix function.
34793         * modules/timer-time: Add the new module.
34794         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34795         Mention it.
34797 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34798             Bruno Haible  <bruno@clisp.org>
34800         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34801         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34802         not defined, assume POSIX threads and look for pthread_sigmask in
34803         $LIBS, without changing $CPPFLAGS.
34805 2011-07-19  Bruno Haible  <bruno@clisp.org>
34807         strstr: Update cross-compilation guess.
34808         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34809         CPUs, guess no, in view of glibc
34810         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34811         Suggested by Eric Blake. Reported by Reuben Thomas.
34813 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34815         getopt-gnu: suppress core dumps from detection code
34816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34817         to suppress core dumps that may well occur on glibc systems.
34818         * modules/getopt-gnu: Depend on nocrash.
34820 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34822         pthread_sigmask: ensure usleep is declared
34823         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34824         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34826 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34828         doc: Document NonStop portability issues.
34829         * doc/posix-functions/sigaction.texi (sigaction):
34830         * doc/posix-headers/signal.texi (signal.h):
34831         Document NonStop.  See Joachim Schmitz in
34832         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34834 2011-07-15  Bruno Haible  <bruno@clisp.org>
34836         ffsl, ffsll: Avoid unportable behaviour.
34837         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34839 2011-07-15  Bruno Haible  <bruno@clisp.org>
34841         ffs: More tests.
34842         * tests/test-ffs.c (NBITS): New macro.
34843         (main): Add more tests.
34844         * tests/test-ffsl.c (NBITS): New macro.
34845         (main): Add more tests.
34846         * tests/test-ffsll.c (NBITS): New macro.
34847         (main): Add more tests.
34849 2011-07-15  Eric Blake  <eblake@redhat.com>
34851         ffsl, ffsll: new modules
34852         * modules/ffsl: New file.
34853         * modules/ffsll: Likewise.
34854         * m4/ffsl.m4: Likewise.
34855         * m4/ffsll.m4: Likewise.
34856         * lib/ffsl.c: Likewise.
34857         * lib/ffsl.h: Likewise.
34858         * lib/ffsll.c: Likewise.
34859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34860         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34861         * modules/string (Makefile.am): Substitute witnesses.
34862         * lib/strings.in.h (ffsl, ffsll): Declare.
34863         * modules/ffsl-tests: New test file.
34864         * modules/ffsll-tests: Likewise.
34865         * tests/test-ffsl.c: Likewise.
34866         * tests/test-ffsll.c: Likewise.
34867         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34868         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34869         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34871         ffs: fix m4 prerequisite
34872         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34874         ffs: avoid undefined behavior
34875         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34876         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34877         Reported by Bruno Haible.
34879 2011-07-12  Bruno Haible  <bruno@clisp.org>
34881         pthread_sigmask: Rely on module 'threadlib'.
34882         * modules/pthread_sigmask (Depends-on): Add threadlib.
34883         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34884         is defined.
34886 2011-07-12  Bruno Haible  <bruno@clisp.org>
34888         regex: Depend on module 'strcase'.
34889         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34891 2011-07-12  Jim Meyering  <meyering@redhat.com>
34893         warn-on-use: fix typo in file name
34894         * modules/snippet/warn-on-use (Files): Correct file name:
34895         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34897 2011-07-12  Bruno Haible  <bruno@clisp.org>
34899         strings: Document module.
34900         * doc/posix-headers/strings.texi: Mention module 'strings'.
34902 2011-07-12  Bruno Haible  <bruno@clisp.org>
34904         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34905         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34906         (Files, Makefile.am): Update.
34907         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34908         * modules/stdlib (Depends-on): Update.
34910 2011-07-12  Bruno Haible  <bruno@clisp.org>
34912         * NEWS: Mention the changes.
34914         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34915         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34916         (Files, Makefile.am): Update.
34917         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34918         * modules/arpa_inet (Depends-on): Update.
34919         * modules/ctype (Depends-on): Update.
34920         * modules/dirent (Depends-on): Update.
34921         * modules/fcntl-h (Depends-on): Update.
34922         * modules/glob (Depends-on): Update.
34923         * modules/iconv-h (Depends-on): Update.
34924         * modules/inttypes-incomplete (Depends-on): Update.
34925         * modules/langinfo (Depends-on): Update.
34926         * modules/locale (Depends-on): Update.
34927         * modules/math (Depends-on): Update.
34928         * modules/netdb (Depends-on): Update.
34929         * modules/poll-h (Depends-on): Update.
34930         * modules/pty (Depends-on): Update.
34931         * modules/search (Depends-on): Update.
34932         * modules/signal (Depends-on): Update.
34933         * modules/spawn (Depends-on): Update.
34934         * modules/stdio (Depends-on): Update.
34935         * modules/stdlib (Depends-on): Update.
34936         * modules/string (Depends-on): Update.
34937         * modules/strings (Depends-on): Update.
34938         * modules/sys_file (Depends-on): Update.
34939         * modules/sys_ioctl (Depends-on): Update.
34940         * modules/sys_select (Depends-on): Update.
34941         * modules/sys_socket (Depends-on): Update.
34942         * modules/sys_stat (Depends-on): Update.
34943         * modules/sys_time (Depends-on): Update.
34944         * modules/sys_times (Depends-on): Update.
34945         * modules/sys_utsname (Depends-on): Update.
34946         * modules/sys_wait (Depends-on): Update.
34947         * modules/termios (Depends-on): Update.
34948         * modules/time (Depends-on): Update.
34949         * modules/unistd (Depends-on): Update.
34950         * modules/wchar (Depends-on): Update.
34951         * modules/wctype-h (Depends-on): Update.
34952         * MODULES.html.sh (Support for building libraries and executables):
34953         Update.
34955         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34956         * modules/snippet/unused-parameter: Renamed from
34957         modules/unused-parameter.
34958         (Files, Makefile.am): Update.
34959         * build-aux/snippet/unused-parameter.h: Renamed from
34960         build-aux/unused-parameter.h.
34961         * modules/selinux-h (Depends-on): Update.
34962         * modules/unistr/base (Depends-on): Update.
34963         * MODULES.html.sh (Core language properties): Update.
34965         Rename module 'link-warning' to 'snippet/link-warning'.
34966         * modules/snippet/link-warning: Renamed from modules/link-warning.
34967         (Files, Makefile.am): Update.
34968         * build-aux/snippet/link-warning.h: Renamed from
34969         build-aux/link-warning.h.
34970         * MODULES.html.sh (Support for building libraries and executables):
34971         Update.
34973         Rename module 'c++defs' to 'snippet/c++defs'.
34974         * modules/snippet/c++defs: Renamed from modules/c++defs.
34975         (Files, Makefile.am): Update.
34976         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34977         * modules/arpa_inet (Depends-on): Update.
34978         * modules/ctype (Depends-on): Update.
34979         * modules/dirent (Depends-on): Update.
34980         * modules/fcntl-h (Depends-on): Update.
34981         * modules/glob (Depends-on): Update.
34982         * modules/iconv-h (Depends-on): Update.
34983         * modules/langinfo (Depends-on): Update.
34984         * modules/locale (Depends-on): Update.
34985         * modules/math (Depends-on): Update.
34986         * modules/netdb (Depends-on): Update.
34987         * modules/poll-h (Depends-on): Update.
34988         * modules/pty (Depends-on): Update.
34989         * modules/search (Depends-on): Update.
34990         * modules/signal (Depends-on): Update.
34991         * modules/spawn (Depends-on): Update.
34992         * modules/stdio (Depends-on): Update.
34993         * modules/stdlib (Depends-on): Update.
34994         * modules/string (Depends-on): Update.
34995         * modules/strings (Depends-on): Update.
34996         * modules/sys_ioctl (Depends-on): Update.
34997         * modules/sys_select (Depends-on): Update.
34998         * modules/sys_socket (Depends-on): Update.
34999         * modules/sys_stat (Depends-on): Update.
35000         * modules/sys_time (Depends-on): Update.
35001         * modules/sys_wait (Depends-on): Update.
35002         * modules/termios (Depends-on): Update.
35003         * modules/time (Depends-on): Update.
35004         * modules/unistd (Depends-on): Update.
35005         * modules/wchar (Depends-on): Update.
35006         * modules/wctype-h (Depends-on): Update.
35008         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
35009         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
35010         (Files, Makefile.am): Update.
35011         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
35012         * modules/argv-iter (Depends-on): Update.
35013         * modules/arpa_inet (Depends-on): Update.
35014         * modules/dirent (Depends-on): Update.
35015         * modules/fcntl-h (Depends-on): Update.
35016         * modules/fnmatch (Depends-on): Update.
35017         * modules/getopt-posix (Depends-on): Update.
35018         * modules/glob (Depends-on): Update.
35019         * modules/iconv-h (Depends-on): Update.
35020         * modules/inttypes-incomplete (Depends-on): Update.
35021         * modules/locale (Depends-on): Update.
35022         * modules/math (Depends-on): Update.
35023         * modules/netdb (Depends-on): Update.
35024         * modules/search (Depends-on): Update.
35025         * modules/signal (Depends-on): Update.
35026         * modules/spawn (Depends-on): Update.
35027         * modules/stdio (Depends-on): Update.
35028         * modules/stdlib (Depends-on): Update.
35029         * modules/string (Depends-on): Update.
35030         * modules/strings (Depends-on): Update.
35031         * modules/sys_socket (Depends-on): Update.
35032         * modules/sys_stat (Depends-on): Update.
35033         * modules/sys_time (Depends-on): Update.
35034         * modules/sys_times (Depends-on): Update.
35035         * modules/sys_utsname (Depends-on): Update.
35036         * modules/time (Depends-on): Update.
35037         * modules/unistd (Depends-on): Update.
35038         * modules/wchar (Depends-on): Update.
35039         * MODULES.html.sh (Support for building libraries and executables):
35040         Update.
35042 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
35044         Improvements on _Noreturn and related modules.
35046         modules/_Exit-tests: test _Noreturn too
35047         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
35048         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
35049         (main): Use them.
35051         stdnoreturn, stdnoreturn-tests: remove modules
35052         They're not needed here and a bit premature for use elsewhere.  See
35053         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
35054         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
35055         * tests/test-stdnoreturn.c: Remove files.
35056         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
35057         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
35058         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
35059         and using noreturn.
35060         * modules/openat, modules/sigpipe-die, modules/xalloc:
35061         * modules/xmemdup0, modules/xstrtol:
35062         Remove dependency on stdnoreturn.
35064         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
35065         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
35066         Reparenthesize to avoid GCC warning.
35067         Support Microsoft's syntax.
35068         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
35070         _Noreturn-tests: remove module
35071         * modules/_Noreturn-tests: Remove.
35072         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
35073         * tests/test-_Noreturn.c: Remove.
35074         * tests/test-stdnoreturn.c: Merge from the old
35075         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
35077 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
35079         _Noreturn, stdnoreturn, and related modules.
35081         * top/maint.mk: Adjust to new noreturn support.
35082         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
35083         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
35085         xalloc: use stdnoreturn.h
35086         * lib/xalloc.h: Include <stdnoreturn.h>.
35087         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35088         * modules/xalloc (Depends-on): Add stdnoreturn.
35090         xstrtol: use stdnoreturn.h
35091         * lib/xstrtol.h: Include <stdnoreturn.h>.
35092         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35093         * modules/xstrtol (Depends-on): Add stdnoreturn.
35095         xmemdup0: use stdnoreturn.h
35096         * lib/xmemdup0.h: Include <stdnoreturn.h>.
35097         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35098         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
35100         sigpipe-die: use stdnoreturn.h
35101         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
35102         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35103         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
35105         openat: use stdnoreturn.h
35106         * lib/openat.h: Include <stdnoreturn.h>.
35107         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35108         * modules/openat (Depends-on): Add stdnoreturn.
35110         * lib/openat-die.c (openat_save_fail): Modernize comment.
35112         * lib/xalloc-die.c (xalloc_die): Modernize comment.
35114         * lib/glthread/thread.h: Modernize comment.
35116         obstack: use _Noreturn
35117         * lib/obstack.c (__attribute__): Remove macro.
35118         (print_and_abort): Use _Noreturn.
35120         c-stack: use _Noreturn
35121         * lib/c-stack.c (die, overflow_handler, segv_handler):
35122         Use _Noreturn rather than __attribute__((noreturn)).
35124         argmatch-tests, exclude_tests: use _Noreturn
35125         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
35126         Remove.
35127         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
35129         stdlib: use _Noreturn
35130         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
35131         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
35132         * modules/stdlib (Depends-on): Add _Noreturn.
35133         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
35135         stdnoreturn-tests: new module
35136         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
35138         stdnoreturn: new module
35139         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
35140         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
35142         _Noreturn-tests: new module
35143         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
35145         _Noreturn: new module
35146         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
35147         New section, mentioning it.
35148         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
35150         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
35152 2011-07-11  Eric Blake  <eblake@redhat.com>
35154         ffs: new module
35155         * modules/ffs: New file.
35156         * m4/ffs.m4: Likewise.
35157         * lib/ffs.c: Likewise.
35158         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
35159         * modules/strings (Makefile.am): Substitute witness.
35160         (Depends-on): Add c++defs.
35161         * lib/strings.in.h (ffs): Declare.
35162         * modules/ffs-tests: New test file.
35163         * tests/test-ffs.c: Test new module.
35164         * MODULES.html.sh (Integer arithmetic functions): Mention it.
35165         * doc/posix-functions/ffs.texi (ffs): Likewise.
35167         regex: avoid compiler warning
35168         * lib/regex.c (includes): Include <strings.h>, for use of
35169         strcasecmp in regcomp.c.
35170         Reported by Joachim Schmitz.
35172 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35174         stdint: respect system's intmax_t if INTMAX_MAX
35175         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
35176         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
35177         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
35178         long but int64_t is long long, and where we will clash with the
35179         system intmax_t if we override it.  See
35180         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
35181         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
35182         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
35183         similarly for UINTMAX_C.
35185 2011-07-08  Bruno Haible  <bruno@clisp.org>
35187         pthread_sigmask tests: Avoid a compiler warning.
35188         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
35189         non-zero.
35191         sigprocmask tests: A better way to avoid a compiler warning.
35192         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
35193         (main): Complain if system() returns non-zero.
35194         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
35196 2011-07-08  Bruno Haible  <bruno@clisp.org>
35198         pthread_sigmask: Work around IRIX bug.
35199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
35200         bug.
35201         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
35202         there may be unblocked pending signals.
35203         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
35205 2011-07-08  Bruno Haible  <bruno@clisp.org>
35207         pthread_sigmask: Work around Cygwin bug.
35208         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
35209         bug.
35210         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
35211         the system's pthread_sigmask function.
35212         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
35214 2011-07-08  Bruno Haible  <bruno@clisp.org>
35216         pthread_sigmask: Work around bug in single-threaded implementation.
35217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
35218         FreeBSD, HP-UX, Solaris bug.
35219         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
35220         * lib/pthread_sigmask.c: Include <stddef.h>.
35221         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
35222         the system's pthread_sigmask function.
35223         * modules/pthread_sigmask (configure.ac): Invoke
35224         gl_PREREQ_PTHREAD_SIGMASK.
35225         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
35226         HP-UX, Solaris.
35228 2011-07-08  Eric Blake  <eblake@redhat.com>
35230         test-sigprocmask: avoid compiler warning
35231         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
35232         * tests/test-sigprocmask.c (main): Use it to silence warning.
35233         Reported by Jim Meyering.
35235         test-snprintf: avoid compiler warning
35236         * tests/test-snprintf.c (main): Avoid shadowed declaration.
35237         * tests/test-vsnprintf.c (main): Likewise.
35238         Reported by Jim Meyering.
35240 2011-07-08  Bruno Haible  <bruno@clisp.org>
35242         Tests for module 'pthread_sigmask'.
35243         * modules/pthread_sigmask-tests: New file.
35244         * tests/test-pthread_sigmask1.c: New file, based on
35245         tests/test-sigprocmask.c.
35246         * tests/test-pthread_sigmask2.c: New file.
35248 2011-07-08  Jim Meyering  <meyering@redhat.com>
35250         test-getopt.h: avoid warning about an unused variable
35251         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
35253 2011-07-07  Jim Meyering  <meyering@redhat.com>
35255         maint: reduce list of files exempt from sc_prohibit_leading_TABs
35256         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
35257         now that it no longer contains leading TABs.
35258         Remove unused "url=FIXME" statement.
35260 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35262         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
35263         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35264         When gl_THREADLIB is not in use, assume that the POSIX sematics
35265         are desired.  This is better for Emacs, which uses POSIX semantics
35266         on GNUish and/or POSIXish platforms, and does not use threads at
35267         all otherwise.
35269         pthread_sigmask: fix typo when testing for libraries
35270         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35271         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
35273 2011-07-08  Eric Blake  <eblake@redhat.com>
35275         fts: introduce FTS_NOATIME
35276         * lib/fts_.h (FTS_NOATIME): New bit flag.
35277         (FTS_OPTIONMASK): Adjust.
35278         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
35279         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
35281 2011-07-08  Bruno Haible  <bruno@clisp.org>
35283         Tests for module 'thread'.
35284         * modules/thread-tests: New file.
35285         * tests/test-thread_self.c: New file.
35286         * tests/test-thread_create.cc: New file.
35288 2011-07-08  Bruno Haible  <bruno@clisp.org>
35290         thread: Avoid gcc warnings when using gl_thread_self().
35291         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
35292         'void *'.
35293         (gl_thread_self_pointer): Update.
35295 2011-07-07  Bruno Haible  <bruno@clisp.org>
35297         signal-c++-tests: Check declaration of pthread_sigmask.
35298         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
35299         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
35300         $(LIB_PTHREAD_SIGMASK).
35302 2011-07-07  Bruno Haible  <bruno@clisp.org>
35304         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
35305         * lib/signal.in.h (pthread_sigmask): Override if
35306         REPLACE_PTHREAD_SIGMASK is 1.
35307         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35308         REPLACE_PTHREAD_SIGMASK.
35309         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
35310         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
35311         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
35312         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35313         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
35315 2011-07-07  Bruno Haible  <bruno@clisp.org>
35317         pthread_sigmask: Ensure declaration in <signal.h>.
35318         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
35319         include <pthread.h>.
35320         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
35321         problem.
35323 2011-07-07  Bruno Haible  <bruno@clisp.org>
35325         pthread_sigmask: Document the module.
35326         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
35328 2011-07-07  Bruno Haible  <bruno@clisp.org>
35330         pthread_sigmask: Follow gnulib conventions.
35331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
35332         gl_PTHREAD_SIGMASK.
35333         * modules/pthread_sigmask (configure.ac): Update.
35335 2011-07-07  Bruno Haible  <bruno@clisp.org>
35337         pthread_sigmask: Make declaration C++ safe.
35338         * lib/signal.in.h: In two special conditions, just do an #include_next.
35339         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35340         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
35341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35342         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35343         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
35344         not REPLACE_PTHREAD_MASK.
35345         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
35346         not REPLACE_PTHREAD_MASK.
35347         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35349 2011-07-07  Bruno Haible  <bruno@clisp.org>
35351         pthread_sigmask: Fix return value.
35352         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
35353         * lib/pthread_sigmask.c: New file.
35354         * modules/pthread_sigmask (Files): Add it.
35355         (configure.ac): Invoke AC_LIBOBJ.
35357 2011-07-07  Eric Blake  <eblake@redhat.com>
35359         getopt: more portable argv creation
35360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35361         const, use char arrays rather than strings.
35362         Suggested by Paul Eggert.
35364 2011-07-07  Bruno Haible  <bruno@clisp.org>
35366         Tests for module 'sigprocmask'.
35367         * modules/sigprocmask-tests: New file.
35368         * tests/test-sigprocmask.c: New file.
35370 2011-07-07  Bruno Haible  <bruno@clisp.org>
35372         float tests: Tweak.
35373         * tests/test-float.c (main): Tweak skip message.
35375 2011-07-07  Eric Blake  <eblake@redhat.com>
35377         getopt: avoid compiler warning during configure
35378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35379         assigning string literals to non-const pointer.
35381         getopt-gnu: avoid crash in glibc getopt
35382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35383         * tests/test-getopt.h (test_getopt): Enhance test.
35384         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35385         * doc/posix-functions/getopt.texi (getopt): Document it.
35386         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35387         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35388         Likewise.
35390 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35392         getopt: handle W; without long options in getopt [BZ #12922]
35393         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35394         but no long options are defined, just return 'W'.
35396 2011-07-07  Bruno Haible  <bruno@clisp.org>
35398         Avoid literal tabs.
35399         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35400         variable containing a tab instead of a literal tab.
35401         Reported by Jim Meyering.
35403 2011-07-07  Bruno Haible  <bruno@clisp.org>
35405         Comments.
35406         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35408 2011-07-06  Bruno Haible  <bruno@clisp.org>
35410         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35411         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35412         <winsock2.h>.
35413         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35414         lib/sys_socket.in.h.
35415         (close, gethostname): Hide declarations from <winsock2.h>.
35416         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35417         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35418         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35419         (select): Don't override if gnulib's <sys/select.h> was already
35420         included.
35421         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35422         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35423         setsockopt, shutdown, select): Tweak indentation.
35425 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35427         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35428         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35429         in an application that does not use the sys_select module.
35431 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35433         poll: do not return 0 on timeout=-1
35434         * lib/poll.c: Loop with yield if no events occurred.
35436 2011-07-06  Eric Blake  <eblake@redhat.com>
35438         pthread_sigmask: always replace when not using pthread
35439         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35440         replacement when using some threading other than pthread.  Fix
35441         logic bug.
35443 2011-07-06  Bruno Haible  <bruno@clisp.org>
35445         Comments.
35446         * m4/printf.m4: Update comments about mingw.
35448 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35450         sys_select: define sigset_t more portably
35451         * lib/sys_select.in.h: Always include <sys/types.h>, since
35452         we now need sigset_t and mingw defines it there.
35453         Include <signal.h> before split inclusion guard, to avoid
35454         mishaps on Solaris, whose <signal.h> eventually includes us.
35455         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35456         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35457         which come from ...
35458         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35459         gl_CHECK_TYPE_SIGSET_T.
35460         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35461         does the real work.
35462         * modules/sys_select (Depends-on): Add 'signal'.
35464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35465         Suggested by Bruno Haible.
35467         pselect: Use pthread_sigmask, not sigprocmask.
35468         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35469         multithreaded apps better than sigprocmask does.
35470         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35471         sigprocmask directly.
35473 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35475         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35476         Don't #undef,  since we don't need any underlying pselect.
35477         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35478         (Depends-on): Add select.
35479         (Link): Add $(LIBSOCKET).
35480         These changes suggested by Bruno Haible.
35482         pselect: document better
35483         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35484         * doc/posix-functions/pselect.texi (pselect): Document new module.
35486         pthread_sigmask: new module
35487         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35488         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35489         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35490         This is done only as a macro; I don't know how well that'll
35491         work for C++.  Move <sys/types.h> include before the include_next,
35492         to avoid mishap on Solaris.
35493         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35494         * modules/signal (Makefile.am): Substitute the check's results.
35495         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35497         test-pselect: new module
35498         * modules/pselect-tests, tests/test-pselect.c: New files.
35499         * tests/test-select.c, tests/test-sys_select-c++.cc:
35500         If TEST_PSELECT is defined, test pselect instead of testing select.
35502         * tests/test-sys_select.c (sigset_t): Test for it, too.
35503         Suggested by Bruno Haible.
35505 2011-07-05  Eric Blake  <eblake@redhat.com>
35507         snprintf: guarantee %1$d, for libintl
35508         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35509         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35510         * doc/posix-functions/snprintf.texi (snprintf): Update.
35511         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35512         * tests/test-snprintf.c (main): Enhance test.
35513         * tests/test-vsnprintf.c (main): Likewise.
35515 2011-07-05  Jim Meyering  <meyering@redhat.com>
35517         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35518         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35519         per Bruno's request, to accommodate this idiom (no space after "#")
35520         even when the function is inside an #if block:
35521         char *
35522         gets (char *s)
35523         #undef gets
35524         {
35525           ...
35526         }
35528 2011-07-04  Jim Meyering  <meyering@redhat.com>
35530         maint: indent with spaces, not TABs, and add a rule to check this
35531         * tests/test-userspec.c: Indent with spaces, not TABs.
35532         * tests/test-argp.c: Likewise.
35533         * tests/test-c-stack2.sh: Likewise.
35534         * tests/test-parse-duration.sh: Likewise
35535         * m4/strtod.m4: Likewise.
35536         * m4/alloca.m4: Likewise.
35537         * m4/pselect.m4: Likewise.
35538         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35540 2011-07-03  Jim Meyering  <meyering@redhat.com>
35542         maint.mk: correct omissions in prohibit_argmatch_without_use check
35543         This rule would mistakenly report that argmatch.h is included without
35544         use even when both the argmatch and invalid_arg macro were used.
35545         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35546         of argmatch and invalid_arg.
35548 2011-07-03  Bruno Haible  <bruno@clisp.org>
35550         Comments about EINTR.
35551         * lib/safe-read.h: Explain the purpose of this module.
35552         * lib/safe-write.h: Likewise.
35553         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35554         module.
35555         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35556         module.
35557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35559 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35561         xnanosleep: Rewrite to use new dtotimespec module.
35562         It has the conversion code that used to be in xnanosleep.
35563         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35564         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35565         (TIME_T_MAX): Remove.
35566         (xnanosleep): Rewrite in terms of dtotimespec.
35567         * modules/xnanosleep (Depends-on): Add dtotimespec.
35568         Remove intprops, stdbool.
35570         timespec-add, timespec-sub: new modules
35571         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35572         * lib/timespec-add.c, lib/timespec-sub.c:
35573         * modules/timespec-add, modules/timespec-sub: New files.
35575         dtotimespec: new module
35576         * lib/timespec.h (dtotimespec): New decl.
35577         * lib/dtotimespec.c, modules/dtotimespec: New files.
35579         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35581         pselect: new module
35582         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35583         (pselect): New decls.
35584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35585         since the standard pselect decl uses 'restrict'.
35586         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35587         HAVE_PSELECT, REPLACE_PSELECT.
35588         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35589         HAVE_PSELECT, REPLACE_PSELECT.
35590         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35592         sys_select: don't depend on sys_socket
35593         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35594         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35595         This fix works on GNU and GNU-like platforms, but has not been tested
35596         on native Windows.
35597         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35599         gl_HEADER_SYS_SOCKET.
35600         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35601         gl_PREREQ_SYS_H_WINSOCK2.
35603 2011-06-29  Eric Blake  <eblake@redhat.com>
35605         pipe2: fix C89 compile problem
35606         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35607         Reported by Bruno Haible.
35609         pipe, pipe2: don't corrupt fd on error
35610         * lib/pipe.c (pipe): Leave fd unchanged on error.
35611         * lib/pipe2.c (pipe2): Likewise.
35612         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35613         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35615 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35617         mmap-anon: do not use regular expressions inadvertently
35618         * m4/mmap-anon.m4: Remove trailing period from strings sought
35619         in the output.
35621 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35623         nanosleep: fix integer overflow problem
35624         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35625         arithmetic wraps around on overflow.
35627         nanosleep: simplify carrying
35628         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35629         first call to the underyling nanosleep, not for the last one.
35630         This doesn't fix any bugs, but it simplifies the computation of
35631         the remaining delay.  Found while auditing integer overflow issues.
35633         dup2: remove test for existence of fcntl
35634         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35635         "#if HAVE_FCNTL", in the configure-time test program.
35636         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35637         and therefore speeds up "configure" a bit.  Found while
35638         adding the dup2 module to Emacs.
35640 2011-06-24  Eric Blake  <eblake@redhat.com>
35642         maint.mk: enhance useless header checks
35643         * top/maint.mk (_sc_header_without_use): Check both include
35644         styles.
35645         (sc_prohibit_assert_without_use)
35646         (sc_prohibit_close_stream_without_use)
35647         (sc_prohibit_getopt_without_use)
35648         (sc_prohibit_quotearg_without_use)
35649         (sc_prohibit_quote_without_use)
35650         (sc_prohibit_long_options_without_use)
35651         (sc_prohibit_inttostr_without_use)
35652         (sc_prohibit_ignore_value_without_use)
35653         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35654         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35655         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35656         (sc_prohibit_hash_pjw_without_use)
35657         (sc_prohibit_safe_read_without_use)
35658         (sc_prohibit_argmatch_without_use)
35659         (sc_prohibit_canonicalize_without_use)
35660         (sc_prohibit_root_dev_ino_without_use)
35661         (sc_prohibit_openat_without_use)
35662         (sc_prohibit_c_ctype_without_use)
35663         (sc_prohibit_signal_without_use)
35664         (sc_prohibit_stdio--_without_use)
35665         (sc_prohibit_stdio-safer_without_use)
35666         (sc_prohibit_strings_without_use)
35667         (sc_prohibit_intprops_without_use)
35668         (sc_prohibit_stddef_without_use)
35669         (sc_prohibit_xfreopen_without_use): Update clients.
35671 2011-06-24  Jim Meyering  <meyering@redhat.com>
35673         syntax-check: keep one maint.mk rule in sync with its header
35674         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35675         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35676         I prefer to avoid temporary files here, so use <(...), but that
35677         is not supported by /bin/sh, so...
35678         (SHELL): Define to /bin/bash.
35680 2011-06-24  Eric Blake  <eblake@redhat.com>
35682         maint.mk: update sc_prohibit_intprops_without_use
35683         * top/maint.mk (_intprops_names): Match recent changes.
35685 2011-06-24  Bruno Haible  <bruno@clisp.org>
35687         strerror-override: No-op tweak.
35688         * lib/strerror-override.h (strerror_override): Reorder conditions,
35689         for consistency with lib/strerror-override.c.
35691 2011-06-23  Eric Blake  <eblake@redhat.com>
35693         maint.mk: test further PATH_MAX issues
35694         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35695         (sc_prohibit_path_max_allocation): ...and also test alloca.
35696         Suggested by Jim Meyering.
35698 2011-06-22  Eric Blake  <eblake@redhat.com>
35700         maint.mk: add syntax-check to avoid char[PATH_MAX]
35701         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35703         stat: be robust to PATH_MAX definition
35704         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35705         * modules/stat (Depends-on): Add verify.
35707         link: work around IRIX bug
35708         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35709         * lib/link.c (rpl_link): Work around it.
35710         * tests/test-link.h (test_link): Enhance test.
35711         * doc/posix-functions/link.texi (link): Document the bug.
35713         getopt: silence clang warning
35714         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35715         dereference.
35716         Reported by Gustavo Martin Domato.
35718 2011-06-22  Jim Meyering  <meyering@redhat.com>
35720         bootstrap: do not insert a blank line into each .gitignore file
35721         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35723 2011-06-21  Eric Blake  <eblake@redhat.com>
35725         perror: test for output mismatch
35726         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35727         perror on IRIX.
35729         strerror_r: fix OpenBSD behavior on out-of-range
35730         * lib/strerror_r.c (strerror_r): Always use maximal string.
35731         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35733         strerror_r: fix OpenBSD behavior on 0
35734         * lib/strerror-override.c (strerror_override): Also override 0
35735         when needed.
35736         * lib/strerror-override.h (strerror_override): Likewise.
35737         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35738         earlier.
35739         * lib/strerror_r.c (strerror_r): Likewise.
35740         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35741         behavior...
35742         (gl_FUNC_STRERROR_0): ...into new macro.
35743         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35744         is overridden.
35745         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35746         * modules/strerror-override (Files): Add strerror.m4.
35747         (configure.ac): Also provide override for 0 when needed.
35748         * doc/posix-functions/strerror.texi (strerror): Document this.
35749         * doc/posix-functions/perror.texi (perror): Likewise.
35751         perror: adjust array size
35752         * modules/perror (Depends-on): Add strerror-override.
35753         * lib/perror.c (perror): Use it to avoid magic number.
35755         strerror-override: reduce size
35756         * lib/strerror-override.c (strerror_override): Use fewer lines.
35758 2011-06-20  Bruno Haible  <bruno@clisp.org>
35760         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35761         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35763 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35765         alloca: port to compilers that can optimize like GCC 4.6.0
35766         * lib/alloca.c (find_stack_direction): New signature, taken from
35767         Autoconf git.  This works with GCC 4.6.0.  This code should never
35768         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35769         be used with other compilers that optimize as well as GCC 4.6.0 does.
35770         (alloca): Adjust to new signature.
35771         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35772         New macro, which patches Autoconf in a similar way.
35774         c-stack: stop worrying about stack direction
35775         * lib/c-stack.c (find_stack_direction): Remove.
35776         (segv_handler): Don't worry about stack direction growth, as it's
35777         too much of a pain to configure this correctly, given how compilers
35778         are optimizing-away our stack-growth detection code.  Instead, assume
35779         that any access to just before or just after the stack is OK.
35780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35781         Don't require AC_FUNC_ALLOCA; no longer needed.
35783 2011-06-20  Eric Blake  <eblake@redhat.com>
35785         test-stat: don't allocate PATH_MAX bytes
35786         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35787         PATH_MAX-sized buffer.
35788         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35789         * modules/stat-tests (Depends-on): Likewise.
35790         * tests/test-fstatat.c (includes): Drop pathmax.h.
35791         * tests/test-stat.c (includes): Likewise.
35792         Reported by Bruno Haible.
35794 2011-06-20  Bruno Haible  <bruno@clisp.org>
35796         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35797         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35798         * lib/float.c: New file.
35799         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35800         REPLACE_FLOAT_LDBL.
35801         * modules/float (Files): Add lib/float.c.
35802         (configure.ac): Invoke AC_LIBOBJ.
35803         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35805 2011-06-20  Bruno Haible  <bruno@clisp.org>
35807         Tests for module 'float'.
35808         * modules/float-tests: New file.
35809         * tests/test-float.c: New file.
35811 2011-06-19  Bruno Haible  <bruno@clisp.org>
35813         isinf: Coding style.
35814         * lib/isinf.c: Use GNU coding style.
35816 2011-06-19  Bruno Haible  <bruno@clisp.org>
35818         linkat test: Avoid test failure on AIX 7.1.
35819         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35820         * tests/test-link.h (test_link): Likewise.
35822 2011-06-19  Bruno Haible  <bruno@clisp.org>
35824         pread test: Avoid test failure on OpenBSD 4.9.
35825         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35827 2011-06-19  Bruno Haible  <bruno@clisp.org>
35829         sprintf-posix: Fix test failure on AIX 7.1.
35830         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35831         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35832         on AIX.
35833         * doc/posix-functions/fprintf.texi: Likewise.
35834         * doc/posix-functions/printf.texi: Likewise.
35835         * doc/posix-functions/snprintf.texi: Likewise.
35836         * doc/posix-functions/sprintf.texi: Likewise.
35837         * doc/posix-functions/vdprintf.texi: Likewise.
35838         * doc/posix-functions/vfprintf.texi: Likewise.
35839         * doc/posix-functions/vprintf.texi: Likewise.
35840         * doc/posix-functions/vsnprintf.texi: Likewise.
35841         * doc/posix-functions/vsprintf.texi: Likewise.
35843 2011-06-19  Bruno Haible  <bruno@clisp.org>
35845         roundl-ieee: Fix test failure on AIX 7.1.
35846         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35847         * doc/posix-functions/roundl.texi: Mention problem with negative
35848         arguments.
35850 2011-06-19  Bruno Haible  <bruno@clisp.org>
35852         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35853         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35854         * doc/posix-functions/round.texi: Mention problem with negative
35855         arguments.
35856         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35858 2011-06-19  Bruno Haible  <bruno@clisp.org>
35860         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35861         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35862         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35863         * doc/posix-functions/roundf.texi: Mention problem with negative
35864         arguments.
35865         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35867 2011-06-19  Bruno Haible  <bruno@clisp.org>
35869         ceilf-ieee: Work around bug on MacOS X 10.5.
35870         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35872         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35873         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35874         IEEE compliant, avoid compiler optimizations.
35875         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35876         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35877         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35878         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35879         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35880         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35881         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35883         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35884         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35886 2011-06-19  Bruno Haible  <bruno@clisp.org>
35888         ceilf-ieee: Work around bug on AIX 7.1.
35889         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35890         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35892 2011-06-19  Bruno Haible  <bruno@clisp.org>
35894         ceil-ieee: Work around bug on AIX 7.1.
35895         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35896         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35898 2011-06-18  Bruno Haible  <bruno@clisp.org>
35900         fsync test: Avoid test failure on MacOS X and AIX.
35901         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35902         EINVAL.
35904 2011-06-18  Bruno Haible  <bruno@clisp.org>
35906         openat, fdopendir tests: Fix link errors.
35907         * modules/openat-tests (Depends-on): Add progname.
35908         * modules/fdopendir-tests (Depends-on): Likewise.
35909         * tests/test-fchownat.c: Include progname.h.
35910         (main): Call set_program_name.
35911         * tests/test-fstatat.c: Include progname.h.
35912         (main): Call set_program_name.
35913         * tests/test-mkdirat.c: Include progname.h.
35914         (main): Call set_program_name.
35915         * tests/test-openat.c: Include progname.h.
35916         (main): Call set_program_name.
35917         * tests/test-unlinkat.c: Include progname.h.
35918         (main): Call set_program_name.
35919         * tests/test-fdopendir.c: Include progname.h.
35920         (main): Call set_program_name.
35922 2011-06-18  Bruno Haible  <bruno@clisp.org>
35924         Doc update.
35925         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35926         HP-UX.
35927         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35929 2011-06-18  Bruno Haible  <bruno@clisp.org>
35931         getcwd tests: Avoid compilation error on HP-UX 11.31.
35932         * modules/getcwd-tests (Depends-on): Add pathmax.
35933         * tests/test-getcwd.c: Include pathmax.h.
35935 2011-06-18  Bruno Haible  <bruno@clisp.org>
35937         isfinite, isinf: Fix link error on AIX 6 and 7.
35938         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35939         needed, also test the macro with a 'float' argument.
35940         * m4/isinf.m4 (gl_ISINF): Likewise.
35942 2011-06-18  Bruno Haible  <bruno@clisp.org>
35944         getloadavg: Don't clobber LIBS. Regression from previous commit.
35945         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35946         AC_CHECK_LIB from here...
35947         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35948         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35949         gl_func_getloadavg_done.
35950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35952 2011-06-18  Bruno Haible  <bruno@clisp.org>
35954         clean-temp: Improve documentation.
35955         * lib/clean-temp.h: Explain better how to use this module.
35956         Reported by John Darrington <john@darrington.wattle.id.au>.
35958 2011-06-17  Bruno Haible  <bruno@clisp.org>
35960         pread, pwrite: Avoid cc warning on AIX.
35961         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35962         (pwrite): Likewise.
35964 2011-06-17  Bruno Haible  <bruno@clisp.org>
35966         spawn-pipe tests: Fix link error.
35967         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35970 2011-06-17  Bruno Haible  <bruno@clisp.org>
35972         Tests: Remove unnecessary dependency.
35973         * modules/canonicalize-tests (Depends-on): Remove progname.
35974         * modules/chown-tests (Depends-on): Likewise.
35975         * modules/dirname-tests (Depends-on): Likewise.
35976         * modules/fdopendir-tests (Depends-on): Likewise.
35977         * modules/fdutimensat-tests (Depends-on): Likewise.
35978         * modules/hash-tests (Depends-on): Likewise.
35979         * modules/lchown-tests (Depends-on): Likewise.
35980         * modules/linkat-tests (Depends-on): Likewise.
35981         * modules/renameat-tests (Depends-on): Likewise.
35982         * modules/spawn-pipe-tests (Depends-on): Likewise.
35983         * modules/utimensat-tests (Depends-on): Likewise.
35985 2011-06-17  Bruno Haible  <bruno@clisp.org>
35987         spawn-pipe tests: Fix link error.
35988         * tests/test-spawn-pipe-child.c: Undefine fflush.
35990 2011-06-17  Bruno Haible  <bruno@clisp.org>
35992         Fix tests link errors.
35993         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35994         * modules/chown-tests (Makefile.am): Don't link test-chown with
35995         LIBINTL.
35996         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35997         LIBINTL.
35998         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35999         LIBINTL.
36000         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
36001         LIBINTL.
36003 2011-06-16  Bruno Haible  <bruno@clisp.org>
36005         crypto/gc-sha1: Fix recent regression.
36006         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
36007         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
36009         crypto/gc-md5: Fix recent regression.
36010         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
36012         crypto/gc-md4: Fix recent regression.
36013         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
36014         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
36016         crypto/gc-arctwo: Fix recent regression.
36017         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
36018         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
36020         crypto/gc-rijndael: Fix recent regression.
36021         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
36022         (configure.ac): Invoke AC_LIBOBJ here.
36023         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
36024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36026         crypto/gc-hmac-sha1: Fix recent regression.
36027         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
36028         (configure.ac): Invoke AC_LIBOBJ here.
36029         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
36030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36032         crypto/gc-hmac-md5: Fix recent regression.
36033         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
36034         (configure.ac): Invoke AC_LIBOBJ here.
36035         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
36036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36038         crypto/gc-des: Fix recent regression.
36039         * modules/crypto/gc-des (Files): Remove m4/des.m4.
36040         (configure.ac): Invoke AC_LIBOBJ here.
36041         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
36042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36044         crypto/gc-arcfour: Fix recent regression.
36045         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
36046         (configure.ac): Invoke AC_LIBOBJ here.
36047         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
36048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36050 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
36052         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
36053         After the 2011-05-21 change, this macro requires
36054         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
36055         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36057 2011-06-16  Bruno Haible  <bruno@clisp.org>
36059         fprintftime: Move AC_LIBOBJ invocations to module description.
36060         * m4/fprintftime.m4: Remove file.
36061         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
36062         (configure.ac): Remove gl_FPRINTFTIME call.
36063         (Makefile.am): Augment lib_SOURCES.
36064         Reported by Jim Meyering.
36066 2011-06-16  Bruno Haible  <bruno@clisp.org>
36068         tmpfile-safer: Finish 2011-05-23 commit.
36069         * m4/stdio-safer.m4: Really remove file.
36070         Reported by Jim Meyering.
36072 2011-06-16  Bruno Haible  <bruno@clisp.org>
36074         syntax-check: Fix typo.
36075         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
36076         printf-posix.m4.
36077         Reported by Jim Meyering.
36079 2011-06-13  Jim Meyering  <meyering@redhat.com>
36081         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
36082         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
36084 2011-05-23  Bruno Haible  <bruno@clisp.org>
36086         yesno: Move AC_LIBOBJ invocations to module description.
36087         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
36088         * modules/yesno (Makefile.am): Augment lib_SOURCES.
36090 2011-05-23  Bruno Haible  <bruno@clisp.org>
36092         xstrtol: Move AC_LIBOBJ invocations to module description.
36093         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
36094         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
36096 2011-05-23  Bruno Haible  <bruno@clisp.org>
36098         xstrtold: Move AC_LIBOBJ invocations to module description.
36099         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
36100         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
36102 2011-05-23  Bruno Haible  <bruno@clisp.org>
36104         xstrtod: Move AC_LIBOBJ invocations to module description.
36105         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
36106         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
36108 2011-05-23  Bruno Haible  <bruno@clisp.org>
36110         xnanosleep: Move AC_LIBOBJ invocations to module description.
36111         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
36112         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
36114 2011-05-23  Bruno Haible  <bruno@clisp.org>
36116         xgetcwd: Move AC_LIBOBJ invocations to module description.
36117         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
36118         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
36120 2011-05-23  Bruno Haible  <bruno@clisp.org>
36122         xalloc: Move AC_LIBOBJ invocations to module description.
36123         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
36124         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
36126 2011-05-23  Bruno Haible  <bruno@clisp.org>
36128         write-any-file: Move AC_LIBOBJ invocations to module description.
36129         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
36130         invocation.
36131         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
36133 2011-05-23  Bruno Haible  <bruno@clisp.org>
36135         utimens: Move AC_LIBOBJ invocations to module description.
36136         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
36137         * modules/utimens (Makefile.am): Augment lib_SOURCES.
36139 2011-05-23  Bruno Haible  <bruno@clisp.org>
36141         utimecmp: Move AC_LIBOBJ invocations to module description.
36142         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
36143         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
36145 2011-05-23  Bruno Haible  <bruno@clisp.org>
36147         userspec: Move AC_LIBOBJ invocations to module description.
36148         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
36149         * modules/userspec (Makefile.am): Augment lib_SOURCES.
36151 2011-05-23  Bruno Haible  <bruno@clisp.org>
36153         unlinkdir: Move AC_LIBOBJ invocations to module description.
36154         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
36155         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
36157 2011-05-23  Bruno Haible  <bruno@clisp.org>
36159         unistd-safer: Move AC_LIBOBJ invocations to module description.
36160         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
36161         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
36163 2011-05-23  Bruno Haible  <bruno@clisp.org>
36165         tempname: Move AC_LIBOBJ invocations to module description.
36166         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
36167         * modules/tempname (Makefile.am): Augment lib_SOURCES.
36169 2011-05-23  Bruno Haible  <bruno@clisp.org>
36171         strftime: Move AC_LIBOBJ invocations to module description.
36172         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
36173         * modules/strftime (Makefile.am): Augment lib_SOURCES.
36175 2011-05-23  Bruno Haible  <bruno@clisp.org>
36177         stdlib-safer: Move AC_LIBOBJ invocations to module description.
36178         * m4/stdlib-safer.m4: Remove file.
36179         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
36180         (configure.ac): Remove gl_STDLIB_SAFER call.
36181         (Makefile.am): Augment lib_SOURCES.
36183 2011-05-23  Bruno Haible  <bruno@clisp.org>
36185         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
36186         * m4/stdio-safer.m4: Remove file.
36187         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
36188         (configure.ac): Remove gl_TMPFILE_SAFER call.
36189         (Makefile.am): Augment lib_SOURCES.
36191 2011-05-23  Bruno Haible  <bruno@clisp.org>
36193         popen-safer: Move AC_LIBOBJ invocations to module description.
36194         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
36195         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
36196         (configure.ac): Remove gl_POPEN_SAFER call.
36197         (Makefile.am): Augment lib_SOURCES.
36199 2011-05-23  Bruno Haible  <bruno@clisp.org>
36201         freopen-safer: Move AC_LIBOBJ invocations to module description.
36202         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
36203         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
36204         (configure.ac): Remove gl_FREOPEN_SAFER call.
36205         (Makefile.am): Augment lib_SOURCES.
36207 2011-05-23  Bruno Haible  <bruno@clisp.org>
36209         fopen-safer: Move AC_LIBOBJ invocations to module description.
36210         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
36211         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
36212         (configure.ac): Remove gl_FOPEN_SAFER call.
36213         (Makefile.am): Augment lib_SOURCES.
36215 2011-05-23  Bruno Haible  <bruno@clisp.org>
36217         crypto/sha512: Move AC_LIBOBJ invocations to module description.
36218         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
36219         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
36221 2011-05-23  Bruno Haible  <bruno@clisp.org>
36223         crypto/sha256: Move AC_LIBOBJ invocations to module description.
36224         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
36225         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
36227 2011-05-23  Bruno Haible  <bruno@clisp.org>
36229         crypto/sha1: Move AC_LIBOBJ invocations to module description.
36230         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
36231         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
36233 2011-05-23  Bruno Haible  <bruno@clisp.org>
36235         settime: Move AC_LIBOBJ invocations to module description.
36236         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
36237         * modules/settime (Makefile.am): Augment lib_SOURCES.
36239 2011-05-23  Bruno Haible  <bruno@clisp.org>
36241         savedir: Move AC_LIBOBJ invocations to module description.
36242         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
36243         * modules/savedir (Makefile.am): Augment lib_SOURCES.
36245 2011-05-23  Bruno Haible  <bruno@clisp.org>
36247         save-cwd: Move AC_LIBOBJ invocations to module description.
36248         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
36249         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
36251 2011-05-23  Bruno Haible  <bruno@clisp.org>
36253         same: Move AC_LIBOBJ invocations to module description.
36254         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
36255         * modules/same (Makefile.am): Augment lib_SOURCES.
36257 2011-05-23  Bruno Haible  <bruno@clisp.org>
36259         safe-write: Move AC_LIBOBJ invocations to module description.
36260         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
36261         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
36262         instead of gl_SAFE_WRITE.
36263         (Makefile.am): Augment lib_SOURCES.
36265 2011-05-23  Bruno Haible  <bruno@clisp.org>
36267         safe-read: Move AC_LIBOBJ invocations to module description.
36268         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
36269         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
36270         of gl_SAFE_READ.
36271         (Makefile.am): Augment lib_SOURCES.
36273 2011-05-23  Bruno Haible  <bruno@clisp.org>
36275         safe-alloc: Move AC_LIBOBJ invocations to module description.
36276         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
36277         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
36279 2011-05-23  Bruno Haible  <bruno@clisp.org>
36281         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
36282         * m4/rijndael.m4: Remove file.
36283         * modules/crypto/rijndael (Files): Remove it.
36284         (configure.ac): Remove gl_RIJNDAEL call.
36285         (Makefile.am): Augment lib_SOURCES.
36287 2011-05-23  Bruno Haible  <bruno@clisp.org>
36289         readtokens: Move AC_LIBOBJ invocations to module description.
36290         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
36291         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
36293 2011-05-23  Bruno Haible  <bruno@clisp.org>
36295         read-file: Move AC_LIBOBJ invocations to module description.
36296         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
36297         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
36298         of gl_FUNC_READ_FILE.
36299         (Makefile.am): Augment lib_SOURCES.
36301 2011-05-23  Bruno Haible  <bruno@clisp.org>
36303         quotearg: Move AC_LIBOBJ invocations to module description.
36304         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
36305         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
36307 2011-05-23  Bruno Haible  <bruno@clisp.org>
36309         quote: Move AC_LIBOBJ invocations to module description.
36310         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
36311         * modules/quote (Makefile.am): Augment lib_SOURCES.
36313 2011-05-23  Bruno Haible  <bruno@clisp.org>
36315         posixver: Move AC_LIBOBJ invocations to module description.
36316         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
36317         * modules/posixver (Makefile.am): Augment lib_SOURCES.
36319 2011-05-23  Bruno Haible  <bruno@clisp.org>
36321         posixtm: Move AC_LIBOBJ invocations to module description.
36322         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
36323         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
36325 2011-05-23  Bruno Haible  <bruno@clisp.org>
36327         physmem: Move AC_LIBOBJ invocations to module description.
36328         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
36329         * modules/physmem (Makefile.am): Augment lib_SOURCES.
36331 2011-05-23  Bruno Haible  <bruno@clisp.org>
36333         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
36334         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
36335         invocation.
36336         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
36338 2011-05-23  Bruno Haible  <bruno@clisp.org>
36340         mpsort: Move AC_LIBOBJ invocations to module description.
36341         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
36342         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
36344 2011-05-23  Bruno Haible  <bruno@clisp.org>
36346         modechange: Move AC_LIBOBJ invocations to module description.
36347         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
36348         * modules/modechange (Makefile.am): Augment lib_SOURCES.
36350 2011-05-23  Bruno Haible  <bruno@clisp.org>
36352         mkdir-p: Move AC_LIBOBJ invocations to module description.
36353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
36354         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
36356 2011-05-23  Bruno Haible  <bruno@clisp.org>
36358         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36359         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36360         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36362 2011-05-23  Bruno Haible  <bruno@clisp.org>
36364         mgetgroups: Move AC_LIBOBJ invocations to module description.
36365         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36366         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36368 2011-05-23  Bruno Haible  <bruno@clisp.org>
36370         memxor: Move AC_LIBOBJ invocations to module description.
36371         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36372         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36374 2011-05-23  Bruno Haible  <bruno@clisp.org>
36376         memcoll: Move AC_LIBOBJ invocations to module description.
36377         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36378         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36380 2011-05-23  Bruno Haible  <bruno@clisp.org>
36382         memcasecmp: Move AC_LIBOBJ invocations to module description.
36383         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36384         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36386 2011-05-23  Bruno Haible  <bruno@clisp.org>
36388         crypto/md5: Move AC_LIBOBJ invocations to module description.
36389         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36390         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36392 2011-05-23  Bruno Haible  <bruno@clisp.org>
36394         crypto/md4: Move AC_LIBOBJ invocations to module description.
36395         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36396         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36398 2011-05-23  Bruno Haible  <bruno@clisp.org>
36400         crypto/md2: Move AC_LIBOBJ invocations to module description.
36401         * m4/md2.m4: Remove file.
36402         * modules/crypto/md2 (Files): Remove it.
36403         (configure.ac): Remove gl_MD2 call.
36404         (Makefile.am): Augment lib_SOURCES.
36406 2011-05-23  Bruno Haible  <bruno@clisp.org>
36408         long-options: Move AC_LIBOBJ invocations to module description.
36409         * m4/long-options.m4: Remove file.
36410         * modules/long-options (Files): Remove it.
36411         (configure.ac): Remove gl_LONG_OPTIONS call.
36412         (Makefile.am): Augment lib_SOURCES.
36414 2011-05-23  Bruno Haible  <bruno@clisp.org>
36416         i-ring: Move AC_LIBOBJ invocations to module description.
36417         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36418         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36420 2011-05-23  Bruno Haible  <bruno@clisp.org>
36422         idcache: Move AC_LIBOBJ invocations to module description.
36423         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36424         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36426 2011-05-23  Bruno Haible  <bruno@clisp.org>
36428         human: Move AC_LIBOBJ invocations to module description.
36429         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36430         * modules/human (Makefile.am): Augment lib_SOURCES.
36432 2011-05-23  Bruno Haible  <bruno@clisp.org>
36434         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36435         * m4/hmac-sha1.m4: Remove file.
36436         * modules/crypto/hmac-sha1 (Files): Remove it.
36437         (configure.ac): Remove gl_HMAC_SHA1 call.
36438         (Makefile.am): Augment lib_SOURCES.
36440 2011-05-23  Bruno Haible  <bruno@clisp.org>
36442         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36443         * m4/hmac-md5.m4: Remove file.
36444         * modules/crypto/hmac-md5 (Files): Remove it.
36445         (configure.ac): Remove gl_HMAC_MD5 call.
36446         (Makefile.am): Augment lib_SOURCES.
36448 2011-05-23  Bruno Haible  <bruno@clisp.org>
36450         hash: Move AC_LIBOBJ invocations to module description.
36451         * m4/hash.m4: Remove file.
36452         * modules/hash (Files): Remove it.
36453         (configure.ac): Remove gl_HASH call.
36454         (Makefile.am): Augment lib_SOURCES.
36456 2011-05-23  Bruno Haible  <bruno@clisp.org>
36458         hard-locale: Move AC_LIBOBJ invocations to module description.
36459         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36460         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36462 2011-05-23  Bruno Haible  <bruno@clisp.org>
36464         getugroups: Move AC_LIBOBJ invocations to module description.
36465         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36466         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36468 2011-05-23  Bruno Haible  <bruno@clisp.org>
36470         gettime: Move AC_LIBOBJ invocations to module description.
36471         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36472         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36474 2011-05-23  Bruno Haible  <bruno@clisp.org>
36476         getndelim2: Move AC_LIBOBJ invocations to module description.
36477         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36478         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36480 2011-05-23  Bruno Haible  <bruno@clisp.org>
36482         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36483         * m4/gc-pbkdf2-sha1.m4: Remove file.
36484         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36485         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36486         (Makefile.am): Augment lib_SOURCES.
36488 2011-05-23  Bruno Haible  <bruno@clisp.org>
36490         fts: Move AC_LIBOBJ invocations to module description.
36491         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36492         * modules/fts (configure.ac): ... to here.
36494 2011-05-23  Bruno Haible  <bruno@clisp.org>
36496         file-type: Move AC_LIBOBJ invocations to module description.
36497         * m4/file-type.m4: Remove file.
36498         * modules/file-type (Files): Remove it.
36499         (configure.ac): Remove gl_FILE_TYPE call.
36500         (Makefile.am): Augment lib_SOURCES.
36502 2011-05-23  Bruno Haible  <bruno@clisp.org>
36504         filenamecat*: Respect rules for use of AC_LIBOBJ.
36505         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36506         Remove AC_LIBOBJ invocation.
36507         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36508         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36510 2011-05-23  Bruno Haible  <bruno@clisp.org>
36512         filemode: Move AC_LIBOBJ invocations to module description.
36513         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36514         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36516 2011-05-23  Bruno Haible  <bruno@clisp.org>
36518         openat-safer: Move AC_LIBOBJ invocations to module description.
36519         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36520         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36522 2011-05-23  Bruno Haible  <bruno@clisp.org>
36524         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36525         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36526         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36528 2011-05-23  Bruno Haible  <bruno@clisp.org>
36530         exclude: Move AC_LIBOBJ invocations to module description.
36531         * m4/exclude.m4: Remove file.
36532         * modules/exclude (Files): Remove it.
36533         (configure.ac): Remove gl_EXCLUDE call.
36534         (Makefile.am): Augment lib_SOURCES.
36536 2011-05-23  Bruno Haible  <bruno@clisp.org>
36538         dirname*: Respect rules for use of AC_LIBOBJ.
36539         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36540         invocations.
36541         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36542         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36544 2011-05-23  Bruno Haible  <bruno@clisp.org>
36546         dirent-safer: Move AC_LIBOBJ invocations to module description.
36547         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36548         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36550 2011-05-23  Bruno Haible  <bruno@clisp.org>
36552         crypto/des: Move AC_LIBOBJ invocations to module description.
36553         * m4/des.m4: Remove file.
36554         * modules/crypto/des (Files): Remove it.
36555         (configure.ac): Remove gl_DES call.
36556         (Makefile.am): Augment lib_SOURCES.
36558 2011-05-23  Bruno Haible  <bruno@clisp.org>
36560         cycle-check: Move AC_LIBOBJ invocations to module description.
36561         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36562         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36564 2011-05-23  Bruno Haible  <bruno@clisp.org>
36566         c-strtold: Move AC_LIBOBJ invocations to module description.
36567         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36568         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36570 2011-05-23  Bruno Haible  <bruno@clisp.org>
36572         c-strtod: Move AC_LIBOBJ invocations to module description.
36573         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36574         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36576 2011-05-23  Bruno Haible  <bruno@clisp.org>
36578         crc: Move AC_LIBOBJ invocations to module description.
36579         * m4/crc.m4: Remove file.
36580         * modules/crc (Files): Remove it.
36581         (configure.ac): Remove gl_CRC call.
36582         (Makefile.am): Augment lib_SOURCES.
36584 2011-05-23  Bruno Haible  <bruno@clisp.org>
36586         close-stream: Move AC_LIBOBJ invocations to module description.
36587         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36588         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36590 2011-05-23  Bruno Haible  <bruno@clisp.org>
36592         closeout: Move AC_LIBOBJ invocations to module description.
36593         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36594         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36596 2011-05-23  Bruno Haible  <bruno@clisp.org>
36598         closein: Move AC_LIBOBJ invocations to module description.
36599         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36600         * modules/closein (Makefile.am): Augment lib_SOURCES.
36602 2011-05-23  Bruno Haible  <bruno@clisp.org>
36604         cloexec: Move AC_LIBOBJ invocations to module description.
36605         * m4/cloexec.m4: Remove file.
36606         * modules/cloexec (Files): Remove it.
36607         (configure.ac): Remove gl_CLOEXEC call.
36608         (Makefile.am): Augment lib_SOURCES.
36610 2011-05-23  Bruno Haible  <bruno@clisp.org>
36612         check-version: Move AC_LIBOBJ invocations to module description.
36613         * m4/check-version.m4: Remove file.
36614         * modules/check-version (Files): Remove it.
36615         (configure.ac): Remove gl_CHECK_VERSION call.
36616         (Makefile.am): Augment lib_SOURCES.
36618 2011-05-23  Bruno Haible  <bruno@clisp.org>
36620         chdir-safer: Move AC_LIBOBJ invocations to module description.
36621         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36622         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36624 2011-05-23  Bruno Haible  <bruno@clisp.org>
36626         canonicalize: Move AC_LIBOBJ invocations to module description.
36627         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36628         AC_LIBOBJ invocation.
36629         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36631 2011-05-23  Bruno Haible  <bruno@clisp.org>
36633         canon-host: Move AC_LIBOBJ invocations to module description.
36634         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36635         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36636         instead of gl_CANON_HOST.
36637         (Makefile.am): Augment lib_SOURCES.
36639 2011-05-23  Bruno Haible  <bruno@clisp.org>
36641         backupfile: Move AC_LIBOBJ invocations to module description.
36642         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36643         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36645 2011-05-23  Bruno Haible  <bruno@clisp.org>
36647         argmatch: Move AC_LIBOBJ invocations to module description.
36648         * m4/argmatch.m4: Remove file.
36649         * modules/argmatch (Files): Remove it.
36650         (configure.ac): Remove gl_ARGMATCH call.
36651         (Makefile.am): Augment lib_SOURCES.
36653 2011-05-23  Bruno Haible  <bruno@clisp.org>
36655         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36656         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36657         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36659 2011-05-23  Bruno Haible  <bruno@clisp.org>
36661         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36662         * m4/arcfour.m4: Remove file.
36663         * modules/crypto/arcfour (Files): Remove it.
36664         (configure.ac): Remove gl_ARCFOUR call.
36665         (Makefile.am): Augment lib_SOURCES.
36667 2011-05-22  Bruno Haible  <bruno@clisp.org>
36669         write: Move AC_LIBOBJ invocations to module description.
36670         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36671         * modules/write (configure.ac): ... to here.
36673 2011-05-22  Bruno Haible  <bruno@clisp.org>
36675         wmemset: Move AC_LIBOBJ invocations to module description.
36676         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36677         here...
36678         * modules/wmemset (configure.ac): ... to here.
36680 2011-05-22  Bruno Haible  <bruno@clisp.org>
36682         wmemmove: Move AC_LIBOBJ invocations to module description.
36683         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36684         here...
36685         * modules/wmemmove (configure.ac): ... to here.
36687 2011-05-22  Bruno Haible  <bruno@clisp.org>
36689         wmemcpy: Move AC_LIBOBJ invocations to module description.
36690         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36691         here...
36692         * modules/wmemcpy (configure.ac): ... to here.
36694 2011-05-22  Bruno Haible  <bruno@clisp.org>
36696         wmemcmp: Move AC_LIBOBJ invocations to module description.
36697         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36698         here...
36699         * modules/wmemcmp (configure.ac): ... to here.
36701 2011-05-22  Bruno Haible  <bruno@clisp.org>
36703         wmemchr: Move AC_LIBOBJ invocations to module description.
36704         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36705         here...
36706         * modules/wmemchr (configure.ac): ... to here.
36708 2011-05-22  Bruno Haible  <bruno@clisp.org>
36710         wcswidth: Move AC_LIBOBJ invocations to module description.
36711         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36712         here...
36713         * modules/wcswidth (configure.ac): ... to here.
36715 2011-05-22  Bruno Haible  <bruno@clisp.org>
36717         wcwidth: Respect rules for use of AC_LIBOBJ.
36718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36719         invocation from here...
36720         * modules/wcwidth (configure.ac): ... to here.
36721         (Depends-on): Update conditions.
36723 2011-05-22  Bruno Haible  <bruno@clisp.org>
36725         wctype: Move AC_LIBOBJ invocations to module description.
36726         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36727         invocation from here...
36728         * modules/wctype (configure.ac): ... to here.
36729         (Depends-on): Update conditions.
36731 2011-05-22  Bruno Haible  <bruno@clisp.org>
36733         wctrans: Move AC_LIBOBJ invocations to module description.
36734         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36735         invocation from here...
36736         * modules/wctrans (configure.ac): ... to here.
36738 2011-05-22  Bruno Haible  <bruno@clisp.org>
36740         wctomb: Move AC_LIBOBJ invocations to module description.
36741         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36742         invocations from here...
36743         * modules/wctomb (configure.ac): ... to here.
36745 2011-05-22  Bruno Haible  <bruno@clisp.org>
36747         wctob: Move AC_LIBOBJ invocations to module description.
36748         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36749         gl_PREREQ_WCTOB invocations from here...
36750         * modules/wctob (configure.ac): ... to here.
36751         (Depends-on): Update conditions.
36753 2011-05-22  Bruno Haible  <bruno@clisp.org>
36755         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36756         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36757         here...
36758         * modules/wcsxfrm (configure.ac): ... to here.
36760 2011-05-22  Bruno Haible  <bruno@clisp.org>
36762         wcstok: Move AC_LIBOBJ invocations to module description.
36763         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36764         * modules/wcstok (configure.ac): ... to here.
36766 2011-05-22  Bruno Haible  <bruno@clisp.org>
36768         wcsstr: Move AC_LIBOBJ invocations to module description.
36769         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36770         * modules/wcsstr (configure.ac): ... to here.
36772 2011-05-22  Bruno Haible  <bruno@clisp.org>
36774         wcsspn: Move AC_LIBOBJ invocations to module description.
36775         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36776         * modules/wcsspn (configure.ac): ... to here.
36778 2011-05-22  Bruno Haible  <bruno@clisp.org>
36780         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36781         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36782         gl_PREREQ_WCSRTOMBS invocations from here...
36783         * modules/wcsrtombs (configure.ac): ... to here.
36785 2011-05-22  Bruno Haible  <bruno@clisp.org>
36787         wcsrchr: Move AC_LIBOBJ invocations to module description.
36788         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36789         here...
36790         * modules/wcsrchr (configure.ac): ... to here.
36792 2011-05-22  Bruno Haible  <bruno@clisp.org>
36794         wcspbrk: Move AC_LIBOBJ invocations to module description.
36795         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36796         here...
36797         * modules/wcspbrk (configure.ac): ... to here.
36799 2011-05-22  Bruno Haible  <bruno@clisp.org>
36801         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36802         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36803         gl_PREREQ_WCSNRTOMBS invocations from here...
36804         * modules/wcsnrtombs (configure.ac): ... to here.
36806 2011-05-22  Bruno Haible  <bruno@clisp.org>
36808         wcsnlen: Move AC_LIBOBJ invocations to module description.
36809         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36810         here...
36811         * modules/wcsnlen (configure.ac): ... to here.
36813 2011-05-22  Bruno Haible  <bruno@clisp.org>
36815         wcsncpy: Move AC_LIBOBJ invocations to module description.
36816         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36817         here...
36818         * modules/wcsncpy (configure.ac): ... to here.
36820 2011-05-22  Bruno Haible  <bruno@clisp.org>
36822         wcsncmp: Move AC_LIBOBJ invocations to module description.
36823         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36824         here...
36825         * modules/wcsncmp (configure.ac): ... to here.
36827 2011-05-22  Bruno Haible  <bruno@clisp.org>
36829         wcsncat: Move AC_LIBOBJ invocations to module description.
36830         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36831         here...
36832         * modules/wcsncat (configure.ac): ... to here.
36834 2011-05-22  Bruno Haible  <bruno@clisp.org>
36836         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36837         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36838         from here...
36839         * modules/wcsncasecmp (configure.ac): ... to here.
36841 2011-05-22  Bruno Haible  <bruno@clisp.org>
36843         wcslen: Move AC_LIBOBJ invocations to module description.
36844         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36845         * modules/wcslen (configure.ac): ... to here.
36847 2011-05-22  Bruno Haible  <bruno@clisp.org>
36849         wcsdup: Move AC_LIBOBJ invocations to module description.
36850         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36851         * modules/wcsdup (configure.ac): ... to here.
36853 2011-05-22  Bruno Haible  <bruno@clisp.org>
36855         wcscspn: Move AC_LIBOBJ invocations to module description.
36856         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36857         here...
36858         * modules/wcscspn (configure.ac): ... to here.
36860 2011-05-22  Bruno Haible  <bruno@clisp.org>
36862         wcscpy: Move AC_LIBOBJ invocations to module description.
36863         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36864         * modules/wcscpy (configure.ac): ... to here.
36866 2011-05-22  Bruno Haible  <bruno@clisp.org>
36868         wcscoll: Move AC_LIBOBJ invocations to module description.
36869         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36870         here...
36871         * modules/wcscoll (configure.ac): ... to here.
36873 2011-05-22  Bruno Haible  <bruno@clisp.org>
36875         wcscmp: Move AC_LIBOBJ invocations to module description.
36876         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36877         * modules/wcscmp (configure.ac): ... to here.
36879 2011-05-22  Bruno Haible  <bruno@clisp.org>
36881         wcschr: Move AC_LIBOBJ invocations to module description.
36882         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36883         * modules/wcschr (configure.ac): ... to here.
36885 2011-05-22  Bruno Haible  <bruno@clisp.org>
36887         wcscat: Move AC_LIBOBJ invocations to module description.
36888         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36889         * modules/wcscat (configure.ac): ... to here.
36891 2011-05-22  Bruno Haible  <bruno@clisp.org>
36893         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36894         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36895         here...
36896         * modules/wcscasecmp (configure.ac): ... to here.
36898 2011-05-22  Bruno Haible  <bruno@clisp.org>
36900         wcrtomb: Move AC_LIBOBJ invocations to module description.
36901         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36902         invocations from here...
36903         * modules/wcrtomb (configure.ac): ... to here.
36905 2011-05-22  Bruno Haible  <bruno@clisp.org>
36907         wcpncpy: Move AC_LIBOBJ invocations to module description.
36908         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36909         here...
36910         * modules/wcpncpy (configure.ac): ... to here.
36912 2011-05-22  Bruno Haible  <bruno@clisp.org>
36914         wcpcpy: Move AC_LIBOBJ invocations to module description.
36915         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36916         * modules/wcpcpy (configure.ac): ... to here.
36918 2011-05-22  Bruno Haible  <bruno@clisp.org>
36920         waitpid: Move AC_LIBOBJ invocations to module description.
36921         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36922         invocation from here...
36923         * modules/waitpid (configure.ac): ... to here.
36925 2011-05-22  Bruno Haible  <bruno@clisp.org>
36927         utimensat: Move AC_LIBOBJ invocations to module description.
36928         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36929         here...
36930         * modules/utimensat (configure.ac): ... to here.
36932 2011-05-22  Bruno Haible  <bruno@clisp.org>
36934         usleep: Move AC_LIBOBJ invocations to module description.
36935         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36936         here...
36937         * modules/usleep (configure.ac): ... to here.
36939 2011-05-22  Bruno Haible  <bruno@clisp.org>
36941         unlockpt: Move AC_LIBOBJ invocations to module description.
36942         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36943         gl_PREREQ_UNLOCKPT invocations from here...
36944         * modules/unlockpt (configure.ac): ... to here.
36946 2011-05-22  Bruno Haible  <bruno@clisp.org>
36948         unlink: Respect rules for use of AC_LIBOBJ.
36949         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36950         * modules/unlink (configure.ac): ... to here.
36952 2011-05-22  Bruno Haible  <bruno@clisp.org>
36954         uname: Move AC_LIBOBJ invocations to module description.
36955         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36957         here...
36958         * modules/uname (configure.ac): ... to here.
36960 2011-05-22  Bruno Haible  <bruno@clisp.org>
36962         ttyname_r: Move AC_LIBOBJ invocations to module description.
36963         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36964         gl_PREREQ_TTYNAME_R invocations from here...
36965         * modules/ttyname_r (configure.ac): ... to here.
36967 2011-05-22  Bruno Haible  <bruno@clisp.org>
36969         tsearch: Move AC_LIBOBJ invocations to module description.
36970         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36971         invocations from here...
36972         * modules/tsearch (configure.ac): ... to here.
36974 2011-05-22  Bruno Haible  <bruno@clisp.org>
36976         towctrans: Move AC_LIBOBJ invocations to module description.
36977         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36978         AC_LIBOBJ invocation from here...
36979         * modules/towctrans (configure.ac): ... to here.
36981 2011-05-22  Bruno Haible  <bruno@clisp.org>
36983         tmpfile: Move AC_LIBOBJ invocations to module description.
36984         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36985         invocations from here...
36986         * modules/tmpfile (configure.ac): ... to here.
36988 2011-05-22  Bruno Haible  <bruno@clisp.org>
36990         times: Move AC_LIBOBJ invocations to module description.
36991         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36992         * modules/times (configure.ac): ... to here.
36994 2011-05-22  Bruno Haible  <bruno@clisp.org>
36996         time_r: Move AC_LIBOBJ invocations to module description.
36997         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36998         invocations from here...
36999         * modules/time_r (configure.ac): ... to here.
37001 2011-05-22  Bruno Haible  <bruno@clisp.org>
37003         timegm: Move AC_LIBOBJ invocations to module description.
37004         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
37005         invocations from here...
37006         * modules/timegm (configure.ac): ... to here.
37008 2011-05-22  Bruno Haible  <bruno@clisp.org>
37010         tcgetsid: Move AC_LIBOBJ invocations to module description.
37011         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
37012         and gl_PREREQ_TCGETSID invocations from here...
37013         * modules/tcgetsid (configure.ac): ... to here.
37014         (Depends-on): Update conditions.
37016 2011-05-22  Bruno Haible  <bruno@clisp.org>
37018         symlinkat: Move AC_LIBOBJ invocations to module description.
37019         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
37020         here...
37021         * modules/symlinkat (configure.ac): ... to here.
37023 2011-05-22  Bruno Haible  <bruno@clisp.org>
37025         symlink: Move AC_LIBOBJ invocations to module description.
37026         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
37027         here...
37028         * modules/symlink (configure.ac): ... to here.
37030 2011-05-22  Bruno Haible  <bruno@clisp.org>
37032         strverscmp: Move AC_LIBOBJ invocations to module description.
37033         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
37034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
37035         from here...
37036         * modules/strverscmp (configure.ac): ... to here.
37038 2011-05-22  Bruno Haible  <bruno@clisp.org>
37040         strtok_r: Move AC_LIBOBJ invocations to module description.
37041         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
37042         and gl_PREREQ_STRTOK_R invocations from here...
37043         * modules/strtok_r (configure.ac): ... to here.
37044         (Depends-on): Update conditions.
37046 2011-05-22  Bruno Haible  <bruno@clisp.org>
37048         strtoumax: Move AC_LIBOBJ invocations to module description.
37049         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
37050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
37051         from here...
37052         * modules/strtoumax (configure.ac): ... to here.
37054 2011-05-22  Bruno Haible  <bruno@clisp.org>
37056         strtoimax: Move AC_LIBOBJ invocations to module description.
37057         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
37058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
37059         from here...
37060         * modules/strtoimax (configure.ac): ... to here.
37062 2011-05-22  Bruno Haible  <bruno@clisp.org>
37064         strtoull: Move AC_LIBOBJ invocations to module description.
37065         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
37066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
37067         from here...
37068         * modules/strtoull (configure.ac): ... to here.
37070 2011-05-22  Bruno Haible  <bruno@clisp.org>
37072         strtoll: Move AC_LIBOBJ invocations to module description.
37073         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
37074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
37075         here...
37076         * modules/strtoll (configure.ac): ... to here.
37078 2011-05-22  Bruno Haible  <bruno@clisp.org>
37080         strtoul: Move AC_LIBOBJ invocations to module description.
37081         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
37082         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
37083         * modules/strtoul (configure.ac): ... to here.
37085 2011-05-22  Bruno Haible  <bruno@clisp.org>
37087         strtol: Move AC_LIBOBJ invocations to module description.
37088         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
37089         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
37090         * modules/strtol (configure.ac): ... to here.
37092 2011-05-22  Bruno Haible  <bruno@clisp.org>
37094         strtod: Move AC_LIBOBJ invocations to module description.
37095         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
37096         invocations from here...
37097         * modules/strtod (configure.ac): ... to here.
37099 2011-05-22  Bruno Haible  <bruno@clisp.org>
37101         strstr*: Move AC_LIBOBJ invocations to module description.
37102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
37103         invocations from here...
37104         * modules/strstr-simple (configure.ac): ... to here.
37105         * modules/strstr (configure.ac): ... and here.
37107 2011-05-22  Bruno Haible  <bruno@clisp.org>
37109         strsignal: Move AC_LIBOBJ invocations to module description.
37110         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
37111         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
37112         * modules/strsignal (configure.ac): ... to here.
37113         (Depends-on): Update conditions.
37115 2011-05-22  Bruno Haible  <bruno@clisp.org>
37117         strsep: Move AC_LIBOBJ invocations to module description.
37118         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
37119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
37120         here...
37121         * modules/strsep (configure.ac): ... to here.
37123 2011-05-22  Bruno Haible  <bruno@clisp.org>
37125         strptime: Move AC_LIBOBJ invocations to module description.
37126         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
37127         gl_PREREQ_STRPTIME invocations from here...
37128         * modules/strptime (configure.ac): ... to here.
37130 2011-05-22  Bruno Haible  <bruno@clisp.org>
37132         strpbrk: Move AC_LIBOBJ invocations to module description.
37133         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
37134         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
37135         here...
37136         * modules/strpbrk (configure.ac): ... to here.
37138 2011-05-22  Bruno Haible  <bruno@clisp.org>
37140         strnlen: Move AC_LIBOBJ invocations to module description.
37141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
37142         invocations from here...
37143         * modules/strnlen (configure.ac): ... to here.
37145 2011-05-22  Bruno Haible  <bruno@clisp.org>
37147         strndup: Move AC_LIBOBJ invocations to module description.
37148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
37149         invocations from here...
37150         * modules/strndup (configure.ac): ... to here.
37151         (Depends-on): Update conditions.
37153 2011-05-22  Bruno Haible  <bruno@clisp.org>
37155         strncat: Move AC_LIBOBJ invocations to module description.
37156         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
37157         invocations from here...
37158         * modules/strncat (configure.ac): ... to here.
37160 2011-05-22  Bruno Haible  <bruno@clisp.org>
37162         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
37163         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
37164         invocations from here...
37165         * modules/strdup (configure.ac): ... to here.
37166         * modules/strdup-posix (configure.ac): ... and here.
37168 2011-05-22  Bruno Haible  <bruno@clisp.org>
37170         strcspn: Move AC_LIBOBJ invocations to module description.
37171         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
37172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
37173         here...
37174         * modules/strcspn (configure.ac): ... to here.
37176 2011-05-22  Bruno Haible  <bruno@clisp.org>
37178         strchrnul: Move AC_LIBOBJ invocations to module description.
37179         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
37180         gl_PREREQ_STRCHRNUL invocations from here...
37181         * modules/strchrnul (configure.ac): ... to here.
37183 2011-05-22  Bruno Haible  <bruno@clisp.org>
37185         strcasestr*: Move AC_LIBOBJ invocations to module description.
37186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
37187         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
37188         * modules/strcasestr-simple (configure.ac): ... to here.
37189         * modules/strcasestr (configure.ac): ... and here.
37191 2011-05-22  Bruno Haible  <bruno@clisp.org>
37193         strcase: Move AC_LIBOBJ invocations to module description.
37194         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
37195         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
37196         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
37197         gl_PREREQ_STRNCASECMP invocations from here...
37198         * modules/strcase (configure.ac): ... to here.
37200 2011-05-22  Bruno Haible  <bruno@clisp.org>
37202         stpncpy: Move AC_LIBOBJ invocations to module description.
37203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
37204         here...
37205         * modules/stpncpy (configure.ac): ... to here.
37207 2011-05-22  Bruno Haible  <bruno@clisp.org>
37209         stpcpy: Move AC_LIBOBJ invocations to module description.
37210         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
37211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
37212         here...
37213         * modules/stpcpy (configure.ac): ... to here.
37215 2011-05-21  Bruno Haible  <bruno@clisp.org>
37217         stat: Move AC_LIBOBJ invocations to module description.
37218         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
37219         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
37220         here...
37221         * modules/stat (configure.ac): ... to here.
37223 2011-05-21  Bruno Haible  <bruno@clisp.org>
37225         sleep: Move AC_LIBOBJ invocations to module description.
37226         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
37227         * modules/sleep (configure.ac): ... to here.
37229 2011-05-21  Bruno Haible  <bruno@clisp.org>
37231         signbit: Move AC_LIBOBJ invocations to module description.
37232         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
37233         * modules/signbit (configure.ac): ... to here.
37235 2011-05-21  Bruno Haible  <bruno@clisp.org>
37237         sigprocmask: Move AC_LIBOBJ invocations to module description.
37238         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
37239         gl_PREREQ_SIGPROMASK invocations from here...
37240         * modules/sigprocmask (configure.ac): ... to here.
37242 2011-05-21  Bruno Haible  <bruno@clisp.org>
37244         sigaction: Move AC_LIBOBJ invocations to module description.
37245         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
37246         gl_PREREQ_SIGACTION invocations from here...
37247         * modules/sigaction (configure.ac): ... to here.
37249 2011-05-21  Bruno Haible  <bruno@clisp.org>
37251         sig2str: Move AC_LIBOBJ invocations to module description.
37252         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
37253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
37254         here...
37255         * modules/sig2str (configure.ac): ... to here.
37257 2011-05-21  Bruno Haible  <bruno@clisp.org>
37259         setlocale: Move AC_LIBOBJ invocations to module description.
37260         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
37261         gl_PREREQ_SETLOCALE invocations from here...
37262         * modules/setlocale (configure.ac): ... to here.
37264 2011-05-21  Bruno Haible  <bruno@clisp.org>
37266         unsetenv: Move AC_LIBOBJ invocations to module description.
37267         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
37268         and gl_PREREQ_UNSETENV invocations from here...
37269         * modules/unsetenv (configure.ac): ... to here.
37270         (Depends-on): Update.
37272 2011-05-21  Bruno Haible  <bruno@clisp.org>
37274         setenv: Move AC_LIBOBJ invocations to module description.
37275         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
37276         here...
37277         * modules/setenv (configure.ac): ... to here.
37279 2011-05-21  Bruno Haible  <bruno@clisp.org>
37281         selinux-h: Move AC_LIBOBJ invocations to module description.
37282         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
37283         AC_LIBOBJ invocation from here...
37284         * modules/selinux-h (configure.ac): ... to here.
37286 2011-05-21  Bruno Haible  <bruno@clisp.org>
37288         select: Respect rules for use of AC_LIBOBJ.
37289         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
37290         here...
37291         * modules/select (configure.ac): ... to here.
37293 2011-05-21  Bruno Haible  <bruno@clisp.org>
37295         scandir: Move AC_LIBOBJ invocations to module description.
37296         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
37297         invocations from here...
37298         * modules/scandir (configure.ac): ... to here.
37300 2011-05-21  Bruno Haible  <bruno@clisp.org>
37302         rpmatch: Move AC_LIBOBJ invocations to module description.
37303         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
37304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
37305         here...
37306         * modules/rpmatch (configure.ac): ... to here.
37308 2011-05-21  Bruno Haible  <bruno@clisp.org>
37310         rmdir: Respect rules for use of AC_LIBOBJ.
37311         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
37312         * modules/rmdir (configure.ac): ... to here.
37314 2011-05-21  Bruno Haible  <bruno@clisp.org>
37316         renameat: Move AC_LIBOBJ invocations to module description.
37317         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
37318         here...
37319         * modules/renameat (configure.ac): ... to here.
37321 2011-05-21  Bruno Haible  <bruno@clisp.org>
37323         rename: Respect rules for use of AC_LIBOBJ.
37324         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
37325         here...
37326         * modules/rename (configure.ac): ... to here.
37328 2011-05-21  Bruno Haible  <bruno@clisp.org>
37330         remove: Move AC_LIBOBJ invocations to module description.
37331         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
37332         here...
37333         * modules/remove (configure.ac): ... to here.
37335 2011-05-21  Bruno Haible  <bruno@clisp.org>
37337         relocatable-lib: Move AC_LIBOBJ invocations to module description.
37338         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
37339         macro.
37340         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
37341         * modules/relocatable-lib (configure.ac): ... to here.
37342         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37343         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
37345 2011-05-21  Bruno Haible  <bruno@clisp.org>
37347         relocatable-prog: Move AC_LIBOBJ invocations to module description.
37348         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
37349         here...
37350         * modules/relocatable-prog (configure.ac): ... to here.
37352 2011-05-21  Bruno Haible  <bruno@clisp.org>
37354         regex: Move AC_LIBOBJ invocations to module description.
37355         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
37356         invocations from here...
37357         * modules/regex (configure.ac): ... to here.
37359 2011-05-21  Bruno Haible  <bruno@clisp.org>
37361         realloc-*: Move AC_LIBOBJ invocations to module description.
37362         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37363         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37364         AC_LIBOBJ invocations from here...
37365         * modules/realloc-gnu (configure.ac): ... to here.
37366         * modules/realloc-posix (configure.ac): ... and here.
37368 2011-05-21  Bruno Haible  <bruno@clisp.org>
37370         readutmp: Move AC_LIBOBJ invocations to module description.
37371         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37372         * modules/readutmp (configure.ac): ... to here.
37374 2011-05-21  Bruno Haible  <bruno@clisp.org>
37376         readlinkat: Move AC_LIBOBJ invocations to module description.
37377         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37378         here...
37379         * modules/readlinkat (configure.ac): ... to here.
37381 2011-05-21  Bruno Haible  <bruno@clisp.org>
37383         readlink: Move AC_LIBOBJ invocations to module description.
37384         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37385         gl_PREREQ_READLINK invocations from here...
37386         * modules/readlink (configure.ac): ... to here.
37388 2011-05-21  Bruno Haible  <bruno@clisp.org>
37390         readline: Move AC_LIBOBJ invocations to module description.
37391         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37392         gl_PREREQ_READLINE invocations from here...
37393         * modules/readline (configure.ac): ... to here.
37395 2011-05-21  Bruno Haible  <bruno@clisp.org>
37397         read: Move AC_LIBOBJ invocations to module description.
37398         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37399         * modules/read (configure.ac): ... to here.
37401 2011-05-21  Bruno Haible  <bruno@clisp.org>
37403         rawmemchr: Move AC_LIBOBJ invocations to module description.
37404         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37406         from here...
37407         * modules/rawmemchr (configure.ac): ... to here.
37409 2011-05-21  Bruno Haible  <bruno@clisp.org>
37411         random_r: Move AC_LIBOBJ invocations to module description.
37412         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37413         gl_PREREQ_RANDOM_R invocations from here...
37414         * modules/random_r (configure.ac): ... to here.
37416 2011-05-21  Bruno Haible  <bruno@clisp.org>
37418         pwrite: Move AC_LIBOBJ invocations to module description.
37419         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37420         * modules/pwrite (configure.ac): ... to here.
37422 2011-05-21  Bruno Haible  <bruno@clisp.org>
37424         putenv: Move AC_LIBOBJ invocations to module description.
37425         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37426         * modules/putenv (configure.ac): ... to here.
37428 2011-05-21  Bruno Haible  <bruno@clisp.org>
37430         login_tty: Move AC_LIBOBJ invocations to module description.
37431         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37432         * modules/login_tty (configure.ac): ... to here.
37434 2011-05-21  Bruno Haible  <bruno@clisp.org>
37436         openpty: Move AC_LIBOBJ invocations to module description.
37437         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37438         * modules/openpty (configure.ac): ... to here.
37440 2011-05-21  Bruno Haible  <bruno@clisp.org>
37442         forkpty: Move AC_LIBOBJ invocations to module description.
37443         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37444         * modules/forkpty (configure.ac): ... to here.
37446 2011-05-21  Bruno Haible  <bruno@clisp.org>
37448         ptsname: Move AC_LIBOBJ invocations to module description.
37449         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37450         invocations from here...
37451         * modules/ptsname (configure.ac): ... to here.
37453 2011-05-21  Bruno Haible  <bruno@clisp.org>
37455         pread: Move AC_LIBOBJ invocations to module description.
37456         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37457         * modules/pread (configure.ac): ... to here.
37459 2011-05-21  Bruno Haible  <bruno@clisp.org>
37461         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37462         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37463         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37464         * modules/posix_spawn (configure.ac): ... to here.
37465         * modules/posix_spawnp (configure.ac): ... and here.
37467 2011-05-21  Bruno Haible  <bruno@clisp.org>
37469         popen: Move AC_LIBOBJ invocations to module description.
37470         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37471         invocations from here...
37472         * modules/popen (configure.ac): ... to here.
37474 2011-05-21  Bruno Haible  <bruno@clisp.org>
37476         poll: Move AC_LIBOBJ invocations to module description.
37477         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37478         invocations from here...
37479         * modules/poll (configure.ac): ... to here.
37481 2011-05-21  Bruno Haible  <bruno@clisp.org>
37483         pipe-posix: Move AC_LIBOBJ invocations to module description.
37484         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37485         * modules/pipe-posix (configure.ac): ... to here.
37487 2011-05-21  Bruno Haible  <bruno@clisp.org>
37489         openat: Respect rules for use of AC_LIBOBJ.
37490         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37491         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37492         * modules/openat (configure.ac): ... to here.
37494 2011-05-21  Bruno Haible  <bruno@clisp.org>
37496         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37497         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37498         invocation from here...
37499         * modules/obstack-printf (configure.ac): ... to here.
37500         * modules/obstack-printf-posix (configure.ac): ... and here.
37502 2011-05-21  Bruno Haible  <bruno@clisp.org>
37504         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37505         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37506         from here...
37507         * modules/nl_langinfo (configure.ac): ... to here.
37509 2011-05-21  Bruno Haible  <bruno@clisp.org>
37511         nanosleep: Move AC_LIBOBJ invocations to module description.
37512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37513         gl_PREREQ_NANOSLEEP invocations from here...
37514         * modules/nanosleep (configure.ac): ... to here.
37516 2011-05-21  Bruno Haible  <bruno@clisp.org>
37518         mountlist: Move AC_LIBOBJ invocations to module description.
37519         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37520         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37521         * modules/mountlist (configure.ac): ... to here.
37523 2011-05-21  Bruno Haible  <bruno@clisp.org>
37525         mktime: Respect rules for use of AC_LIBOBJ.
37526         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37527         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37528         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37529         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37530         * modules/mktime (configure.ac): ... to here.
37531         * modules/mktime-internal (configure.ac): ... and here.
37532         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37534 2011-05-21  Bruno Haible  <bruno@clisp.org>
37536         mkstemps: Move AC_LIBOBJ invocations to module description.
37537         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37538         here...
37539         * modules/mkstemps (configure.ac): ... to here.
37541 2011-05-21  Bruno Haible  <bruno@clisp.org>
37543         mkstemp: Move AC_LIBOBJ invocations to module description.
37544         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37545         gl_PREREQ_MKSTEMP invocations from here...
37546         * modules/mkstemp (configure.ac): ... to here.
37548 2011-05-21  Bruno Haible  <bruno@clisp.org>
37550         mkostemps: Move AC_LIBOBJ invocations to module description.
37551         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37552         here...
37553         * modules/mkostemps (configure.ac): ... to here.
37555 2011-05-21  Bruno Haible  <bruno@clisp.org>
37557         mkostemp: Move AC_LIBOBJ invocations to module description.
37558         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37559         gl_PREREQ_MKOSTEMP invocations from here...
37560         * modules/mkostemp (configure.ac): ... to here.
37562 2011-05-21  Bruno Haible  <bruno@clisp.org>
37564         mknod: Move AC_LIBOBJ invocations to module description.
37565         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37566         * modules/mknod (configure.ac): ... to here.
37568 2011-05-21  Bruno Haible  <bruno@clisp.org>
37570         mkfifoat: Move AC_LIBOBJ invocations to module description.
37571         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37572         here...
37573         * modules/mkfifoat (configure.ac): ... to here.
37575 2011-05-21  Bruno Haible  <bruno@clisp.org>
37577         mkfifo: Respect rules for use of AC_LIBOBJ.
37578         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37579         here...
37580         * modules/mkfifo (configure.ac): ... to here.
37582 2011-05-21  Bruno Haible  <bruno@clisp.org>
37584         mkdtemp: Move AC_LIBOBJ invocations to module description.
37585         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37586         invocations from here...
37587         * modules/mkdtemp (configure.ac): ... to here.
37589 2011-05-21  Bruno Haible  <bruno@clisp.org>
37591         mkdir: Move AC_LIBOBJ invocations to module description.
37592         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37593         * modules/mkdir (configure.ac): ... to here.
37595 2011-05-21  Bruno Haible  <bruno@clisp.org>
37597         memset: Move AC_LIBOBJ invocations to module description.
37598         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37600         here...
37601         * modules/memset (configure.ac): ... to here.
37603 2011-05-21  Bruno Haible  <bruno@clisp.org>
37605         memrchr: Move AC_LIBOBJ invocations to module description.
37606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37608         here...
37609         * modules/memrchr (configure.ac): ... to here.
37611 2011-05-21  Bruno Haible  <bruno@clisp.org>
37613         mempcpy: Move AC_LIBOBJ invocations to module description.
37614         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37616         here...
37617         * modules/mempcpy (configure.ac): ... to here.
37619 2011-05-21  Bruno Haible  <bruno@clisp.org>
37621         memmove: Move AC_LIBOBJ invocations to module description.
37622         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37624         here...
37625         * modules/memmove (configure.ac): ... to here.
37627 2011-05-21  Bruno Haible  <bruno@clisp.org>
37629         memmem*: Move AC_LIBOBJ invocations to module description.
37630         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37631         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37632         here...
37633         (gl_FUNC_MEMMEM): ... and here...
37634         * modules/memmem-simple (configure.ac): ... to here.
37635         * modules/memmem (configure.ac): ... and here.
37637 2011-05-21  Bruno Haible  <bruno@clisp.org>
37639         memcpy: Move AC_LIBOBJ invocations to module description.
37640         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37642         here...
37643         * modules/memcpy (configure.ac): ... to here.
37645 2011-05-21  Bruno Haible  <bruno@clisp.org>
37647         memcmp: Simplify autoconf macro.
37648         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37649         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37650         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37652 2011-05-21  Bruno Haible  <bruno@clisp.org>
37654         memcmp: Move AC_LIBOBJ invocations to module description.
37655         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37656         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37657         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37658         * modules/memcmp (configure.ac): ... to here.
37659         (Depends-on): Update conditions.
37661 2011-05-21  Bruno Haible  <bruno@clisp.org>
37663         memchr: Respect rules for use of AC_LIBOBJ.
37664         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37665         invocations from here...
37666         * modules/memchr (configure.ac): ... to here.
37668 2011-05-21  Bruno Haible  <bruno@clisp.org>
37670         mbtowc: Move AC_LIBOBJ invocations to module description.
37671         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37672         invocations from here...
37673         * modules/mbtowc (configure.ac): ... to here.
37675 2011-05-21  Bruno Haible  <bruno@clisp.org>
37677         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37678         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37679         gl_PREREQ_MBSRTOWCS invocations from here...
37680         * modules/mbsrtowcs (configure.ac): ... to here.
37682 2011-05-21  Bruno Haible  <bruno@clisp.org>
37684         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37685         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37686         gl_PREREQ_MBSNRTOWCS invocations from here...
37687         * modules/mbsnrtowcs (configure.ac): ... to here.
37689 2011-05-21  Bruno Haible  <bruno@clisp.org>
37691         mbsinit: Move AC_LIBOBJ invocations to module description.
37692         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37693         invocations from here...
37694         * modules/mbsinit (configure.ac): ... to here.
37696 2011-05-21  Bruno Haible  <bruno@clisp.org>
37698         mbrlen: Move AC_LIBOBJ invocations to module description.
37699         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37700         invocations from here...
37701         * modules/mbrlen (configure.ac): ... to here.
37703 2011-05-21  Bruno Haible  <bruno@clisp.org>
37705         mbrtowc: Respect rules for use of AC_LIBOBJ.
37706         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37707         invocations from here...
37708         * modules/mbrtowc (configure.ac): ... to here.
37710 2011-05-21  Bruno Haible  <bruno@clisp.org>
37712         malloc-*: Move AC_LIBOBJ invocations to module description.
37713         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37714         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37715         AC_LIBOBJ invocations from here...
37716         * modules/malloc-gnu (configure.ac): ... to here.
37717         * modules/malloc-posix (configure.ac): ... and here.
37719 2011-05-21  Bruno Haible  <bruno@clisp.org>
37721         lstat, openat: Respect rules for use of AC_LIBOBJ.
37722         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37723         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37724         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37725         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37726         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37727         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37728         here.
37729         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37731 2011-05-21  Bruno Haible  <bruno@clisp.org>
37733         lseek: Move AC_LIBOBJ invocations to module description.
37734         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37735         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37736         * modules/lseek (configure.ac): ... to here.
37738 2011-05-21  Bruno Haible  <bruno@clisp.org>
37740         linkat: Move AC_LIBOBJ invocations to module description.
37741         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37742         here...
37743         * modules/linkat (configure.ac): ... to here.
37745 2011-05-21  Bruno Haible  <bruno@clisp.org>
37747         link: Respect rules for use of AC_LIBOBJ.
37748         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37749         * modules/link (configure.ac): ... to here.
37751 2011-05-21  Bruno Haible  <bruno@clisp.org>
37753         lchown: Move AC_LIBOBJ invocations to module description.
37754         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37755         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37756         * modules/lchown (configure.ac): ... to here.
37758 2011-05-21  Bruno Haible  <bruno@clisp.org>
37760         iswctype: Move AC_LIBOBJ invocations to module description.
37761         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37762         here...
37763         * modules/iswctype (configure.ac): ... to here.
37765 2011-05-21  Bruno Haible  <bruno@clisp.org>
37767         iswblank: Move AC_LIBOBJ invocations to module description.
37768         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37769         here...
37770         * modules/iswblank (configure.ac): ... to here.
37772 2011-05-21  Bruno Haible  <bruno@clisp.org>
37774         atanl: Move AC_LIBOBJ invocations to module description.
37775         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37776         * modules/atanl (configure.ac): ... to here.
37778 2011-05-21  Bruno Haible  <bruno@clisp.org>
37780         acosl: Move AC_LIBOBJ invocations to module description.
37781         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37782         * modules/acosl (configure.ac): ... to here.
37784 2011-05-21  Bruno Haible  <bruno@clisp.org>
37786         asinl: Respect rules for use of AC_LIBOBJ.
37787         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37788         * modules/asinl (configure.ac): ... to here.
37790 2011-05-21  Bruno Haible  <bruno@clisp.org>
37792         tanl: Move AC_LIBOBJ invocations to module description.
37793         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37794         * modules/tanl (configure.ac): ... to here.
37796 2011-05-21  Bruno Haible  <bruno@clisp.org>
37798         cosl: Move AC_LIBOBJ invocations to module description.
37799         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37800         * modules/cosl (configure.ac): ... to here.
37802 2011-05-21  Bruno Haible  <bruno@clisp.org>
37804         sinl: Move AC_LIBOBJ invocations to module description.
37805         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37806         * modules/sinl (configure.ac): ... to here.
37808 2011-05-21  Bruno Haible  <bruno@clisp.org>
37810         logl: Move AC_LIBOBJ invocations to module description.
37811         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37812         * modules/logl (configure.ac): ... to here.
37814 2011-05-21  Bruno Haible  <bruno@clisp.org>
37816         expl: Move AC_LIBOBJ invocations to module description.
37817         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37818         * modules/expl (configure.ac): ... to here.
37820 2011-05-21  Bruno Haible  <bruno@clisp.org>
37822         roundl: Move AC_LIBOBJ invocations to module description.
37823         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37824         * modules/roundl (configure.ac): ... to here.
37826 2011-05-21  Bruno Haible  <bruno@clisp.org>
37828         round: Move AC_LIBOBJ invocations to module description.
37829         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37830         * modules/round (configure.ac): ... to here.
37832 2011-05-21  Bruno Haible  <bruno@clisp.org>
37834         roundf: Move AC_LIBOBJ invocations to module description.
37835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37836         * modules/roundf (configure.ac): ... to here.
37838 2011-05-21  Bruno Haible  <bruno@clisp.org>
37840         truncl: Move AC_LIBOBJ invocations to module description.
37841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37842         * modules/truncl (configure.ac): ... to here.
37844 2011-05-21  Bruno Haible  <bruno@clisp.org>
37846         trunc: Move AC_LIBOBJ invocations to module description.
37847         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37848         * modules/trunc (configure.ac): ... to here.
37850 2011-05-21  Bruno Haible  <bruno@clisp.org>
37852         truncf: Move AC_LIBOBJ invocations to module description.
37853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37854         * modules/truncf (configure.ac): ... to here.
37856 2011-05-21  Bruno Haible  <bruno@clisp.org>
37858         ceill: Move AC_LIBOBJ invocations to module description.
37859         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37860         * modules/ceill (configure.ac): ... to here.
37862 2011-05-21  Bruno Haible  <bruno@clisp.org>
37864         ceil: Move AC_LIBOBJ invocations to module description.
37865         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37866         * modules/ceil (configure.ac): ... to here.
37868 2011-05-21  Bruno Haible  <bruno@clisp.org>
37870         ceilf: Move AC_LIBOBJ invocations to module description.
37871         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37872         * modules/ceilf (configure.ac): ... to here.
37874 2011-05-21  Bruno Haible  <bruno@clisp.org>
37876         floorl: Respect rules for use of AC_LIBOBJ.
37877         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37878         * modules/floorl (configure.ac): ... to here.
37880 2011-05-21  Bruno Haible  <bruno@clisp.org>
37882         floor: Respect rules for use of AC_LIBOBJ.
37883         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37884         * modules/floor (configure.ac): ... to here.
37886 2011-05-21  Bruno Haible  <bruno@clisp.org>
37888         floorf: Move AC_LIBOBJ invocations to module description.
37889         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37890         * modules/floorf (configure.ac): ... to here.
37892 2011-05-20  Bruno Haible  <bruno@clisp.org>
37894         sqrtl: Respect rules for use of AC_LIBOBJ.
37895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37896         * modules/sqrtl (configure.ac): ... to here.
37898 2011-05-20  Bruno Haible  <bruno@clisp.org>
37900         ldexpl: Respect rules for use of AC_LIBOBJ.
37901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37902         * modules/ldexpl (configure.ac): ... to here.
37904 2011-05-20  Bruno Haible  <bruno@clisp.org>
37906         frexpl*: Respect rules for use of AC_LIBOBJ.
37907         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37908         invocation from here...
37909         * modules/frexpl (configure.ac): ... to here.
37910         * modules/frexpl-nolibm (configure.ac): ... and here.
37912 2011-05-20  Bruno Haible  <bruno@clisp.org>
37914         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37915         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37916         invocation from here...
37917         * modules/frexp (configure.ac): ... to here.
37918         * modules/frexp-nolibm (configure.ac): ... and here.
37920 2011-05-20  Bruno Haible  <bruno@clisp.org>
37922         isnan: Respect rules for use of AC_LIBOBJ.
37923         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37924         invocations here.
37925         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37926         REPLACE_ISNAN.
37927         * modules/isnand (configure.ac): Likewise.
37928         * modules/isnanl (configure.ac): Likewise.
37930 2011-05-20  Bruno Haible  <bruno@clisp.org>
37932         isnanl*: Respect rules for use of AC_LIBOBJ.
37933         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37934         invocation from here...
37935         * modules/isnanl (configure.ac): ... to here.
37936         * modules/isnanl-nolibm (configure.ac): ... and here.
37938 2011-05-20  Bruno Haible  <bruno@clisp.org>
37940         isnand*: Move AC_LIBOBJ invocations to module description.
37941         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37942         invocation from here...
37943         * modules/isnand (configure.ac): ... to here.
37944         * modules/isnand-nolibm (configure.ac): ... and here.
37946 2011-05-20  Bruno Haible  <bruno@clisp.org>
37948         isnanf*: Move AC_LIBOBJ invocations to module description.
37949         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37950         invocation from here...
37951         * modules/isnanf (configure.ac): ... to here.
37952         * modules/isnanf-nolibm (configure.ac): ... and here.
37954 2011-05-20  Bruno Haible  <bruno@clisp.org>
37956         isnan*: Separate the AC_LIBOBJ invocations.
37957         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37958         AC_LIBOBJ invocation.
37959         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37960         here.
37961         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37962         AC_LIBOBJ invocation.
37963         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37964         here.
37965         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37966         AC_LIBOBJ invocation.
37967         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37968         here.
37969         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37971 2011-05-08  Bruno Haible  <bruno@clisp.org>
37973         isinf: Move AC_LIBOBJ invocations to module description.
37974         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37975         * modules/isinf (configure.ac): ... to here.
37977 2011-05-08  Bruno Haible  <bruno@clisp.org>
37979         isfinite: Move AC_LIBOBJ invocations to module description.
37980         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37981         * modules/isfinite (configure.ac): ... to here.
37983 2011-05-08  Bruno Haible  <bruno@clisp.org>
37985         isblank: Move AC_LIBOBJ invocations to module description.
37986         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37987         here...
37988         * modules/isblank (configure.ac): ... to here.
37990 2011-05-08  Bruno Haible  <bruno@clisp.org>
37992         isapipe: Move AC_LIBOBJ invocations to module description.
37993         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37994         gl_PREREQ_ISAPIPE invocations from here...
37995         * modules/isapipe (configure.ac): ... to here.
37996         (Depends-on): Update condition.
37998 2011-05-08  Bruno Haible  <bruno@clisp.org>
38000         ioctl: Move AC_LIBOBJ invocations to module description.
38001         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
38002         invocations from here...
38003         * modules/ioctl (configure.ac): ... to here.
38004         (Depends-on): Update condition.
38006 2011-05-08  Bruno Haible  <bruno@clisp.org>
38008         imaxdiv: Move AC_LIBOBJ invocations to module description.
38009         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
38010         invocations from here...
38011         * modules/imaxdiv (configure.ac): ... to here.
38013 2011-05-08  Bruno Haible  <bruno@clisp.org>
38015         imaxabs: Move AC_LIBOBJ invocations to module description.
38016         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
38017         invocations from here...
38018         * modules/imaxabs (configure.ac): ... to here.
38020 2011-05-08  Bruno Haible  <bruno@clisp.org>
38022         getaddrinfo: Move AC_LIBOBJ invocations to module description.
38023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
38024         AC_LIBOBJ invocations from here...
38025         * modules/getaddrinfo (configure.ac): ... to here.
38026         (Depends-on): Add conditions.
38028 2011-05-08  Bruno Haible  <bruno@clisp.org>
38030         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
38031         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
38032         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
38033         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
38034         (gl_PREREQ_INET_PTON): ... from here.
38035         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
38036         gl_PREREQ_INET_PTON here.
38037         (Depends-on): Update condition.
38039 2011-05-08  Bruno Haible  <bruno@clisp.org>
38041         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
38042         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
38043         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
38044         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
38045         (gl_PREREQ_INET_NTOP): ... from here.
38046         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
38047         gl_PREREQ_INET_NTOP here.
38048         (Depends-on): Update condition.
38050 2011-05-08  Bruno Haible  <bruno@clisp.org>
38052         iconv_open: Move AC_LIBOBJ invocations to module description.
38053         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
38054         AC_LIBOBJ invocations from here...
38055         * modules/iconv_open (configure.ac): ... to here.
38057 2011-05-08  Bruno Haible  <bruno@clisp.org>
38059         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
38060         If module 'iconv_open' is among the main modules and module
38061         'iconv_open-utf' is among the tests dependencies, then
38062         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
38063         return the special iconv_t values. Therefore iconv() and iconv_close()
38064         must support these special iconv_t values, already in lib, not only in
38065         tests.
38066         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
38067         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
38068         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
38069         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
38070         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
38071         (Depends-on): Add the dependencies of iconv_open-utf.
38072         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
38073         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
38074         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
38076 2011-05-08  Bruno Haible  <bruno@clisp.org>
38078         group-member: Move AC_LIBOBJ invocations to module description.
38079         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
38080         gl_PREREQ_GROUP_MEMBER invocations from here...
38081         * modules/group-member (configure.ac): ... to here.
38083 2011-05-08  Bruno Haible  <bruno@clisp.org>
38085         grantpt: Move AC_LIBOBJ invocations to module description.
38086         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
38087         invocations from here...
38088         * modules/grantpt (configure.ac): ... to here.
38090 2011-05-08  Bruno Haible  <bruno@clisp.org>
38092         glob: Move AC_LIBOBJ invocations to module description.
38093         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
38094         from here...
38095         * modules/glob (configure.ac): ... to here.
38097 2011-05-08  Bruno Haible  <bruno@clisp.org>
38099         getusershell: Move AC_LIBOBJ invocations to module description.
38100         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
38101         Move AC_LIBOBJ invocation from here...
38102         * modules/getusershell (configure.ac): ... to here.
38103         (Depends-on): Update condition.
38105 2011-05-08  Bruno Haible  <bruno@clisp.org>
38107         gettimeofday: Move AC_LIBOBJ invocations to module description.
38108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38109         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
38110         gl_PREREQ_GETTIMEOFDAY invocations from here...
38111         * modules/gettimeofday (configure.ac): ... to here.
38113 2011-05-08  Bruno Haible  <bruno@clisp.org>
38115         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
38116         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
38117         just gl_FUNC_TZSET.
38118         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
38119         (gl_FUNC_TZSET_CLOBBER): Remove actions.
38120         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
38121         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
38123 2011-05-08  Bruno Haible  <bruno@clisp.org>
38125         getsubopt: Move AC_LIBOBJ invocations to module description.
38126         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
38127         gl_PREREQ_GETSUBOPT invocations from here...
38128         * modules/getsubopt (configure.ac): ... to here.
38130 2011-05-08  Bruno Haible  <bruno@clisp.org>
38132         getpass-gnu: Move AC_LIBOBJ invocations to module description.
38133         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
38134         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
38135         * modules/getpass-gnu (configure.ac): ... to here.
38137 2011-05-08  Bruno Haible  <bruno@clisp.org>
38139         getpass: Move AC_LIBOBJ invocations to module description.
38140         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
38141         gl_PREREQ_GETPASS invocations from here...
38142         * modules/getpass (configure.ac): ... to here.
38144 2011-05-08  Bruno Haible  <bruno@clisp.org>
38146         getpagesize: Move AC_LIBOBJ invocations to module description.
38147         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
38148         from here...
38149         * modules/getpagesize (configure.ac): ... to here.
38151 2011-05-08  Bruno Haible  <bruno@clisp.org>
38153         getopt: Move AC_LIBOBJ invocations to module description.
38154         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
38155         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
38156         invocations from here...
38157         * modules/getopt-gnu (configure.ac): ... to here.
38158         * modules/getopt-posix (configure.ac): ... and here.
38159         (Depends-on): Update condition.
38161 2011-05-08  Bruno Haible  <bruno@clisp.org>
38163         getopt, argp: Respect rules for use of AC_LIBOBJ.
38164         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
38165         (gl_REPLACE_GETOPT_ALWAYS): New macro.
38166         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
38167         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
38169 2011-05-08  Bruno Haible  <bruno@clisp.org>
38171         getlogin_r: Move AC_LIBOBJ invocations to module description.
38172         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
38173         gl_PREREQ_GETLOGIN_R invocations from here...
38174         * modules/getlogin_r (configure.ac): ... to here.
38176 2011-05-08  Bruno Haible  <bruno@clisp.org>
38178         getlogin: Move AC_LIBOBJ invocations to module description.
38179         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
38180         here...
38181         * modules/getlogin (configure.ac): ... to here.
38183 2011-05-08  Bruno Haible  <bruno@clisp.org>
38185         getloadavg: Move AC_LIBOBJ invocations to module description.
38186         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
38187         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
38188         * modules/getloadavg (configure.ac): ... to here.
38190 2011-05-08  Bruno Haible  <bruno@clisp.org>
38192         gethrxtime: Move AC_LIBOBJ invocations to module description.
38193         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
38194         LIB_GETHRXTIME from here...
38195         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
38196         invocations from here...
38197         * modules/gethrxtime (configure.ac): ... to here.
38199 2011-05-08  Bruno Haible  <bruno@clisp.org>
38201         gethostname: Move AC_LIBOBJ invocations to module description.
38202         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
38203         gl_PREREQ_GETHOSTNAME invocations from here...
38204         * modules/gethostname (configure.ac): ... to here.
38206 2011-05-08  Bruno Haible  <bruno@clisp.org>
38208         getgroups: Move AC_LIBOBJ invocations to module description.
38209         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
38210         here...
38211         * modules/getgroups (configure.ac): ... to here.
38213 2011-05-08  Bruno Haible  <bruno@clisp.org>
38215         getdtablesize: Move AC_LIBOBJ invocations to module description.
38216         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
38217         invocation from here...
38218         * modules/getdtablesize (configure.ac): ... to here.
38220 2011-05-08  Bruno Haible  <bruno@clisp.org>
38222         getdomainname: Move AC_LIBOBJ invocations to module description.
38223         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
38224         gl_PREREQ_GETDOMAINNAME invocations from here...
38225         * modules/getdomainname (configure.ac): ... to here.
38227 2011-05-08  Bruno Haible  <bruno@clisp.org>
38229         getline: Move AC_LIBOBJ invocations to module description.
38230         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
38231         invocations from here...
38232         * modules/getline (configure.ac): ... to here.
38234 2011-05-08  Bruno Haible  <bruno@clisp.org>
38236         getline: Simplify.
38237         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
38238         It's already handled through the module dependency.
38240 2011-05-08  Bruno Haible  <bruno@clisp.org>
38242         getdelim: Move AC_LIBOBJ invocations to module description.
38243         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
38244         and gl_PREREQ_GETDELIM invocations from here...
38245         * modules/getdelim (configure.ac): ... to here.
38246         (Depends-on): Fix condition.
38248 2011-05-08  Bruno Haible  <bruno@clisp.org>
38250         getcwd: Move AC_LIBOBJ invocations to module description.
38251         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
38252         invocations from here...
38253         * modules/getcwd (configure.ac): ... to here.
38255 2011-05-08  Bruno Haible  <bruno@clisp.org>
38257         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
38258         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
38259         here...
38260         * modules/getcwd-lgpl (configure.ac): ... to here.
38262 2011-05-07  Bruno Haible  <bruno@clisp.org>
38264         crypto/gc: Move AC_LIBOBJ invocations to module description.
38265         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
38266         * modules/crypto/gc (configure.ac): ... to here.
38268 2011-05-07  Bruno Haible  <bruno@clisp.org>
38270         fwriting: Move AC_LIBOBJ invocations to module description.
38271         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
38272         here...
38273         * modules/fwriting (configure.ac): ... to here.
38275 2011-05-07  Bruno Haible  <bruno@clisp.org>
38277         fwritable: Move AC_LIBOBJ invocations to module description.
38278         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
38279         here...
38280         * modules/fwritable (configure.ac): ... to here.
38282 2011-05-07  Bruno Haible  <bruno@clisp.org>
38284         futimens: Move AC_LIBOBJ invocations to module description.
38285         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
38286         here...
38287         * modules/futimens (configure.ac): ... to here.
38289 2011-05-07  Bruno Haible  <bruno@clisp.org>
38291         ftruncate: Move AC_LIBOBJ invocations to module description.
38292         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
38293         gl_PREREQ_FTRUNCATE invocations from here...
38294         * modules/ftruncate (configure.ac): ... to here.
38296 2011-05-07  Bruno Haible  <bruno@clisp.org>
38298         fsync: Move AC_LIBOBJ invocations to module description.
38299         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
38300         invocations from here...
38301         * modules/fsync (configure.ac): ... to here.
38303 2011-05-07  Bruno Haible  <bruno@clisp.org>
38305         fsusage: Move AC_LIBOBJ invocations to module description.
38306         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
38307         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
38308         * modules/fsusage (configure.ac): ... to here.
38310 2011-05-07  Bruno Haible  <bruno@clisp.org>
38312         freopen: Move AC_LIBOBJ invocations to module description.
38313         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
38314         invocations from here...
38315         * modules/freopen (configure.ac): ... to here.
38317 2011-05-07  Bruno Haible  <bruno@clisp.org>
38319         free: Move AC_LIBOBJ invocations to module description.
38320         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
38321         invocations from here...
38322         * modules/free (configure.ac): ... to here.
38324 2011-05-07  Bruno Haible  <bruno@clisp.org>
38326         freadable: Move AC_LIBOBJ invocations to module description.
38327         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
38328         here...
38329         * modules/freadable (configure.ac): ... to here.
38331 2011-05-07  Bruno Haible  <bruno@clisp.org>
38333         fpurge: Move AC_LIBOBJ invocations to module description.
38334         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
38335         invocations from here...
38336         * modules/fpurge (configure.ac): ... to here.
38338 2011-05-07  Bruno Haible  <bruno@clisp.org>
38340         fpending: Move AC_LIBOBJ invocations to module description.
38341         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
38342         gl_FUNC_FPENDING.
38343         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
38344         invocations from here...
38345         * modules/fpending (configure.ac): ... to here.
38347 2011-05-07  Bruno Haible  <bruno@clisp.org>
38349         fopen: Move AC_LIBOBJ invocations to module description.
38350         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
38351         invocations from here...
38352         * modules/fopen (configure.ac): ... to here.
38354 2011-05-07  Bruno Haible  <bruno@clisp.org>
38356         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38357         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38358         gl_FUNC_FNMATCH_POSIX.
38359         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38360         invocations from here...
38361         * modules/fnmatch (configure.ac): ... to here.
38362         * modules/fnmatch-gnu (configure.ac): ... and here.
38364 2011-05-07  Bruno Haible  <bruno@clisp.org>
38366         flock: Move AC_LIBOBJ invocations to module description.
38367         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38368         invocations from here...
38369         * modules/flock (configure.ac): ... to here.
38371 2011-05-07  Bruno Haible  <bruno@clisp.org>
38373         fileblocks: Move AC_LIBOBJ invocations to module description.
38374         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38375         gl_PREREQ_FILEBLOCKS invocations from here...
38376         * modules/fileblocks (configure.ac): ... to here.
38378 2011-05-06  Bruno Haible  <bruno@clisp.org>
38380         fflush: Move AC_LIBOBJ invocations to module description.
38381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38382         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38383         invocations from here...
38384         * modules/fflush (configure.ac): ... to here.
38386 2011-05-06  Bruno Haible  <bruno@clisp.org>
38388         fdopendir: Move AC_LIBOBJ invocations to module description.
38389         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38390         here...
38391         * modules/fdopendir (configure.ac): ... to here.
38392         (Depends-on): Improve conditions.
38394 2011-05-06  Bruno Haible  <bruno@clisp.org>
38396         _Exit: Move AC_LIBOBJ invocations to module description.
38397         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38398         invocations from here...
38399         * modules/_Exit (configure.ac): ... to here.
38401 2011-05-21  Bruno Haible  <bruno@clisp.org>
38403         euidaccess: Respect rules for use of AC_LIBOBJ.
38404         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38406         from here...
38407         * modules/euidaccess (configure.ac): ... to here.
38409 2011-05-06  Bruno Haible  <bruno@clisp.org>
38411         error: Move AC_LIBOBJ invocations to module description.
38412         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38413         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38414         invocations from here...
38415         * modules/error (configure.ac): ... to here.
38417 2011-05-06  Bruno Haible  <bruno@clisp.org>
38419         duplocale: Move AC_LIBOBJ invocations to module description.
38420         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38421         gl_PREREQ_DUPLOCALE invocations from here...
38422         * modules/duplocale (configure.ac): ... to here.
38424 2011-05-05  Bruno Haible  <bruno@clisp.org>
38426         dirfd: Move AC_LIBOBJ invocations to module description.
38427         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38428         gl_FUNC_DIRFD.
38429         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38430         here...
38431         * modules/dirfd (configure.ac): ... to here.
38432         (Depends-on): Fix condition.
38434 2011-05-05  Bruno Haible  <bruno@clisp.org>
38436         chown: Respect rules for use of AC_LIBOBJ.
38437         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38438         * modules/chown (configure.ac): ... to here.
38440 2011-05-05  Bruno Haible  <bruno@clisp.org>
38442         chdir-long: Move AC_LIBOBJ invocations to module description.
38443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38444         gl_PREREQ_CHDIR_LONG invocations from here...
38445         * modules/chdir-long (configure.ac): ... to here.
38447 2011-05-05  Bruno Haible  <bruno@clisp.org>
38449         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38450         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38451         from here...
38452         * modules/canonicalize-lgpl (configure.ac): ... to here.
38454 2011-05-05  Bruno Haible  <bruno@clisp.org>
38456         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38457         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38458         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38459         REPLACE_CALLOC.
38460         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38461         * modules/calloc-gnu (configure.ac): Likewise.
38463 2011-05-05  Bruno Haible  <bruno@clisp.org>
38465         btowc: Move AC_LIBOBJ invocations to module description.
38466         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38467         invocations from here...
38468         * modules/btowc (configure.ac): ... to here.
38470 2011-05-21  Bruno Haible  <bruno@clisp.org>
38472         atexit: Move AC_LIBOBJ invocations to module description.
38473         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38475         here...
38476         * modules/atexit (configure.ac): ... to here.
38478 2011-05-05  Bruno Haible  <bruno@clisp.org>
38480         atoll: Move AC_LIBOBJ invocations to module description.
38481         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38482         invocations from here...
38483         * modules/atoll (configure.ac): ... to here.
38485 2011-05-05  Bruno Haible  <bruno@clisp.org>
38487         argz: Move AC_LIBOBJ invocations to module description.
38488         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38489         * modules/argz (configure.ac): ... to here.
38491 2011-05-05  Bruno Haible  <bruno@clisp.org>
38493         alphasort: Move AC_LIBOBJ invocations to module description.
38494         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38495         gl_PREREQ_ALPHASORT invocations from here...
38496         * modules/alphasort (configure.ac): ... to here.
38498 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38500         verify: new macro verify_expr; verify_true deprecated
38501         * NEWS: Mention this.
38502         * doc/verify.texi (Compile-time Assertions): Document this.
38503         * lib/verify.h (verify_true): Deprecate.
38504         (verify_expr): New macro.
38505         * tests/test-verify.c (function): Test verify_expr.
38507 2011-06-14  Jim Meyering  <meyering@redhat.com>
38509         init.sh: give more portable redirection-related advice in a comment
38510         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38511         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38512         for lots of discussion.  Stefano Lattarini suggested the solution
38513         of putting "9>&2" after the command.  Reported by Bruno Haible.
38515 2011-06-13  Bruno Haible  <bruno@clisp.org>
38517         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38518         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38519         'none'.
38521 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38523         ftoastr: use strtof only if HAVE_STRTOF
38524         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38525         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38526         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38527         * modules/ftoastr (configure.ac): Check for strtof.
38529 2011-06-13  Bruno Haible  <bruno@clisp.org>
38531         gnulib-tool: Addendum to 2011-06-08 commit.
38532         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38533         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38535 2011-06-13  Bruno Haible  <bruno@clisp.org>
38537         fseeko: Provide a non-inline replacement of fseek().
38538         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38539         * modules/fseeko (Depends-on): Add fseek.
38540         * modules/fseek (License): Change to LGPLv2+.
38542 2011-06-13  Bruno Haible  <bruno@clisp.org>
38544         ftello: Provide a non-inline replacement of ftell().
38545         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38546         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38547         not have ftello() (such as on mingw).
38548         * modules/ftello (Depends-on): Add ftell.
38549         * modules/ftell (License): Change to LGPLv2+.
38551 2011-05-07  Bruno Haible  <bruno@clisp.org>
38553         ftell: Move AC_LIBOBJ invocations to module description.
38554         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38555         * modules/ftell (configure.ac): ... to here.
38557 2011-05-07  Bruno Haible  <bruno@clisp.org>
38559         ftello: Respect rules for use of AC_LIBOBJ.
38560         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38561         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38562         here...
38563         * modules/ftello (configure.ac): ... to here.
38565 2011-05-07  Bruno Haible  <bruno@clisp.org>
38567         fseeko: Simplify.
38568         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38569         (gl_FUNC_FSEEKO): Inline it here.
38571 2011-05-07  Bruno Haible  <bruno@clisp.org>
38573         fseek: Move AC_LIBOBJ invocations to module description.
38574         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38575         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38576         * modules/fseek (configure.ac): ... to here.
38578 2011-05-07  Bruno Haible  <bruno@clisp.org>
38580         fseek: Respect rules for use of AC_LIBOBJ.
38581         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38582         here...
38583         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38585 2011-05-07  Bruno Haible  <bruno@clisp.org>
38587         fseeko: Respect rules for use of AC_LIBOBJ.
38588         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38589         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38590         here...
38591         * modules/fseeko (configure.ac): ... to here.
38593 2011-06-13  Bruno Haible  <bruno@clisp.org>
38595         gnulib-tool: Allow comments in the 'Depends-on' section.
38596         * doc/gnulib.texi (Module description): Mention comment syntax in the
38597         Depends-on section.
38598         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38600 2011-06-13  Bruno Haible  <bruno@clisp.org>
38602         file-set.h: guard __attibute__ use, now that it's not always defined
38603         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38604         versions that support it.  This fixes a coreutils build failure with
38605         the vendor cc on HP-UX 11.31.
38607 2011-06-12  Bruno Haible  <bruno@clisp.org>
38609         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38610         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38611         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38612         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38613         (acl, aclsort): New declarations.
38614         (aclv_nontrivial): New declaration.
38615         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38616         (file_has_acl): Read also the second kind of HP-UX ACLs.
38617         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38618         kind of HP-UX ACLs if the first kind fails.
38619         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38620         second kind of HP-UX ACLs.
38621         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38622         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38623         agree.
38624         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38625         hpuxjfs.
38626         Handle hpuxjfs.
38627         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38628         hpuxjfs.
38629         Handle hpuxjfs.
38630         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38631         (func_test_same_acls): Use both lsacl and getacl.
38632         Handle hpuxjfs.
38633         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38634         (func_test_same_acls): Use both lsacl and getacl.
38635         Handle hpuxjfs.
38637 2011-06-12  Bruno Haible  <bruno@clisp.org>
38639         acl: Complete the 2010-08-10 fix.
38640         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38641         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38642         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38643         explicitly.
38644         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38645         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38647 2011-06-12  Bruno Haible  <bruno@clisp.org>
38649         spawn-pipe tests: Comments.
38650         * tests/test-spawn-pipe-child.c (main): Update comment.
38651         Reported by James Youngman <jay@gnu.org>.
38653 2011-06-11  James Youngman  <jay@gnu.org>
38655         New module 'stat-size'.
38656         * modules/stat-size: New module.  Provides macros for accessing
38657         file size information in instances of struct stat.  Depends on the
38658         fileblocks module because it calls st_blocks.
38659         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38660         * doc/gnulib.texi: Include stat-size.texi.
38661         * doc/stat-size.texi: Documentation for this module.
38662         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38663         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38664         AC_STRUCT_ST_BLOCKS.
38666 2011-06-09  Bruno Haible  <bruno@clisp.org>
38668         thread: Support pthreads-win32.
38669         * lib/glthread/thread.h (gl_thread_self): Define differently on
38670         pthreads-win32.
38671         (gl_null_thread): New declaration.
38672         (gl_thread_self_pointer): New macro.
38673         * lib/glthread/thread.c (gl_null_thread): New constant.
38674         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38675         gl_thread_self.
38676         * tests/test-tls.c: Likewise.
38677         Suggested by Paul Eggert. Reported by Eric Blake.
38679 2011-06-09  Bruno Haible  <bruno@clisp.org>
38681         thread: Fix confusion between NULL and 0.
38682         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38683         Reported by Paul Eggert.
38685 2011-06-09  Bruno Haible  <bruno@clisp.org>
38687         spawn-pipe tests: Avoid test failure on HP-UX 11.
38688         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38689         is closed.
38691 2011-06-09  Bruno Haible  <bruno@clisp.org>
38693         acl tests: Fix compilation error on HP-UX 11.
38694         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38696 2011-06-09  Bruno Haible  <bruno@clisp.org>
38698         rmdir: Avoid test failure on HP-UX 10.20.
38699         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38700         EEXIST.
38702 2011-06-08  Eric Blake  <eblake@redhat.com>
38704         perror: fix test on mingw
38705         * modules/perror-tests (Depends-on): Add dup2.
38707         strerror_r-posix: fix on MacOS
38708         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38709         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38710         logic bug.
38711         * lib/strerror_r.c (strerror_r): Fix the bug.
38712         * lib/strerror.c (strerror): Likewise.
38713         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38714         problem.
38715         * doc/posix-functions/strerror.texi (strerror): Likewise.
38716         * doc/posix-functions/perror.texi (perror): Likewise.
38717         * tests/test-strerror.c (main): Enhance test.
38718         * tests/test-strerror_r.c (main): Likewise.
38720 2011-06-08  Bruno Haible  <bruno@clisp.org>
38722         gnulib-tool: Better isolation between different gnulib-tool invocations.
38723         * gnulib-tool: New option --witness-c-macro.
38724         (witness_c_macro): New variable.
38725         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38726         AM_CPPFLAGS define it as a C macro.
38727         (func_emit_tests_Makefile_am): Likewise.
38728         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38729         read it from there.
38730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38731         m4_define, not AC_DEFUN.
38732         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38733         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38734         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38735         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38736         s|...|...|, to substitute the values of the GNULIB_* module indicator
38737         variables.
38738         * modules/dirent (Makefile.am): Likewise.
38739         * modules/fcntl-h (Makefile.am): Likewise.
38740         * modules/iconv-h (Makefile.am): Likewise.
38741         * modules/langinfo (Makefile.am): Likewise.
38742         * modules/locale (Makefile.am): Likewise.
38743         * modules/math (Makefile.am): Likewise.
38744         * modules/netdb (Makefile.am): Likewise.
38745         * modules/poll-h (Makefile.am): Likewise.
38746         * modules/pty (Makefile.am): Likewise.
38747         * modules/search (Makefile.am): Likewise.
38748         * modules/signal (Makefile.am): Likewise.
38749         * modules/spawn (Makefile.am): Likewise.
38750         * modules/stdio (Makefile.am): Likewise.
38751         * modules/stdlib (Makefile.am): Likewise.
38752         * modules/string (Makefile.am): Likewise.
38753         * modules/sys_ioctl (Makefile.am): Likewise.
38754         * modules/sys_select (Makefile.am): Likewise.
38755         * modules/sys_socket (Makefile.am): Likewise.
38756         * modules/sys_stat (Makefile.am): Likewise.
38757         * modules/sys_times (Makefile.am): Likewise.
38758         * modules/sys_utsname (Makefile.am): Likewise.
38759         * modules/sys_wait (Makefile.am): Likewise.
38760         * modules/termios (Makefile.am): Likewise.
38761         * modules/time (Makefile.am): Likewise.
38762         * modules/unistd (Makefile.am): Likewise.
38763         * modules/wchar (Makefile.am): Likewise.
38765 2011-06-08  Eric Blake  <eblake@redhat.com>
38767         strerror: simplify replacement
38768         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38769         * modules/strerror (configure.ac): No prereqs needed here...
38770         * modules/strerror-override (configure.ac): ...but this needs it.
38771         (Files): Add file for needed prereq macro.
38773 2011-06-08  Bruno Haible  <bruno@clisp.org>
38775         strerror_r-posix: Tweaks.
38776         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38777         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38778         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38779         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38780         (gl_FUNC_STRERROR_R): ... to here.
38781         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38783 2011-06-07  Eric Blake  <eblake@redhat.com>
38785         perror: document fixed bugs
38786         * doc/posix-functions/perror.texi (perror): Document recent
38787         patches.
38789 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38791         stat-time: get_stat_birthtime failure is better-defined
38792         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38793         return a timestamp whose tv_sec and tv_nsec values are both -1.
38794         Previously, the spec said only that the tv_nsec value was negative.
38795         This upward-compatible change simplifies GNU tar a bit.
38797 2011-06-07  Eric Blake  <eblake@redhat.com>
38799         strerror_r-posix: work around cygwin 1.7.9
38800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38801         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38802         bug without replacing strerror_r.
38803         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38804         strerror_r is buggy, but without requiring strerror_r compilation.
38805         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38807         test-perror: relax test to ignore cygwin bug
38808         * tests/test-perror2.c (main): Relax test on requiring detection
38809         of stream errors, and use unbuffered stream.
38810         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38811         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38812         * doc/posix-functions/fputc.texi (fputc): Likewise.
38813         * doc/posix-functions/fputs.texi (fputs): Likewise.
38814         * doc/posix-functions/fputws.texi (fputws): Likewise.
38815         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38816         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38817         * doc/posix-functions/getopt.texi (getopt): Likewise.
38818         * doc/posix-functions/perror.texi (perror): Likewise.
38819         * doc/posix-functions/printf.texi (printf): Likewise.
38820         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38821         * doc/posix-functions/psignal.texi (psignal): Likewise.
38822         * doc/posix-functions/putc.texi (putc): Likewise.
38823         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38824         Likewise.
38825         * doc/posix-functions/putchar.texi (putchar): Likewise.
38826         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38827         Likewise.
38828         * doc/posix-functions/puts.texi (puts): Likewise.
38829         * doc/posix-functions/putwc.texi (putwc): Likewise.
38830         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38831         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38832         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38833         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38834         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38835         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38836         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38837         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38839 2011-05-22  Bruno Haible  <bruno@clisp.org>
38841         strerror: Move AC_LIBOBJ invocations to module description.
38842         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38843         gl_PREREQ_STRERROR invocations from here...
38844         * modules/strerror (configure.ac): ... to here.
38846 2011-05-21  Bruno Haible  <bruno@clisp.org>
38848         perror: Use common idiom.
38849         * modules/perror (configure.ac): Reorder statements.
38851 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38853         tests: fix usage message in 'mktempd_'
38854         * tests/init.sh (mktempd_): In the usage message, use literal
38855         'mktempd_', not '$ME' (which is even undefined), as the name of
38856         the subroutine.
38858 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38860         tests init: new function 'fatal_', for hard errors
38861         Before this patch, the only way offered by tests/init.sh to
38862         properly signal a hard error was the `framework_failure_'
38863         function.  But the error message issued by that function,
38864         as its name would suggest, refers to a set-up failure in the
38865         testsuite, while hard errors can obviously also be due to
38866         other reasons.  The best way to fix this inconsistency is to
38867         introduce a new function with a more general error message.
38868         * tests/init.sh (fatal_): New function.
38870 2011-06-06  Eric Blake  <eblake@redhat.com>
38872         canonicalize-lgpl: use common idiom
38873         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38874         over newer POSIX -Rf.
38875         Reported by Bruno Haible.
38877         canonicalize-lgpl: work around AIX realpath bug
38878         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38879         * doc/posix-functions/realpath.texi (realpath): Document it.
38880         Reported by Bruno Haible.
38882         strerror: work around FreeBSD bug
38883         * lib/strerror.c (strerror): Special case 0.
38884         Reported by Bruno Haible.
38886         strerror-override: avoid bloating errno module
38887         * modules/errno (Files, configure.ac): Move replacement strings...
38888         * modules/strerror-override: ...to new module.
38889         * modules/strerror (Depends-on): Add strerror-override.
38890         * modules/strerror_r-posix (Depends-on): Likewise.
38891         * MODULES.html.sh: Document new module.
38892         Reported by Bruno Haible.
38894 2011-06-06  Bruno Haible  <bruno@clisp.org>
38896         spawn-pipe tests: Rename program.
38897         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38898         * tests/test-spawn-pipe-child.c: Update comment.
38899         * tests/test-spawn-pipe.sh: Update.
38900         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38902         spawn-pipe tests: Link the child program only against libc.
38903         * tests/test-spawn-pipe-child.c: New file, extracted from
38904         tests/test-spawn-pipe.c.
38905         (main): Expect only one argument.
38906         (is_open): New function, copied from tests/test-pipe.c.
38907         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38908         (child_main): Remove function.
38909         (test_pipe): Pass only one argument to the child program.
38910         (main): Remove child process code. Expect the child program's name as
38911         first argument.
38912         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38913         argument.
38914         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38915         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38916         test-spawn-pipe-child against no libraries.
38918 2011-06-06  Bruno Haible  <bruno@clisp.org>
38920         careadlinkat: Avoid mismatch between ssize_t and int.
38921         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38922         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38924 2011-06-06  Jim Meyering  <meyering@redhat.com>
38926         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38927         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38928         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38930 2011-06-05  Bruno Haible  <bruno@clisp.org>
38932         ansi-c++-opt: Interoperability with libtool.
38933         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38934         set the variable to "no", not to ":".
38935         * NEWS: Mention the change.
38937 2011-06-05  Bruno Haible  <bruno@clisp.org>
38939         acl: Fix test failure on AIX 7.
38940         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38941         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38943 2011-06-05  Bruno Haible  <bruno@clisp.org>
38945         pipe-filter-ii: Fix test failure on AIX and IRIX.
38946         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38947         with EAGAIN, retry with a smaller buffer size.
38949 2011-06-05  Bruno Haible  <bruno@clisp.org>
38951         localename: Fix link dependencies.
38952         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38953         * modules/localename-tests (Makefile.am): Link test-localename with
38954         $(LIBTHREAD).
38956 2011-06-05  Bruno Haible  <bruno@clisp.org>
38958         error: Avoid gcc warning.
38959         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38961 2011-06-05  Bruno Haible  <bruno@clisp.org>
38963         unsetenv: Avoid gcc warning.
38964         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38966 2011-06-05  Bruno Haible  <bruno@clisp.org>
38968         setenv: Avoid gcc warning.
38969         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38971 2011-06-05  Bruno Haible  <bruno@clisp.org>
38973         sys_select: Ensure memset is declared also on AIX 7.
38974         * lib/sys_select.in.h: Include <string.h> also on AIX.
38975         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38976         self-contained also on AIX 7.1.
38978 2011-06-04  Jim Meyering  <meyering@redhat.com>
38980         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38981         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38982         function name, "error".
38983         (_gl_translatable_diag_func_re): New configurable variable.
38985 2011-06-04  Bruno Haible  <bruno@clisp.org>
38987         getopt: Avoid gcc warning.
38988         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38990 2011-06-04  Bruno Haible  <bruno@clisp.org>
38992         strerror_r: Fix comments.
38993         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38994         commit.
38996 2011-06-04  Bruno Haible  <bruno@clisp.org>
38998         perror: Fix compilation error.
38999         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
39000         Undefine fprintf, not sprintf.
39001         * modules/perror (Depends-on): Remove intprops, verify.
39003 2011-06-04  Bruno Haible  <bruno@clisp.org>
39005         setlocale: Enable replacement on Cygwin 1.5.
39006         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
39007         Cygwin 1.5.x.
39008         * doc/posix-functions/setlocale.texi: Mention that the problem with the
39009         LC_CTYPE category also exists on Cygwin 1.5.x.
39011 2011-06-04  Bruno Haible  <bruno@clisp.org>
39013         strerror-override: Don't disable symbol renamings.
39014         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
39015         * lib/strerror-override.c: Include config.h.
39016         (strerror_override): Don't undefine.
39018 2011-06-03  Bruno Haible  <bruno@clisp.org>
39020         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
39021         * lib/localename.h: Update copyright header.
39022         * lib/localename.c: Likewise.
39023         * lib/relocatable.h: Likewise.
39024         * lib/relocatable.c: Likewise.
39026 2011-06-02  Bruno Haible  <bruno@clisp.org>
39028         doc: Fix a module name.
39029         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
39031 2011-06-02  Bruno Haible  <bruno@clisp.org>
39033         pipe2: Remove dependency on 'nonblocking' module.
39034         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
39035         O_NONBLOCK is defined by gnulib.
39036         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
39037         is zero.
39038         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
39039         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
39040         defined by gnulib.
39041         (get_nonblocking_flag): New function.
39042         (main): Test O_NONBLOCK flag only if it is nonzero.
39043         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
39045 2011-06-03  Jim Meyering  <meyering@redhat.com>
39047         maint: three new prohibit-header-without-use rules
39048         Prohibit use of cloexec.h, posixver.h, same.h without use.
39049         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
39050         (sc_prohibit_posixver_without_use): Likewise.
39051         (sc_prohibit_same_without_use): Likewise.
39053 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39055         allocator: 'die' routine is now given requested size
39056         * lib/allocator.h (struct allocator.die): New size arg.
39057         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
39058         If the actual problem is an ssize_t limitation, not a size_t or
39059         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
39061 2011-06-01  Eric Blake  <eblake@redhat.com>
39063         strerror: drop strerror_r dependency
39064         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
39065         * lib/strerror-override.c (strerror_override): ...to new file.
39066         * lib/strerror-override.h: Add prototype.
39067         * lib/strerror-impl.h: Delete.
39068         * lib/strerror.c (strerror): New implementation.
39069         * modules/errno (Files): Add new files.
39070         (configure.ac): Compile new file as appropriate.
39071         * modules/strerror (Files): Drop unused file.
39072         (Depends-on): Drop strerror_r-posix.
39073         * MODULES.html.sh: Document strerror_r-posix.
39074         Requested by Sam Steingold.
39076         perror: call strerror_r directly
39077         * modules/perror (Files): Drop strerror-impl.h.
39078         * lib/perror.c (perror): Use our own stack buffer, rather than
39079         calling a wrapper that uses static storage.
39080         * doc/posix-functions/perror.texi (perror): Document a limitation
39081         of our replacement.
39083         strerror_r: fix includes for FreeBSD
39084         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
39085         since we use abort on some platforms.
39086         Reported by Matthias Bolte.
39088 2011-05-31  Bruno Haible  <bruno@clisp.org>
39090         Fix link errors in tests: openat-die uses gettext-h.
39091         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
39092         against $(LIBINTL).
39093         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
39094         against $(LIBINTL).
39095         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
39096         $(LIBINTL).
39097         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
39098         against $(LIBINTL).
39099         * modules/linkat-tests (Makefile.am): Link test-linkat against
39100         $(LIBINTL).
39101         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
39102         $(LIBINTL).
39103         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
39104         against $(LIBINTL).
39105         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
39106         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
39107         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
39108         $(LIBINTL).
39109         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
39110         $(LIBINTL).
39111         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
39112         $(LIBINTL).
39113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39115 2011-05-31  Bruno Haible  <bruno@clisp.org>
39117         Fix link errors in tests: wait-process uses gettext-h.
39118         * modules/nonblocking-pipe-tests (Makefile.am): Set
39119         test_nonblocking_pipe_main_LDADD.
39120         * modules/nonblocking-socket-tests (Makefile.am): Link
39121         test-nonblocking-socket-main against $(LIBINTL).
39122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39124 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39126         assert-h: work around 'verify' incompatibility
39127         * lib/verify.h: Use @...@ directives, not ifdef.
39128         * modules/assert-h (assert.h): Implement the directives.
39129         (assert.h): Substitute the symbol-prefix more consistently.
39131 2011-05-29  Jim Meyering  <meyering@redhat.com>
39133         trim: remove three superfluous assignments
39134         * lib/trim.c (trim2): Remove three superfluous assignments
39135         and correct brace positioning.
39137 2011-05-29  Bruno Haible  <bruno@clisp.org>
39139         wctype-h: Avoid namespace pollution on Solaris 2.6.
39140         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
39141         identifiers.
39142         * doc/posix-headers/wctype.texi: Mention the problem.
39143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39145 2011-05-28  Jim Meyering  <meyering@redhat.com>
39147         parse-datetime.y: accommodate -Wstrict-overflow
39148         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
39149         placate -Wstrict-overflow.
39151         trim: avoid a warning from -O2 -Wstrict-overflow
39152         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
39154 2011-05-29  Bruno Haible  <bruno@clisp.org>
39156         gnulib-tool: Fix bug in yesterday's commit.
39157         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
39158         twice.
39160 2011-05-29  Bruno Haible  <bruno@clisp.org>
39162         Allow multiple gnulib generated include files to be combined.
39163         * gnulib-tool (func_compute_include_guard_prefix): New function.
39164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
39165         ${gl_include_guard_prefix} references.
39166         (func_import, func_create_testdir): Invoke
39167         func_compute_include_guard_prefix.
39168         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
39169         * lib/ctype.in.h: Likewise.
39170         * lib/dirent.in.h: Likewise.
39171         * lib/errno.in.h: Likewise.
39172         * lib/fcntl.in.h: Likewise.
39173         * lib/float.in.h: Likewise.
39174         * lib/getopt.in.h: Likewise.
39175         * lib/iconv.in.h: Likewise.
39176         * lib/langinfo.in.h: Likewise.
39177         * lib/locale.in.h: Likewise.
39178         * lib/math.in.h: Likewise.
39179         * lib/netdb.in.h: Likewise.
39180         * lib/netinet_in.in.h: Likewise.
39181         * lib/poll.in.h: Likewise.
39182         * lib/pthread.in.h: Likewise.
39183         * lib/pty.in.h: Likewise.
39184         * lib/sched.in.h: Likewise.
39185         * lib/se-selinux.in.h: Likewise.
39186         * lib/search.in.h: Likewise.
39187         * lib/signal.in.h: Likewise.
39188         * lib/spawn.in.h: Likewise.
39189         * lib/stdarg.in.h: Likewise.
39190         * lib/stddef.in.h: Likewise.
39191         * lib/stdint.in.h: Likewise.
39192         * lib/stdio.in.h: Likewise.
39193         * lib/stdlib.in.h: Likewise.
39194         * lib/string.in.h: Likewise.
39195         * lib/strings.in.h: Likewise.
39196         * lib/sys_file.in.h: Likewise.
39197         * lib/sys_ioctl.in.h: Likewise.
39198         * lib/sys_select.in.h: Likewise.
39199         * lib/sys_socket.in.h: Likewise.
39200         * lib/sys_stat.in.h: Likewise.
39201         * lib/sys_time.in.h: Likewise.
39202         * lib/sys_times.in.h: Likewise.
39203         * lib/sys_uio.in.h: Likewise.
39204         * lib/sys_utsname.in.h: Likewise.
39205         * lib/sys_wait.in.h: Likewise.
39206         * lib/sysexits.in.h: Likewise.
39207         * lib/termios.in.h: Likewise.
39208         * lib/time.in.h: Likewise.
39209         * lib/unistd.in.h: Likewise.
39210         * lib/wchar.in.h: Likewise.
39211         * lib/wctype.in.h: Likewise.
39212         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
39213         * modules/ctype (Makefile.am): Likewise.
39214         * modules/dirent (Makefile.am): Likewise.
39215         * modules/errno (Makefile.am): Likewise.
39216         * modules/fcntl-h (Makefile.am): Likewise.
39217         * modules/float (Makefile.am): Likewise.
39218         * modules/getopt-posix (Makefile.am): Likewise.
39219         * modules/iconv-h (Makefile.am): Likewise.
39220         * modules/langinfo (Makefile.am): Likewise.
39221         * modules/locale (Makefile.am): Likewise.
39222         * modules/math (Makefile.am): Likewise.
39223         * modules/netdb (Makefile.am): Likewise.
39224         * modules/netinet_in (Makefile.am): Likewise.
39225         * modules/poll-h (Makefile.am): Likewise.
39226         * modules/pthread (Makefile.am): Likewise.
39227         * modules/pty (Makefile.am): Likewise.
39228         * modules/sched (Makefile.am): Likewise.
39229         * modules/search (Makefile.am): Likewise.
39230         * modules/selinux-h (Makefile.am): Likewise.
39231         * modules/signal (Makefile.am): Likewise.
39232         * modules/spawn (Makefile.am): Likewise.
39233         * modules/stdarg (Makefile.am): Likewise.
39234         * modules/stddef (Makefile.am): Likewise.
39235         * modules/stdint (Makefile.am): Likewise.
39236         * modules/stdio (Makefile.am): Likewise.
39237         * modules/stdlib (Makefile.am): Likewise.
39238         * modules/string (Makefile.am): Likewise.
39239         * modules/strings (Makefile.am): Likewise.
39240         * modules/sys_file (Makefile.am): Likewise.
39241         * modules/sys_ioctl (Makefile.am): Likewise.
39242         * modules/sys_select (Makefile.am): Likewise.
39243         * modules/sys_socket (Makefile.am): Likewise.
39244         * modules/sys_stat (Makefile.am): Likewise.
39245         * modules/sys_time (Makefile.am): Likewise.
39246         * modules/sys_times (Makefile.am): Likewise.
39247         * modules/sys_uio (Makefile.am): Likewise.
39248         * modules/sys_utsname (Makefile.am): Likewise.
39249         * modules/sys_wait (Makefile.am): Likewise.
39250         * modules/sysexits (Makefile.am): Likewise.
39251         * modules/termios (Makefile.am): Likewise.
39252         * modules/time (Makefile.am): Likewise.
39253         * modules/unistd (Makefile.am): Likewise.
39254         * modules/wchar (Makefile.am): Likewise.
39255         * modules/wctype-h (Makefile.am): Likewise.
39256         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
39258 2011-05-29  Bruno Haible  <bruno@clisp.org>
39260         assert-h: Allow multiple gnulib generated replacements to coexist.
39261         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
39263 2011-05-29  Bruno Haible  <bruno@clisp.org>
39265         argp: Allow coexistence with strerror_r-posix module.
39266         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
39267         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
39268         by gnulib's <string.h> replacement), assume it has the POSIX signature,
39269         not the glibc signature.
39271 2011-05-28  Bruno Haible  <bruno@clisp.org>
39273         gnulib-tool: Alternative structure of testdirs, similar to --import.
39274         * gnulib-tool: New option --single-configure.
39275         (func_usage): Document it.
39276         (single_configure): New variable.
39277         (func_modules_transitive_closure_separately,
39278         func_modules_transitive_closure_separately,
39279         func_determine_use_libtests, func_modules_add_dummy_separately,
39280         func_modules_to_filelist_separately): New functions, extracted from
39281         func_import.
39282         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
39283         (func_import): Use the new functions.
39284         (func_create_testdir): Set final_modules. Handle $single_configure =
39285         true case.
39287 2011-05-28  Bruno Haible  <bruno@clisp.org>
39289         getloadavg: Remove an unreliable safety check.
39290         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
39291         getloadavg.c is in place.
39292         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
39293         Reported by Sam Steingold <sds@gnu.org>.
39295 2011-05-28  Bruno Haible  <bruno@clisp.org>
39297         doc: Cleanup yet another file produced by texinfo.tex.
39298         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
39300 2011-05-28  Bruno Haible  <bruno@clisp.org>
39302         Finish the conditional dependencies mechanism.
39303         * gnulib-tool: New option --no-conditional-dependencies.
39304         (func_usage): Document it. Don't mark --conditional-dependencies as
39305         experimental.
39306         (cond_dependencies): The possible values can now be true, false, empty.
39307         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
39308         (func_import): Store setting in gnulib-cache.m4 and read it from there.
39309         * doc/gnulib-tool.texi (Conditional dependencies): New section.
39311 2011-05-28  Bruno Haible  <bruno@clisp.org>
39313         doc: Use a recent texinfo.tex.
39314         * doc/Makefile (tex_opts): New variable.
39315         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
39317 2011-05-28  Jim Meyering  <meyering@redhat.com>
39319         intprops.h: adjust comment to match code change
39320         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
39321         only once, it *may* have side effects.  Also fix an unrelated typo.
39322         (_GL_INT_SIGNED): Likewise.
39324 2011-05-26  Simon Josefsson  <simon@josefsson.org>
39326         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
39328 2011-05-26  Bruno Haible  <bruno@clisp.org>
39330         mbsrchr: Avoid collision with system function on Interix.
39331         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
39332         Reported by Markus Duft <mduft@gentoo.org>.
39334 2011-05-15  James Youngman  <jay@gnu.org>
39336         getopt: for ambiguous options, enumerate the possibilities.
39337         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
39338         the ambiguous options when an ambiguous prefix is given. This was
39339         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
39340         glibc change was
39341         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
39343 2011-05-25  Eric Blake  <eblake@redhat.com>
39345         getcwd: work around mingw bug
39346         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
39347         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39348         Reported by Matthias Bolte.
39350 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
39352         test-intprops: disable -Wtype-limits diagnostics
39353         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
39354         diagnostics.  Otherwise, the integer overflow macros generate many
39355         diagnostics.  Reported by Jim Meyering in
39356         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39358         intprops: shorten, to pacify gcc -Woverlength-strings
39359         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39360         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39361         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39362         likely to run afoul of C compiler limits for string constant lengths.
39363         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39365 2011-05-24  Eric Blake  <eblake@redhat.com>
39367         docs: document recently fixed glibc printf bug
39368         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39369         * doc/posix-functions/printf.texi (printf): Likewise.
39370         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39371         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39373         closein-tests: convert to init.sh
39374         * modules/closein-tests (Files): Add init.sh
39375         * tests/test-closein.sh Use it.
39377         yesno-tests: convert to init.sh
39378         * modules/yesno-tests (Files): Add init.sh.
39379         * tests/test-yesno.sh: Use it.
39381         atexit-tests: ensure reliable exit status
39382         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39383         Reported by Bruno Haible.
39385 2011-05-24  Bruno Haible  <bruno@clisp.org>
39387         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39388         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39389         gl_PREREQ_STRERROR_R invocations from here...
39390         * modules/strerror_r-posix (configure.ac): ... to here.
39392 2011-05-24  Eric Blake  <eblake@redhat.com>
39394         strerror_r: fix missing header
39395         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39397         strerror_r: fix AIX test failures
39398         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39399         ERANGE failure.
39401         strerror_r: fix Solaris test failures
39402         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39403         failures.
39404         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39406         strerror_r: enforce POSIX recommendations
39407         * lib/strerror_r.c (safe_copy): New helper method.
39408         (strerror_r): Guarantee a non-empty string.
39409         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39410         recent POSIX rulings and to match our strerror guarantees.
39411         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39413 2011-05-24  Jim Meyering  <meyering@redhat.com>
39415         test-perror2.c: avoid warning about unused variable
39416         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39418 2011-05-24  Eric Blake  <eblake@redhat.com>
39420         perror: avoid spurious test failure on HP-UX
39421         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39423         tests: fix logic bug in init.sh
39424         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39425         shell.
39427 2011-05-24  Jim Meyering  <meyering@redhat.com>
39429         utimensat: do not reference an out-of-scope buffer
39430         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39431         declared in an inner scope, yet "times" would be dereferenced outside
39432         the scope in which "ts" was valid.
39433         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39434         of ts[2] "out/up", so that the use of aliased "times" (via
39435         "times = ts;") does not end up referencing an out-of-scope "ts"
39437         opendir-safer.c: don't clobber errno; don't close negative FD
39438         * lib/opendir-safer.c (opendir_safer):
39439         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39440         file descriptor, and more importantly, don't clobber the
39441         offending errno value with EINVAL.  Before, upon failure
39442         of dup_safer, we would pass the negative file descriptor to
39443         fdopendir, which would clobber errno.
39445 2011-05-23  Bruno Haible  <bruno@clisp.org>
39447         idcache: Fix module description.
39448         * modules/idcache (Include): Set to "idcache.h".
39450 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39452         gnulib-tool: fix portability problem with MacOS sed
39453         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39454         before the "}".  Problem reported by Leo in
39455         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39456         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39457         sed_extract_condition1, sed_extract_condition2.
39459 2011-05-23  Bruno Haible  <bruno@clisp.org>
39461         hash: Simplify autoconf macro.
39462         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39464 2011-05-23  Bruno Haible  <bruno@clisp.org>
39466         getugroups: Fix module description.
39467         * modules/getugroups (Include): Set to "getugroups.h".
39469 2011-05-23  Bruno Haible  <bruno@clisp.org>
39471         linkat: Simplify autoconf macro.
39472         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39474 2011-05-23  Bruno Haible  <bruno@clisp.org>
39475             Eric Blake  <eblake@redhat.com>
39477         linkat, renameat: Update dependencies.
39478         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39479         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39480         symlinkat.
39482 2011-05-23  Jim Meyering  <meyering@redhat.com>
39484         maint.mk: more tight_scope improvements
39485         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39486         (_gl_TS_headers): Define only in if-0'd block.
39487         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39488         sometimes we must *not* use it.  Adjust uses accordingly.
39489         (sc_tight_scope): Use much simpler grep-based test to determine
39490         whether we skip this rule.
39492         maint.mk: generalize/improve the tight-scope rule
39493         * top/maint.mk: Emit a warning when the test is skipped.
39494         (_gl_TS_dir): Add $(srcdir)/ prefix.
39495         (_gl_TS_function_match): Simplify, rather than trying
39496         to enumerate common types.  Otherwise, it would fail to match an
39497         "extern unsigned char const *" declaration in idutils.
39498         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39499         a way to support use of that type of macro.
39500         (_gl_TS_var_match): Simplify regexp.
39501         (_gl_TS_obj_files): New configurable variable.
39502         (_gl_TS_headers): Likewise.
39504 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39506         verify: fix bug when gnulib <assert.h> is also included
39507         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39508         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39509         Perhaps there's a better way, but this fixes the immediate problem.
39510         Problem reported by Bruno Haible in
39511         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39513 2011-05-22  Bruno Haible  <bruno@clisp.org>
39515         xgetcwd: Simplify autoconf macro.
39516         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39518 2011-05-22  Bruno Haible  <bruno@clisp.org>
39520         New module 'mktime-internal'.
39521         * modules/mktime-internal: New file.
39522         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39523         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39524         mktime_internal as a C macro if libc has __mktime_internal.
39525         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39526         conditions.
39527         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39529 2011-05-22  Bruno Haible  <bruno@clisp.org>
39531         timegm: Correct mktime replacement statements.
39532         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39533         defining mktime as a C macro. This completes a 2009-07-28 commit.
39535 2011-05-22  Bruno Haible  <bruno@clisp.org>
39537         timegm: Simplify autoconf macro.
39538         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39540 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39542         clock-time: change to LGPLv2+.
39543         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39544         BSD-like but we have no mark for that; this is good enough for now.
39546 2011-05-21  Bruno Haible  <bruno@clisp.org>
39548         strerror_r: Fix comments.
39549         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39551 2011-05-21  Bruno Haible  <bruno@clisp.org>
39553         relocatable-prog-wrapper: Fix possible link error.
39554         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39555         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39556         (gl_FUNC_SETENV): ... to here.
39557         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39558         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39560 2011-05-21  Bruno Haible  <bruno@clisp.org>
39562         relocatable-prog-wrapper: Assume strerror() exists.
39563         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39564         m4/strerror.m4.
39565         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39566         * lib/relocwrapper.c: Remove mention of strerror module.
39567         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39568         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39569         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39570         C macro.
39572 2011-05-21  Bruno Haible  <bruno@clisp.org>
39574         select: Simplify replacement idiom.
39575         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39576         Win32 platforms.
39577         * lib/sys_select.in.h (select): Simplify accordingly.
39578         * modules/select (Depends-on): Likewise.
39580 2011-05-21  Bruno Haible  <bruno@clisp.org>
39582         mkdir-p: Simplify autoconf macro.
39583         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39584         gl_FUNC_LCHOWN.
39586 2011-05-21  Eric Blake  <eblake@redhat.com>
39588         strerror_r: avoid clobbering strerror on cygwin
39589         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39590         fall back instead to sys_errlist.
39591         * modules/strerror (configure.ac): Add witness.
39592         * tests/test-strerror_r.c (main): Enhance test.
39593         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39594         * tests/test-perror2.c (main): Free memory before exit.
39596 2011-05-21  Bruno Haible  <bruno@clisp.org>
39598         mkdtemp: Use gnulib naming conventions.
39599         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39600         * modules/mkdtemp (configure.ac): Update.
39602 2011-05-20  Eric Blake  <eblake@redhat.com>
39604         strerror_r: avoid corrupting errno on Solaris
39605         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39606         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39608         strerror_r: avoid compiler warning
39609         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39611         strerror_r: simplify AIX code
39612         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39614         test-perror: avoid spurious failure on FreeBSD
39615         * modules/perror-tests (Depends-on): Add strerror, now that
39616         strerror_r no longer pulls it in.
39618 2011-05-20  Bruno Haible  <bruno@clisp.org>
39620         strerror_r-posix: Remove unused dependencies.
39621         * modules/strerror_r-posix (Depends-on): Remove strerror.
39622         Reported by Eric Blake.
39624 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39626         intprops: remove assumption about A|B representation
39627         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39628         is a valid integer if both A and B are.  Although this is true for
39629         all known practical hosts, the C standard doesn't guarantee it,
39630         and the code need not assume it.  Also, this change may work around
39631         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39632         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39634 2011-05-20  Eric Blake  <eblake@redhat.com>
39636         perror: work around FreeBSD bug
39637         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39638         is broken.  Move AC_LIBOBJ...
39639         * modules/perror (configure.ac): Here.
39640         * doc/posix-functions/perror.texi (perror): Document this.
39641         * tests/test-perror2.c (main): Enhance test.
39643         test-perror: check for strerror interactions
39644         * tests/macros.h (STREQ): Add macro.
39645         * modules/perror-tests (Files): Add second test.
39646         * tests/test-perror2.c (main): New file.
39647         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39649         test-perror: rewrite to use init script
39650         * modules/perror-tests (Files): Add init.sh.
39651         * tests/test-perror.sh: Use temporary directory.
39653 2011-05-20  Jim Meyering  <meyering@redhat.com>
39655         maint: replace misused "a" with "an"
39656         * doc/intprops.texi: "a integer"
39657         * doc/regex.texi: "a explanation"
39658         * lib/alignof.h: "a object"
39659         * lib/argmatch.h: "a explanation"
39660         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39661         * lib/stdint.in.h: "a integer"
39662         * lib/userspec.c: "a owner"
39663         * doc/gnulib.texi: Fix "a idea", and reword.
39665 2011-05-19  Jim Meyering  <meyering@redhat.com>
39667         maint: correct misuse of "a" and "an"
39668         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39669         * lib/argp-help.c: "an docum...": s/an/a/
39670         * lib/argp-parse.c: "An vector": s/An/A/
39671         * lib/execute.c: "an native": s/an/a/
39672         * lib/spawn-pipe.c: Likewise.
39673         * lib/gc.h: "an Gc_rc": s/an/a/
39674         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39675         * lib/fts.c: "an stat.st_dev": s/an/a/
39677 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39679         intprops-tests: work around HP-UX 11.23 cc bug with constants
39680         * tests/test-intprops.c (VERIFY): New macro.
39681         (main): Use it, instead of verify, to work around the compiler bug; see
39682         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39684         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39685         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39686         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39687         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39688         (_GL_REMAINDER_OVERFLOW): Use it.
39690         intprops-tests: revert unsigned part of previous change
39691         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39692         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39693         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39694         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39696 2011-05-19  Bruno Haible  <bruno@clisp.org>
39698         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39699         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39700         strerror_r() returned without filling the buffer.
39701         Reported by Eric Blake.
39703 2011-05-19  Eric Blake  <eblake@redhat.com>
39705         strerror_r: guarantee unchanged errno
39706         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39707         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39708         failure.
39709         * tests/test-strerror_r.c (main): Enhance test.
39711 2011-05-19  Bruno Haible  <bruno@clisp.org>
39713         strerror_r: Reorder #if blocks.
39714         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39715         for consistency with the previous commit.
39717 2011-05-19  Bruno Haible  <bruno@clisp.org>
39719         perror: Avoid clobbering the strerror buffer when possible.
39720         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39721         * lib/strerror.c: Include it.
39722         * modules/strerror (Files): Add lib/strerror-impl.h.
39723         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39724         (my_strerror): New function, defined through lib/strerror-impl.h.
39725         (perror): Use it instead of strerror.
39726         * modules/perror (Files): Add lib/strerror-impl.h.
39727         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39729 2011-05-19  Eric Blake  <eblake@redhat.com>
39731         strerror_r: fix on newer cygwin
39732         * lib/strerror_r.c (strerror_r): Cygwin now has
39733         __xpg_strerror_r, use it.
39735 2011-05-19  Bruno Haible  <bruno@clisp.org>
39737         strerror_r: Avoid clobbering the strerror buffer when possible.
39738         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39739         (sys_nerr, sys_errlist): New declarations.
39740         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39741         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39742         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39744 2011-05-19  Bruno Haible  <bruno@clisp.org>
39746         strerror_r: Fix test failure on mingw.
39747         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39748         EXTEND_STRERROR_R.
39749         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39750         macros from errno.in.h instead.
39752 2011-05-19  Eric Blake  <eblake@redhat.com>
39754         strerror: relax test for Solaris
39755         * tests/test-strerror.c (main): Permit Solaris behavior.
39756         * tests/test-strerror_r.c (main): Likewise.
39758         strerror: enforce POSIX ruling on strerror(0)
39759         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39760         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39761         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39762         * doc/posix-functions/strerror.texi (strerror): Document it.
39763         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39764         * tests/test-strerror.c (main): Strengthen test.
39765         * tests/test-strerror_r.c (main): Likewise.
39767 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39769         intprop-tests: port to older and more-pedantic compilers
39770         * modules/intprops-tests (Files): Add tests/macros.h.
39771         * tests/test-intprops.c: Include macros.h.
39772         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39773         it's no longer documented to expand to an integer constant expression.
39774         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39775         argument is floating point, as it's no longer documented to expand
39776         to an integer constant expression in that case.
39777         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39778         compiler bugs reported by Bruno Haible.  See
39779         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39780         (U0, U1): New constants, to work around the same bugs.  Also,
39781         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39783         intprops: work around C compiler bugs
39784         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39785         bug in Sun C 5.11 2010/08/13 and other compilers; see
39786         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39788         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39789         * doc/intprops.texi (Integer Type Determination): Fix
39790         documentation for TYPE_IS_INTEGER: it returns an constant
39791         expression, not an integer constant expression.  Fix doc for
39792         TYPE_SIGNED: it returns an integer constant expression only if its
39793         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39794         hardly worth documented that way....)
39796 2011-05-18  Bruno Haible  <bruno@clisp.org>
39798         strerror_r: Avoid clobbering the strerror buffer when possible.
39799         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39800         Handle gnulib defined errno values here. When strerror() returns NULL
39801         or an empty string, return EINVAL.
39802         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39803         gnulib defined errno values here.
39804         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39806 2011-05-18  Eric Blake  <eblake@redhat.com>
39808         fnmatch: avoid compiler warning
39809         * lib/fnmatch_loop.c (FCT): Use correct type.
39810         Reported by Matthias Bolte.
39812 2011-05-13  Jim Meyering  <meyering@redhat.com>
39814         maint.mk: three new prohibit_<HDR>_without_use rules
39815         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39816         (sc_prohibit_stdio-safer_without_use): Likewise.
39817         (sc_prohibit_xfreopen_without_use): Likewise.
39819 2011-05-17  Jim Meyering  <meyering@redhat.com>
39821         announce-gen: fail if the NEWS delta is empty
39822         If there's nothing noteworthy in NEWS, then either you forgot
39823         or you shouldn't be releasing.
39824         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39826 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39828         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39829         reserved symbols starting with double underscore from the check.
39831 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39833         intprops: add doc
39834         * doc/intprops.texi: New file, documenting intprops.
39835         * doc/gnulib.texi (Particular Modules): Include it.
39837         verify: add doc to gnulib manual and fix example
39838         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39839         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39840         (Compile-time Assertions): Fix example so it can't overflow.
39842 2011-05-17  Jim Meyering  <meyering@redhat.com>
39844         warnings.m4: don't usurp save_CPPFLAGS variable name
39845         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39847         doc: fix typo
39848         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39850 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39851             Bruno Haible  <bruno@clisp.org>
39853         doc: Tweak recent change.
39854         * README (Portability guidelines): Tweak new text.
39855         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39856         Interix 6.1.
39858 2011-05-16  Eric Blake  <eblake@redhat.com>
39860         inttypes: avoid autoconf warning
39861         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39862         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39864 2011-05-16  Sam Steingold  <sds@gnu.org>
39865         and Eric Blake  <eblake@redhat.com>
39867         vc-list-files: accept multiple directory operands
39868         * build-aux/vc-list-files: Iterate over all remaining operands.
39870 2011-05-16  Bruno Haible  <bruno@clisp.org>
39872         Fix confusion regarding deprecated modules.
39873         * modules/calloc (Status, Notice): Mark module as deprecated, not
39874         obsolete.
39875         * modules/fnmatch-posix (Status, Notice): Likewise.
39876         * modules/getdate (Status, Notice): Likewise.
39877         * modules/getopt (Status, Notice): Likewise.
39878         * modules/malloc (Status, Notice): Likewise.
39879         * modules/pipe (Status, Notice): Likewise.
39880         * modules/realloc (Status, Notice): Likewise.
39881         * modules/rename-dest-slash (Status, Notice): Likewise.
39882         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39883         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39884         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39885         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39886         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39888 2011-05-16  Bruno Haible  <bruno@clisp.org>
39890         doc: List the target platforms.
39891         * doc/gnulib-intro.texi (Target Platforms): New section.
39892         * doc/gnulib.texi (Introduction): Update menu.
39893         * README (Portability guidelines): Refer to the new section. Update
39894         statement about oldest supported environment. Remove rationale why
39895         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39896         unportable C89 function.
39897         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39898         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39900 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39902         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39904 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39906         intprops-tests: new module
39907         * modules/intprops-tests, tests/test-intprops.c: New files.
39909         intprops: add safe, portable integer overflow checking
39910         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39911         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39912         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39913         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39914         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39915         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39916         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39917         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39918         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39919         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39920         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39922 2011-05-12  James Youngman  <jay@gnu.org>
39924         Add a test for glibc's Bugzilla bug #12378.
39925         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39926         doesn't allow the literal matching of a lone "[" (which is
39927         required by POSIX).
39928         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39930 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39932         Sync glibc change fixing Bugzilla bug #12378.
39933         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39934         beginning and fall back to matching as normal character if the
39935         string ends before the matching ']' is found.  This is what POSIX
39936         requires.
39938 2011-05-13  Eric Blake  <eblake@redhat.com>
39940         getcwd-lgpl: relax test for FreeBSD
39941         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39942         issue.
39943         * tests/test-getcwd-lgpl.c (main): Relax test.
39944         Reported by Matthias Bolte.
39946 2011-05-11  Eric Blake  <eblake@redhat.com>
39948         test-fflush: silence compiler warning
39949         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39951 2011-05-11  Bruno Haible  <bruno@clisp.org>
39953         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39954         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39955         * modules/canonicalize (Depends-on): Add 'nocrash'.
39956         * modules/canonicalize-lgpl (Depends-on): Likewise.
39957         * doc/posix-functions/realpath.texi: Update platforms list.
39958         Reported by Ryan Schmidt <ryandesign@macports.org>.
39960 2011-05-11  Bruno Haible  <bruno@clisp.org>
39962         group-member: Declare function in <unistd.h>.
39963         * lib/unistd.in.h (group_member): New declaration.
39964         * lib/group-member.h: Remove file.
39965         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39966         * tests/test-unistd-c++.cc: Check signature of group_member.
39967         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39968         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39969         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39970         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39971         HAVE_GROUP_MEMBER.
39972         * modules/group-member (Files): Remove lib/group-member.h.
39973         (Depends-on): Add unistd. Specify conditions.
39974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39975         (Include): Change to <unistd.h>.
39976         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39977         HAVE_GROUP_MEMBER.
39978         * NEWS: Mention the change.
39979         * lib/euidaccess.c: Don't include group-member.h.
39981 2011-05-11  Bruno Haible  <bruno@clisp.org>
39983         group-member: Document module.
39984         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39985         module.
39987 2011-05-11  Bruno Haible  <bruno@clisp.org>
39989         fclose: Fix mistake earlier today.
39990         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39992 2011-05-11  Eric Blake  <eblake@redhat.com>
39994         fclose: preserve fflush errors
39995         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39996         Reported by Jim Meyering.
39998         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39999         * build-aux/bootstrap (check_versions): When no specific version
40000         is required, merely check that the app produces an exit status
40001         that indicates its existence.
40003         maint.mk: drop redundant check
40004         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
40005         the same but better.
40007 2011-05-11  Bruno Haible  <bruno@clisp.org>
40009         fclose: Fix possible link error.
40010         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
40011         unregister_shadow_fd. Improve comments.
40012         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
40013         Eric Blake.
40015 2011-05-11  Jim Meyering  <meyering@redhat.com>
40017         maint.mk: improve "can not" detection and generalize rule name
40018         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
40019         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
40020         Use the same technique as in sc_prohibit_doubled_word, so that
40021         we recognize "can not" also when the words are separated by a newline.
40022         Suggested by Eric Blake.
40023         (perl_filename_lineno_text_): Define.  Factored out of...
40024         (prohibit_doubled_word_): ...here.  Use the new definition.
40025         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
40026         (prohibit_undesirable_word_seq_RE_): New overridable variable.
40027         (ignore_undesirable_word_sequence_RE_): New overridable variable.
40029 2011-05-10  Eric Blake  <eblake@redhat.com>
40031         fclose: avoid double close race when possible
40032         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
40033         all but WINDOWS_SOCKETS.
40035 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
40037         openat: correct new comment
40038         * lib/openat-proc.c (openat_proc_name): Correct the comment.
40040 2011-05-10  Jim Meyering  <meyering@redhat.com>
40042         openat: add comments
40043         * lib/openat-proc.c (openat_proc_name): Add comments,
40044         mostly from Eric Blake.
40046 2011-05-09  Eric Blake  <eblake@redhat.com>
40048         openat: reduce syscalls in first probe of /proc
40049         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
40050         be a directory.  Simplify the probe for .. bugs.
40051         * modules/openat (Depends-on): Drop same-inode.
40052         Reported by Bastien ROUCARIES.
40054 2011-05-09  Jim Meyering  <meyering@redhat.com>
40056         maint.mk: change semantics/name of tight_scope variables
40057         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
40058         Rename variables to align with semantics that make them more useful.
40060         maint.mk: tweak new rule's name not to impinge
40061         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
40062         (sc_tight_scope): Use new rule name rather than $@-0.
40064         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
40065         * top/maint.mk (sc_tight_scope): New rule.
40066         (sc_tight_scope-0): New rule, ifdef'd out.
40067         (_gl_TS_dir): Default.
40068         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
40069         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
40071 2011-05-09  Simon Josefsson  <simon@josefsson.org>
40073         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
40074         Haible <bruno@clisp.org>.
40076 2011-05-08  Bruno Haible  <bruno@clisp.org>
40078         Comments.
40079         * m4/isnanf.m4: Add comment.
40080         * m4/isnanl.m4: Likewise.
40082 2011-05-08  Bruno Haible  <bruno@clisp.org>
40084         glob: Remove obsolete macro.
40085         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
40087 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
40089         intprops: Sun C 5.11 supports __typeof__
40090         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
40091         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
40092         which is new.
40093         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
40095         intprops: switch to usual gnulib indenting and naming
40096         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
40097         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
40099         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
40101 2011-05-08  Jim Meyering  <meyering@redhat.com>
40103         maint.mk: suppress "Entering/Leaving directory" diag in announcement
40104         * top/maint.mk (release-prep): Use make's --no-print-directory
40105         option when generating the announcement.  This eliminates the
40106         pesky "make[2]: Entering/Leaving directory" diagnostics in the
40107         generated announcement template.
40109 2011-05-08  Bruno Haible  <bruno@clisp.org>
40111         tzset: Fix gettimeofday wrapper on Solaris 2.6.
40112         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
40113         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
40115 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
40117         ignore-value, verify: Omit include files from lib_SOURCES.
40118         * modules/ignore-value, modules/verify (Makefile.am):
40119         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
40120         that leads Automake to duplicate use of am__objects_... variables
40121         in Makefile.in.  See
40122         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
40124 2011-05-07  Bruno Haible  <bruno@clisp.org>
40126         fclose: Simplify autoconf macro.
40127         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
40128         defined.
40130 2011-05-07  Bruno Haible  <bruno@clisp.org>
40132         canonicalize-lgpl: Fix autoconf macro ordering bug.
40133         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
40134         gl_STDLIB_H_DEFAULTS.
40136 2011-05-06  Eric Blake  <eblake@redhat.com>
40138         maintainer-makefile: make sc_po_check easier to tune
40139         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
40140         to probe for strings, such as an alternate location for gnulib.
40142         fclose: guarantee behavior on seekable stdin
40143         * modules/fclose (Depends-on): Add fflush.
40144         * doc/posix-functions/fclose.texi (fclose): Document this.
40145         * tests/test-fclose.c (main): Make test for this unconditional.
40147 2011-05-06  Bruno Haible  <bruno@clisp.org>
40149         fflush, fpurge: Relicense under LGPLv2+.
40150         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
40151         * modules/fpurge (License): Likewise.
40152         With permission from Eric Blake and Jim Meyering.
40153         Suggested by Eric Blake.
40155 2011-05-06  Karl Berry  <karl@gnu.org>
40157         * MODULES.html.sh (func_all_modules): remove exit.
40159 2011-05-06  Jim Meyering  <meyering@redhat.com>
40161         maint.mk: use info-gnu@ as the default only for a stable release
40162         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
40163         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
40164         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
40165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
40167 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40169         assert-h: new module, which supports C1X-style static_assert
40170         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
40171         * lib/verify.h: Revamp so that this can be copied into assert.h,
40172         while retaining the ability to use it standalone as before.
40173         Rename private identifiers so as not to encroach on the
40174         standard C namespace, since this is now used by assert.h.
40175         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
40176         the old verify_true.
40177         (_GL_VERIFY_TRUE): New macro, with much of the contents of
40178         the old verify_true.  Use _GL_VERIFY_TYPE.
40179         (_GL_VERIFY): New macro, with much of the contents of the old verify.
40180         (static_assert): New macro, if _GL_STATIC_ASSERT_H
40181         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
40182         defined when this file is copied into the replacement assert.h.
40183         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
40184         and _Static_assert is not built in.
40185         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
40186         defined, and use the new macros mentioned above.
40187         * doc/posix-headers/assert.texi: Document this.
40189 2011-05-05  Bruno Haible  <bruno@clisp.org>
40191         fclose, fflush: Respect rules for use of AC_LIBOBJ.
40192         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
40193         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
40194         gl_REPLACE_FCLOSE here.
40195         * modules/fflush (Depends-on): Remove fclose.
40196         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
40197         combination with module 'fclose'.
40199 2011-05-05  Bruno Haible  <bruno@clisp.org>
40201         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
40202         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
40203         gl_FUNC_FFLUSH.
40204         (gl_FUNC_FFLUSH): Use it.
40205         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
40206         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
40207         gl_REPLACE_FSEEKO here.
40209 2011-05-05  Bruno Haible  <bruno@clisp.org>
40211         tzset: Relicense under LGPL.
40212         * modules/tzset (License): Change to LGPL.
40213         No agreement needed; it's a no-op.
40215         strtoimax, strtoumax: Relicense under LGPL.
40216         * modules/strtoimax (License): Change to LGPL.
40217         * modules/strtoumax (License): Likewise.
40218         With permission from Jim Meyering, Paul Eggert:
40219         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
40220         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
40222         getgroups: Relicense under LGPL.
40223         * modules/getgroups (License): Change to LGPL.
40224         With permission from Jim Meyering, Paul Eggert, Eric Blake:
40225         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40226         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40227         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40229         nanosleep: Relicense under LGPL.
40230         * modules/nanosleep (License): Change to LGPL.
40231         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
40232         Haible:
40233         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40234         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40235         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40236         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40238         futimens: Relicense under LGPL.
40239         * modules/futimens (License): Change to LGPL.
40240         With permission from Eric Blake:
40241         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40243         fflush: Relicense under LGPL.
40244         * modules/fflush (License): Change to LGPL.
40245         With permission from Eric Blake, Bruno Haible, Jim Meyering:
40246         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40247         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40248         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
40250         tmpfile: Relicense under LGPL.
40251         * modules/tmpfile (License): Change to LGPL.
40252         With permission from Ben Pfaff:
40253         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40255         isfinite: Relicense under LGPL.
40256         * modules/isfinite (License): Change to LGPL.
40257         With permission from Ben Pfaff, Bruno Haible:
40258         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40259         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
40261         acosl..tanl: Relicense under LGPL.
40262         * modules/acosl (License): Change to LGPL.
40263         * modules/asinl (License): Likewise.
40264         * modules/atanl (License): Likewise.
40265         * modules/cosl (License): Likewise.
40266         * modules/expl (License): Likewise.
40267         * modules/logl (License): Likewise.
40268         * modules/sinl (License): Likewise.
40269         * modules/sqrtl (License): Likewise.
40270         * modules/tanl (License): Likewise.
40271         Source code originally from glibc and Paolo Bonzini. Agreements:
40272         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
40273         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
40275 2011-05-05  Bruno Haible  <bruno@clisp.org>
40277         signal: Define sighandler_t.
40278         * lib/signal.in.h (sighandler_t): New type.
40279         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
40280         whether sighandler_t is defined.
40281         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
40282         * modules/signal (Depends-on): Add extensions.
40283         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
40284         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
40285         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
40287 2011-05-05  Eric Blake  <eblake@redhat.com>
40289         maint: remove useless REPLACE_*_H macros
40290         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
40291         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40292         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40293         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
40294         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40295         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40296         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
40297         * m4/btowc.m4: Update callers.
40298         * m4/dirfd.m4: Likewise.
40299         * m4/duplocale.m4: Likewise.
40300         * m4/fchdir.m4: Likewise.
40301         * m4/fdopendir.m4: Likewise.
40302         * m4/inet_ntop.m4: Likewise.
40303         * m4/inet_pton.m4: Likewise.
40304         * m4/ioctl.m4: Likewise.
40305         * m4/mbrlen.m4: Likewise.
40306         * m4/mbrtowc.m4: Likewise.
40307         * m4/mbsinit.m4: Likewise.
40308         * m4/mbsnrtowcs.m4: Likewise.
40309         * m4/mbsrtowcs.m4: Likewise.
40310         * m4/poll.m4: Likewise.
40311         * m4/setlocale.m4: Likewise.
40312         * m4/wcrtomb.m4: Likewise.
40313         * m4/wcsnrtombs.m4: Likewise.
40314         * m4/wcsrtombs.m4: Likewise.
40315         * m4/wctob.m4: Likewise.
40316         * m4/wcwidth.m4: Likewise.
40317         * modules/posix_spawn: Likewise.
40318         * modules/posix_spawn_file_actions_addclose: Likewise.
40319         * modules/posix_spawn_file_actions_adddup2: Likewise.
40320         * modules/posix_spawn_file_actions_addopen: Likewise.
40321         * modules/posix_spawn_file_actions_destroy: Likewise.
40322         * modules/posix_spawn_file_actions_init: Likewise.
40323         * modules/posix_spawnattr_destroy: Likewise.
40324         * modules/posix_spawnattr_getflags: Likewise.
40325         * modules/posix_spawnattr_getpgroup: Likewise.
40326         * modules/posix_spawnattr_getschedparam: Likewise.
40327         * modules/posix_spawnattr_getschedpolicy: Likewise.
40328         * modules/posix_spawnattr_getsigdefault: Likewise.
40329         * modules/posix_spawnattr_getsigmask: Likewise.
40330         * modules/posix_spawnattr_init: Likewise.
40331         * modules/posix_spawnattr_setflags: Likewise.
40332         * modules/posix_spawnattr_setpgroup: Likewise.
40333         * modules/posix_spawnattr_setschedparam: Likewise.
40334         * modules/posix_spawnattr_setschedpolicy: Likewise.
40335         * modules/posix_spawnattr_setsigdefault: Likewise.
40336         * modules/posix_spawnattr_setsigmask: Likewise.
40337         * modules/posix_spawnp: Likewise.
40339 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
40341         Add option to do-release-commit-and-tag to specify branch.
40342         * build-aux/do-release-commit-and-tag: Add --branch.
40344 2011-05-03  Bruno Haible  <bruno@clisp.org>
40346         Avoid unnecessary compilation units, through conditional dependencies.
40347         * modules/accept (Depends-on): Add conditions to the dependencies.
40348         * modules/acosl (Depends-on): Likewise.
40349         * modules/argz (Depends-on): Likewise.
40350         * modules/asinl (Depends-on): Likewise.
40351         * modules/atanl (Depends-on): Likewise.
40352         * modules/atoll (Depends-on): Likewise.
40353         * modules/bind (Depends-on): Likewise.
40354         * modules/btowc (Depends-on): Likewise.
40355         * modules/canonicalize-lgpl (Depends-on): Likewise.
40356         * modules/ceil (Depends-on): Likewise.
40357         * modules/ceilf (Depends-on): Likewise.
40358         * modules/ceill (Depends-on): Likewise.
40359         * modules/chdir-long (Depends-on): Likewise.
40360         * modules/chown (Depends-on): Likewise.
40361         * modules/close (Depends-on): Likewise.
40362         * modules/connect (Depends-on): Likewise.
40363         * modules/cosl (Depends-on): Likewise.
40364         * modules/dirfd (Depends-on): Likewise.
40365         * modules/dprintf (Depends-on): Likewise.
40366         * modules/dprintf-posix (Depends-on): Likewise.
40367         * modules/error (Depends-on): Likewise.
40368         * modules/euidaccess (Depends-on): Likewise.
40369         * modules/expl (Depends-on): Likewise.
40370         * modules/faccessat (Depends-on): Likewise.
40371         * modules/fchdir (Depends-on): Likewise.
40372         * modules/fclose (Depends-on): Likewise.
40373         * modules/fcntl (Depends-on): Likewise.
40374         * modules/fdopendir (Depends-on): Likewise.
40375         * modules/fflush (Depends-on): Likewise.
40376         * modules/floor (Depends-on): Likewise.
40377         * modules/floorf (Depends-on): Likewise.
40378         * modules/floorl (Depends-on): Likewise.
40379         * modules/fnmatch (Depends-on): Likewise.
40380         * modules/fopen (Depends-on): Likewise.
40381         * modules/fprintf-posix (Depends-on): Likewise.
40382         * modules/frexp (Depends-on): Likewise.
40383         * modules/frexp-nolibm (Depends-on): Likewise.
40384         * modules/frexpl (Depends-on): Likewise.
40385         * modules/frexpl-nolibm (Depends-on): Likewise.
40386         * modules/fseek (Depends-on): Likewise.
40387         * modules/fsusage (Depends-on): Likewise.
40388         * modules/ftell (Depends-on): Likewise.
40389         * modules/ftello (Depends-on): Likewise.
40390         * modules/futimens (Depends-on): Likewise.
40391         * modules/getcwd (Depends-on): Likewise.
40392         * modules/getcwd-lgpl (Depends-on): Likewise.
40393         * modules/getdelim (Depends-on): Likewise.
40394         * modules/getdomainname (Depends-on): Likewise.
40395         * modules/getgroups (Depends-on): Likewise.
40396         * modules/gethostname (Depends-on): Likewise.
40397         * modules/getline (Depends-on): Likewise.
40398         * modules/getlogin_r (Depends-on): Likewise.
40399         * modules/getopt-posix (Depends-on): Likewise.
40400         * modules/getpeername (Depends-on): Likewise.
40401         * modules/getsockname (Depends-on): Likewise.
40402         * modules/getsockopt (Depends-on): Likewise.
40403         * modules/getsubopt (Depends-on): Likewise.
40404         * modules/getusershell (Depends-on): Likewise.
40405         * modules/glob (Depends-on): Likewise.
40406         * modules/grantpt (Depends-on): Likewise.
40407         * modules/iconv_open (Depends-on): Likewise.
40408         * modules/iconv_open-utf (Depends-on): Likewise.
40409         * modules/inet_ntop (Depends-on): Likewise.
40410         * modules/inet_pton (Depends-on): Likewise.
40411         * modules/ioctl (Depends-on): Likewise.
40412         * modules/isapipe (Depends-on): Likewise.
40413         * modules/isfinite (Depends-on): Likewise.
40414         * modules/isinf (Depends-on): Likewise.
40415         * modules/lchown (Depends-on): Likewise.
40416         * modules/ldexpl (Depends-on): Likewise.
40417         * modules/link (Depends-on): Likewise.
40418         * modules/linkat (Depends-on): Likewise.
40419         * modules/listen (Depends-on): Likewise.
40420         * modules/logl (Depends-on): Likewise.
40421         * modules/lstat (Depends-on): Likewise.
40422         * modules/mbrlen (Depends-on): Likewise.
40423         * modules/mbrtowc (Depends-on): Likewise.
40424         * modules/mbsinit (Depends-on): Likewise.
40425         * modules/mbsnrtowcs (Depends-on): Likewise.
40426         * modules/mbsrtowcs (Depends-on): Likewise.
40427         * modules/mbtowc (Depends-on): Likewise.
40428         * modules/memcmp (Depends-on): Likewise.
40429         * modules/mkdir (Depends-on): Likewise.
40430         * modules/mkdtemp (Depends-on): Likewise.
40431         * modules/mkfifo (Depends-on): Likewise.
40432         * modules/mkfifoat (Depends-on): Likewise.
40433         * modules/mknod (Depends-on): Likewise.
40434         * modules/mkostemp (Depends-on): Likewise.
40435         * modules/mkostemps (Depends-on): Likewise.
40436         * modules/mkstemp (Depends-on): Likewise.
40437         * modules/mkstemps (Depends-on): Likewise.
40438         * modules/mktime (Depends-on): Likewise.
40439         * modules/nanosleep (Depends-on): Likewise.
40440         * modules/open (Depends-on): Likewise.
40441         * modules/openat (Depends-on): Likewise.
40442         * modules/perror (Depends-on): Likewise.
40443         * modules/poll (Depends-on): Likewise.
40444         * modules/popen (Depends-on): Likewise.
40445         * modules/posix_spawn (Depends-on): Likewise.
40446         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40447         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40448         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40449         * modules/posix_spawnp (Depends-on): Likewise.
40450         * modules/pread (Depends-on): Likewise.
40451         * modules/printf-posix (Depends-on): Likewise.
40452         * modules/ptsname (Depends-on): Likewise.
40453         * modules/putenv (Depends-on): Likewise.
40454         * modules/pwrite (Depends-on): Likewise.
40455         * modules/readline (Depends-on): Likewise.
40456         * modules/readlink (Depends-on): Likewise.
40457         * modules/readlinkat (Depends-on): Likewise.
40458         * modules/recv (Depends-on): Likewise.
40459         * modules/recvfrom (Depends-on): Likewise.
40460         * modules/regex (Depends-on): Likewise.
40461         * modules/remove (Depends-on): Likewise.
40462         * modules/rename (Depends-on): Likewise.
40463         * modules/renameat (Depends-on): Likewise.
40464         * modules/rmdir (Depends-on): Likewise.
40465         * modules/round (Depends-on): Likewise.
40466         * modules/roundf (Depends-on): Likewise.
40467         * modules/roundl (Depends-on): Likewise.
40468         * modules/rpmatch (Depends-on): Likewise.
40469         * modules/select (Depends-on): Likewise.
40470         * modules/send (Depends-on): Likewise.
40471         * modules/sendto (Depends-on): Likewise.
40472         * modules/setenv (Depends-on): Likewise.
40473         * modules/setlocale (Depends-on): Likewise.
40474         * modules/setsockopt (Depends-on): Likewise.
40475         * modules/shutdown (Depends-on): Likewise.
40476         * modules/sigaction (Depends-on): Likewise.
40477         * modules/signbit (Depends-on): Likewise.
40478         * modules/sigprocmask (Depends-on): Likewise.
40479         * modules/sinl (Depends-on): Likewise.
40480         * modules/sleep (Depends-on): Likewise.
40481         * modules/snprintf (Depends-on): Likewise.
40482         * modules/snprintf-posix (Depends-on): Likewise.
40483         * modules/socket (Depends-on): Likewise.
40484         * modules/sprintf-posix (Depends-on): Likewise.
40485         * modules/sqrtl (Depends-on): Likewise.
40486         * modules/stat (Depends-on): Likewise.
40487         * modules/strchrnul (Depends-on): Likewise.
40488         * modules/strdup-posix (Depends-on): Likewise.
40489         * modules/strerror (Depends-on): Likewise.
40490         * modules/strerror_r-posix (Depends-on): Likewise.
40491         * modules/strndup (Depends-on): Likewise.
40492         * modules/strnlen (Depends-on): Likewise.
40493         * modules/strptime (Depends-on): Likewise.
40494         * modules/strsep (Depends-on): Likewise.
40495         * modules/strsignal (Depends-on): Likewise.
40496         * modules/strstr-simple (Depends-on): Likewise.
40497         * modules/strtod (Depends-on): Likewise.
40498         * modules/strtoimax (Depends-on): Likewise.
40499         * modules/strtok_r (Depends-on): Likewise.
40500         * modules/strtoumax (Depends-on): Likewise.
40501         * modules/symlink (Depends-on): Likewise.
40502         * modules/symlinkat (Depends-on): Likewise.
40503         * modules/tanl (Depends-on): Likewise.
40504         * modules/tcgetsid (Depends-on): Likewise.
40505         * modules/tmpfile (Depends-on): Likewise.
40506         * modules/trunc (Depends-on): Likewise.
40507         * modules/truncf (Depends-on): Likewise.
40508         * modules/truncl (Depends-on): Likewise.
40509         * modules/uname (Depends-on): Likewise.
40510         * modules/unlink (Depends-on): Likewise.
40511         * modules/unlockpt (Depends-on): Likewise.
40512         * modules/unsetenv (Depends-on): Likewise.
40513         * modules/usleep (Depends-on): Likewise.
40514         * modules/utimensat (Depends-on): Likewise.
40515         * modules/vasprintf (Depends-on): Likewise.
40516         * modules/vdprintf (Depends-on): Likewise.
40517         * modules/vdprintf-posix (Depends-on): Likewise.
40518         * modules/vfprintf-posix (Depends-on): Likewise.
40519         * modules/vprintf-posix (Depends-on): Likewise.
40520         * modules/vsnprintf (Depends-on): Likewise.
40521         * modules/vsnprintf-posix (Depends-on): Likewise.
40522         * modules/vsprintf-posix (Depends-on): Likewise.
40523         * modules/wcrtomb (Depends-on): Likewise.
40524         * modules/wcscasecmp (Depends-on): Likewise.
40525         * modules/wcscspn (Depends-on): Likewise.
40526         * modules/wcsdup (Depends-on): Likewise.
40527         * modules/wcsncasecmp (Depends-on): Likewise.
40528         * modules/wcsnrtombs (Depends-on): Likewise.
40529         * modules/wcspbrk (Depends-on): Likewise.
40530         * modules/wcsrtombs (Depends-on): Likewise.
40531         * modules/wcsspn (Depends-on): Likewise.
40532         * modules/wcsstr (Depends-on): Likewise.
40533         * modules/wcstok (Depends-on): Likewise.
40534         * modules/wcswidth (Depends-on): Likewise.
40535         * modules/wctob (Depends-on): Likewise.
40536         * modules/wctomb (Depends-on): Likewise.
40537         * modules/wctype (Depends-on): Likewise.
40538         * modules/wcwidth (Depends-on): Likewise.
40539         * modules/write (Depends-on): Likewise.
40541 2011-05-03  Bruno Haible  <bruno@clisp.org>
40543         Support for conditional dependencies.
40544         * doc/gnulib.texi (Module description): Document the syntax of
40545         conditional dependencies.
40546         * gnulib-tool: New option --conditional-dependencies.
40547         (func_usage): Document it.
40548         (cond_dependencies): New variable.
40549         (func_get_automake_snippet_conditional,
40550         func_get_automake_snippet_unconditional): New functions, extracted from
40551         func_get_automake_snippet.
40552         (func_get_automake_snippet): Use them.
40553         (sed_first_32_chars): New variable.
40554         (func_module_shellfunc_name): New function.
40555         (func_module_shellvar_name): New function.
40556         (func_module_conditional_name): New function.
40557         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40558         func_cond_module_condition): New functions.
40559         (func_modules_transitive_closure): Add support for conditional
40560         dependencies.
40561         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40562         conditional automake snippet in an automake conditional.
40563         (func_emit_autoconf_snippets): Emit shell functions that contain the
40564         code for conditional modules.
40565         (func_import, func_create_testdir): Update specification.
40567 2011-05-03  Eric Blake  <eblake@redhat.com>
40569         test-getaddrinfo: report error information
40570         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40572 2011-05-03  Jim Meyering  <meyering@redhat.com>
40574         bootstrap: avoid build failure when $GZIP is set
40575         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40576         program name.  If defined at all, it is supposed to list gzip options.
40577         Reported by Alan Curry in http://debbugs.gnu.org/8609
40579 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40581         readme-release: new module with release instructions
40582         * modules/readme-release: New module.
40583         * top/README-release: New file, from coreutils, grep, diffutils.
40584         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40586 2011-05-02  Eric Blake  <eblake@redhat.com>
40588         fflush: also replace fclose when fixing fflush
40589         * modules/fflush (Depends-on): Add fclose.
40590         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40591         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40592         memstreams with no backing fd.
40593         * doc/posix-functions/fclose.texi (fclose): Document the use of
40594         fflush module to fix the bug.
40595         * tests/test-fclose.c (main): Relax test when fclose is used in
40596         isolation.
40598         fclose: add some tests
40599         * modules/fclose-tests: New test module.
40600         * tests/test-fclose.c: New file.
40601         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40603         fclose: reduced dependencies
40604         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40605         simpler lseek.
40606         * lib/fclose.c (rpl_fclose): Likewise.
40607         Reported by Simon Josefsson.
40609         exit: drop remaining clients
40610         * modules/argmatch (Depends-on): Replace exit with stdlib.
40611         * modules/copy-file (Depends-on): Likewise.
40612         * modules/execute (Depends-on): Likewise.
40613         * modules/exitfail (Depends-on): Likewise.
40614         * modules/obstack (Depends-on): Likewise.
40615         * modules/pagealign_alloc (Depends-on): Likewise.
40616         * modules/pipe-filter-gi (Depends-on): Likewise.
40617         * modules/pipe-filter-ii (Depends-on): Likewise.
40618         * modules/savewd (Depends-on): Likewise.
40619         * modules/spawn-pipe (Depends-on): Likewise.
40620         * modules/wait-process (Depends-on): Likewise.
40621         * modules/xsetenv (Depends-on): Likewise.
40622         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40623         * modules/git-merge-changelog (Depends-on): Likewise.
40624         * modules/long-options (Depends-on): Likewise.
40625         * modules/pt_chown (Depends-on): Likewise.
40626         * modules/sysexits (Depends-on): Likewise.
40628         freading: relax license from LGPLv3+ to LGPLv2+
40629         * modules/freading (License): Relax LGPL version.
40631 2011-05-02  Bruno Haible  <bruno@clisp.org>
40633         fchdir: Remove unused dependencies.
40634         * modules/fchdir (Depends-on): Remove include_next.
40636 2011-05-02  Bruno Haible  <bruno@clisp.org>
40638         gnulib-tool: Refactor.
40639         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40640         from func_emit_autoconf_snippets.
40641         (func_emit_autoconf_snippets): Use it.
40643 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40645         * NEWS: Document removal of 'exit'.
40646         * modules/exit: Remove file.
40648 2011-05-01  Bruno Haible  <bruno@clisp.org>
40650         Update DEPENDENCIES.
40651         * DEPENDENCIES (gettext): Recommend the newest release.
40652         Reported by Simon Josefsson.
40654 2011-05-01  Bruno Haible  <bruno@clisp.org>
40656         gnulib-tool: Reduce code duplication.
40657         * gnulib-tool (func_emit_autoconf_snippets): New function.
40658         (func_import, func_create_testdir): Use it.
40660 2011-04-30  Eric Blake  <eblake@redhat.com>
40662         fclose: don't fail on non-seekable input stream
40663         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40664         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40665         since fflush is allowed to fail in that case.
40667 2011-04-30  Bruno Haible  <bruno@clisp.org>
40669         dup3: cleanup
40670         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40672 2011-04-30  Bruno Haible  <bruno@clisp.org>
40674         netdb: Make it work in C++ mode.
40675         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40676         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40677         module.
40678         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40679         gl_MODULE_INDICATOR_FOR_TESTS.
40680         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40681         * modules/netdb-c++-tests: New file.
40682         * tests/test-netdb-c++.cc: New file.
40684 2011-04-30  Bruno Haible  <bruno@clisp.org>
40686         New modules 'vfscanf', 'vscanf'.
40687         * modules/vfscanf: New file.
40688         * modules/vscanf: New file.
40689         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40690         here.
40691         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40692         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40694 2011-04-30  Bruno Haible  <bruno@clisp.org>
40696         passfd: Add comments.
40697         * lib/passfd.c: Add comments about platforms.
40699 2011-04-30  Bruno Haible  <bruno@clisp.org>
40701         sys_uio: Make <sys/uio.h> self-contained.
40702         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40703         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40705 2011-04-30  Bruno Haible  <bruno@clisp.org>
40707         sys_socket: Ensure 'struct iovec' definition.
40708         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40709         <sys/socket.h>.
40710         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40712 2011-04-30  Bruno Haible  <bruno@clisp.org>
40714         sys_uio: Protect definition of 'struct iovec'.
40715         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40716         it as a C struct.
40718 2011-04-30  Bruno Haible  <bruno@clisp.org>
40720         manywarnings: fix indentation
40721         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40723 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40725         manywarnings: add -Wno-missing-field-initializers if needed.
40726         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40727         option if it's needed to allow initialization with { 0, }
40729 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40731         announce-gen: cosmetic improvement
40732         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40734 2011-04-29  Jim Meyering  <meyering@redhat.com>
40736         vc-list-files: indent with spaces, not TABs
40737         * build-aux/vc-list-files: Convert leading TABs to spaces,
40738         to match the style of most other files in gnulib.
40740         announce-gen: indent with spaces, not TABs
40741         * build-aux/announce-gen: Convert all TABs to spaces, to match
40742         the style of most other files in gnulib.
40744 2011-04-29  Eric Blake  <eblake@redhat.com>
40746         quotearg: avoid uninitialized variable use
40747         * lib/quotearg.c (quoting_options_from_style): Initialize
40748         remaining fields, and ensure that custom styles are only used via
40749         quoting_options rather than quoting_style.
40751 2011-04-29  Jim Meyering  <meyering@redhat.com>
40753         maint.mk: remove unused VC-tag variable
40754         * top/maint.mk (VC-tag): Remove unused variable.
40756 2011-04-29  Bruno Haible  <bruno@clisp.org>
40758         netdb: fix gai_strerror replacements
40759         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40760         * modules/netdb: Substitute it.
40762 2011-04-29  Jim Meyering  <meyering@redhat.com>
40764         test-getcwd.c: avoid new set-but-not-used warning
40765         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40766         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40767         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40768         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40770         test-hash.c: avoid a new shadowing warning
40771         * tests/test-hash.c (main): Don't shadow "dup".
40773 2011-04-28  Eric Blake  <eblake@redhat.com>
40775         getaddrinfo: fix gai_strerror signature
40776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40777         and work around mingw with UNICODE defined.
40778         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40779         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40780         * modules/netdb (Makefile.am): Substitute it.
40781         * lib/netdb.in.h (gai_strerror): Declare replacement.
40782         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40783         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40784         the fix.
40786         getsockopt: avoid compiler warning
40787         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40788         Reported by Matthias Bolte.
40790         tests: drop unused link dependency
40791         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40792         * modules/dirent-safer-tests (Makefile.am): Likewise.
40793         * modules/fdopendir-tests (Makefile.am): Likewise.
40794         * modules/mkfifoat-tests (Makefile.am): Likewise.
40795         * modules/openat-safer-tests (Makefile.am): Likewise.
40796         * modules/openat-tests (Makefile.am): Likewise.
40797         * modules/readlinkat-tests (Makefile.am): Likewise.
40798         * modules/symlinkat-tests (Makefile.am): Likewise.
40799         * modules/linkat-tests (Makefile.am): Likewise.
40800         (Depends-on): Switch to filenamecat-lgpl.
40801         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40802         LIBINTL.
40803         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40804         * tests/test-linkat.c (main): Don't require xalloc.
40806         hash, mgetgroups: drop xalloc dependency
40807         * lib/hash.c (includes): Adjust includes.
40808         * lib/mgetgroups.c (includes): Likewise.
40809         (xgetgroups): Move...
40810         * lib/xgetgroups.c: ...to new file.
40811         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40812         * modules/xgetgroups: New file, split from...
40813         * modules/mgetgroups: ...here.
40814         (Depends-on): Add xalloc-oversized.
40815         * modules/hash (Depends-on): Likewise.
40816         * modules/hash-tests (Depends-on): Drop xalloc.
40817         (test_hash_LDADD): Drop unused library.
40818         * tests/test-hash.c (main): Break xalloc dependency.
40819         (includes): Drop unused include.
40821         xalloc-oversized: new module
40822         * modules/xalloc-oversized: New module.
40823         * modules/xalloc (Depends-on): Add it.
40824         * lib/xalloc.h (xalloc_oversized): Move...
40825         * lib/xalloc-oversized.h: ...into new file.
40827         utimecmp: drop dependency on xmalloc
40828         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40829         due to memory pressure.
40830         * modules/utimecmp (Depends-on): Drop xalloc.
40832 2011-04-27  Eric Blake  <eblake@redhat.com>
40834         getcwd: fix mingw bugs
40835         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40836         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40837         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40839 2011-04-27  Bruno Haible  <bruno@clisp.org>
40841         mkstemps: Ensure declaration on MacOS X 10.5.
40842         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40843         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40844         MacOS X.
40846 2011-04-27  Bruno Haible  <bruno@clisp.org>
40848         mkstemp: More documentation.
40849         * doc/posix-functions/mkstemp.texi: Document header file problem on
40850         MacOS X.
40852 2011-04-27  Bruno Haible  <bruno@clisp.org>
40854         mkstemp: Tweak configure message when cross-compiling.
40855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40856         result as a guess.
40858 2011-04-27  Bruno Haible  <bruno@clisp.org>
40860         clean-temp: Clarify what it does.
40861         * lib/clean-temp.h: Add more comments.
40862         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40863         module.
40864         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40865         * doc/glibc-functions/mkstemps.texi: Likewise.
40866         * doc/glibc-functions/mkostemps.texi: Likewise.
40868 2011-04-27  Eric Blake  <eblake@redhat.com>
40870         fchdir: avoid extra chdir and fix test
40871         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40872         getcwd-lgpl.
40873         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40874         have to be canonical.
40875         (canonicalize_file_name): Drop unused macro.
40876         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40878         filenamecat-lgpl: fix licence
40879         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40880         when it was first created.
40882         linkat, renameat: add missing dependency
40883         * modules/linkat (Depends-on): Require getcwd-lgpl.
40884         * modules/renameat (Depends-on): Likewise.
40886         tests: reduce dependencies
40887         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40888         * tests/test-renameat.c (main): Likewise.
40889         * modules/linkat-tests (Depends-on): Relax dependency.
40890         * modules/renameat-tests (Depends-on): Likewise.
40891         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40892         dependency explicit.
40894         save-cwd: reduce default dependency
40895         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40896         * lib/save-cwd.c: Update comments.
40897         * NEWS: Document the semantic change.
40899         getcwd: enhance tests
40900         * tests/test-getcwd-lgpl.c: New file, taken from...
40901         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40902         repeat long path stress tests from m4 probe.
40903         * modules/getcwd-lgpl-tests: New module.
40904         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40905         * m4/getcwd-abort-bug.m4: Update comment.
40906         * m4/getcwd-path-max.m4: Likewise.
40908         getcwd-lgpl: new module
40909         * modules/getcwd-lgpl: New module.
40910         * lib/getcwd-lgpl.c: New file.
40911         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40912         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40913         * modules/getcwd (configure.ac): Set C witness.
40914         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40916         getcwd: tweak comments
40917         * m4/getcwd-abort-bug.m4: Fix comments.
40918         * m4/getcwd-path-max.m4: Likewise.
40919         * m4/getcwd.m4: Likewise.
40921 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40922         and Eric Blake  <eblake@redhat.com>
40924         mkstemp: replace if system version uses wrong permissions
40925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40926         read/write mode bits set in file created by mkstemp.
40927         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40929 2011-04-27  Eric Blake  <eblake@redhat.com>
40931         passfd: avoid compiler warning
40932         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40933         Reported by Laine Stump.
40935 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40937         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40938         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40940 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40941         and Eric Blake  <eblake@redhat.com>
40943         mkstemp: mention clean-temp module
40944         * lib/mkstemp.c: Add comment.
40945         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40947 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40949         inttypes: also provide default values for 32-bit tests
40950         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40951         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40953 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40955         strtoumax: remove dependency on strtoimax
40956         This is like the strtoull change of yesterday.
40957         * modules/strtoumax (Files): Add lib/strtoimax.c.
40958         (Depends-on): Remove strtoimax and add verify.
40960         inttypes-incomplete: new module
40961         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40962         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40963         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40964         of gl_INTTYPES_H.
40965         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40966         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40967         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40968         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40969         * modules/strtoumax, modules/xstrtol (Depends-on):
40970         Depend on inttypes-incomplete, not inttypes.
40971         * modules/inttypes-incomplete: New module, containing the contents
40972         of the old modules/inttypes module, except that the Files: section
40973         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40974         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40975         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40976         (Depends-on): Depend only on inttypes-incomplete.
40977         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40979         inttypes: omit now-redundant strtoimax and strtoumax work
40980         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40981         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40983         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40984         This supports apps that need pointers to strtoimax and strtoumax,
40985         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40986         nonexistent functions.  See
40987         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40988         et seq.
40989         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40990         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40991         a macro.
40992         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40994 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40996         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40998 2011-04-25  Bruno Haible  <bruno@clisp.org>
41000         strtol, strtoul: Mark modules as obsolete.
41001         * modules/strtol (Status, Notice): New sections.
41002         * modules/strtoul (Status, Notice): New sections.
41004 2011-04-25  Bruno Haible  <bruno@clisp.org>
41006         strtod: Remove check for strtod, unless supporting old platforms.
41007         * modules/strtod-obsolete: New file.
41008         * m4/strtod-obsolete.m4: New file.
41009         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
41010         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
41011         * modules/strtod (Depends-on): Add strtod-obsolete.
41012         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
41014 2011-04-25  Bruno Haible  <bruno@clisp.org>
41016         strcase: Make module obsolete.
41017         * modules/strcase (Status, Notice): New sections.
41019 2011-04-25  Bruno Haible  <bruno@clisp.org>
41021         dup2: Remove check for dup2, unless supporting old obsolete platforms.
41022         * modules/dup2-obsolete: New file.
41023         * m4/dup2-obsolete.m4: New file.
41024         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
41025         gl_FUNC_DUP2_OBSOLETE is not also defined.
41026         * modules/dup2 (Depends-on): Add dup2-obsolete.
41027         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
41029 2011-04-25  Bruno Haible  <bruno@clisp.org>
41031         strnlen: Avoid memchr related link error on old obsolete platforms.
41032         * modules/memchr-obsolete: New file.
41033         * m4/memchr-obsolete.m4: New file.
41034         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
41035         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
41036         * modules/memchr (Depends-on): Add memchr-obsolete.
41037         * modules/strnlen (Depends-on): Likewise.
41038         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
41040 2011-04-25  Jim Meyering  <meyering@redhat.com>
41042         maint.mk: makefile_at_at_check extend and clean up
41043         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
41044         in addition to */Makefile.am.
41045         Exempt legitimate uses of @VAR@ notation, e.g.,
41046         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
41047         Remove obsolete coreutils-specific comment.
41048         Prompted by discussion here:
41049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
41051 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
41053         strtoul: remove dependency on strtol
41054         This is so that 'configure' need not check for strtol merely because
41055         the application needs strtoul.
41056         * modules/strtoul (Files): Add lib/strtol.c.
41057         (Depends-on): Remove strtol.
41059         strtoull: remove dependency on strtoul
41060         This is like the strtoll change.
41061         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
41062         (Depends-on): Remove strtoul.
41064         strtoll: remove dependency on strtol
41065         This is so that 'configure' need not check for strtol merely because
41066         the application needs strtoll.
41067         * modules/strtoll (Files): Add lib/strtol.c.
41068         (Depends-on): Remove strtol.
41070 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41072         inttypes: Move some configure check to module 'imaxdiv'.
41073         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
41074         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
41075         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
41077 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41079         inttypes: Move some configure check to module 'imaxabs'.
41080         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
41081         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
41082         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
41084 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41086         inttypes: Remove configure tests that are not needed since 2009-12-31.
41087         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
41088         gl_cv_header_working_inttypes_h.
41090 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41092         * modules/strnlen (Depends-on): Remove memchr.
41093         The strnlen implementation doesn't need the memchr module's fixes; see
41094         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
41096         strtol: remove dependency on wchar
41097         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
41098         * modules/strtol (Depends-on): Remove wchar.
41100 2011-04-21  Eric Blake  <eblake@redhat.com>
41102         passfd: fix test regression on Linux
41103         * modules/passfd-tests (configure.ac): Correct socketpair check.
41105         passfd: speed up configure and drop unused code
41106         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
41107         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
41108         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
41109         Instead of probing at configure for unix_scm_rights_bsd44_way,
41110         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
41111         check to a struct member probe.
41112         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
41113         (sendfd, recvfd): Update preprocessor checks.
41114         * modules/passfd (Files): Reflect rename, and drop unused file.
41115         (Depends-on): Drop unused dependency.
41117         passfd: allow compilation on mingw
41118         * modules/sys_socket (Depends-on): Add sys_uio.
41119         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
41120         iovec and a minimal struct msghdr.
41121         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
41122         * tests/test-sys_socket.c (main): Enhance test.
41123         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
41124         guaranteed to provide what we need.
41125         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
41126         * modules/passfd-tests (Depends-on): Add sys_wait.
41127         * tests/test-passfd.c (main): Skip test on mingw, for now.
41128         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
41129         partial 'struct msghdr' implementation.
41131         sys_uio: new module
41132         * modules/sys_uio: New module.
41133         * modules/sys_uio-tests: Likewise.
41134         * lib/sys_uio.in.h: New file.
41135         * m4/sys_uio_h.m4: Likewise.
41136         * tests/test-sys_uio.c: Likewise.
41137         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
41138         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
41140 2011-04-20  Jim Meyering  <meyering@redhat.com>
41142         useless-if-before-free: avoid false-positive
41143         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
41144         disjunct so that it too requires a terminating ";".  Without that,
41145         this script would identify as useless one statement from gcc that
41146         was not:
41147           if (aligned_ptr)
41148             free (((void **) aligned_ptr) [-1]);
41150 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
41152         doc: update users.txt.
41153         * users.txt: Add barcode.
41155 2011-04-19  Bruno Haible  <bruno@clisp.org>
41157         ioctl: Remove link dependency on native Windows.
41158         * lib/fd-hook.h: Renamed from lib/close-hook.h.
41159         (gl_close_fn, gl_ioctl_fn): New types.
41160         (struct fd_hook): Renamed from struct close_hook. Change type of
41161         private_close_fn field. Add private_ioctl_fn field.
41162         (close_hook_fn): Add parameter for primary close method.
41163         (execute_close_hooks, execute_all_close_hooks): Likewise.
41164         (ioctl_hook_fn): New type.
41165         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
41166         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41167         argument.
41168         (unregister_fd_hook): Renamed from unregister_close_hook.
41169         * lib/fd-hook.c: Renamed from lib/close-hook.c.
41170         Don't include <unistd.h>.
41171         (close): Remove undef.
41172         (anchor): Update.
41173         (execute_close_hooks): Add argument for primary close method.
41174         (execute_all_close_hooks): Likewise.
41175         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
41176         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41177         argument. Allow each argument to be NULL.
41178         (unregister_fd_hook): Renamed from unregister_close_hook.
41179         * lib/close.c (rpl_close): Pass 'close' function pointer to
41180         execute_all_close_hooks.
41181         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
41182         (primary_ioctl): New function.
41183         (ioctl): Don't call ioctlsocket here. Instead, call
41184         execute_all_ioctl_hooks.
41185         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
41186         close method.
41187         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
41188         (fd_sockets_hook): Renamed from close_sockets_hook.
41189         (gl_sockets_startup, gl_sockets_cleanup): Update.
41190         * modules/fd-hook: Renamed from modules/close-hook. Update.
41191         * modules/close (Depends-on): Add fd-hook, remove close-hook.
41192         * modules/sockets (Depends-on): Likewise.
41193         * modules/ioctl (Depends-on): Add fd-hook.
41194         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
41195         GNULIB_SOCKET.
41197 2011-04-19  Bruno Haible  <bruno@clisp.org>
41199         Move the support of O_NONBLOCK in open() to the 'open' module.
41200         * modules/nonblocking (Depends-on): Remove 'open'.
41201         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
41202         gl_cv_have_open_O_NONBLOCK.
41203         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
41204         O_NONBLOCK support.
41205         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
41207 2011-04-17  Bruno Haible  <bruno@clisp.org>
41209         pipe2: Simplify code.
41210         * lib/pipe2.c (pipe2): Reduce code duplication.
41212 2011-04-17  Bruno Haible  <bruno@clisp.org>
41214         nonblocking: Add comment.
41215         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
41217 2011-04-17  Bruno Haible  <bruno@clisp.org>
41219         nonblocking: Add tests for sockets.
41220         * tests/test-nonblocking-socket.sh: New file.
41221         * tests/test-nonblocking-socket-main.c: New file.
41222         * tests/test-nonblocking-socket-child.c: New file.
41223         * tests/test-nonblocking-socket.h: New file.
41224         * tests/socket-server.h: New file.
41225         * tests/socket-client.h: New file.
41226         * modules/nonblocking-socket-tests: New file.
41227         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
41229 2011-04-17  Bruno Haible  <bruno@clisp.org>
41231         nonblocking: Add tests for pipes.
41232         * tests/test-nonblocking-pipe.sh: New file.
41233         * tests/test-nonblocking-pipe-main.c: New file.
41234         * tests/test-nonblocking-pipe-child.c: New file.
41235         * tests/test-nonblocking-pipe.h: New file.
41236         * tests/test-nonblocking-writer.h: New file.
41237         * tests/test-nonblocking-reader.h: New file.
41238         * tests/test-nonblocking-misc.h: New file.
41239         * modules/nonblocking-pipe-tests: New file.
41240         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
41242 2011-04-16  Bruno Haible  <bruno@clisp.org>
41244         gettext: Clarify the needed programmer actions.
41245         * modules/gettext (Notice): New field.
41246         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41248 2011-04-16  Bruno Haible  <bruno@clisp.org>
41250         strchrnul: Tweak last commit.
41251         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41252         bug.
41253         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
41254         as in _GL_FUNCDECL_SYS.
41255         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
41256         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
41258 2011-04-15  Eric Blake  <eblake@redhat.com>
41260         strchrnul: work around cygwin bug
41261         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
41262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
41263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
41264         * modules/string (Makefile.am): Substitute it.
41265         * lib/string.in.h (strchrnul): Use it.
41267 2011-04-15  Bruno Haible  <bruno@clisp.org>
41269         Don't require lib/stdio-write.c when only module 'stdio' is used.
41270         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
41271         invocation.
41272         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
41274 2011-04-14  Bruno Haible  <bruno@clisp.org>
41276         Support non-blocking pipe I/O in read() on native Windows.
41277         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
41278         (read): New declaration.
41279         * lib/read.c: New file.
41280         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
41281         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
41282         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
41283         vscanf): New declarations.
41284         * lib/stdio-read.c: New file.
41285         * m4/read.m4: New file.
41286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
41287         REPLACE_READ.
41288         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
41289         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41290         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
41291         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
41292         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
41293         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41294         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41295         * modules/read: New file.
41296         * modules/nonblocking (Files): Add lib/stdio-read.c.
41297         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
41298         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
41299         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41300         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41301         * modules/pread (Depends-on): Add read.
41302         * modules/safe-read (Depends-on): Likewise.
41303         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
41304         gets, scanf, vfscanf, vscanf): Verify signatures.
41305         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
41306         problem with non-blocking pipes.
41307         * doc/posix-functions/fgetc.texi: Likewise.
41308         * doc/posix-functions/fgets.texi: Likewise.
41309         * doc/posix-functions/fread.texi: Likewise.
41310         * doc/posix-functions/fscanf.texi: Likewise.
41311         * doc/posix-functions/getc.texi: Likewise.
41312         * doc/posix-functions/getchar.texi: Likewise.
41313         * doc/posix-functions/gets.texi: Likewise.
41314         * doc/posix-functions/scanf.texi: Likewise.
41315         * doc/posix-functions/vfscanf.texi: Likewise.
41316         * doc/posix-functions/vscanf.texi: Likewise.
41318 2011-04-14  Bruno Haible  <bruno@clisp.org>
41320         Support non-blocking pipe I/O in write() on native Windows.
41321         * lib/write.c (rpl_write): Split a write request that failed merely
41322         because the byte count was larger than the pipe buffer's size.
41323         * doc/posix-functions/write.texi: Mention the problem with large byte
41324         counts.
41326 2011-04-14  Bruno Haible  <bruno@clisp.org>
41328         wchar: Ensure that wchar_t gets defined on uClibc.
41329         * lib/wchar.in.h: On uClibc, include <stddef.h>.
41330         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
41332 2011-04-13  Bruno Haible  <bruno@clisp.org>
41334         safe-write, full-read: Avoid unnecessary compilation units.
41335         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
41336         (Depends-on): Remove safe-read. Add ssize_t.
41337         * modules/full-read (Files): Add lib/full-write.c.
41338         (Depends-on): Add full-write.
41340 2011-04-13  Bruno Haible  <bruno@clisp.org>
41342         Support non-blocking pipe I/O and SIGPIPE in pwrite().
41343         * modules/pwrite (Depends-on): Add 'write'.
41345 2011-04-13  Bruno Haible  <bruno@clisp.org>
41347         Support non-blocking pipe I/O in write() on native Windows.
41348         * lib/unistd.in.h (write): Enable replacement also if
41349         GNULIB_UNISTD_H_NONBLOCKING is 1.
41350         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
41351         (rpl_write): When failing to write on a non-blocking pipe, change
41352         errno from ENOSPC to EAGAIN.
41353         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
41354         putchar, puts, vfprintf, vprintf): Enable replacement also if
41355         GNULIB_STDIO_H_NONBLOCKING is 1.
41356         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41357         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41358         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41359         CALL_WITH_SIGPIPE_EMULATION.
41360         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41361         * m4/nonblocking.m4: New file.
41362         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41363         for non-blocking I/O support.
41364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41365         GNULIB_UNISTD_H_NONBLOCKING.
41366         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41367         required for non-blocking I/O support.
41368         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41369         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41370         lib/stdio-write.c, m4/asm-underscore.m4.
41371         (Depends-on): Add stdio, unistd.
41372         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41373         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41374         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41375         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41376         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41377         problem with non-blocking pipes.
41378         * doc/posix-functions/fputc.texi: Likewise.
41379         * doc/posix-functions/fputs.texi: Likewise.
41380         * doc/posix-functions/fwrite.texi: Likewise.
41381         * doc/posix-functions/printf.texi: Likewise.
41382         * doc/posix-functions/putc.texi: Likewise.
41383         * doc/posix-functions/putchar.texi: Likewise.
41384         * doc/posix-functions/puts.texi: Likewise.
41385         * doc/posix-functions/vfprintf.texi: Likewise.
41386         * doc/posix-functions/vprintf.texi: Likewise.
41387         * doc/posix-functions/write.texi: Likewise.
41389 2011-04-10  Jim Meyering  <meyering@redhat.com>
41391         maint.mk: prohibit doubled words
41392         Detect them also when they're separated by a newline.
41393         There are 3 ways to customize it:
41394           - disable the test on a per file basis, as usual with rules using
41395             $(VC_LIST_EXCEPT)
41396           - replace the default doubled-word-selecting regexp (affects all files)
41397           - ignore a particular file-vs-doubled-word match
41398         I nearly used that last one to ignore the "is is" match in
41399         coreutils' NEWS file, since the text was "ls -is is ..."
41400         To do that, I would have added this line to cfg.mk:
41401           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41402         but it would have ignored any "is is" match in NEWS.
41403         Low probability, but still...
41404         Instead, I changed the text, slightly:
41405           -  ls -is is now consistent with ls -lis in ignoring values returned
41406           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41407         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41408         (prohibit_doubled_word_): Define.
41409         (sc_prohibit_doubled_word): New rule.
41410         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41412 2011-04-10  Jim Meyering  <meyering@redhat.com>
41414         maint: fix doubled-word typo in comment
41415         * m4/gethostname.m4: s/is is/it is/
41416         * m4/getdomainname.m4: Likewise.
41418 2011-04-10  Jim Meyering  <meyering@redhat.com>
41420         maint: remove doubled word: s/it it/it/
41421         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41423 2011-04-10  Jim Meyering  <meyering@redhat.com>
41425         maint.mk: remove useless semicolon and backslash
41426         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41427         semicolon and backslash.
41429 2011-04-10  Bruno Haible  <bruno@clisp.org>
41431         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41432         * modules/stdint-tests (Depends-on): Add wchar.
41434 2011-04-10  Jim Meyering  <meyering@redhat.com>
41436         maint: remove doubled words in comments, e.g., s/a a/a/
41437         * lib/strptime.c (day_of_the_week): s/the the/the/
41438         * tests/test-chown.h (test_chown): s/a a/a/
41440         test-chown.h: correct a cast
41441         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41442         when the destination is a stat.st_gid.
41444 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41446         getaddrinfo: Fix test for sa_len member.
41447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41448         include <sys/types.h> before <sys/socket.h>.
41450 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41452         maint: change "can not" to "cannot"
41453         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41454         boundaries.
41456 2011-04-09  Jim Meyering  <meyering@redhat.com>
41458         maint: change "a a" to "a"
41459         * tests/test-lchown.h (test_lchown): s/a a/a/
41461         maint.mk: prohibit \<the the\>
41462         * top/maint.mk (sc_prohibit_the_the): New rule.
41464         maint: fix "the the" in comment
41465         * lib/count-one-bits.h: s/the the/the/
41467         maint: change "can not" to "cannot"
41468         But do not change the occurrences in maintain.texi or in
41469         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41470         * doc/gnulib-tool.texi: s/can not/cannot/
41471         * doc/posix-functions/accept.texi (accept): Likewise.
41472         * doc/posix-functions/socket.texi (socket): Likewise.
41473         * lib/mbrtowc.c: Likewise.
41475         maint.mk: prohibit use of "can not"
41476         * top/maint.mk (sc_prohibit_can_not): New rule.
41477         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41479 2011-04-09  Bruno Haible  <bruno@clisp.org>
41481         careadlinkat: Guard against misuse of careadlinkatcwd.
41482         * lib/careadlinkat.c: Include <stdlib.h>.
41483         (careadlinkatcwd): Check that the fd argument is as expected.
41485 2011-04-09  Bruno Haible  <bruno@clisp.org>
41487         careadlinkat: Use common coding style.
41488         * lib/careadlinkat.c: Move gnulib includes after system includes.
41490 2011-04-09  Bruno Haible  <bruno@clisp.org>
41492         careadlinkat: Clarify specification.
41493         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41494         (careadlinkatcwd): Add comment.
41495         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41497 2011-04-09  Bruno Haible  <bruno@clisp.org>
41499         areadlinkat: Avoid link error on many platforms.
41500         * modules/areadlinkat (Depends-on): Add areadlink.
41502 2011-04-09  Bruno Haible  <bruno@clisp.org>
41504         allocator, careadlinkat: Fix double-inclusion guard.
41505         * lib/allocator.h: Fix double-inclusion guard.
41506         * lib/careadlinkat.h: Likewise.
41508 2011-04-09  Bruno Haible  <bruno@clisp.org>
41510         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41511         * lib/relocwrapper.c: Update dependencies hierarchy.
41512         * build-aux/install-reloc: Update list of files to be compiled.
41513         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41514         lib/allocator.[hc].
41516 2011-04-08  Eric Blake  <eblake@redhat.com>
41518         strftime: silence gnulib-tool warning
41519         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41521 2011-04-08  Bruno Haible  <bruno@clisp.org>
41523         verify: Fix syntax error with GCC 4.6 in C++ mode.
41524         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41525         (HAVE_STATIC_ASSERT): New macro.
41526         (verify_true, verify): Use 'static_assert' if it is supported and
41527         '_Static_assert' is not supported.
41529 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41531         allocator: New module.
41532         * modules/allocator, lib/allocator.c: New files.
41533         * lib/allocator.h (stdlib_allocator): New decl.
41534         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41535         Remove.  Do not include <stdlib.h>.
41536         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41537         * modules/careadlinkat (Files): Remove lib/allocator.h.
41538         (Depends-on): Add allocator.
41540         stdlib: let modules use system malloc, realloc
41541         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41542         if !_GL_USE_STDLIB_ALLOC.
41543         (malloc, realloc): Limit this change to a smaller scope.
41545         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41546         (malloc, realloc): Don't #undef; no longer needed.
41547         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41548         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41549         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41550         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41551         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41552         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41553         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41554         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41556         careadlinkat: rename members to avoid problem
41557         * lib/allocator.h (struct allocator): Rename members from
41558         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41559         and realloc are #define'd.  Reported by Eric Blake in
41560         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41561         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41563 2011-04-08  Eric Blake  <eblake@redhat.com>
41565         nonblocking: reduce dependency
41566         * tests/test-nonblocking.c: Only test sockets when in use.
41567         * modules/nonblocking-tests (Depends-on): Drop socket.
41568         (Makefile.am): Link even if sockets are not present.
41569         * modules/pipe2-tests (Makefile.am): Likewise.
41570         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41572         pipe2: fix O_NONBLOCK support on mingw
41573         * modules/pipe2 (Depends-on): Add nonblocking.
41574         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41575         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41576         * tests/test-nonblocking.c (main): Likewise.
41577         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41579         fcntl-h: fix O_ACCMODE on cygwin
41580         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41581         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41583         pipe-filter: drop O_NONBLOCK workarounds
41584         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41585         * modules/pipe-filter-ii (Depends-on): Likewise.
41586         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41588         nonblocking: provide O_NONBLOCK for mingw
41589         * modules/nonblocking (Depends-on): Add open.
41590         (configure.ac): Set new witness macro.
41591         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41592         * modules/fcntl-h (Makefile.am): Substitute it.
41593         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41594         nonblocking module is in use.
41595         * lib/nonblocking.c: Adjust portability test.
41596         * lib/open.c (open): Don't let native open see gnulib flag.
41597         * tests/test-fcntl-h.c (main): Enhance test.
41598         * tests/test-open.h (test_open): Likewise.
41599         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41601         careadlinkat: fix compilation error on mingw
41602         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41603         within struct allocator.
41605 2011-04-06  Eric Blake  <eblake@redhat.com>
41607         binary-io: relicense under LGPLv2+
41608         * modules/binary-io (License): Relax to LGPLv2+.
41609         Requested for libvirt, and required by pipe2.
41611 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41613         verify: use _Static_assert if available
41614         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41615         (verify_true, verify): Use it if available.  This generates better
41616         diagnostics with GCC 4.6.0 and later.
41618 2011-04-05  Bruno Haible  <bruno@clisp.org>
41620         Remove leftover generated .h files after config.status changed.
41622         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41623         GL_GENERATE_ALLOCA_H.
41624         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41625         GL_GENERATE_ALLOCA_H evaluates to false.
41627         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41628         GL_GENERATE_ARGZ_H.
41629         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41630         evaluates to false.
41632         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41633         GL_GENERATE_BYTESWAP_H.
41634         * modules/byteswap (Makefile.am): Remove byteswap.h if
41635         GL_GENERATE_BYTESWAP_H evaluates to false.
41637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41638         GL_GENERATE_ERRNO_H.
41639         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41640         evaluates to false.
41642         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41643         GL_GENERATE_FLOAT_H.
41644         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41645         evaluates to false.
41647         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41648         GL_GENERATE_FNMATCH_H.
41649         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41650         GL_GENERATE_FNMATCH_H evaluates to false.
41652         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41653         GL_GENERATE_GLOB_H.
41654         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41655         evaluates to false.
41657         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41658         automake conditional GL_GENERATE_ICONV_H.
41659         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41660         evaluates to false.
41662         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41663         GL_GENERATE_NETINET_IN_H.
41664         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41665         GL_GENERATE_NETINET_IN_H evaluates to false.
41667         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41668         conditional GL_GENERATE_PTHREAD_H.
41669         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41670         * modules/pthread (Makefile.am): Remove pthread.h if
41671         GL_GENERATE_PTHREAD_H evaluates to false.
41673         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41674         GL_GENERATE_SCHED_H.
41675         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41676         evaluates to false.
41678         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41679         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41680         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41681         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41683         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41684         GL_GENERATE_STDARG_H.
41685         * modules/stdarg (Makefile.am): Remove stdarg.h if
41686         GL_GENERATE_STDARG_H evaluates to false.
41688         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41689         GL_GENERATE_STDBOOL_H.
41690         * modules/stdbool (Makefile.am): Remove stdbool.h if
41691         GL_GENERATE_STDBOOL_H evaluates to false.
41693         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41694         conditional GL_GENERATE_STDDEF_H.
41695         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41696         * modules/stddef (Makefile.am): Remove stddef.h if
41697         GL_GENERATE_STDDEF_H evaluates to false.
41699         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41700         GL_GENERATE_STDINT_H.
41701         * modules/stdint (Makefile.am): Remove stdint.h if
41702         GL_GENERATE_STDINT_H evaluates to false.
41704         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41705         GL_GENERATE_SYSEXITS_H.
41706         * modules/sysexits (Makefile.am): Remove sysexits.h if
41707         GL_GENERATE_SYSEXITS_H evaluates to false.
41709         Reported by Karl Berry and Ralf Wildenhues.
41711 2011-04-05  Bruno Haible  <bruno@clisp.org>
41713         Ensure to rebuild generated .h files when config.status has changed.
41714         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41715         config.status.
41716         * modules/ctype (Makefile.am): Likewise.
41717         * modules/dirent (Makefile.am): Likewise.
41718         * modules/errno (Makefile.am): Likewise.
41719         * modules/fcntl-h (Makefile.am): Likewise.
41720         * modules/float (Makefile.am): Likewise.
41721         * modules/getopt-posix (Makefile.am): Likewise.
41722         * modules/glob (Makefile.am): Likewise.
41723         * modules/iconv-h (Makefile.am): Likewise.
41724         * modules/inttypes (Makefile.am): Likewise.
41725         * modules/langinfo (Makefile.am): Likewise.
41726         * modules/locale (Makefile.am): Likewise.
41727         * modules/math (Makefile.am): Likewise.
41728         * modules/netdb (Makefile.am): Likewise.
41729         * modules/netinet_in (Makefile.am): Likewise.
41730         * modules/poll-h (Makefile.am): Likewise.
41731         * modules/pthread (Makefile.am): Likewise.
41732         * modules/pty (Makefile.am): Likewise.
41733         * modules/sched (Makefile.am): Likewise.
41734         * modules/search (Makefile.am): Likewise.
41735         * modules/selinux-h (Makefile.am): Likewise.
41736         * modules/signal (Makefile.am): Likewise.
41737         * modules/spawn (Makefile.am): Likewise.
41738         * modules/stdarg (Makefile.am): Likewise.
41739         * modules/stdbool (Makefile.am): Likewise.
41740         * modules/stddef (Makefile.am): Likewise.
41741         * modules/stdint (Makefile.am): Likewise.
41742         * modules/stdio (Makefile.am): Likewise.
41743         * modules/stdlib (Makefile.am): Likewise.
41744         * modules/string (Makefile.am): Likewise.
41745         * modules/strings (Makefile.am): Likewise.
41746         * modules/sys_file (Makefile.am): Likewise.
41747         * modules/sys_ioctl (Makefile.am): Likewise.
41748         * modules/sys_select (Makefile.am): Likewise.
41749         * modules/sys_socket (Makefile.am): Likewise.
41750         * modules/sys_stat (Makefile.am): Likewise.
41751         * modules/sys_time (Makefile.am): Likewise.
41752         * modules/sys_times (Makefile.am): Likewise.
41753         * modules/sys_utsname (Makefile.am): Likewise.
41754         * modules/sys_wait (Makefile.am): Likewise.
41755         * modules/sysexits (Makefile.am): Likewise.
41756         * modules/termios (Makefile.am): Likewise.
41757         * modules/time (Makefile.am): Likewise.
41758         * modules/unistd (Makefile.am): Likewise.
41759         * modules/wchar (Makefile.am): Likewise.
41760         * modules/wctype-h (Makefile.am): Likewise.
41761         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41763 2011-04-05  Bruno Haible  <bruno@clisp.org>
41765         pipe2: Relicense under LGPLv2+.
41766         * modules/pipe2 (License): Change to LGPLv2+.
41767         Requested by Eric Blake, for libvirt.
41769 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41771         bootstrap: compute gnulib_extra_files after updating build_aux
41772         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41773         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41775 2011-04-05  Eric Blake  <eblake@redhat.com>
41777         bootstrap: preserve git whitelist item sorting
41778         * build-aux/bootstrap (sort_patterns): New function.
41779         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41781 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41783         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41784         sc_space_tab check.
41786 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41788         areadlink, areadlinkat: rewrite in terms of careadlinkat
41789         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41790         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41791         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41792         (malloc, realloc): Remove #undefs.
41793         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41794         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41795         readlink, ssize_t, stdint, unistd.
41796         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41797         areadlink, stdint.
41799         careadlinkat: new module
41800         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41801         * modules/careadlinkat: New files, written by me with
41802         a review and feedback from Ben Pfaff in
41803         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41805 2011-04-01  Bruno Haible  <bruno@clisp.org>
41807         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41808         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41809         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41810         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41811         Reported by Bruce Korb <bruce.korb@gmail.com>.
41813 2011-04-01  Bruno Haible  <bruno@clisp.org>
41815         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41816         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41817         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41818         * modules/wcpcpy (Depends-on): Add extensions.
41819         * modules/wcpncpy (Depends-on): Likewise.
41820         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41821         systems.
41822         * doc/posix-functions/wcpncpy.texi: Likewise.
41823         * doc/posix-functions/wcwidth.texi: Likewise.
41825 2011-03-31  Eric Blake  <eblake@redhat.com>
41827         nonblocking: fix mingw test failures
41828         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41829         non-blocking flag on regular file.
41830         (get_nonblocking_flag): Set errno on invalid fd.
41831         * tests/test-nonblocking.c (main): Avoid test failure on
41832         directories if fchdir is not active.
41833         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41835 2011-03-31  Bruno Haible  <bruno@clisp.org>
41837         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41838         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41839         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41840         Reported by Simon Josefsson <simon@josefsson.org>.
41842 2011-03-31  Bruno Haible  <bruno@clisp.org>
41843         and Eric Blake  <eblake@redhat.com>
41845         nonblocking: new module
41846         * modules/nonblocking: New module.
41847         * modules/nonblocking-tests: Likewise.
41848         * lib/nonblocking.h: New file.
41849         * lib/nonblocking.c: Likewise.
41850         * tests/test-nonblocking.c: New test.
41851         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41853 2011-03-30  Bruno Haible  <bruno@clisp.org>
41855         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41856         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41857         instead of 'printf' format for GCC >= 4.4.
41858         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41859         (fprintf, printf, vfprintf, vprintf): Declare with
41860         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41861         the system's vfprintf() function.
41862         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41864 2011-03-30  Eric Blake  <eblake@redhat.com>
41866         passfd: fix scoping bug
41867         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41868         before sendmsg/recvmsg.
41870         passfd: standardize coding conventions
41871         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41872         can be learned at compile time.
41873         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41874         ifdefs.
41875         (sendfd, recvfd): Follow gnulib code conventions.
41877         passfd: fix incorrect sendmsg arguments
41878         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41879         incorrect msg_controllen value.
41880         * modules/passfd-tests (Depends-on): Check for alarm.
41881         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41882         Reported by Bastien ROUCARIES.
41884 2011-03-30  Bruno Haible  <bruno@clisp.org>
41886         c-strcasestr: Relicense under LGPLv2+.
41887         * modules/c-strcasestr (License): Change to LGPLv2+.
41888         Requested by Eric Blake, for libvirt.
41890 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41892         * users.txt: Add libidn2.  Fix libtasn1 link.
41894 2011-03-30  Jim Meyering  <meyering@redhat.com>
41896         tests: readlink* ("",... fails with EINVAL on newer kernels
41897         readlink and readlinkat have typically failed with ENOENT for
41898         the invalid, empty file name,  "".  However, with the advent
41899         of linux-2.6.39, they fail with EINVAL.
41900         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41901         when operating on the empty file name.
41902         * tests/test-readlink.h (test_readlink): Likewise.
41904 2011-03-29  Bruno Haible  <bruno@clisp.org>
41906         Relicense some modules under LGPLv2+, for libidn2.
41907         * modules/array-mergesort (License): Change to LGPLv2+.
41908         * modules/c-strcaseeq (License): Likewise.
41909         * modules/striconveh (License): Likewise.
41910         * modules/striconveha (License): Likewise.
41911         * modules/uniconv/base (License): Likewise.
41912         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41913         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41914         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41915         * modules/unictype/base (License): Likewise.
41916         * modules/unictype/bidiclass-of (License): Likewise.
41917         * modules/unictype/category-M (License): Likewise.
41918         * modules/unictype/category-none (License): Likewise.
41919         * modules/unictype/category-of (License): Likewise.
41920         * modules/unictype/category-test (License): Likewise.
41921         * modules/unictype/category-test-withtable (License): Likewise.
41922         * modules/unictype/combining-class (License): Likewise.
41923         * modules/unictype/joiningtype-of (License): Likewise.
41924         * modules/unictype/scripts (License): Likewise.
41925         * modules/uninorm/base (License): Likewise.
41926         * modules/uninorm/canonical-decomposition (License): Likewise.
41927         * modules/uninorm/composition (License): Likewise.
41928         * modules/uninorm/decompose-internal (License): Likewise.
41929         * modules/uninorm/decomposition-table (License): Likewise.
41930         * modules/uninorm/nfc (License): Likewise.
41931         * modules/uninorm/nfd (License): Likewise.
41932         * modules/uninorm/u32-normalize (License): Likewise.
41933         * modules/unistr/base (License): Likewise.
41934         * modules/unistr/u32-cpy (License): Likewise.
41935         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41936         * modules/unistr/u32-to-u8 (License): Likewise.
41937         * modules/unistr/u32-uctomb (License): Likewise.
41938         * modules/unistr/u8-check (License): Likewise.
41939         * modules/unistr/u8-mblen (License): Likewise.
41940         * modules/unistr/u8-mbtouc (License): Likewise.
41941         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41942         * modules/unistr/u8-mbtoucr (License): Likewise.
41943         * modules/unistr/u8-prev (License): Likewise.
41944         * modules/unistr/u8-strlen (License): Likewise.
41945         * modules/unistr/u8-to-u32 (License): Likewise.
41946         * modules/unistr/u8-uctomb (License): Likewise.
41947         * modules/unitypes (License): Likewise.
41948         Requested by Simon Josefsson.
41950 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41952         lib-symbol-visibility: Add a notice.
41953         * modules/lib-symbol-visibility (Notice): New field.
41955 2011-03-29  Bruno Haible  <bruno@clisp.org>
41957         getaddrinfo: Doc fix.
41958         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41959         section "fixed in Gnulib".
41961 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41963         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41964         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41966 2011-03-26  Bruno Haible  <bruno@clisp.org>
41968         unictype/property-byname: Reduce the number of load-time relocations.
41969         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41970         (UC_PROPERTY_INDEX_*): New enumeration values.
41971         (uc_property_byname): Convert an index from the lookup table to an
41972         uc_property_t.
41973         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41974         values.
41976 2011-03-26  Bruno Haible  <bruno@clisp.org>
41978         unictype/property-byname: Allow omitted word separators and aliases.
41979         * lib/unictype/pr_byname.gperf: Add property names without word
41980         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41981         for 'space'.
41983 2011-03-26  Bruno Haible  <bruno@clisp.org>
41985         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41986         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41987         also hyphens to space.
41988         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41989         without spaces.
41990         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41992 2011-03-26  Bruno Haible  <bruno@clisp.org>
41994         unictype/joiningtype-byname: Recognize long names as well.
41995         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41996         a long name.
41997         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41998         unictype/joiningtype_byname.h.
41999         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
42000         * lib/unictype/joiningtype_byname.gperf: New file.
42001         * modules/unictype/joiningtype-byname (Files): Add
42002         lib/unictype/joiningtype_byname.gperf.
42003         (Depends-on): Add gperf.
42004         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
42005         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
42006         long names.
42008         Tests for module 'unictype/joiningtype-longname'.
42009         * modules/unictype/joiningtype-longname-tests: New file.
42010         * tests/unictype/test-joiningtype_longname.c: New file.
42012         New module 'unictype/joiningtype-longname'.
42013         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
42014         * lib/unictype/joiningtype_longname.c: New file.
42015         * modules/unictype/joiningtype-longname: New file.
42016         * modules/unictype/joiningtype-all (Depends-on): Add
42017         unictype/joiningtype-longname.
42019 2011-03-26  Bruno Haible  <bruno@clisp.org>
42021         unictype/bidiclass-byname: Recognize long names as well.
42022         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
42023         name.
42024         * lib/unictype/bidi_byname.c: Include <string.h>,
42025         unictype/bidi_byname.h.
42026         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
42027         * lib/unictype/bidi_byname.gperf: New file.
42028         * modules/unictype/bidiclass-byname (Files): Add
42029         lib/unictype/bidi_byname.gperf.
42030         (Depends-on): Add gperf.
42031         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
42032         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
42033         long names.
42035         Tests for module 'unictype/bidiclass-longname'.
42036         * modules/unictype/bidiclass-longname-tests: New file.
42037         * tests/unictype/test-bidi_longname.c: New file.
42039         New module 'unictype/bidiclass-longname'.
42040         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
42041         * lib/unictype/bidi_longname.c: New file.
42042         * modules/unictype/bidiclass-longname: New file.
42043         * modules/unictype/bidiclass-all (Depends-on): Add
42044         unictype/bidiclass-longname.
42046 2011-03-26  Bruno Haible  <bruno@clisp.org>
42048         unictype/bidi*: Rename modules.
42049         * modules/unictype/bidiclass-all: Renamed from
42050         modules/unictype/bidicategory-all.
42051         * modules/unictype/bidiclass-name: Renamed from
42052         modules/unictype/bidiclass-name.
42053         (Description): Update.
42054         * modules/unictype/bidiclass-name-tests: Renamed from
42055         modules/unictype/bidicategory-name-tests.
42056         * modules/unictype/bidiclass-byname: Renamed from
42057         modules/unictype/bidicategory-byname.
42058         (Description): Update.
42059         * modules/unictype/bidiclass-byname-tests: Renamed from
42060         modules/unictype/bidicategory-byname-tests.
42061         * modules/unictype/bidiclass-of: Renamed from
42062         modules/unictype/bidicategory-of.
42063         (Description): Update.
42064         * modules/unictype/bidiclass-of-tests: Renamed from
42065         modules/unictype/bidicategory-of-tests.
42066         * modules/unictype/bidiclass-test: Renamed from
42067         modules/unictype/bidicategory-test.
42068         (Description): Update.
42069         * modules/unictype/bidiclass-test-tests: Renamed from
42070         modules/unictype/bidicategory-test-tests.
42071         * modules/unictype/bidicategory-all: New file, a simple redirection.
42072         * modules/unictype/bidicategory-name: Likewise.
42073         * modules/unictype/bidicategory-byname: Likewise.
42074         * modules/unictype/bidicategory-of: Likewise.
42075         * modules/unictype/bidicategory-test: Likewise.
42076         * modules/unictype/property-bidi-* (Dependencies): Update.
42077         * lib/unictype/bidi_*.c: Update comment.
42079 2011-03-26  Bruno Haible  <bruno@clisp.org>
42081         unictype/bidi*: Rename functions, part 2.
42082         * modules/unictype/bidicategory-name (configure.ac): Update required
42083         libunistring version.
42084         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
42086 2011-03-25  Bruno Haible  <bruno@clisp.org>
42088         New module 'unictype/combining-class-all'.
42089         * modules/unictype/combining-class-all: New file.
42091         Tests for module 'unictype/combining-class-byname'.
42092         * modules/unictype/combining-class-byname-tests: New file.
42093         * tests/unictype/test-combiningclass_byname.c: New file.
42095         New module 'unictype/combining-class-byname'.
42096         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
42097         * lib/unictype/combiningclass_byname.c: New file.
42098         * lib/unictype/combiningclass_byname.gperf: New file.
42099         * modules/unictype/combining-class-byname: New file.
42101         Tests for module 'unictype/combining-class-longname'.
42102         * modules/unictype/combining-class-longname-tests: New file.
42103         * tests/unictype/test-combiningclass_longname.c: New file.
42105         New module 'unictype/combining-class-longname'.
42106         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
42107         * lib/unictype/combiningclass_longname.c: New file.
42108         * modules/unictype/combining-class-longname: New file.
42110         Tests for module 'unictype/combining-class-name'.
42111         * modules/unictype/combining-class-name-tests: New file.
42112         * tests/unictype/test-combiningclass_name.c: New file.
42114         New module 'unictype/combining-class-name'.
42115         * lib/unictype.in.h (uc_combining_class_name): New declaration.
42116         * lib/unictype/combiningclass_name.c: New file.
42117         * modules/unictype/combining-class-name: New file.
42119 2011-03-25  Bruno Haible  <bruno@clisp.org>
42121         unictype/combining-class: Rename source files.
42122         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
42123         of unictype/combining.h.
42124         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
42125         Update.
42126         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
42127         * modules/unictype/combining-class (Description): Fix.
42128         (Files, Makefile.am): Update.
42129         * tests/unictype/test-combiningclass.c: Renamed from
42130         tests/unictype/test-combining.c.
42131         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
42133 2011-03-25  Bruno Haible  <bruno@clisp.org>
42135         unictype: Update list of canonical combining classes.
42136         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
42138 2011-03-25  Bruno Haible  <bruno@clisp.org>
42140         unictype/category-byname: Recognize long names as well.
42141         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
42142         a long name.
42143         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
42144         unictype/categ_byname.h.
42145         (UC_CATEGORY_INDEX_*): New enumeration values.
42146         (uc_general_category_byname): Use uc_general_category_lookup and
42147         convert from index to value.
42148         * lib/unictype/categ_byname.gperf: New file.
42149         * modules/unictype/category-byname (Files): Add
42150         lib/unictype/categ_byname.gperf.
42151         (Depends-on): Add gperf.
42152         (Makefile.am): Add rule for generating unictype/categ_byname.h.
42153         * tests/unictype/test-categ_byname.c (main): Test the recognition of
42154         long names.
42156         Tests for module 'unictype/category-longname'.
42157         * modules/unictype/category-longname-tests: New file.
42158         * tests/unictype/test-categ_longname.c: New file.
42160         New module 'unictype/category-longname'.
42161         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
42162         * lib/unictype/categ_longname.c: New file.
42163         * modules/unictype/category-longname: New file.
42164         * modules/unictype/category-all (Depends-on): Add it.
42166 2011-03-25  Bruno Haible  <bruno@clisp.org>
42168         Tests for module 'unictype/category-LC'.
42169         * modules/unictype/category-LC-tests: New file.
42170         * tests/unictype/test-categ_LC.c: New file, automatically generated.
42172         New module 'unictype/category-LC'.
42173         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
42174         (UC_CATEGORY_LC): New declaration.
42175         (UC_CASED_LETTER): New macro.
42176         * lib/gen-uni-tables.c (is_category_LC): New function.
42177         (output_categories): Also handle category LC.
42178         (UC_CATEGORY_MASK_LC): New enumeration value.
42179         (general_category_byname): Also handle category LC.
42180         * lib/unictype/categ_LC.c: New file.
42181         * lib/unictype/categ_LC.h: New file, automatically generated.
42182         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
42183         category LC.
42184         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
42185         * modules/unictype/category-LC: New file.
42186         * modules/unictype/category-byname (Depends-on): Add
42187         unictype/category-LC.
42188         * modules/unictype/category-all (Depends-on): Likewise.
42190 2011-03-25  Eric Blake  <eblake@redhat.com>
42192         xmalloc: revert yesterday's regression
42193         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
42194         realloc's underlying behavior (allowing allocation of zero-size
42195         objects, especially if malloc-gnu is also in use).
42197 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
42199         maint.mk: add missing version to VC-tag
42200         * top/maint.mk: git tag was missing actual tag name; add it.
42202         valgrind: do leak checking, and exit with code 1 on error (not 0)
42203         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
42204         to VALGRIND.
42206 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
42208         posix-modules: say what it does.
42209         * posix-modules: Add a line to the --help output saying what it does.
42211 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
42213         xmalloc: Do not leak if underlying realloc is C99 compatible.
42214         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
42215         This avoids a leak on C99-based systems.  See
42216         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
42218 2011-03-24  Eric Blake  <eblake@redhat.com>
42220         realloc: document portability problem
42221         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
42222         passing 0 size to realloc.
42224 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
42226         doc: update users.txt
42227         * users.txt: Add cvsps, tmpwatch
42229 2011-03-23  Matt Rice  <ratmice@gmail.com>
42231         doc: update users.txt
42232         * users.txt: Add gdb.
42234 2011-03-23  Jim Meyering  <meyering@redhat.com>
42236         doc: update users.txt
42237         Looking through matches up to the following URL (there are still
42238         several more pages), I found several projects that use gnulib:
42239         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
42240         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
42241         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
42243 2011-03-22  Bruno Haible  <bruno@clisp.org>
42245         unictype/bidi*: Rename functions.
42246         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
42247         uc_bidi_class, uc_is_bidi_class): New declarations.
42248         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
42249         uc_bidi_category_byname.
42250         (uc_bidi_category_byname): New function.
42251         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
42252         u_bidi_category_name.
42253         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
42254         (uc_bidi_category_name): New function.
42255         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
42256         uc_bidi_category.
42257         (uc_bidi_category): New function.
42258         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
42259         uc_is_bidi_category. Invoke uc_bidi_class.
42260         (uc_is_bidi_category): New function.
42261         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
42262         instead of uc_bidi_category_byname.
42263         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
42264         instead of uc_bidi_category_name.
42265         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
42266         uc_bidi_category.
42267         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
42268         instead of uc_is_bidi_category.
42270 2011-03-21  Bruno Haible  <bruno@clisp.org>
42272         New module 'unictype/joininggroup-all'.
42273         * modules/unictype/joininggroup-all: New file.
42275         Tests for module 'unictype/joininggroup-of'.
42276         * modules/unictype/joininggroup-of-tests: New file.
42277         * tests/unictype/test-joininggroup_of.c: New file.
42278         * tests/unictype/test-joininggroup_of.h: New file, automatically
42279         generated by gen-uni-tables.
42281         New module 'unictype/joininggroup-of'.
42282         * modules/unictype/joininggroup-of: New file.
42283         * lib/unictype/joininggroup_of.c: New file.
42284         * lib/unictype/joininggroup_of.h: New file, automatically generated by
42285         gen-uni-tables.
42287         Tests for module 'unictype/joininggroup-byname'.
42288         * modules/unictype/joininggroup-byname-tests: New file.
42289         * tests/unictype/test-joininggroup_byname.c: New file.
42291         New module 'unictype/joininggroup-byname'.
42292         * modules/unictype/joininggroup-byname: New file.
42293         * lib/unictype/joininggroup_byname.c: New file.
42294         * lib/unictype/joininggroup_byname.gperf: New file.
42296         Tests for module 'unictype/joininggroup-name'.
42297         * modules/unictype/joininggroup-name-tests: New file.
42298         * tests/unictype/test-joininggroup_name.c: New file.
42300         New module 'unictype/joininggroup-name'.
42301         * modules/unictype/joininggroup-name: New file.
42302         * lib/unictype/joininggroup_name.c: New file.
42303         * lib/unictype/joininggroup_name.h: New file.
42305         New module 'unictype/joiningtype-all'.
42306         * modules/unictype/joiningtype-all: New file.
42308         Tests for module 'unictype/joiningtype-of'.
42309         * modules/unictype/joiningtype-of-tests: New file.
42310         * tests/unictype/test-joiningtype_of.c: New file.
42311         * tests/unictype/test-joiningtype_of.h: New file, automatically
42312         generated by gen-uni-tables.
42314         New module 'unictype/joiningtype-of'.
42315         * modules/unictype/joiningtype-of: New file.
42316         * lib/unictype/joiningtype_of.c: New file.
42317         * lib/unictype/joiningtype_of.h: New file, automatically generated by
42318         gen-uni-tables.
42320         Tests for module 'unictype/joiningtype-byname'.
42321         * modules/unictype/joiningtype-byname-tests: New file.
42322         * tests/unictype/test-joiningtype_byname.c: New file.
42324         New module 'unictype/joiningtype-byname'.
42325         * modules/unictype/joiningtype-byname: New file.
42326         * lib/unictype/joiningtype_byname.c: New file.
42328         Tests for module 'unictype/joiningtype-name'.
42329         * modules/unictype/joiningtype-name-tests: New file.
42330         * tests/unictype/test-joiningtype_name.c: New file.
42332         New module 'unictype/joiningtype-name'.
42333         * modules/unictype/joiningtype-name: New file.
42334         * lib/unictype/joiningtype_name.c: New file.
42336         unictype: Add support for Arabic shaping properties.
42337         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
42338         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
42339         declarations.
42340         (UC_JOINING_GROUP_*): New enumeration values.
42341         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
42342         declarations.
42343         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
42344         (unicode_joining_type): New variable.
42345         (UC_JOINING_GROUP_*): New enumeration values.
42346         (unicode_joining_group): New variable.
42347         (fill_arabicshaping, joining_type_as_c_identifier,
42348         output_joining_type_test, output_joining_type,
42349         joining_group_as_c_identifier, output_joining_group_test,
42350         output_joining_group): New functions.
42351         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
42352         fill_arabicshaping and output_joining_type_test, output_joining_type,
42353         output_joining_group_test, output_joining_group.
42354         Reported by Simon Josefsson.
42356 2011-03-21  Jim Meyering  <meyering@redhat.com>
42358         strftime: fix a bug in yesterday's change
42359         * lib/strftime.c (add): Accommodate width's initial value of -1.
42360         Otherwise, nstrftime would copy uninitialized data into
42361         the result buffer.
42363 2011-03-21  Jim Meyering  <meyering@redhat.com>
42365         tests: add strftime-tests module
42366         * tests/test-strftime.c: New file.
42367         * modules/strftime-tests: New module.
42369 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42371         strftime: don't assume a byte count fits in 'int'
42372         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42373         found this problem by static analysis, using gcc -Wstrict-overflow
42374         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42375         on an integer overflow having undefined behavior, but it turns out
42376         that the argument is a size, which might not fit in 'int' anyway,
42378 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42380         stdio: don't require ignore_value around fwrite
42382         This patch works around libc bug 11959
42383         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42384         Without this patch, applications must often write
42385         ignore_value (fwrite (...)) even though the ignore_value is
42386         not helpful here.  It's common to write many objects, using
42387         fwrite/printf/etc., and then use ferror to detect output error.
42389         I considered making this patch optional, but decided against it,
42390         because libc is obviously being inconsistent here: there is no
42391         reason libc should insist that user code must inspect fwrite
42392         return's value without also insisting that it inspect printf's,
42393         putchar's, etc.  If user code wants to have a strict style where
42394         all these functions' values are checked (so that ferror need not
42395         be checked), we could add support for that style in a new gnulib
42396         module, but in the meantime it's better to be consistent and to
42397         support common usage.
42399         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42400         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42401         that we are compiling in checking mode, and if not C++, and
42402         if not already wrapping fwrite for some other reason.
42403         (fwrite): #define to rpl_fwrite if the latter is defined.
42405 2011-03-20  Bruno Haible  <bruno@clisp.org>
42407         verror: Fix compilation error introduced on 2011-02-13.
42408         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42409         instead of __attribute__.
42410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42412 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42413             Bruno Haible  <bruno@clisp.org>
42415         socklen: do not depend on sys_socket
42416         While trying to modify Emacs to use gnulib's socklen module,
42417         I discovered a circular dependency: socklen depends on sys_socket
42418         and vice versa.  Emacs can use socklen, but it does not need
42419         sys_socket because it has its own substitute for sys/socket.h.
42420         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42421         gl_TYPE_SOCKLEN_T.
42422         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42423         gl_PREREQ_SYS_H_SOCKET.
42424         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42425         gl_PREREQ_SYS_H_SOCKET.
42426         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42427         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42428         * modules/socklen (Depends-on): Do not depend on sys_socket.
42429         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42431 2011-03-20  Jim Meyering  <meyering@redhat.com>
42433         maint.mk: sort file names *after* new transformation
42434         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42435         prefix would have led to an unwarranted failure in GNU parted.
42436         Sort after that transformation.
42438 2011-03-19  Jim Meyering  <meyering@redhat.com>
42440         maint.mk: fix po-file syntax-check rule
42441         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42442         Patch by Bruno Haible.
42444 2011-03-19  Bruno Haible  <bruno@clisp.org>
42446         socklen: Update comment.
42447         * m4/socklen.m4: Update comment about platforms.
42449 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42450             Bruno Haible  <bruno@clisp.org>
42452         inet_ntop, inet_pton: Simplify.
42453         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42454         documented to provide socklen_t and we already depend on sys_socket.
42455         * modules/inet_pton (Depends-on): Likewise.
42456         * lib/arpa_inet.in.h: Adjust comment.
42458 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42459             Bruno Haible  <bruno@clisp.org>
42461         netdb: Simplify.
42462         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42463         documented to provide socklen_t and we already depend on sys_socket.
42464         * lib/netdb.in.h: Adjust comment.
42466 2011-03-19  Bruno Haible  <bruno@clisp.org>
42468         sys_socket, netdb: Document problem with socklen_t.
42469         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42470         platforms.
42471         * doc/posix-headers/netdb.texi: Likewise.
42473 2011-03-18  Eric Blake  <eblake@redhat.com>
42475         maint.mk: let po check work in VPATH build
42476         * top/maint.mk (po_file): Allow cfg.mk override.
42477         (sc_po_check): Allow VPATH use.
42478         Reported by Jiri Denemark.
42480 2011-03-16  Jim Meyering  <meyering@redhat.com>
42482         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42483         Before, you would have had to create one .x-sc_ file per rule in order
42484         to exempt offending files.  Now, you may instead use a Make variable --
42485         usually defined in cfg.mk -- whose name identifies the affected rule.
42486         * top/maint.mk (_sc_excl): Define.
42487         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42488         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42490 2011-03-13  Bruno Haible  <bruno@clisp.org>
42492         ignore-value tests: Avoid warnings.
42493         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42494         empty for gcc < 3.4.
42496 2011-03-13  Bruno Haible  <bruno@clisp.org>
42498         passfd: Fix link error on Solaris.
42499         * modules/passfd (Description): Correct.
42500         (Depends-on): Add socketlib.
42501         (Link): New section.
42502         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42504 2011-03-13  Bruno Haible  <bruno@clisp.org>
42506         passfd: Fix link error on AIX 5.2.
42507         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42509 2011-03-13  Bruno Haible  <bruno@clisp.org>
42511         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42512         * lib/sys_socket.in.h: Include <stddef.h>.
42513         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42514         CMSG_FIRSTHDR. Remove unused variable.
42516 2011-03-13  Bruno Haible  <bruno@clisp.org>
42518         passfd: Fix compilation error on OpenBSD.
42519         * lib/passfd.c: Include <sys/uio.h>.
42521 2011-03-13  Bruno Haible  <bruno@clisp.org>
42523         passfd test: Fix warnings.
42524         * tests/test-passfd.c: Include <sys/wait.h>.
42525         (main): Fix typo.
42527 2011-03-13  Bruno Haible  <bruno@clisp.org>
42529         passfd module, part 4, tweaks.
42530         * tests/test-passfd.c: Reorder includes.
42531         (main): Fix perror and printf calls.
42533 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42535         passfd module, part 4.
42536         * modules/passfd-tests: New file.
42537         * tests/test-passfd.c: New file.
42539 2011-03-13  Jim Meyering  <meyering@redhat.com>
42541         Makefile: rely on GNU make; derive syntax-check rule names
42542         Rather than requiring that each sc_ rule be listed as a dependent
42543         of "check", use features of GNU make to derive the list.
42544         * Makefile (syntax-check-rules): Define.
42545         (check): Depend on the new variable, not the hard-coded list.
42547 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42548             Bruno Haible  <bruno@clisp.org>
42550         passfd module, part 3.
42551         * lib/passfd.h (recvfd): Add a flags argument.
42552         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42553         (recvfd): Add a flags argument.
42554         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42555         exists.
42556         * modules/passfd (Depends-on): Add cloexec.
42557         Suggested by Eric Blake.
42559 2011-03-13  Bruno Haible  <bruno@clisp.org>
42561         passfd module, part 2, tweaks.
42562         * modules/passfd (Files): Reorder.
42563         (Depends-on): Remove errno.
42564         (Include): Remove <sys/socket.h>, <sys/un.h>.
42565         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42566         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42567         specification header. Include <sys/socket.h> always. Don't include
42568         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42569         (sendfd): Clarify that it sets errno when it fails.
42570         (recvfd): Fix specification.
42572 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42574         passfd module, part 2.
42575         * modules/passfd: New file.
42576         * lib/passfd.h: New file.
42577         * lib/passfd.c: New file.
42579 2011-03-12  Bruno Haible  <bruno@clisp.org>
42581         wcswidth, mbswidth: Avoid integer overflow.
42582         * lib/wcswidth.c: Include <limits.h>.
42583         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42584         * lib/mbswidth.c: Include <limits.h>.
42585         (mbsnwidth): Avoid 'int' overflow.
42586         Reported by Jim Meyering.
42588 2011-03-12  Bruno Haible  <bruno@clisp.org>
42590         futimens, utimensat: Avoid endless recursion on Solaris 10.
42591         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42592         Solaris.
42593         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42594         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42596 2011-03-11  Jim Meyering  <meyering@redhat.com>
42598         maint.mk: relax a regexp to accommodate other formatting styles
42599         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42600         between "ngettext" and the following "(".
42602 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42604         maint.mk: suppress a false positive warning
42605         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42606         diagnostics are marked with ngettext.
42608 2011-03-10  Eric Blake  <eblake@redhat.com>
42610         wchar: add explicit dependencies, for Tru64
42611         * modules/mbmemcasecoll (Depends-on): Add wchar.
42612         * modules/mbtowc (Depends-on): Likewise.
42613         * modules/vasnprintf (Depends-on): Likewise.
42614         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42615         * modules/wctomb (Depends-on): Likewise.
42616         Reported by Peter O'Gorman.
42618 2011-03-08  Bruno Haible  <bruno@clisp.org>
42620         passfd module, part 1, tweaks.
42621         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42622         Improve indentation. Improve AC_MSG_CHECKING messages.
42623         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42624         gl_SOCKET_FAMILIES.
42626 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42628         passfd module, part 1.
42629         * m4/afunix.m4: New file.
42630         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42631         sockets.
42633 2011-03-08  Bruno Haible  <bruno@clisp.org>
42635         regex-quote: New API.
42636         * lib/regex-quote.h: Include <stdbool.h>.
42637         (struct regex_quote_spec): New type.
42638         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42639         New declarations.
42640         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42641         'const struct regex_quote_spec *' argument.
42642         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42643         (pcre_special): New constant.
42644         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42645         New functions.
42646         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42647         'const struct regex_quote_spec *' argument.
42648         * modules/regex-quote (Depends-on): Add stdbool.
42649         * tests/test-regex-quote.c (check): Update for new API. Add test for
42650         anchored results.
42651         * NEWS: Mention the API change.
42652         Reported by Reuben Thomas and Eric Blake.
42654 2011-03-06  Bruno Haible  <bruno@clisp.org>
42656         regex-quote: Fix creation of POSIX extended regular expressions.
42657         * lib/regex-quote.c (ere_special): Add grouping and alternation
42658         operators.
42660 2011-03-05  Bruno Haible  <bruno@clisp.org>
42662         doc: Improve doc regarding autopoint vs. gnulib.
42663         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42664         disable autopoint while running autoreconf.
42665         Suggested by Ralf Wildenhues.
42667 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42669         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42670         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42672 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42674         parse-duration: remove xalloc.h dependency
42675         * lib/parse-duration.c (parse_period): handle NULL return from
42676         strdup instead of calling xstrdup().
42677         * modules/parse-duration: remove "xalloc" dependency
42679 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42681         bootstrap: honor m4_base when running aclocal
42682         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42684 2011-03-02  Jim Meyering  <meyering@redhat.com>
42686         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42687         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42688         on request from Matt Booth.
42690 2011-03-01  Eric Blake  <eblake@redhat.com>
42692         test-link: work on Hurd
42693         * tests/test-link.h (test_link): Hurd rejects linking directories
42694         with EISDIR instead of the POSIX-mandated EPERM.
42696 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42698         stdio: simplify by moving files to printf-posix, sigpipe
42699         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42700         since this symbol is needed only if printf is replaced.
42701         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42702         Require gl_ASM_SYMBOL_PREFIX.
42703         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42704         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42705         (Depends-on): Add 'raise'.
42706         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42707         * modules/stdio (Files): Remove lib/stdio-write.c,
42708         m4/asm-underscore.m4.
42709         (Depends-on): Remove 'raise'.
42711         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42712         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42713         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42714         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42716 2011-02-28  Bruno Haible  <bruno@clisp.org>
42718         localcharset: Assume ANSI C behaviour of free().
42719         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42720         calling free().
42721         Suggested by Simon Josefsson <simon@josefsson.org>.
42723 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42724             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42725             Bruno Haible  <bruno@clisp.org>  (tiny change)
42727         On Cygwin, use /proc file system instead of win32 API.
42728         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42729         Win32 file names.
42730         (DllMain): Simplify by removing Cygwin specific code.
42731         (find_shared_library_fullname): Use Linux specific implementation also
42732         for Cygwin.
42733         (get_shared_library_fullname): Update accordingly.
42734         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42735         Win32 file names.
42736         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42737         Cygwin specific code.
42739 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42740             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42742         Fix OpenMP flag detection for various Fortran compilers.
42743         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42744         OpenMP-conditional compilation construct, to force compile
42745         failure with missing OpenMP flag.
42746         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42748 2011-02-25  Eric Blake  <eblake@redhat.com>
42750         strstr: expand test coverage
42751         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42752         compilation.
42753         * tests/test-memmem.c (main): Duplicate tests.
42754         * tests/test-strcasestr.c (main): Likewise.
42755         * tests/test-c-strcasestr.c (main): Likewise.
42757 2011-02-25  Jim Meyering  <meyering@redhat.com>
42759         maint.mk: detect missing-NL-at-EOF, too
42760         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42761         it also detects when a file lacks a newline at EOF.
42762         (require_exactly_one_NL_at_EOF_): Renamed from
42763         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42764         since people may well have .x-sc_... file names tied to the
42765         existing name.  Suggested by Eric Blake.
42767 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42769         dirname: move m4/dos.m4 functionality into lib/dosname.h
42771         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42772         extracts symbols from it, puts them into config.h; but it's much
42773         easier to use the symbols directly.  filename.h already does this,
42774         but it disagrees with dos.m4 in some respects.  This patch
42775         introduces a different include file dosname.h that packages up
42776         dos.m4, and then later we can work on merging filename.h and
42777         dosname.h.  Applications that need only the easy-to-configure
42778         symbols should consider including dosname.h rather than dirname.h.
42779         * NEWS: Mention incompatible changes.
42780         * m4/dos.m4: Remove.
42781         * lib/dosname.h, modules/dosname: New files.
42782         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42783         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42784         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42785         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42786         Include dosname.h, not dirname.h.
42787         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42788         Include dosname.h, for definitions of symbols like ISSLASH
42789         that used to be in config.h.
42790         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42791         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42792         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42793         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42794         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42795         * modules/rmdir (Files): Likewise.
42796         * modules/stat (Files): Likewise.
42797         * modules/unlink (Files): Likewise.
42798         * modules/dirname-lgpl (Depends-on): Add dosname.
42799         * modules/lstat (Depends-on): Likewise.
42800         * modules/openat (Depends-on): Likewise.
42801         * modules/rmdir (Depends-on): Likewise.
42802         * modules/savewd (Depends-on): Likewise.
42803         * modules/stat (Depends-on): Likewise.
42804         * modules/unlink (Depends-on): Likewise.
42805         * modules/openat (Depends-on): Remove dirname-lgpl.
42806         * modules/savewd (Depends-on): Likewise.
42807         * tests/test-dirname.c: Do not use removed symbols like
42808         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42809         the remaining symbols, e.g., ISSLASH ('\\').
42811 2011-02-25  Eric Blake  <eblake@redhat.com>
42813         strstr: revert patches that introduced bug and pessimization
42814         * lib/str-two-way.h: Add another reference.
42815         (two_way_short_needle, two_way_long_needle): Revert changes from
42816         2011-02-24; they pessimize search speed.
42817         (critical_factorization): Partially revert changes from
42818         2010-06-22; they violate the requirement that the left half of the
42819         needle be smaller than the period of the needle.
42821 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42823         filenamecat: remove unnecessary dependency on dirname-lgpl
42824         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42825         is no direct dependency, just an indirect one via filenamecat-lgpl.
42827         remove: remove unnecessary use of m4/dos.m4
42828         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42829         * modules/remove (FILES): Remove m4/dos.m4.
42831         * lib/openat-proc.c: Don't include dirname.h; not needed.
42833         backupfile: remove unnecessary use of m4/dos.m4
42834         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42835         of its symbols are used by the backupfile code.  backupfile.c does
42836         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42837         for the rare case of programs that want all their backup file
42838         names to live within 8+3 limits, and dos.m4 doesn't address that.
42839         * modules/backupfile (Files): Remove m4/dos.m4.
42841 2011-02-24  Jim Meyering  <meyering@redhat.com>
42843         strstr: fix a bug whereby strstr would mistakenly return NULL
42844         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42845         in period calculation.
42846         (two_way_long_needle): Likewise.
42847         The original problem was reported by Mike Stump in
42848         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42849         Ralf Wildenhues provided the short needle and haystack.
42850         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42851         Add a more involved test to trigger the bug in two_way_long_needle.
42853 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42855         gnulib-tool: remove use of bold display in help screen
42856         * gnulib-tool (func_usage): Do not use bold display anymore in the
42857         help screen.  That was just meant to be a temporary emphasis for a
42858         backward-incompatible change.
42860 2011-02-23  Bruno Haible  <bruno@clisp.org>
42862         Fix misindentation of preprocessor directives.
42863         * lib/argp-namefrob.h: Reindent preprocessor directives.
42864         * lib/getopt_int.h (struct _getopt_data): Likewise.
42865         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42866         * lib/vasnprintf.c (decode_long_double): Likewise.
42867         * tests/test-argmatch.c: Insert blank lines, for clarity.
42868         * tests/test-exclude.c: Likewise.
42870 2011-02-22  Bruno Haible  <bruno@clisp.org>
42872         ioctl: Fix for MacOS X in 64-bit mode.
42873         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42874         value.
42875         Suggested by Eric Blake.
42876         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42878 2011-02-22  Jim Meyering  <meyering@redhat.com>
42880         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42881         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42882         in lib/.
42884 2011-02-22  Eric Blake  <eblake@redhat.com>
42886         maint: avoid any CDPATH issue
42887         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42889         maint: adjust cpp indentation for my modules, as well
42890         * Makefile (sc_cpp_indent_check): Add my name.
42891         * lib/fbufmode.c: Filter through cppi.
42892         * lib/fpurge.c: Likewise.
42893         * lib/freadable.c: Likewise.
42894         * lib/freading.c: Likewise.
42895         * lib/fwritable.c: Likewise.
42896         * lib/fwriting.c: Likewise.
42897         * lib/sigaction.c: Likewise.
42899 2011-02-22  Jim Meyering  <meyering@redhat.com>
42901         maint: adjust cpp indentation to reflect nesting depth
42902         I.e., in a block of code that begins with an unnested "#if",
42903         put one space between the "#" in column 1 and following token.
42904         For example,
42905         -#include <sys/vfs.h>
42906         +# include <sys/vfs.h>
42907         Do this only in .c files that are part of a module I maintain.
42908         * lib/linkat.c: Filter through cppi.
42909         * lib/nanosleep.c: Likewise.
42910         * lib/openat.c: Likewise.
42911         * lib/openat-die.c: Likewise.
42912         * lib/dup3.c: Likewise.
42913         * lib/fchownat.c: Likewise.
42914         * lib/flock.c: Likewise.
42915         * lib/fsync.c: Likewise.
42916         * lib/fts.c: Likewise.
42917         * lib/getpass.c: Likewise.
42918         * lib/gettimeofday.c: Likewise.
42919         * lib/userspec.c: Likewise.
42920         * Makefile (sc_cpp_indent_check): New rule, to check this.
42922 2011-02-22  Bruno Haible  <bruno@clisp.org>
42924         New module 'wctomb'.
42925         * lib/stdlib.in.h (wctomb): New declaration.
42926         * lib/wctomb.c: New file.
42927         * lib/wctomb-impl.h: New file.
42928         * m4/wctomb.m4: New file.
42929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42930         REPLACE_WCTOMB.
42931         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42932         REPLACE_WCTOMB.
42933         * modules/wctomb: New file.
42934         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42935         * doc/posix-functions/wctomb.texi: Mention the new module.
42936         * modules/wctob (Depends-on): Add wctomb.
42938 2011-02-22  Bruno Haible  <bruno@clisp.org>
42940         New module 'mbtowc'.
42941         * lib/stdlib.in.h (mbtowc): New declaration.
42942         * lib/mbtowc.c: New file.
42943         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42944         * m4/mbtowc.m4: New file.
42945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42946         REPLACE_MBTOWC.
42947         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42948         REPLACE_MBTOWC.
42949         * modules/mbtowc: New file.
42950         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42951         * doc/posix-functions/mbtowc.texi: Mention the new module.
42952         * modules/btowc (Depends-on): Add mbtowc.
42954 2011-02-22  Bruno Haible  <bruno@clisp.org>
42956         wcrtomb: Add more tests for native Windows platforms.
42957         * tests/test-wcrtomb-w32-1.sh: New file.
42958         * tests/test-wcrtomb-w32-2.sh: New file.
42959         * tests/test-wcrtomb-w32-3.sh: New file.
42960         * tests/test-wcrtomb-w32-4.sh: New file.
42961         * tests/test-wcrtomb-w32-5.sh: New file.
42962         * tests/test-wcrtomb-w32.c: New file.
42963         * modules/wcrtomb-tests (Files): Add them.
42964         (Makefile.am): Arrange to run these tests.
42965         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42966         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42968 2011-02-20  Bruno Haible  <bruno@clisp.org>
42970         wcrtomb: Enhance test.
42971         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42973 2011-02-20  Bruno Haible  <bruno@clisp.org>
42975         mbrtowc: Tiny optimization.
42976         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42978 2011-02-20  Jim Meyering  <meyering@redhat.com>
42980         test-exclude.c: remove unmatched #endif
42981         * tests/test-exclude.c: Remove stray #endif, left over from
42982         the change of a week ago.
42984 2011-02-19  Jim Meyering  <meyering@redhat.com>
42986         git-version-gen: skip "-dirty" check when appropriate
42987         * build-aux/git-version-gen: Don't run any git commands when the
42988         version string comes from .tarball-version.  Prior to this, we
42989         would run git update-index --refresh even from a just-unpacked
42990         tarball directory, and that could affect a .git/ directory in a
42991         parent of the build directory.  Reported by Mike Frysinger.
42993 2011-02-19  Bruno Haible  <bruno@clisp.org>
42995         unictype/property-byname: Reduce the size of the 'data' segment.
42996         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42998 2011-02-19  Bruno Haible  <bruno@clisp.org>
43000         unictype/scripts: Reduce the size of the 'data' segment.
43001         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
43002         '%pic'.
43003         * lib/unictype/scripts_byname.gperf: Regenerated.
43005 2011-02-19  Bruno Haible  <bruno@clisp.org>
43007         stdint: Update documentation.
43008         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
43010 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
43012         stdint: omit redundant check for wchar.h
43013         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
43014         always tests whether wchar.h exists, so remove the now-redundant test.
43016 2011-02-18  Bruno Haible  <bruno@clisp.org>
43018         stdint: Cut dependency to module 'wchar'.
43019         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
43020         include the necessary prerequisites.
43021         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
43022         * modules/stdint (Depends-on): Remove wchar.
43023         (Makefile.am): Substitute HAVE_WCHAR_H.
43024         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
43026 2011-02-18  Eric Blake  <eblake@redhat.com>
43028         longlong: skip, rather than fail, on cross-compilation
43029         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
43030         when cross-compiling; regression from 2011-02-16.
43032 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
43034         * NEWS: Mention 2011-02-08 change to stdlib.
43036 2011-02-17  Bruno Haible  <bruno@clisp.org>
43038         getloadavg: Add comments about platforms.
43039         * m4/getloadavg.m4: Add comment.
43040         * lib/getloadavg.c: Likewise.
43042 2011-02-17  Bruno Haible  <bruno@clisp.org>
43044         getloadavg: Fix link error on Solaris 2.6.
43045         * modules/getloadavg (Link): New section.
43046         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
43047         linking test-getloadavg.
43048         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
43049         getloadavg.
43051 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
43053         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
43054         It was 'int', but this doesn't match the IRIX 6.5 manual.
43055         Suggested by Bruno Haible in
43056         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
43058 2011-02-17  Bruno Haible  <bruno@clisp.org>
43060         havelib: Fix comments.
43061         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
43062         change.
43064 2011-02-17  Bruno Haible  <bruno@clisp.org>
43066         havelib: Update config.rpath.
43067         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
43069 2011-02-17  Bruno Haible  <bruno@clisp.org>
43071         getloadavg test: Add some plausibility checks.
43072         * tests/test-getloadavg.c (check_avg): Print a warning when the value
43073         is improbable.
43075 2011-02-16  Eric Blake  <eblake@redhat.com>
43077         maintainer-makefile: make syntax-check a no-op from tarballs
43078         * top/maint.mk (no-vc-detected): New rule.
43079         (local-checks-available): Use it to avoid hanging if someone tries
43080         'make syntax-check' from a tarball.  Also append to any non-syntax
43081         checks already defined in cfg.mk.
43083 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
43085         longlong: tune, particularly for common case of c99
43087         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
43088         or running anything if c99, or if unsigned long long int does not
43089         work.  In either case, we know the answer without further tests.
43090         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
43091         it at most once, and use its results for both long long int and
43092         unsigned long long int.  This is more likely to be efficient in
43093         the common case where the program wants to check for both long
43094         long int and unsigned long long int.
43095         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
43096         since the answer is already known.
43098 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
43100         getloadavg: set errno
43101         * lib/getloadavg.c: Set errno when returning -1.  If no other
43102         error number looks appropriate, set it to ENOSYS if the getloadavg
43103         looks like it can't possibly ever work, ENOTSUP otherwise.
43104         Suggested by Bruno Haible in
43105         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
43107         getloadavg: trim unused parts and speed up 'configure'
43108         * NEWS: Document this.
43109         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
43110         always compiled if getloadavg is absent.
43111         Move test code to ...
43112         * tests/test-getloadavg.c: New file, containing previous
43113         contents of test from lib/getloadavg.c.  It also contains
43114         suggestions by Bruno Haible in
43115         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
43116         * modules/getloadavg-tests: New file.
43117         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
43118         Do tests in the same order as they're needed for getloadavg.c.
43119         Omit setgid-related tests that generate symbols KMEM_GROUP,
43120         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
43121         Do only the tests that are needed to see whether the system has
43122         getloadavg, moving the other tests into ...
43123         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
43124         NLIST_NAME_UNION; nobody should be using it.  Do not define
43125         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
43126         relevant, as the user of this module shouldn't care how getloadavg
43127         is implemented.
43129         getloadavg: omit unused var
43130         * lib/getloadavg.c (getloadavg): Omit unused local variable.
43132 2011-02-15  Jim Meyering  <meyering@redhat.com>
43134         doc: update users.txt
43135         * users.txt: Update iwhd's URL.
43137 2011-02-13  Bruno Haible  <bruno@clisp.org>
43139         Consistent macro naming for macros that use GCC __attribute__.
43140         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
43141         _ATTRIBUTE_NONNULL_.
43142         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
43143         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
43144         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
43145         ATTRIBUTE_DEPRECATED.
43146         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
43147         ATTRIBUTE_NORETURN.
43148         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43149         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43150         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43151         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43152         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
43153         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
43154         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
43155         ATTRIBUTE_SENTINEL.
43156         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
43157         ATTRIBUTE_RETURN_CHECK.
43158         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
43159         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
43160         ATTRIBUTE_NORETURN.
43161         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
43162         Reported by Paul Eggert.
43164 2011-02-13  Bruno Haible  <bruno@clisp.org>
43166         Don't interfere with a program's definition of __attribute__.
43167         * lib/argp.h (__attribute__): Remove definition.
43168         (_GL_ATTRIBUTE_FORMAT): New macro.
43169         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
43170         * lib/argp-fmtstream.h (__attribute__): Remove definition.
43171         (_GL_ATTRIBUTE_FORMAT): New macro.
43172         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
43173         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
43174         GCC 3 or newer.
43175         * lib/error.h (__attribute__): Remove definition.
43176         (_GL_ATTRIBUTE_FORMAT): New macro.
43177         (error, error_at_line): Use it.
43178         * lib/hash.h (__attribute__): Remove definition.
43179         (ATTRIBUTE_WUR): Update definition. Define always.
43180         * lib/openat.h (__attribute__): Remove definition.
43181         (ATTRIBUTE_NORETURN): Update definition. Define always.
43182         * lib/sigpipe-die.h (__attribute__): Remove definition.
43183         (ATTRIBUTE_NORETURN): Update definition. Define always.
43184         * lib/vasnprintf.h (__attribute__): Remove definition.
43185         (_GL_ATTRIBUTE_FORMAT): New macro.
43186         (asnprintf, vasnprintf): Use it.
43187         * lib/xalloc.h (__attribute__): Remove definition.
43188         (ATTRIBUTE_NORETURN): Update definition. Define always.
43189         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
43190         * lib/xmemdup0.h (__attribute__): Remove definition.
43191         (ATTRIBUTE_NORETURN): Update definition. Define always.
43192         * lib/xprintf.h (__attribute__): Remove definition.
43193         (_GL_ATTRIBUTE_FORMAT): New macro.
43194         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
43195         * lib/xstrtol.h (__attribute__): Remove definition.
43196         (ATTRIBUTE_NORETURN): Update definition. Define always.
43197         * lib/xvasprintf.h (__attribute__): Remove definition.
43198         (_GL_ATTRIBUTE_FORMAT): New macro.
43199         (xasprintf, xvasprintf): Use it.
43200         * tests/test-argmatch.c (__attribute__): Remove definition.
43201         (ATTRIBUTE_NORETURN): Update definition. Define always.
43202         * tests/test-exclude.c (__attribute__): Remove definition.
43203         (ATTRIBUTE_NORETURN): Update definition. Define always.
43204         Reported by Paul Eggert.
43206 2011-02-13  Bruno Haible  <bruno@clisp.org>
43208         mbrtowc: Add more tests for native Windows platforms.
43209         * tests/test-mbrtowc-w32-1.sh: New file.
43210         * tests/test-mbrtowc-w32-2.sh: New file.
43211         * tests/test-mbrtowc-w32-3.sh: New file.
43212         * tests/test-mbrtowc-w32-4.sh: New file.
43213         * tests/test-mbrtowc-w32-5.sh: New file.
43214         * tests/test-mbrtowc-w32.c: New file.
43215         * modules/mbrtowc-tests (Files): Add them.
43216         (Makefile.am): Arrange to run these tests.
43217         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
43218         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
43220 2011-02-13  Bruno Haible  <bruno@clisp.org>
43222         mbrtowc: Work around native Windows bug.
43223         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
43224         guess when no suitable locale for testing was found.
43225         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
43227 2011-02-13  Bruno Haible  <bruno@clisp.org>
43229         mbsinit: Work around mingw bug.
43230         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
43231         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
43232         Windows.
43233         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
43235 2011-02-13  Bruno Haible  <bruno@clisp.org>
43237         mbsinit: Don't crash for a NULL argument.
43238         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
43239         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
43241 2011-02-13  Bruno Haible  <bruno@clisp.org>
43243         Don't interfere with a program's definition of __attribute__.
43244         * lib/stdio.in.h (__attribute__): Remove definition.
43245         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
43246         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
43247         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
43248         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
43249         * lib/string.in.h (__attribute__): Remove definition.
43250         Reported by Paul Eggert.
43252 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43254         stdlib: don't get in the way of non-GCC __attribute__
43255         See thread starting at
43256         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
43257         Revert previous stdlib change, installing the following instead:
43258         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
43259         to get in the way of a non-GCC compiler that supports __attribute__.
43260         (_GL_ATTRIBUTE_RETURN): New macro.
43261         (_Exit): Use it instead of __attribute__.
43263 2011-02-12  Bruno Haible  <bruno@clisp.org>
43265         quotearg test: Avoid test failure on mingw.
43266         * tests/test-quotearg.sh: Convert the locale identifier from native
43267         Windows syntax to Unix syntax.
43269 2011-02-12  Bruno Haible  <bruno@clisp.org>
43271         setlocale: Prefer gnulib's override over libintl's override.
43272         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
43273         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
43274         GNULIB_defined_setlocale is set.
43276 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43278         stdlib: support non-GCC __attribute__
43280         Fix a serious and tricky problem encountered when attempting to
43281         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
43282         5.5, but it crashed due to memory corruption on Solaris 10 with
43283         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
43284         bits that are otherwise zero.  This tagging is optional inside
43285         Emacs but is preferred and is used when __attribute__ ((__aligned
43286         (8))) works, as it does with both recent-enough GCC and with Sun C
43287         5.11.  However, Sun C 5.11 is not GCC and does not #define
43288         __GNUC__ and __GNUC_MINOR__.
43290         When I added the getloadavg module to Emacs, it brought in
43291         stdlib.in.h, which contained this fragment:
43293            #ifndef __attribute__
43294            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
43295            #  define __attribute__(Spec)   /* empty */
43296            # endif
43297            #endif
43299         When files that include <stdlib.h> were compiled with Sun C 5.11,
43300         the above code disabled __attribute__ ((__aligned (8))), which
43301         caused variables to not be properly aligned, which eventually led
43302         to the pointer corruption mentioned above.  (This was a bit hard
43303         to diagnose, unfortunately.)
43305         Several "#define __attribute__(X) /* empty */" code snippets need
43306         to be eradicated from Gnulib to work with non-GCC compilers that
43307         support __attribute__.  The Autoconf way to do this is to test for
43308         each kind of attribute that we want support for, and selectively
43309         enable that in source code.
43311         Fix this problem just for stdlib.h, by adding a test for the
43312         __noreturn__ attribute, and change stdlib.in.h to use that test
43313         when needed.  This technique can be easily generalized to the
43314         other *.in.h files and attributes, and a similar technique can be
43315         used for *.h and *.c files.  This patch is enough to solve the
43316         problem for Emacs + getloadavg, and I thought I'd publish it for
43317         feedback before undertaking further, similar fixes in other
43318         modules.
43320         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
43321         because it's not needed for stdlib.h.  It merely substitutes the
43322         value directly into stdlib.h.  We may well need to #define it, or
43323         similar symbols, for other modules, but it's nice to also have an
43324         option to not #define it for applications like Emacs that do not
43325         need it.
43327         * lib/stdlib.in.h (__attribute__): Do not #define.
43328         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
43329         be defined only if the _Exit module is also used.
43330         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
43331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
43332         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
43333         platforms.
43334         * modules/_Exit (Files): Add m4/attribute.m4.
43335         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
43336         * m4/attribute.m4: New file.
43338 2011-02-12  Bruno Haible  <bruno@clisp.org>
43340         wcsrtombs: Work around bug on native Windows.
43341         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
43342         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
43343         instead of len.
43344         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
43346 2011-02-12  Bruno Haible  <bruno@clisp.org>
43348         mbsrtowcs: Work around bug on native Windows.
43349         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
43350         against mingw bug.
43351         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
43353 2011-02-12  Bruno Haible  <bruno@clisp.org>
43355         Avoid setlocale bugs in tests.
43356         * modules/btowc (Dependencies): Add setlocale.
43357         * modules/c-strcase (Dependencies): Likewise.
43358         * modules/mbmemcasecmp (Dependencies): Likewise.
43359         * modules/mbmemcasecoll (Dependencies): Likewise.
43360         * modules/mbrtowc (Dependencies): Likewise.
43361         * modules/mbscasecmp (Dependencies): Likewise.
43362         * modules/mbscasestr (Dependencies): Likewise.
43363         * modules/mbschr (Dependencies): Likewise.
43364         * modules/mbscspn (Dependencies): Likewise.
43365         * modules/mbsinit (Dependencies): Likewise.
43366         * modules/mbsncasecmp (Dependencies): Likewise.
43367         * modules/mbsnrtowcs (Dependencies): Likewise.
43368         * modules/mbspbrk (Dependencies): Likewise.
43369         * modules/mbspcasecmp (Dependencies): Likewise.
43370         * modules/mbsrchr (Dependencies): Likewise.
43371         * modules/mbsrtowcs (Dependencies): Likewise.
43372         * modules/mbsspn (Dependencies): Likewise.
43373         * modules/mbsstr (Dependencies): Likewise.
43374         * modules/nl_langinfo (Dependencies): Likewise.
43375         * modules/quotearg (Dependencies): Likewise.
43376         * modules/unicase/locale-language (Dependencies): Likewise.
43377         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43378         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43379         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43380         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43381         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43382         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43383         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43384         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43385         * modules/vasnprintf-posix (Dependencies): Likewise.
43386         * modules/wcrtomb (Dependencies): Likewise.
43387         * modules/wcsnrtombs (Dependencies): Likewise.
43388         * modules/wcsrtombs (Dependencies): Likewise.
43390 2011-02-12  Bruno Haible  <bruno@clisp.org>
43392         setlocale: Workaround native Windows bug.
43393         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43394         succeeds but sets LC_CTYPE to "C", report a failure.
43395         * tests/test-setlocale2.sh: New file.
43396         * tests/test-setlocale2.c: New file.
43397         * modules/setlocale-tests (Files): Add the new files.
43398         (Makefile.am): Enable test-setlocale2.sh test.
43399         * doc/posix-functions/setlocale.texi: Mention workaround.
43401 2011-02-11  Bruno Haible  <bruno@clisp.org>
43403         Tests for module 'setlocale'.
43404         * modules/setlocale-tests: New file.
43405         * tests/test-setlocale1.sh: New file.
43406         * tests/test-setlocale1.c: New file.
43408         New module 'setlocale'.
43409         * lib/locale.in.h (setlocale): New declaration.
43410         * lib/setlocale.c: New file, based on
43411         gettext/gettext-runtime/intl/setlocale.c.
43412         * m4/setlocale.m4: New file.
43413         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43414         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43415         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43416         REPLACE_SETLOCALE.
43417         * modules/setlocale: New file.
43418         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43419         * doc/posix-functions/setlocale.texi: Mention the new module.
43421 2011-02-11  Bruno Haible  <bruno@clisp.org>
43423         Prepare for locale dependent tests on mingw.
43424         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43425         because it has the wrong locale encoding.
43426         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43427         French_France.1252 instead of "fr".
43428         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43429         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43430         because it has the wrong locale encoding.
43431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43432         native Windows, try Turkish_Turkey.65001.
43433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43434         Chinese_China.54936.
43436         Prepare for locale dependent tests on mingw.
43437         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43438         differently.
43439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43440         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43441         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43444 2011-02-11  Eric Blake  <eblake@redhat.com>
43446         strptime: avoid compiler warnings
43447         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43448         compiler warnings about dead code.
43449         Reported by Daniel P. Berrange.
43451 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43453         doc: update users.txt
43454         * users.txt: Add rcs.
43456 2011-02-10  John W. Eaton  <jwe@gnu.org>
43458         doc: update users.txt
43459         * users.txt: Add octave.
43461 2011-02-10  Jim Meyering  <meyering@redhat.com>
43463         doc: update users.txt
43464         * users.txt: Add iwhd.
43466 2011-02-09  Bruno Haible  <bruno@clisp.org>
43468         gnulib-tool: Make copyright notice adjustment more robust.
43469         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43470         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43471         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43472         License".
43473         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43475 2011-02-06  Bruno Haible  <bruno@clisp.org>
43477         New module 'towctrans'.
43478         * modules/towctrans: New file.
43479         * lib/wctype.in.h (towctrans): New declaration.
43480         * lib/towctrans.c: New file.
43481         * lib/towctrans-impl.h: New file.
43482         * m4/towctrans.m4: New file.
43483         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43484         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43485         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43486         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43487         * doc/posix-functions/towctrans.texi: Mention the new module.
43489 2011-02-06  Bruno Haible  <bruno@clisp.org>
43491         New module 'wctrans'.
43492         * modules/wctrans: New file.
43493         * lib/wctype.in.h (wctrans): New declaration.
43494         * lib/wctrans.c: New file.
43495         * lib/wctrans-impl.h: New file.
43496         * m4/wctrans.m4: New file.
43497         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43498         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43499         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43500         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43501         * doc/posix-functions/wctrans.texi: Mention the new module.
43503 2011-02-06  Bruno Haible  <bruno@clisp.org>
43505         New module 'iswctype'.
43506         * modules/iswctype: New file.
43507         * lib/wctype.in.h (iswctype): New declaration.
43508         * lib/iswctype.c: New file.
43509         * lib/iswctype-impl.h: New file.
43510         * m4/iswctype.m4: New file.
43511         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43512         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43513         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43514         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43515         * doc/posix-functions/iswctype.texi: Mention the new module and the
43516         HP-UX 11.00 problem.
43518 2011-02-06  Bruno Haible  <bruno@clisp.org>
43520         New module 'wctype'.
43521         * modules/wctype: Change to represent the wctype() substitute.
43522         * lib/wctype.in.h (wctype): New declaration.
43523         * lib/wctype.c: New file.
43524         * lib/wctype-impl.h: New file.
43525         * m4/wctype.m4: New file.
43526         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43527         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43528         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43529         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43530         * doc/posix-functions/wctype.texi: Mention the new module and the
43531         HP-UX 11.00 problem.
43533 2011-02-06  Bruno Haible  <bruno@clisp.org>
43535         wctype-h: Ensure wctype_t and wctrans_t are defined.
43536         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43537         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43538         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43539         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43540         HAVE_WCTRANS_T.
43541         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43543 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43545         flock: fix license typo
43547         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43548         omitted.
43550 2011-02-08  Bruno Haible  <bruno@clisp.org>
43552         Split large sed scripts, for HP-UX sed.
43553         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43554         to avoid HP-UX limit of 99 commands, in the near future.
43555         * modules/stdlib (Makefile.am): Likewise.
43556         * modules/unistd (Makefile.am): Likewise.
43557         * modules/wchar (Makefile.am): Likewise.
43558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43559         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43560         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43562 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43563             Bruno Haible  <bruno@clisp.org>
43565         stdlib: improve random_r modularization
43566         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43567         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43568         you also need the random_r module to get this material right.
43569         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43570         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43571         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43573 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43575         stdlib: don't depend on stdint
43576         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43577         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43578         be independent of whether stdint.h is needed.
43579         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43580         here, instead of ...
43581         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43582         struct random_data should be using the random_r module, not just
43583         the stdlib module (which wouldn't make sense: what package needs
43584         just struct random_data without also needing random_r?).
43585         * modules/stdlib (Depends-on): Remove stdint.
43587         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43588         See the thread rooted at
43589         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43590         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43591         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43592         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43593         __VMS)); previously it was always included (via fcntl--.h).
43594         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43595         hand; this is good enough for load averages.  Also, do not use
43596         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43597         flags directly if available and don't bother otherwise.  (Packages
43598         that need the extra reliability should use the modules that define
43599         these flags on older platforms that lack them.)
43600         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43601         fcntl-safer.
43603 2011-02-08  Jim Meyering  <meyering@redhat.com>
43605         di-set.h, ino-map.h: add multiple-inclusion guard
43606         Technically, the guard is required only for ino-map.h, due to its
43607         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43608         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43609         * lib/ino-map.h: Likewise.
43611 2011-02-06  Bruno Haible  <bruno@clisp.org>
43613         iswblank: Ensure declaration on glibc systems.
43614         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43615         * modules/iswblank (Dependencies): Add 'extensions'.
43616         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43618 2011-02-06  Bruno Haible  <bruno@clisp.org>
43620         New module 'iswblank'.
43621         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43622         * modules/iswblank: New file.
43623         * modules/wctype-h (Files): Remove lib/iswblank.c.
43624         (Makefile.am): Substitute GNULIB_ISWBLANK.
43625         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43626         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43627         (gl_WCTYPE_H_DEFAULTS): New macro.
43628         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43629         * modules/iswblank-tests: New file.
43630         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43631         * tests/test-wctype-h.c (main): Remove iswblank tests.
43632         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43633         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43634         of 'wctype-h'.
43635         * NEWS: Mention the change.
43636         * modules/mbchar (Depends-on): Add iswblank.
43638 2011-02-08  Bruno Haible  <bruno@clisp.org>
43640         di-set tests: Refactor.
43641         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43642         unnecessary includes.
43643         (ASSERT): Remove macro.
43644         (main): Make C90 compliant by avoiding variable declaration after
43645         statement.
43646         * modules/di-set-tests (Files): Add tests/macros.h.
43648 2011-02-08  Bruno Haible  <bruno@clisp.org>
43650         ino-map tests: Refactor.
43651         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43652         unnecessary includes.
43653         (ASSERT): Remove macro.
43654         (main): Make C90 compliant by avoiding variable declaration after
43655         statement.
43656         * modules/ino-map-tests (Files): Add tests/macros.h.
43658 2011-02-08  Jim Meyering  <meyering@redhat.com>
43660         di-set: add "const" to a cast
43661         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43662         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43664 2011-02-06  Bruno Haible  <bruno@clisp.org>
43666         Rename module 'wctype' to 'wctype-h'.
43667         * modules/wctype-h: Renamed from modules/wctype.
43668         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43669         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43670         (Files, Depends-on, Makefile.am): Update.
43671         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43672         (Files, Makefile.am): Update.
43673         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43674         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43675         * doc/posix-headers/wctype.texi: Update.
43676         * doc/posix-functions/iswalnum.texi: Update.
43677         * doc/posix-functions/iswalpha.texi: Update.
43678         * doc/posix-functions/iswblank.texi: Update.
43679         * doc/posix-functions/iswcntrl.texi: Update.
43680         * doc/posix-functions/iswdigit.texi: Update.
43681         * doc/posix-functions/iswgraph.texi: Update.
43682         * doc/posix-functions/iswlower.texi: Update.
43683         * doc/posix-functions/iswprint.texi: Update.
43684         * doc/posix-functions/iswpunct.texi: Update.
43685         * doc/posix-functions/iswspace.texi: Update.
43686         * doc/posix-functions/iswupper.texi: Update.
43687         * doc/posix-functions/iswxdigit.texi: Update.
43688         * doc/posix-functions/towlower.texi: Update.
43689         * doc/posix-functions/towupper.texi: Update.
43690         * NEWS: Mention the change.
43691         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43692         * modules/mbchar (Dependencies): Likewise.
43693         * modules/mbswidth (Dependencies): Likewise.
43694         * modules/quotearg (Dependencies): Likewise.
43695         * modules/regex (Dependencies): Likewise.
43696         * modules/wcscasecmp (Dependencies): Likewise.
43697         * modules/wcsncasecmp (Dependencies): Likewise.
43698         * modules/wcwidth (Dependencies): Likewise.
43700 2011-02-06  Bruno Haible  <bruno@clisp.org>
43702         New module 'wcswidth'.
43703         * modules/wcswidth: New file.
43704         * lib/wchar.in.h (wcswidth): New declaration.
43705         * lib/wcswidth.c: New file.
43706         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43707         * m4/wcswidth.m4: New file.
43708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43710         REPLACE_WCSWIDTH.
43711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43712         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43713         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43714         * doc/posix-functions/wcswidth.texi: Mention the new module.
43716 2011-02-06  Bruno Haible  <bruno@clisp.org>
43718         New module 'wcstok'.
43719         * modules/wcstok: New file.
43720         * lib/wchar.in.h (wcstok): New declaration.
43721         * lib/wcstok.c: New file.
43722         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43723         * m4/wcstok.m4: New file.
43724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43727         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43728         * doc/posix-functions/wcstok.texi: Mention the new module.
43730 2011-02-06  Bruno Haible  <bruno@clisp.org>
43732         New module 'wcsstr'.
43733         * modules/wcsstr: New file.
43734         * lib/wchar.in.h (wcsstr): New declaration.
43735         * lib/wcsstr.c: New file.
43736         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43737         * m4/wcsstr.m4: New file.
43738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43741         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43742         * doc/posix-functions/wcsstr.texi: Mention the new module.
43744 2011-02-06  Bruno Haible  <bruno@clisp.org>
43746         New module 'wcspbrk'.
43747         * modules/wcspbrk: New file.
43748         * lib/wchar.in.h (wcspbrk): New declaration.
43749         * lib/wcspbrk.c: New file.
43750         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43751         * m4/wcspbrk.m4: New file.
43752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43755         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43756         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43758 2011-02-06  Bruno Haible  <bruno@clisp.org>
43760         New module 'wcsspn'.
43761         * modules/wcsspn: New file.
43762         * lib/wchar.in.h (wcsspn): New declaration.
43763         * lib/wcsspn.c: New file.
43764         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43765         * m4/wcsspn.m4: New file.
43766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43769         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43770         * doc/posix-functions/wcsspn.texi: Mention the new module.
43772 2011-02-06  Bruno Haible  <bruno@clisp.org>
43774         New module 'wcscspn'.
43775         * modules/wcscspn: New file.
43776         * lib/wchar.in.h (wcscspn): New declaration.
43777         * lib/wcscspn.c: New file.
43778         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43779         * m4/wcscspn.m4: New file.
43780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43783         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43784         * doc/posix-functions/wcscspn.texi: Mention the new module.
43786 2011-02-06  Bruno Haible  <bruno@clisp.org>
43788         New module 'wcsrchr'.
43789         * modules/wcsrchr: New file.
43790         * lib/wchar.in.h (wcsrchr): New declaration.
43791         * lib/wcsrchr.c: New file.
43792         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43793         * m4/wcsrchr.m4: New file.
43794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43797         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43798         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43800 2011-02-06  Bruno Haible  <bruno@clisp.org>
43802         New module 'wcschr'.
43803         * modules/wcschr: New file.
43804         * lib/wchar.in.h (wcschr): New declaration.
43805         * lib/wcschr.c: New file.
43806         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43807         * m4/wcschr.m4: New file.
43808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43811         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43812         * doc/posix-functions/wcschr.texi: Mention the new module.
43814 2011-02-06  Bruno Haible  <bruno@clisp.org>
43816         New module 'wcsdup'.
43817         * modules/wcsdup: New file.
43818         * lib/wchar.in.h (wcsdup): New declaration.
43819         * lib/wcsdup.c: New file.
43820         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43821         * m4/wcsdup.m4: New file.
43822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43825         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43826         * doc/posix-functions/wcsdup.texi: Mention the new module.
43828 2011-02-06  Bruno Haible  <bruno@clisp.org>
43830         New module 'wcsxfrm'.
43831         * modules/wcsxfrm: New file.
43832         * lib/wchar.in.h (wcsxfrm): New declaration.
43833         * lib/wcsxfrm.c: New file.
43834         * lib/wcsxfrm-impl.h: New file.
43835         * m4/wcsxfrm.m4: New file.
43836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43839         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43840         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43842 2011-02-06  Bruno Haible  <bruno@clisp.org>
43844         New module 'wcscoll'.
43845         * modules/wcscoll: New file.
43846         * lib/wchar.in.h (wcscoll): New declaration.
43847         * lib/wcscoll.c: New file.
43848         * lib/wcscoll-impl.h: New file.
43849         * m4/wcscoll.m4: New file.
43850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43853         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43854         * doc/posix-functions/wcscoll.texi: Mention the new module.
43856 2011-02-06  Bruno Haible  <bruno@clisp.org>
43858         New module 'wcsncasecmp'.
43859         * modules/wcsncasecmp: New file.
43860         * lib/wchar.in.h (wcsncasecmp): New declaration.
43861         * lib/wcsncasecmp.c: New file.
43862         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43863         * m4/wcsncasecmp.m4: New file.
43864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43867         HAVE_WCSNCASECMP.
43868         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43869         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43871 2011-02-06  Bruno Haible  <bruno@clisp.org>
43873         New module 'wcscasecmp'.
43874         * modules/wcscasecmp: New file.
43875         * lib/wchar.in.h (wcscasecmp): New declaration.
43876         * lib/wcscasecmp.c: New file.
43877         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43878         * m4/wcscasecmp.m4: New file.
43879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43882         HAVE_WCSCASECMP.
43883         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43884         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43886 2011-02-05  Bruno Haible  <bruno@clisp.org>
43888         New module 'wcsncmp'.
43889         * modules/wcsncmp: New file.
43890         * lib/wchar.in.h (wcsncmp): New declaration.
43891         * lib/wcsncmp.c: New file.
43892         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43893         * m4/wcsncmp.m4: New file.
43894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43897         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43898         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43900 2011-02-05  Bruno Haible  <bruno@clisp.org>
43902         New module 'wcscmp'.
43903         * modules/wcscmp: New file.
43904         * lib/wchar.in.h (wcscmp): New declaration.
43905         * lib/wcscmp.c: New file.
43906         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43907         * m4/wcscmp.m4: New file.
43908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43911         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43912         * doc/posix-functions/wcscmp.texi: Mention the new module.
43914 2011-02-05  Bruno Haible  <bruno@clisp.org>
43916         New module 'wcsncat'.
43917         * modules/wcsncat: New file.
43918         * lib/wchar.in.h (wcsncat): New declaration.
43919         * lib/wcsncat.c: New file.
43920         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43921         * m4/wcsncat.m4: New file.
43922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43925         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43926         * doc/posix-functions/wcsncat.texi: Mention the new module.
43928 2011-02-05  Bruno Haible  <bruno@clisp.org>
43930         New module 'wcscat'.
43931         * modules/wcscat: New file.
43932         * lib/wchar.in.h (wcscat): New declaration.
43933         * lib/wcscat.c: New file.
43934         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43935         * m4/wcscat.m4: New file.
43936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43939         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43940         * doc/posix-functions/wcscat.texi: Mention the new module.
43942 2011-02-05  Bruno Haible  <bruno@clisp.org>
43944         New module 'wcpncpy'.
43945         * modules/wcpncpy: New file.
43946         * lib/wchar.in.h (wcpncpy): New declaration.
43947         * lib/wcpncpy.c: New file.
43948         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43949         * m4/wcpncpy.m4: New file.
43950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43952         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43953         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43954         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43956 2011-02-05  Bruno Haible  <bruno@clisp.org>
43958         New module 'wcsncpy'.
43959         * modules/wcsncpy: New file.
43960         * lib/wchar.in.h (wcsncpy): New declaration.
43961         * lib/wcsncpy.c: New file.
43962         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43963         * m4/wcsncpy.m4: New file.
43964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43967         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43968         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43970 2011-02-05  Bruno Haible  <bruno@clisp.org>
43972         New module 'wcpcpy'.
43973         * modules/wcpcpy: New file.
43974         * lib/wchar.in.h (wcpcpy): New declaration.
43975         * lib/wcpcpy.c: New file.
43976         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43977         * m4/wcpcpy.m4: New file.
43978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43980         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43981         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43982         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43984 2011-02-05  Bruno Haible  <bruno@clisp.org>
43986         New module 'wcscpy'.
43987         * modules/wcscpy: New file.
43988         * lib/wchar.in.h (wcscpy): New declaration.
43989         * lib/wcscpy.c: New file.
43990         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43991         * m4/wcscpy.m4: New file.
43992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43995         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43996         * doc/posix-functions/wcscpy.texi: Mention the new module.
43998 2011-02-05  Bruno Haible  <bruno@clisp.org>
44000         New module 'wcsnlen'.
44001         * modules/wcsnlen: New file.
44002         * lib/wchar.in.h (wcsnlen): New declaration.
44003         * lib/wcsnlen.c: New file.
44004         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
44005         * m4/wcsnlen.m4: New file.
44006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
44007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
44008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
44009         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
44010         * doc/posix-functions/wcsnlen.texi: Mention the new module.
44012 2011-02-05  Bruno Haible  <bruno@clisp.org>
44014         New module 'wcslen'.
44015         * modules/wcslen: New file.
44016         * lib/wchar.in.h (wcslen): New declaration.
44017         * lib/wcslen.c: New file.
44018         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
44019         * m4/wcslen.m4: New file.
44020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
44021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
44022         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
44023         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
44024         * doc/posix-functions/wcslen.texi: Mention the new module.
44026 2011-02-05  Bruno Haible  <bruno@clisp.org>
44028         New module 'wmemset'.
44029         * modules/wmemset: New file.
44030         * lib/wchar.in.h (wmemset): New declaration.
44031         * lib/wmemset.c: New file.
44032         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
44033         * m4/wmemset.m4: New file.
44034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
44035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
44036         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
44037         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
44038         * doc/posix-functions/wmemset.texi: Mention the new module.
44040 2011-02-05  Bruno Haible  <bruno@clisp.org>
44042         New module 'wmemmove'.
44043         * modules/wmemmove: New file.
44044         * lib/wchar.in.h (wmemmove): New declaration.
44045         * lib/wmemmove.c: New file.
44046         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
44047         * m4/wmemmove.m4: New file.
44048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
44049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
44050         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
44051         HAVE_WMEMMOVE.
44052         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
44053         * doc/posix-functions/wmemmove.texi: Mention the new module.
44055 2011-02-05  Bruno Haible  <bruno@clisp.org>
44057         New module 'wmemcpy'.
44058         * modules/wmemcpy: New file.
44059         * lib/wchar.in.h (wmemcpy): New declaration.
44060         * lib/wmemcpy.c: New file.
44061         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
44062         * m4/wmemcpy.m4: New file.
44063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
44064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
44065         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
44066         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
44067         * doc/posix-functions/wmemcpy.texi: Mention the new module.
44069 2011-02-05  Bruno Haible  <bruno@clisp.org>
44071         New module 'wmemcmp'.
44072         * modules/wmemcmp: New file.
44073         * lib/wchar.in.h (wmemcmp): New declaration.
44074         * lib/wmemcmp.c: New file.
44075         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
44076         * m4/wmemcmp.m4: New file.
44077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
44078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
44079         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
44080         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
44081         * doc/posix-functions/wmemcmp.texi: Mention the new module.
44083 2011-02-07  Jim Meyering  <meyering@redhat.com>
44085         di-set, ino-map: new modules, from coreutils
44086         * lib/di-set.c: New file.
44087         * lib/di-set.h: Likewise.
44088         * lib/ino-map.c: Likewise.
44089         * lib/ino-map.h: Likewise.
44090         * modules/di-set: Likewise.
44091         * modules/di-set-tests: Likewise.
44092         * modules/ino-map: Likewise.
44093         * modules/ino-map-tests: Likewise.
44094         * tests/test-di-set.c: Likewise.
44095         * tests/test-ino-map.c: Likewise.
44097 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
44099         getloadavg: merge minor changes from Emacs
44101         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
44102         (getloadavg): Use memset, not bzero.
44104         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
44105         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
44106         clash (bug#86).
44108 2010-11-14  Bruno Haible  <bruno@clisp.org>
44110         Allow multiple gnulib generated replacements to coexist.
44111         * lib/getopt.in.h (struct option): Avoid identical redefinition.
44112         * lib/inttypes.in.h (imaxdiv_t): Likewise.
44113         * lib/langinfo.in.h (nl_item): Likewise.
44114         * lib/math.in.h (_NaN, NAN): Likewise.
44115         * lib/netdb.in.h (struct addrinfo): Likewise.
44116         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
44117         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
44118         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
44119         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
44120         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
44121         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
44122         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
44123         pthread_mutexattr_init, pthread_mutexattr_settype,
44124         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
44125         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
44126         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
44127         pthread_spin_trylock, pthread_spin_unlock): Likewise.
44128         * lib/sched.in.h (struct sched_param): Likewise.
44129         * lib/se-selinux.in.h (security_class_t, security_context_t,
44130         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
44131         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
44132         lsetfilecon, fsetfilecon, security_check_context,
44133         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
44134         Likewise.
44135         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
44136         Likewise.
44137         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
44138         _gl_function_taking_int_returning_void_t, union sigval,
44139         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
44140         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
44141         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44142         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
44143         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
44144         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
44145         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
44146         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
44147         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
44148         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
44149         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
44150         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
44151         socklen_t, rpl_fd_isset): Likewise.
44152         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
44153         * lib/sys_time.in.h (struct timeval): Likewise.
44154         * lib/sys_times.in.h (struct tms): Likewise.
44155         * lib/sys_utsname.in.h (struct utsname):
44156         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
44157         * lib/unistd.in.h (getpagesize): Likewise.
44158         * lib/wchar.in.h (mbstate_t): Likewise.
44159         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44160         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
44161         towlower, towupper): Likewise.
44162         Reported by Sam Steingold <sds@gnu.org>.
44164 2011-02-05  Eric Blake  <eblake@redhat.com>
44166         unsetenv: work around Haiku issues
44167         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
44168         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
44170 2010-12-30  Bruce Korb  <bkorb@gnu.org>
44172         libposix: avoid calling error() within libposix
44173         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
44174         is defined.
44176 2011-02-05  Eric Blake  <eblake@redhat.com>
44178         strerror_r-posix: port to cygwin
44179         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
44180         implementation.
44181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
44182         * tests/test-strerror_r.c (main): Fix test.
44183         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
44184         issue.
44186 2011-02-05  Bruno Haible  <bruno@clisp.org>
44188         New module 'wmemchr'.
44189         * modules/wmemchr: New file.
44190         * lib/wchar.in.h (wmemchr): New declaration.
44191         * lib/wmemchr.c: New file.
44192         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
44193         * m4/wmemchr.m4: New file.
44194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
44195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
44196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
44197         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
44198         * doc/posix-functions/wmemchr.texi: Mention the new module.
44200 2011-02-04  Eric Blake  <eblake@redhat.com>
44202         fdopendir: detect FreeBSD bug
44203         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
44204         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
44206 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44208         stdbool: do not define HAVE_STDBOOL_H
44209         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
44210         AC_HEADER_STDBOOL.  All uses changed.  Do not define
44211         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
44212         imported from the latest Autoconf git.  It was motivated by Emacs,
44213         which uses gnulib but does not need HAVE_STDBOOL_H.
44215 2011-02-04  Bruno Haible  <bruno@clisp.org>
44217         wcsnrtombs: Prepare for new module wwcsnrtombs.
44218         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
44219         * lib/wcsnrtombs.c: Include it.
44220         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
44222         wcsrtombs: Prepare for new module wwcsrtombs.
44223         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
44224         * lib/wcsrtombs.c: Include it.
44225         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
44227         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
44228         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
44229         * lib/mbsnrtowcs.c: Include it.
44230         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
44232         mbsrtowcs: Prepare for new module mbsrtowwcs.
44233         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
44234         * lib/mbsrtowcs.c: Include it.
44235         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
44237 2011-02-04  Bruno Haible  <bruno@clisp.org>
44239         vasnprintf: Reduce use of malloc for small format strings.
44240         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
44241         (arguments): Add room for the first 7 arguments.
44242         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
44243         (char_directives, u8_directives, u16_directives, u32_directives): Add
44244         room for the first 7 directives.
44245         * lib/printf-parse.c: Include <string.h>.
44246         (PRINTF_PARSE): Change memory handling code so that it uses the first
44247         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
44248         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
44249         Reported by Pádraig Brady <P@draigbrady.com>.
44251 2011-01-31  Eric Blake  <eblake@redhat.com>
44253         dup2: work around Haiku bug
44254         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
44255         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
44256         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44257         * tests/test-dup2.c (main): Enhance test.
44259 2011-01-31  Simon Josefsson  <simon@josefsson.org>
44261         doc: off_t is not available in eglibc 2.11.2 stdio.h.
44262         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
44263         declared by eglibc 2.11.2.
44264         * lib/stdio.in.h: Likewise.
44266 2011-01-31  Eric Blake  <eblake@redhat.com>
44268         ignore-value: add missing test dependency
44269         * tests/test-ignore-value.c: Revert previous change; stdio.h
44270         provides off_t.
44271         * modules/ignore-value-tests (Depends-on): Add missing dependency.
44273 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
44275         mktime: clarify long_int width checking
44276         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
44277         the top level, to make it clearer that the assumption about
44278         long_int width is being checked.  See
44279         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
44281 2011-01-30  Simon Josefsson  <simon@josefsson.org>
44283         ignore-value: Fix self-test.
44284         * tests/test-ignore-value.c: Include sys/types.h for off_t.
44286 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44288         TYPE_MAXIMUM: avoid theoretically undefined behavior
44289         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
44290         negative number, which the C Standard says has undefined behavior.
44291         In practice this is not a problem, but might as well do it by the book.
44292         Reported by Rich Felker and Eric Blake; see
44293         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
44294         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
44295         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44297         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
44298         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44299         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
44301         mktime: #undef mktime before #defining it
44302         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
44304         mktime: systematically normalize tm_isdst comparisons
44305         * lib/mktime.c (isdst_differ): New function.
44306         (__mktime_internal): Use it systematically for all isdst comparisons.
44307         This completes the fix for libc BZ #6723, and removes the need for
44308         normalizing tm_isdst.  See
44309         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
44310         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
44312         mktime: fix some integer overflow issues and sidestep the rest
44314         This was prompted by a bug report by Benjamin Lindner for MinGW
44315         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
44316         His bug is due to signed integer overflow (0 - INT_MIN), and I
44317         I scanned through mktime.c looking for other integer overflow
44318         problems, fixing all the bugs I found.
44320         Although the C Standard says the resulting code is still not safe
44321         in the presence of integer overflow, in practice it should be good
44322         enough for all real-world two's-complement implementations, except
44323         for debugging environments that deliberately trap on integer
44324         overflow (e.g., gcc -ftrapv).
44326         * lib/mktime.c (WRAPV): New macro.
44327         (SHR): Also check that long_int and time_t shift right in the
44328         usual way, before using the fast-but-unportable method.
44329         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
44330         used.  The code already assumed two's complement, so there's
44331         no need to test for alternatives.  All uses removed.
44332         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
44333         the C standard.  Problem reported by Rich Felker in
44334         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
44335         (twos_complement_arithmetic): Also check long_int and time_t.
44336         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
44337         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
44338         (__mktime_internal): Avoid integer overflow with unary subtraction
44339         in two instances where -1 - X is an adequate replacement for -X,
44340         since the calculations are approximate.
44342 2011-01-29  Eric Blake  <eblake@redhat.com>
44344         mktime: avoid infinite loop
44345         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
44346         type; behavior is still undefined but portable to all known targets.
44347         Reported by Rich Felker.
44349 2011-01-29  Simon Josefsson  <simon@josefsson.org>
44351         rename, unlink, same-inode: Relicense.
44352         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
44353         * modules/unlink (License): Likewise.
44354         * modules/same-inode (License): Likewise.
44356 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44358         mktime: avoid problems on NetBSD 5 / i386
44359         * lib/mktime.c (long_int): New type.  This works around a problem
44360         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44361         but time_t is 64 bits, and where I expect the existing code is
44362         wrong in some cases.
44363         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44364         (ydhms_diff): Bring back the compile-time check for wide-enough
44365         year and yday.
44367         mktime: fix misspelling in comment
44368         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44369         This merges all recent glibc changes of importance.
44371 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44373         move-if-change: cope with concurrent mv of identical file.
44374         * build-aux/move-if-change (CMPPROG): Accept environment
44375         variable as an override for `cmp'.
44376         (usage): Document CMPPROG.
44377         Adjust comparison to drop stdout.  Cope with failure of mv if
44378         the target file exists and is identical to the source, for
44379         parallel builds.
44380         Report from H.J. Lu against binutils in PR binutils/12283.
44382 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44384         * users.txt: Mention sharutils.
44386 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44388         * users.txt: Mention OATH Toolkit.
44390 2011-01-27  Bruno Haible  <bruno@clisp.org>
44392         Prepare for supporting FreeBSD 10.
44393         * build-aux/config.libpath: Remove handling of freebsd1*.
44395 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44397         Prepare for supporting FreeBSD 10.
44398         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44399         match FreeBSD 10.0.
44401 2011-01-27  Bruno Haible  <bruno@clisp.org>
44403         vma-iter, get-rusage-as: Add OpenBSD support.
44404         * modules/vma-iter (configure.ac): Test for mquery.
44405         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44406         * lib/vma-iter.c: Include <sys/mman.h>.
44407         (vma_iterate): Add an implementation based on mquery().
44408         * lib/resource-ext.h (get_rusage_as): Update comments.
44409         * lib/get-rusage-as.c: Likewise.
44410         * lib/get-rusage-data.c: Likewise.
44412 2011-01-26  Karl Berry  <karl@gnu.org>
44414         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44415         variables to make it easier to override the makeinfo program used.
44417 2011-01-26  Eric Blake  <eblake@redhat.com>
44419         fcntl: work around Haiku F_DUPFD bugs
44420         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44421         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44422         cloexec bit on duplication.
44423         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44425 2011-01-26  Bruno Haible  <bruno@clisp.org>
44427         Enable memory leak tests on AIX.
44428         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44429         * tests/test-fprintf-posix3.c (main): Likewise.
44431 2011-01-26  Bruno Haible  <bruno@clisp.org>
44433         Tests for module 'get-rusage-data'.
44434         * modules/get-rusage-data-tests: New file.
44435         * tests/test-get-rusage-data.c: New file.
44437         New module 'get-rusage-data'.
44438         * lib/resource-ext.h (get_rusage_data): New declaration.
44439         * lib/get-rusage-data.c: New file.
44440         * modules/get-rusage-data: New file.
44442 2011-01-25  Bruno Haible  <bruno@clisp.org>
44444         get-rusage-as: Allow for easier testing.
44445         * lib/resource-ext.h (get_rusage_as): Add comment.
44446         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44447         (main): New function for interactive testing.
44449 2011-01-25  Bruno Haible  <bruno@clisp.org>
44451         vma-iter: Treat Haiku like BeOS.
44452         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44453         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44455 2011-01-25  Eric Blake  <eblake@redhat.com>
44457         c-stack: fix regression on cygwin when libsigsegv is present
44458         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44460 2011-01-24  Bruno Haible  <bruno@clisp.org>
44462         vma-iter: Avoid empty intervals.
44463         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44464         on an empty interval.
44466 2011-01-24  Jim Meyering  <meyering@redhat.com>
44468         u64: remove unnecessary #include
44469         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44471 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44473         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44474         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44476 2011-01-23  Bruno Haible  <bruno@clisp.org>
44478         New module 'vma-iter'.
44479         * lib/vma-iter.h: New file.
44480         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44481         * modules/vma-iter: New file.
44482         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44483         for get_rusage_as_via_iterator.
44484         (vma_iterate_callback): New function.
44485         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44486         * modules/get-rusage-as (Depends-on): Add vma-iter.
44488 2011-01-23  Bruno Haible  <bruno@clisp.org>
44490         uninorm: Tweak includes.
44491         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44492         Reported by Jim Meyering.
44494 2011-01-23  Bruno Haible  <bruno@clisp.org>
44496         get-rusage-as: Improve on NetBSD.
44497         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44498         /proc, like on FreeBSD.
44500 2011-01-23  Jim Meyering  <meyering@redhat.com>
44502         xreadlink.h: remove unnecessary #include
44503         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44505         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44506         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44508 2011-01-23  Bruno Haible  <bruno@clisp.org>
44510         get-rusage-as: Fix bug.
44511         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44512         original limit when aborting the first loop.
44514 2011-01-23  Bruno Haible  <bruno@clisp.org>
44516         wctype: Ensure valid C syntax.
44517         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44518         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44520 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44522         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44524         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44525         as they are needed only for configure's test case.
44526         This removes two unnecessary symbols from config.h.
44528         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44529         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44531         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44532         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44533         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44534         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44535         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44536         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44537         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44538         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44540         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44541         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44542         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44543         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44544         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44545         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44547 2011-01-21  Eric Blake  <eblake@redhat.com>
44549         maintainer-makefile: work with older git for submodule check
44550         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44551         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44552         Reported by Matthias Bolte.
44554         bootstrap: minor portability fixes
44555         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44556         (usage): Omit leading capital and trailing . on help phrases, per
44557         GNU Coding Standards.
44558         (check_versions, top level): Prefix messages with script name.
44560 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44562         bootstrap: support --no-git option
44563         * build-aux/bootstrap: Add --no-git option, to be used when
44564         --gnulib-srcdir points to the exact desired checkout.
44566 2011-01-21  Eric Blake  <eblake@redhat.com>
44568         strerror_r-posix: work with glibc 2.13
44569         * lib/strerror_r.c (strerror_r): Fix return type.
44571 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44572             Bruno Haible  <bruno@clisp.org>
44574         uN_strstr: New unit tests.
44575         * modules/unistr/u8-strstr-tests: New file.
44576         * modules/unistr/u16-strstr-tests: New file.
44577         * modules/unistr/u32-strstr-tests: New file.
44578         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44579         * tests/unistr/test-u8-strstr.c: New file.
44580         * tests/unistr/test-u16-strstr.c: New file.
44581         * tests/unistr/test-u32-strstr.c: New file.
44583 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44584             Bruno Haible  <bruno@clisp.org>
44586         Make uN_strstr functions O(n) worst-case.
44587         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44588         16-bit and 32-bit unit cases, use the unibyte algorithm from
44589         lib/mbsstr.c.
44590         * lib/unistr/u8-strstr.c: Include <string.h>.
44591         (UNIT_IS_UINT8_T): New macro.
44592         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44593         (U_STRLEN, U_STRNLEN): New macros.
44594         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44595         (U_STRLEN, U_STRNLEN): New macros.
44596         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44597         (configure.ac): Update required libunistring version.
44598         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44599         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44600         malloca.
44601         (configure.ac): Update required libunistring version.
44602         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44603         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44604         malloca.
44605         (configure.ac): Update required libunistring version.
44607 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44608             Bruno Haible  <bruno@clisp.org>
44610         Prepare for faster uN_strstr functions.
44611         * lib/str-kmp.h: Support definable UNITs.
44612         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44613         needle_len argument.
44614         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44615         * lib/mbscasestr.c (mbscasestr): Likewise.
44617 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44619         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44620         * tests/test-malloca.c (main): Unset the environment variable
44621         to greatly speed up the test.
44622         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44623         * modules/malloca-tests: Depend on unsetenv.
44625 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44627         ignore-value: remove stdint dependency
44628         * lib/ignore-value.h: Remove <stdint.h>
44629         * modules/ignore-value: Remove stdint dependency.
44631 2011-01-21  Jim Meyering  <meyering@redhat.com>
44633         maint.mk: adjust variable name to be consistent with other gl_ vars
44634         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44635         to be lower case.
44637 2011-01-20  Jim Meyering  <meyering@redhat.com>
44639         maint.mk: make "check" depend on public-submodule-commit by default
44640         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44642 2011-01-20  Bruno Haible  <bruno@clisp.org>
44644         mbfile, mbiter: Complete change from 2008-12-21.
44645         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44646         * m4/mbiter.m4 (gl_MBITER): Likewise.
44648 2011-01-20  Jim Meyering  <meyering@redhat.com>
44650         init.sh: insert space between each function name and "()"
44651         * tests/init.sh: Make it a little easier to see that a function's
44652         name is "warn_", and not "warn" when looking at the first part of
44653         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44655 2011-01-20  Jim Meyering  <meyering@redhat.com>
44657         mountlist: clean up code formatting
44658         * lib/mountlist.c (read_file_system_list): Split a long line,
44659         correct bracing style, use NULL in place of "(struct statfs *)0",
44660         don't parenthesize return value, add spaces around "=" and after
44661         ";-in-for-stmt".
44663 2011-01-14  Markus Duft  <mduft@gentoo.org>
44665         mountlist: add support for Interix
44666         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44667         Apply statvfs to all entries of /dev/fs.
44668         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44669         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44671 2011-01-20  Jim Meyering  <meyering@redhat.com>
44673         maint.mk: improve the public-submodule-commit rule
44674         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44675         to suppress printing of its commands... unless V=1.
44676         Add git submodule's --quiet option to suppress printing of e.g.,
44677         "Entering gnulib" output.
44678         "cd" into $(srcdir) before running git submodule.
44680 2011-01-20  Bruno Haible  <bruno@clisp.org>
44682         include_next: Fix bug introduced on 2011-01-18.
44683         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44684         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44685         ac_cv_header_... variable if the second argument is not 'check'.
44686         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44687         gl_NEXT_HEADERS_INTERNAL.
44689 2011-01-20  Bruno Haible  <bruno@clisp.org>
44691         Allow the user to avoid the GNULIB_TEST_* macros.
44692         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44693         Suggested by Paul Eggert.
44695 2011-01-14  Jim Meyering  <meyering@redhat.com>
44697         bootstrap: avoid failure when there is no .gitmodules file
44698         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44699         has been assigned to, even when its value is the empty string.
44700         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44701         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44702         Reported by John W. Eaton <jwe@gnu.org>.
44704 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44706         assume <ctype.h>, ..., <time.h> exist
44707         For years gnulib has been assuming the existence of the headers
44708         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44709         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44710         them, since they don't appear to be needed.
44711         * README (Portability guidelines): Document this.
44712         * lib/flock.c: Assume <fcntl.h> exists.
44713         * lib/regex_internal.h: Assume <locale.h> exists.
44714         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44716         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44717         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44718         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44719         * m4/regex.m4 (gl_REGEX): Likewise.
44720         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44721         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44722         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44723         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44724         * tests/test-argp.c: Likewise.
44725         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44727         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44728         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44729         AA_APPLE_UNIVERSAL_BUILD.  See
44730         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44731         * NEWS: Document this.
44733 2011-01-19  Eric Blake  <eblake@redhat.com>
44735         c-stack: assume stack overflow if SA_SIGINFO unsupported
44736         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44737         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44738         sigaction will work.
44739         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44740         behavior match Linux.
44741         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44743         stdbool-tests: accommodate Haiku
44744         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44746         binary-io: fix O_TEXT on Haiku
44747         * modules/binary-io (Depends-on): Add fcntl-h.
44748         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44749         than blindly undefining O_TEXT.
44750         Reported by Scott McCreary.
44752 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44754         include_next: do not check for standard headers like stddef.h
44756         I found this problem when modifying Emacs to use gnulib.
44757         I noticed that it added HAVE_STDDEF_H to config.h, even though
44758         gnulib always assumes <stddef.h> exists as per README and this
44759         symbol is unnecessary.
44760         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44761         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44762         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44763         faster for headers like stddef.h that are known to exist.
44764         (gl_CHECK_NEXT_HEADERS): Use it.
44765         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44766         rather than gl_CHECK_NEXT_HEADERS.
44767         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44768         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44770 2011-01-18  Eric Blake  <eblake@redhat.com>
44772         ansi-c++-opt: skip C++ dependency style if C++ is unused
44773         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44774         tests when we know C++ compilation is not desired.
44775         Reported by Scott McCreary.
44777 2011-01-18  Bruno Haible  <bruno@clisp.org>
44779         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44780         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44781         (main): Perform test also when getrlimit and setrlimit don't exist or
44782         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44783         limiting the address space size using setrlimit, compare the address
44784         space size before and after the test.
44785         * tests/test-dprintf-posix2.c: Likewise.
44786         * tests/test-fprintf-posix3.sh: Update skip messages.
44787         * tests/test-dprintf-posix2.sh: Likewise.
44788         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44789         * modules/dprintf-posix-tests (Depends-on): Likewise.
44790         Reported by Bruce Korb <bkorb@gnu.org> and
44791         Gary V. Vaughan <gary@gnu.org>.
44793 2011-01-18  Bruno Haible  <bruno@clisp.org>
44795         get-rusage-as: Improvement for Cygwin.
44796         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44797         areas that are merely reserved.
44799 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44801         strftime: remove dependencies on multibyte modules
44803         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44804         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44805         only if __osf__ is defined, and I suspect OSF doesn't need these
44806         other modules.  If my guess is wrong, we'll need to come up with a
44807         variant of strftime that doesn't need the multibyte modules.
44809         I discovered this problem when attempting modify Emacs to use the
44810         strftime module.  With the previous gnulib, this caused Emacs to
44811         need 31 new files, ranging from lib/config.charset to
44812         m4/wint_t.m4.  This was overkill and I expect would be offputting
44813         to the Emacs maintainers.  After this change, only 6 new files are
44814         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44815         stdbool.m4, and tm_gmtoff.m4.
44817         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44818         Suggested by Bruno Haible in
44819         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44820         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44821         and do not check for wchar.h.
44822         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44823         (Depends-on): Remove mbrlen, mbsinit, wchar.
44825 2011-01-18  Bruno Haible  <bruno@clisp.org>
44827         Tests for module 'get-rusage-as'.
44828         * modules/get-rusage-as-tests: New file.
44829         * tests/test-get-rusage-as.c: New file.
44831         New module 'get-rusage-as'.
44832         * modules/get-rusage-as: New file.
44833         * lib/resource-ext.h: New file.
44834         * lib/get-rusage-as.c: New file.
44836 2011-01-17  Eric Blake  <eblake@redhat.com>
44838         sigaction: relax license from LGPLv3+ to LGPLv2+
44839         * modules/sigaction (License): Relax to LGPLv2+.
44841 2011-01-14  Bruno Haible  <bruno@clisp.org>
44843         filemode: Make function declarations usable in C++ mode.
44844         * lib/filemode.h: Enclose function declarations in extern "C" block.
44845         Reported by John W. Eaton <jwe@gnu.org>.
44847 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44849         save-cwd: no longer include "xgetcwd.h"
44850         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44851         This avoids a compilation failure in projects that use save-cwd
44852         without also using the xgetcwd module.
44854 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44856         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44857         This is so that a program like Emacs, which needs only dtoastr,
44858         does not have to bother with distributing and compiling ftoastr
44859         and ldtoastr.
44860         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44861         * modules/dtoastr, modules/ldtoastr: New files.
44862         * modules/ftoastr: Now works just for 'float'.
44863         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44864         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44865         dtoastr.c, ldtoastr.c.
44867 2011-01-11  Jim Meyering  <meyering@redhat.com>
44869         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44870         There is no need to work around the lack of the fchdir function,
44871         since gnulib can now provide a replacement when required.
44872         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44873         * modules/save-cwd (Depends-on): Add fchdir.
44875 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44877         openat, save-cwd: avoid xmalloc
44879         This removes a direct (but undocumented) dependency of openat on
44880         xalloc, along with an indirect dependency via save-cwd.  It also
44881         removes a dependency of save-cwd on xgetcwd, and thereby
44882         indirectly on xalloc.  This change causes the openat substitute
44883         to fall back on save_cwd when memory is tight, and for save_cwd to
44884         fail instead of dying when memory is tight, but that's good enough.
44885         Problem and initial idea for fix reported by Bastien Roucaries in
44886         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44888         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44889         xalloc.h (for xmalloc).
44890         (openat_proc_name): Use malloc, not xmalloc.
44891         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44892         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44894         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44895         This avoids heap allocation for file names whose lengths are in
44896         the range 512..1023, with the upper bound increasing to at most
44897         4031 depending on the platform's PATH_MAX.  (We do not want
44898         pathmax.h here as it might supply a non-constant PATH_MAX.)
44899         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44900         Perhaps they should be moved to malloca.h?
44901         (OPENAT_BUFFER_SIZE): Use them.
44903 2011-01-10  Bruno Haible  <bruno@clisp.org>
44905         doc: Update users.txt.
44906         * users.txt: Add recutils.
44908 2011-01-09  Karl Berry  <karl@gnu.org>
44910         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44912         * doc/configmake.texi: New file.
44913         * doc/gnulib.texi: Include it.
44914         * modules/configmake: Move documentation from here.
44916 2011-01-09  Bruno Haible  <bruno@clisp.org>
44918         Update to Unicode 6.0.0.
44919         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44920         (get_lbp): Update for Unicode 6.0.0.
44921         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44922         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44923         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44924         U+11001, U+11038..U+11046. Remove U+06DE.
44925         (uc_width): Fix bounds of planes.
44926         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44927         lib/uniwidth/width.c.
44928         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44929         trailing whitespace removed.
44930         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44931         without comments, but with the original copyright notice.
44932         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44933         * lib/unicase/ignorable.h: Likewise.
44934         * lib/unicase/tocasefold.h: Likewise.
44935         * lib/unicase/tolower.h: Likewise.
44936         * lib/unicase/totitle.h: Likewise.
44937         * lib/unicase/toupper.h: Likewise.
44938         * lib/unictype/bidi_of.h: Likewise.
44939         * lib/unictype/blocks.h: Likewise.
44940         * lib/unictype/categ_C.h: Likewise.
44941         * lib/unictype/categ_Cn.h: Likewise.
44942         * lib/unictype/categ_L.h: Likewise.
44943         * lib/unictype/categ_Ll.h: Likewise.
44944         * lib/unictype/categ_Lm.h: Likewise.
44945         * lib/unictype/categ_Lo.h: Likewise.
44946         * lib/unictype/categ_Lu.h: Likewise.
44947         * lib/unictype/categ_M.h: Likewise.
44948         * lib/unictype/categ_Mc.h: Likewise.
44949         * lib/unictype/categ_Me.h: Likewise.
44950         * lib/unictype/categ_Mn.h: Likewise.
44951         * lib/unictype/categ_N.h: Likewise.
44952         * lib/unictype/categ_Nd.h: Likewise.
44953         * lib/unictype/categ_No.h: Likewise.
44954         * lib/unictype/categ_P.h: Likewise.
44955         * lib/unictype/categ_Po.h: Likewise.
44956         * lib/unictype/categ_S.h: Likewise.
44957         * lib/unictype/categ_Sc.h: Likewise.
44958         * lib/unictype/categ_Sk.h: Likewise.
44959         * lib/unictype/categ_Sm.h: Likewise.
44960         * lib/unictype/categ_So.h: Likewise.
44961         * lib/unictype/categ_of.h: Likewise.
44962         * lib/unictype/combining.h: Likewise.
44963         * lib/unictype/ctype_alnum.h: Likewise.
44964         * lib/unictype/ctype_alpha.h: Likewise.
44965         * lib/unictype/ctype_graph.h: Likewise.
44966         * lib/unictype/ctype_lower.h: Likewise.
44967         * lib/unictype/ctype_print.h: Likewise.
44968         * lib/unictype/ctype_punct.h: Likewise.
44969         * lib/unictype/ctype_upper.h: Likewise.
44970         * lib/unictype/decdigit.h: Likewise.
44971         * lib/unictype/digit.h: Likewise.
44972         * lib/unictype/numeric.h: Likewise.
44973         * lib/unictype/pr_alphabetic.h: Likewise.
44974         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44975         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44976         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44977         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44978         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44979         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44980         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44981         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44982         * lib/unictype/pr_case_ignorable.h: Likewise.
44983         * lib/unictype/pr_cased.h: Likewise.
44984         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44985         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44986         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44987         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44988         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44989         * lib/unictype/pr_combining.h: Likewise.
44990         * lib/unictype/pr_composite.h: Likewise.
44991         * lib/unictype/pr_currency_symbol.h: Likewise.
44992         * lib/unictype/pr_decimal_digit.h: Likewise.
44993         * lib/unictype/pr_deprecated.h: Likewise.
44994         * lib/unictype/pr_format_control.h: Likewise.
44995         * lib/unictype/pr_grapheme_base.h: Likewise.
44996         * lib/unictype/pr_grapheme_extend.h: Likewise.
44997         * lib/unictype/pr_grapheme_link.h: Likewise.
44998         * lib/unictype/pr_id_continue.h: Likewise.
44999         * lib/unictype/pr_id_start.h: Likewise.
45000         * lib/unictype/pr_ideographic.h: Likewise.
45001         * lib/unictype/pr_lowercase.h: Likewise.
45002         * lib/unictype/pr_math.h: Likewise.
45003         * lib/unictype/pr_numeric.h: Likewise.
45004         * lib/unictype/pr_other_alphabetic.h: Likewise.
45005         * lib/unictype/pr_other_id_continue.h: Likewise.
45006         * lib/unictype/pr_other_math.h: Likewise.
45007         * lib/unictype/pr_punctuation.h: Likewise.
45008         * lib/unictype/pr_sentence_terminal.h: Likewise.
45009         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45010         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45011         * lib/unictype/pr_unified_ideograph.h: Likewise.
45012         * lib/unictype/pr_uppercase.h: Likewise.
45013         * lib/unictype/pr_xid_continue.h: Likewise.
45014         * lib/unictype/pr_xid_start.h: Likewise.
45015         * lib/unictype/scripts.h: Likewise.
45016         * lib/unictype/scripts_byname.gperf: Likewise.
45017         * lib/unictype/sy_java_ident.h: Likewise.
45018         * lib/unigbrk/gbrkprop.h: Likewise.
45019         * lib/unilbrk/lbrkprop1.h: Likewise.
45020         * lib/unilbrk/lbrkprop2.h: Likewise.
45021         * lib/uninorm/decomposition-table2.h: Likewise.
45022         * lib/uniwbrk/wbrkprop.h: Likewise.
45023         * tests/unicase/test-cased.c: Likewise.
45024         * tests/unicase/test-ignorable.c: Likewise.
45025         * tests/unicase/test-uc_tolower.c: Likewise.
45026         * tests/unicase/test-uc_totitle.c: Likewise.
45027         * tests/unicase/test-uc_toupper.c: Likewise.
45028         * tests/unictype/test-categ_C.c: Likewise.
45029         * tests/unictype/test-categ_Cn.c: Likewise.
45030         * tests/unictype/test-categ_L.c: Likewise.
45031         * tests/unictype/test-categ_Ll.c: Likewise.
45032         * tests/unictype/test-categ_Lm.c: Likewise.
45033         * tests/unictype/test-categ_Lo.c: Likewise.
45034         * tests/unictype/test-categ_Lu.c: Likewise.
45035         * tests/unictype/test-categ_M.c: Likewise.
45036         * tests/unictype/test-categ_Mc.c: Likewise.
45037         * tests/unictype/test-categ_Me.c: Likewise.
45038         * tests/unictype/test-categ_Mn.c: Likewise.
45039         * tests/unictype/test-categ_N.c: Likewise.
45040         * tests/unictype/test-categ_Nd.c: Likewise.
45041         * tests/unictype/test-categ_No.c: Likewise.
45042         * tests/unictype/test-categ_P.c: Likewise.
45043         * tests/unictype/test-categ_Po.c: Likewise.
45044         * tests/unictype/test-categ_S.c: Likewise.
45045         * tests/unictype/test-categ_Sc.c: Likewise.
45046         * tests/unictype/test-categ_Sk.c: Likewise.
45047         * tests/unictype/test-categ_Sm.c: Likewise.
45048         * tests/unictype/test-categ_So.c: Likewise.
45049         * tests/unictype/test-ctype_alnum.c: Likewise.
45050         * tests/unictype/test-ctype_alpha.c: Likewise.
45051         * tests/unictype/test-ctype_graph.c: Likewise.
45052         * tests/unictype/test-ctype_lower.c: Likewise.
45053         * tests/unictype/test-ctype_print.c: Likewise.
45054         * tests/unictype/test-ctype_punct.c: Likewise.
45055         * tests/unictype/test-ctype_upper.c: Likewise.
45056         * tests/unictype/test-decdigit.h: Likewise.
45057         * tests/unictype/test-digit.h: Likewise.
45058         * tests/unictype/test-numeric.h: Likewise.
45059         * tests/unictype/test-pr_alphabetic.c: Likewise.
45060         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45061         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45062         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45063         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45064         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45065         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45066         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45067         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45068         * tests/unictype/test-pr_case_ignorable.c: Likewise.
45069         * tests/unictype/test-pr_cased.c: Likewise.
45070         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
45071         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
45072         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
45073         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
45074         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
45075         * tests/unictype/test-pr_combining.c: Likewise.
45076         * tests/unictype/test-pr_composite.c: Likewise.
45077         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45078         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45079         * tests/unictype/test-pr_deprecated.c: Likewise.
45080         * tests/unictype/test-pr_format_control.c: Likewise.
45081         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45082         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45083         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45084         * tests/unictype/test-pr_id_continue.c: Likewise.
45085         * tests/unictype/test-pr_id_start.c: Likewise.
45086         * tests/unictype/test-pr_ideographic.c: Likewise.
45087         * tests/unictype/test-pr_lowercase.c: Likewise.
45088         * tests/unictype/test-pr_math.c: Likewise.
45089         * tests/unictype/test-pr_numeric.c: Likewise.
45090         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45091         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45092         * tests/unictype/test-pr_other_math.c: Likewise.
45093         * tests/unictype/test-pr_punctuation.c: Likewise.
45094         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45095         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45096         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45097         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45098         * tests/unictype/test-pr_uppercase.c: Likewise.
45099         * tests/unictype/test-pr_xid_continue.c: Likewise.
45100         * tests/unictype/test-pr_xid_start.c: Likewise.
45101         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45102         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45103         changes.
45104         * lib/unictype/categ_Cc.h: Likewise.
45105         * lib/unictype/categ_Cf.h: Likewise.
45106         * lib/unictype/categ_Co.h: Likewise.
45107         * lib/unictype/categ_Cs.h: Likewise.
45108         * lib/unictype/categ_Lt.h: Likewise.
45109         * lib/unictype/categ_Nl.h: Likewise.
45110         * lib/unictype/categ_Pc.h: Likewise.
45111         * lib/unictype/categ_Pd.h: Likewise.
45112         * lib/unictype/categ_Pe.h: Likewise.
45113         * lib/unictype/categ_Pf.h: Likewise.
45114         * lib/unictype/categ_Pi.h: Likewise.
45115         * lib/unictype/categ_Ps.h: Likewise.
45116         * lib/unictype/categ_Z.h: Likewise.
45117         * lib/unictype/categ_Zl.h: Likewise.
45118         * lib/unictype/categ_Zp.h: Likewise.
45119         * lib/unictype/categ_Zs.h: Likewise.
45120         * lib/unictype/ctype_blank.h: Likewise.
45121         * lib/unictype/ctype_cntrl.h: Likewise.
45122         * lib/unictype/ctype_digit.h: Likewise.
45123         * lib/unictype/ctype_space.h: Likewise.
45124         * lib/unictype/ctype_xdigit.h: Likewise.
45125         * lib/unictype/mirror.h: Likewise.
45126         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45127         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45128         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45129         * lib/unictype/pr_bidi_control.h: Likewise.
45130         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45131         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45132         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45133         * lib/unictype/pr_bidi_pdf.h: Likewise.
45134         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45135         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45136         * lib/unictype/pr_dash.h: Likewise.
45137         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45138         * lib/unictype/pr_diacritic.h: Likewise.
45139         * lib/unictype/pr_extender.h: Likewise.
45140         * lib/unictype/pr_hex_digit.h: Likewise.
45141         * lib/unictype/pr_hyphen.h: Likewise.
45142         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45143         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45144         * lib/unictype/pr_ignorable_control.h: Likewise.
45145         * lib/unictype/pr_iso_control.h: Likewise.
45146         * lib/unictype/pr_join_control.h: Likewise.
45147         * lib/unictype/pr_left_of_pair.h: Likewise.
45148         * lib/unictype/pr_line_separator.h: Likewise.
45149         * lib/unictype/pr_logical_order_exception.h: Likewise.
45150         * lib/unictype/pr_non_break.h: Likewise.
45151         * lib/unictype/pr_not_a_character.h: Likewise.
45152         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45153         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45154         * lib/unictype/pr_other_id_start.h: Likewise.
45155         * lib/unictype/pr_other_lowercase.h: Likewise.
45156         * lib/unictype/pr_other_uppercase.h: Likewise.
45157         * lib/unictype/pr_paired_punctuation.h: Likewise.
45158         * lib/unictype/pr_paragraph_separator.h: Likewise.
45159         * lib/unictype/pr_pattern_syntax.h: Likewise.
45160         * lib/unictype/pr_pattern_white_space.h: Likewise.
45161         * lib/unictype/pr_private_use.h: Likewise.
45162         * lib/unictype/pr_quotation_mark.h: Likewise.
45163         * lib/unictype/pr_radical.h: Likewise.
45164         * lib/unictype/pr_soft_dotted.h: Likewise.
45165         * lib/unictype/pr_space.h: Likewise.
45166         * lib/unictype/pr_titlecase.h: Likewise.
45167         * lib/unictype/pr_variation_selector.h: Likewise.
45168         * lib/unictype/pr_white_space.h: Likewise.
45169         * lib/unictype/pr_zero_width.h: Likewise.
45170         * lib/unictype/sy_c_ident.h: Likewise.
45171         * lib/unictype/sy_c_whitespace.h: Likewise.
45172         * lib/unictype/sy_java_whitespace.h: Likewise.
45173         * lib/uninorm/composition-table.gperf: Likewise.
45174         * lib/uninorm/decomposition-table1.h: Likewise.
45175         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
45176         LB8.
45177         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45178         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45179         * modules/unictype/*: Bump version number of expected libunistring
45180         version.
45182 2011-01-09  Bruno Haible  <bruno@clisp.org>
45184         Update to Unicode 5.2.0.
45185         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
45186         trailing whitespace removed.
45188 2011-01-09  Bruno Haible  <bruno@clisp.org>
45190         New Unicode character properties, from Unicode 5.2.0.
45191         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
45192         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
45193         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
45194         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
45195         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
45196         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
45197         uc_is_property_cased, uc_is_property_case_ignorable,
45198         uc_is_property_changes_when_lowercased,
45199         uc_is_property_changes_when_uppercased,
45200         uc_is_property_changes_when_titlecased,
45201         uc_is_property_changes_when_casefolded,
45202         uc_is_property_changes_when_casemapped): New declarations.
45203         * lib/unictype/pr_byname.gperf: Add the new properties.
45204         * modules/unictype/property-byname (Depends-on): Depend on the new
45205         properties modules.
45206         * modules/unictype/property-all (Depends-on): Likewise.
45207         * MODULES.html.sh (Unicode string functions): Add
45208         unictype/property-case-ignorable, unictype/property-cased,
45209         unictype/property-changes-when-casefolded,
45210         unictype/property-changes-when-casemapped,
45211         unictype/property-changes-when-lowercased,
45212         unictype/property-changes-when-titlecased,
45213         unictype/property-changes-when-uppercased.
45215         New module 'unictype/property-changes-when-casemapped'.
45216         * modules/unictype/property-changes-when-casemapped: New file.
45217         * lib/unictype/pr_changes_when_casemapped.c: New file.
45218         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
45219         generated by gen-uni-tables.
45220         * modules/unictype/property-changes-when-casemapped-tests: New file.
45221         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
45222         automatically generated by gen-uni-tables.
45224         New module 'unictype/property-changes-when-casefolded'.
45225         * modules/unictype/property-changes-when-casefolded: New file.
45226         * lib/unictype/pr_changes_when_casefolded.c: New file.
45227         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
45228         generated by gen-uni-tables.
45229         * modules/unictype/property-changes-when-casefolded-tests: New file.
45230         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
45231         automatically generated by gen-uni-tables.
45233         New module 'unictype/property-changes-when-titlecased'.
45234         * modules/unictype/property-changes-when-titlecased: New file.
45235         * lib/unictype/pr_changes_when_titlecased.c: New file.
45236         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
45237         generated by gen-uni-tables.
45238         * modules/unictype/property-changes-when-titlecased-tests: New file.
45239         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
45240         automatically generated by gen-uni-tables.
45242         New module 'unictype/property-changes-when-uppercased'.
45243         * modules/unictype/property-changes-when-uppercased: New file.
45244         * lib/unictype/pr_changes_when_uppercased.c: New file.
45245         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
45246         generated by gen-uni-tables.
45247         * modules/unictype/property-changes-when-uppercased-tests: New file.
45248         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
45249         automatically generated by gen-uni-tables.
45251         New module 'unictype/property-changes-when-lowercased'.
45252         * modules/unictype/property-changes-when-lowercased: New file.
45253         * lib/unictype/pr_changes_when_lowercased.c: New file.
45254         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
45255         generated by gen-uni-tables.
45256         * modules/unictype/property-changes-when-lowercased-tests: New file.
45257         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
45258         automatically generated by gen-uni-tables.
45260         New module 'unictype/property-case-ignorable'.
45261         * modules/unictype/property-case-ignorable: New file.
45262         * lib/unictype/pr_case_ignorable.c: New file.
45263         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
45264         by gen-uni-tables.
45265         * modules/unictype/property-case-ignorable-tests: New file.
45266         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
45267         generated by gen-uni-tables.
45269         New module 'unictype/property-cased'.
45270         * modules/unictype/property-cased: New file.
45271         * lib/unictype/pr_cased.c: New file.
45272         * lib/unictype/pr_cased.h: New file, automatically generated by
45273         gen-uni-tables.
45274         * modules/unictype/property-cased-tests: New file.
45275         * tests/unictype/test-pr_cased.c: New file, automatically generated by
45276         gen-uni-tables.
45278 2011-01-09  Bruno Haible  <bruno@clisp.org>
45280         Update to Unicode 5.2.0.
45281         * lib/gen-uni-tables.c (output_predicate, output_category,
45282         output_combclass, output_bidi_category, output_decimal_digit_test,
45283         output_decimal_digit, output_digit_test, output_digit,
45284         output_numeric_test, output_numeric, output_mirror, output_scripts,
45285         output_scripts_byname, output_blocks, output_ident_category): Fix
45286         comment header.
45287         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
45288         get_wbp.
45289         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
45290         items.
45291         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
45292         Changes_When_Lowercased, Changes_When_Uppercased,
45293         Changes_When_Titlecased, Changes_When_Casefolded,
45294         Changes_When_Casemapped.
45295         (is_property_alphabetic, is_property_default_ignorable_code_point):
45296         Update for Unicode 5.2.0.
45297         (is_property_cased, is_property_case_ignorable,
45298         is_property_changes_when_lowercased,
45299         is_property_changes_when_uppercased,
45300         is_property_changes_when_titlecased,
45301         is_property_changes_when_casefolded,
45302         is_property_changes_when_casemapped): New functions.
45303         (output_properties): Output also the properties cased, case_ignorable,
45304         changes_when_lowercased, changes_when_uppercased,
45305         changes_when_titlecased, changes_when_casefolded,
45306         changes_when_casemapped.
45307         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
45308         Unicode TR#11 revision 17 -> 19.
45309         (LBP_CP): New enumeration value.
45310         (LBP_*): Adjust values accordingly.
45311         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45312         TR#14 revision 22 -> 24.
45313         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
45314         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
45315         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45316         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
45317         is_WBP_MIDLETTER.
45318         (output_composition_tables): Allow for 24 bits instead of 16 bits in
45319         the code1 and code2 of each composition rule.
45320         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
45321         * lib/unicase/ignorable.h: Likewise.
45322         * lib/unicase/tocasefold.h: Likewise.
45323         * lib/unicase/tolower.h: Likewise.
45324         * lib/unicase/totitle.h: Likewise.
45325         * lib/unicase/toupper.h: Likewise.
45326         * lib/unictype/bidi_of.h: Likewise.
45327         * lib/unictype/blocks.h: Likewise.
45328         * lib/unictype/categ_C.h: Likewise.
45329         * lib/unictype/categ_Cf.h: Likewise.
45330         * lib/unictype/categ_Cn.h: Likewise.
45331         * lib/unictype/categ_L.h: Likewise.
45332         * lib/unictype/categ_Ll.h: Likewise.
45333         * lib/unictype/categ_Lm.h: Likewise.
45334         * lib/unictype/categ_Lo.h: Likewise.
45335         * lib/unictype/categ_Lu.h: Likewise.
45336         * lib/unictype/categ_M.h: Likewise.
45337         * lib/unictype/categ_Mc.h: Likewise.
45338         * lib/unictype/categ_Mn.h: Likewise.
45339         * lib/unictype/categ_N.h: Likewise.
45340         * lib/unictype/categ_Nd.h: Likewise.
45341         * lib/unictype/categ_Nl.h: Likewise.
45342         * lib/unictype/categ_No.h: Likewise.
45343         * lib/unictype/categ_P.h: Likewise.
45344         * lib/unictype/categ_Pd.h: Likewise.
45345         * lib/unictype/categ_Po.h: Likewise.
45346         * lib/unictype/categ_S.h: Likewise.
45347         * lib/unictype/categ_Sc.h: Likewise.
45348         * lib/unictype/categ_So.h: Likewise.
45349         * lib/unictype/categ_of.h: Likewise.
45350         * lib/unictype/combining.h: Likewise.
45351         * lib/unictype/ctype_alnum.h: Likewise.
45352         * lib/unictype/ctype_alpha.h: Likewise.
45353         * lib/unictype/ctype_graph.h: Likewise.
45354         * lib/unictype/ctype_lower.h: Likewise.
45355         * lib/unictype/ctype_print.h: Likewise.
45356         * lib/unictype/ctype_punct.h: Likewise.
45357         * lib/unictype/ctype_upper.h: Likewise.
45358         * lib/unictype/decdigit.h: Likewise.
45359         * lib/unictype/digit.h: Likewise.
45360         * lib/unictype/numeric.h: Likewise.
45361         * lib/unictype/pr_alphabetic.h: Likewise.
45362         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45363         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45364         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45365         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45366         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45367         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45368         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45369         * lib/unictype/pr_combining.h: Likewise.
45370         * lib/unictype/pr_composite.h: Likewise.
45371         * lib/unictype/pr_currency_symbol.h: Likewise.
45372         * lib/unictype/pr_dash.h: Likewise.
45373         * lib/unictype/pr_decimal_digit.h: Likewise.
45374         * lib/unictype/pr_deprecated.h: Likewise.
45375         * lib/unictype/pr_diacritic.h: Likewise.
45376         * lib/unictype/pr_extender.h: Likewise.
45377         * lib/unictype/pr_grapheme_base.h: Likewise.
45378         * lib/unictype/pr_grapheme_extend.h: Likewise.
45379         * lib/unictype/pr_grapheme_link.h: Likewise.
45380         * lib/unictype/pr_id_continue.h: Likewise.
45381         * lib/unictype/pr_id_start.h: Likewise.
45382         * lib/unictype/pr_ideographic.h: Likewise.
45383         * lib/unictype/pr_ignorable_control.h: Likewise.
45384         * lib/unictype/pr_logical_order_exception.h: Likewise.
45385         * lib/unictype/pr_lowercase.h: Likewise.
45386         * lib/unictype/pr_numeric.h: Likewise.
45387         * lib/unictype/pr_other_alphabetic.h: Likewise.
45388         * lib/unictype/pr_punctuation.h: Likewise.
45389         * lib/unictype/pr_sentence_terminal.h: Likewise.
45390         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45391         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45392         * lib/unictype/pr_unified_ideograph.h: Likewise.
45393         * lib/unictype/pr_uppercase.h: Likewise.
45394         * lib/unictype/pr_xid_continue.h: Likewise.
45395         * lib/unictype/pr_xid_start.h: Likewise.
45396         * lib/unictype/pr_zero_width.h: Likewise.
45397         * lib/unictype/scripts.h: Likewise.
45398         * lib/unictype/scripts_byname.gperf: Likewise.
45399         * lib/unictype/sy_java_ident.h: Likewise.
45400         * lib/unigbrk/gbrkprop.h: Likewise.
45401         * lib/unilbrk/lbrkprop1.h: Likewise.
45402         * lib/unilbrk/lbrkprop2.h: Likewise.
45403         * lib/unilbrk/lbrktables.h: Likewise.
45404         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45405         LBP_CP. Implement rule LB30.
45406         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45407         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45408         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45409         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45410         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45411         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45412         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45413         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45414         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45415         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45416         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45417         bits instead of 16 bits in the code1 and code2 of each composition
45418         rule.
45419         (uc_composition): Update for Unicode 5.2.0.
45420         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45421         * lib/uninorm/decomposition-table2.h: Likewise.
45422         * lib/uniwbrk/wbrkprop.h: Likewise.
45423         * tests/unicase/test-cased.c: Likewise.
45424         * tests/unicase/test-ignorable.c: Likewise.
45425         * tests/unicase/test-uc_tolower.c: Likewise.
45426         * tests/unicase/test-uc_totitle.c: Likewise.
45427         * tests/unicase/test-uc_toupper.c: Likewise.
45428         * tests/unictype/test-categ_C.c: Likewise.
45429         * tests/unictype/test-categ_Cf.c: Likewise.
45430         * tests/unictype/test-categ_Cn.c: Likewise.
45431         * tests/unictype/test-categ_L.c: Likewise.
45432         * tests/unictype/test-categ_Ll.c: Likewise.
45433         * tests/unictype/test-categ_Lm.c: Likewise.
45434         * tests/unictype/test-categ_Lo.c: Likewise.
45435         * tests/unictype/test-categ_Lu.c: Likewise.
45436         * tests/unictype/test-categ_M.c: Likewise.
45437         * tests/unictype/test-categ_Mc.c: Likewise.
45438         * tests/unictype/test-categ_Mn.c: Likewise.
45439         * tests/unictype/test-categ_N.c: Likewise.
45440         * tests/unictype/test-categ_Nd.c: Likewise.
45441         * tests/unictype/test-categ_Nl.c: Likewise.
45442         * tests/unictype/test-categ_No.c: Likewise.
45443         * tests/unictype/test-categ_P.c: Likewise.
45444         * tests/unictype/test-categ_Pd.c: Likewise.
45445         * tests/unictype/test-categ_Po.c: Likewise.
45446         * tests/unictype/test-categ_S.c: Likewise.
45447         * tests/unictype/test-categ_Sc.c: Likewise.
45448         * tests/unictype/test-categ_So.c: Likewise.
45449         * tests/unictype/test-ctype_alnum.c: Likewise.
45450         * tests/unictype/test-ctype_alpha.c: Likewise.
45451         * tests/unictype/test-ctype_graph.c: Likewise.
45452         * tests/unictype/test-ctype_lower.c: Likewise.
45453         * tests/unictype/test-ctype_print.c: Likewise.
45454         * tests/unictype/test-ctype_punct.c: Likewise.
45455         * tests/unictype/test-ctype_upper.c: Likewise.
45456         * tests/unictype/test-decdigit.h: Likewise.
45457         * tests/unictype/test-digit.h: Likewise.
45458         * tests/unictype/test-numeric.h: Likewise.
45459         * tests/unictype/test-pr_alphabetic.c: Likewise.
45460         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45461         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45462         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45463         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45464         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45465         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45466         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45467         * tests/unictype/test-pr_combining.c: Likewise.
45468         * tests/unictype/test-pr_composite.c: Likewise.
45469         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45470         * tests/unictype/test-pr_dash.c: Likewise.
45471         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45472         * tests/unictype/test-pr_deprecated.c: Likewise.
45473         * tests/unictype/test-pr_diacritic.c: Likewise.
45474         * tests/unictype/test-pr_extender.c: Likewise.
45475         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45476         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45477         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45478         * tests/unictype/test-pr_id_continue.c: Likewise.
45479         * tests/unictype/test-pr_id_start.c: Likewise.
45480         * tests/unictype/test-pr_ideographic.c: Likewise.
45481         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45482         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45483         * tests/unictype/test-pr_lowercase.c: Likewise.
45484         * tests/unictype/test-pr_numeric.c: Likewise.
45485         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45486         * tests/unictype/test-pr_punctuation.c: Likewise.
45487         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45488         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45489         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45490         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45491         * tests/unictype/test-pr_uppercase.c: Likewise.
45492         * tests/unictype/test-pr_xid_continue.c: Likewise.
45493         * tests/unictype/test-pr_xid_start.c: Likewise.
45494         * tests/unictype/test-pr_zero_width.c: Likewise.
45495         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45496         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45497         changed behaviour: line breaking is now disallowed between a letter
45498         or '=' and '('.
45499         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45500         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45501         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45502         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45503         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45504         lib/uniwidth/width.c.
45505         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45506         without comments, but with the original copyright notice.
45507         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45508         changes.
45509         * lib/unictype/categ_Cc.h: Likewise.
45510         * lib/unictype/categ_Co.h: Likewise.
45511         * lib/unictype/categ_Cs.h: Likewise.
45512         * lib/unictype/categ_Lt.h: Likewise.
45513         * lib/unictype/categ_Me.h: Likewise.
45514         * lib/unictype/categ_Pc.h: Likewise.
45515         * lib/unictype/categ_Pe.h: Likewise.
45516         * lib/unictype/categ_Pf.h: Likewise.
45517         * lib/unictype/categ_Pi.h: Likewise.
45518         * lib/unictype/categ_Ps.h: Likewise.
45519         * lib/unictype/categ_Sk.h: Likewise.
45520         * lib/unictype/categ_Sm.h: Likewise.
45521         * lib/unictype/categ_Z.h: Likewise.
45522         * lib/unictype/categ_Zl.h: Likewise.
45523         * lib/unictype/categ_Zp.h: Likewise.
45524         * lib/unictype/categ_Zs.h: Likewise.
45525         * lib/unictype/ctype_blank.h: Likewise.
45526         * lib/unictype/ctype_cntrl.h: Likewise.
45527         * lib/unictype/ctype_digit.h: Likewise.
45528         * lib/unictype/ctype_space.h: Likewise.
45529         * lib/unictype/ctype_xdigit.h: Likewise.
45530         * lib/unictype/mirror.h: Likewise.
45531         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45532         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45533         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45534         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45535         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45536         * lib/unictype/pr_bidi_control.h: Likewise.
45537         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45538         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45539         * lib/unictype/pr_bidi_pdf.h: Likewise.
45540         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45541         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45542         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45543         * lib/unictype/pr_format_control.h: Likewise.
45544         * lib/unictype/pr_hex_digit.h: Likewise.
45545         * lib/unictype/pr_hyphen.h: Likewise.
45546         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45547         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45548         * lib/unictype/pr_iso_control.h: Likewise.
45549         * lib/unictype/pr_join_control.h: Likewise.
45550         * lib/unictype/pr_left_of_pair.h: Likewise.
45551         * lib/unictype/pr_line_separator.h: Likewise.
45552         * lib/unictype/pr_math.h: Likewise.
45553         * lib/unictype/pr_non_break.h: Likewise.
45554         * lib/unictype/pr_not_a_character.h: Likewise.
45555         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45556         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45557         * lib/unictype/pr_other_id_continue.h: Likewise.
45558         * lib/unictype/pr_other_id_start.h: Likewise.
45559         * lib/unictype/pr_other_lowercase.h: Likewise.
45560         * lib/unictype/pr_other_math.h: Likewise.
45561         * lib/unictype/pr_other_uppercase.h: Likewise.
45562         * lib/unictype/pr_paired_punctuation.h: Likewise.
45563         * lib/unictype/pr_paragraph_separator.h: Likewise.
45564         * lib/unictype/pr_pattern_syntax.h: Likewise.
45565         * lib/unictype/pr_pattern_white_space.h: Likewise.
45566         * lib/unictype/pr_private_use.h: Likewise.
45567         * lib/unictype/pr_quotation_mark.h: Likewise.
45568         * lib/unictype/pr_radical.h: Likewise.
45569         * lib/unictype/pr_soft_dotted.h: Likewise.
45570         * lib/unictype/pr_space.h: Likewise.
45571         * lib/unictype/pr_titlecase.h: Likewise.
45572         * lib/unictype/pr_variation_selector.h: Likewise.
45573         * lib/unictype/pr_white_space.h: Likewise.
45574         * lib/unictype/sy_c_ident.h: Likewise.
45575         * lib/unictype/sy_c_whitespace.h: Likewise.
45576         * lib/unictype/sy_java_whitespace.h: Likewise.
45577         * modules/uni*/*: Bump version number of expected libunistring version.
45578         Reported by Simon Josefsson.
45580 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45582         useless-if-before-free: fix typo in --help and make the internal,
45583         automatic version date update process work once again.
45584         --help output contained a NUL character instead of the
45585         backslash-zero that was intended.  Also, the "must lie within
45586         the first 8 lines" line is on line 9, and hence not getting
45587         automatically updated.
45588         * build-aux/useless-if-before-free: Fix the former by adding a
45589         backslash, and the latter by condensing the three lines of what-it-does
45590         to a single line, leaving one line of slack for the future.
45592 2011-01-09  Bruno Haible  <bruno@clisp.org>
45594         uniwidth/width: Fix width of U+1D173..U+1D17A.
45595         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45596         symbolic_width, output_width_property_test): New functions.
45597         (main): Invoke output_nonspacing_property, output_width_property_test.
45598         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45599         U+1D173..U+1D17A.
45600         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45601         1.
45602         * modules/uniwidth/*: Bump version number of expected libunistring
45603         version.
45604         * modules/unilbrk/*: Likewise.
45606 2011-01-08  Bruno Haible  <bruno@clisp.org>
45608         uninorm tests: Preserve copyright of Unicode data file.
45609         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45610         Mention modifications.
45612 2011-01-08  Bruno Haible  <bruno@clisp.org>
45614         gen-uni-tables: Prepare for Unicode 5.2.0.
45615         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45616         (debug_output_lbp, output_lbp): Update.
45618 2011-01-08  Bruno Haible  <bruno@clisp.org>
45620         unilbrk: Clarify gen-uni-tables.c code.
45621         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45622         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45623         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45625 2011-01-07  Bruno Haible  <bruno@clisp.org>
45627         strtod: Restore errno when successfully parsing Infinity or NaN.
45628         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45629         restore the original errno.
45631 2011-01-07  Bruno Haible  <bruno@clisp.org>
45633         remove test: Avoid failure on HP-UX 11.
45634         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45636 2011-01-07  Bruno Haible  <bruno@clisp.org>
45638         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45639         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45640         error code.
45642 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45644         ignore-value: fixup comments, and add Eric Blake
45645         as an author since he rewrote the macros.
45646         * lib/ignore-value.h (ignore_value):  State that
45647         we now support aggregates.  Also specify exactly
45648         when the GCC warn_unused_result feature was added.
45650 2011-01-06  Eric Blake  <eblake@redhat.com>
45652         ignore-value: support aggregate types
45653         * lib/ignore-value.h (ignore_value): Provide separate gcc
45654         definition.
45655         * modules/ignore-value-tests: New test module.
45656         * tests/test-ignore-value.c: New test.
45658         maint.mk: improve sc_prohibit_strcmp regex
45659         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45660         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45661         definition of STRNEQ.
45663         signal: work around Haiku issue with SIGBUS
45664         * lib/siglist.h: Add comment.
45665         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45666         strsignal's favoring of SIGSEGV.
45667         * tests/test-signal.c (main): Avoid test failure.
45668         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45669         Reported by Scott McCreary.
45671         maint.mk: add pre-release check to ensure submodule commits are public
45672         * top/maint.mk (public-submodule-commit): New rule.
45673         (submodule-checks): New variable.
45674         (alpha beta stable): Depend on the variable.
45676 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45677         and Jim Meyering  <meyering@redhat.com>
45679         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45680         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45681         (ATTRIBUTE_DEPRECATED): Define.
45682         (_ignore_case): New function.
45683         (ignore_value): New macro, to replace the old function.
45684         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45685         * modules/ignore-value (Depends-on): Add stdint.
45687 2011-01-04  Eric Blake  <eblake@redhat.com>
45689         doc: regenerate INSTALL
45690         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45691         @firstparagraphindent support, now that autoconf dropped it.
45692         (INSTALL_PRELUDE): Reinstate old macro.
45693         * doc/install.texi: Resync from autoconf.
45694         * doc/INSTALL: Reflect recent autoconf update.
45695         * doc/INSTALL.ISO: Likewise.
45696         * doc/INSTALL.UTF-8: Likewise.
45697         Reported by Karl Berry.
45699 2011-01-04  Bruce Korb  <address@hidden>
45701         git-version-gen: avoid a sub-shell
45702         * build-aux/git-version-gen: Redirect stderr in `...` via
45703         "exec 2>...", rather than via an added sub-shell.
45705 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45707         git-version-gen: use (...) rather than sh -c '...'
45708         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45709         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45711 2011-01-03  Jim Meyering  <meyering@redhat.com>
45713         git-version-gen: convert leading TABs to spaces
45714         * build-aux/git-version-gen: Expand leading TABs.
45716         git-version-gen: handle failed "git rev-list"
45717         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45718         from git and proceeding as if it had succeeded but printed no SHA1
45719         checksums, suppress the diagnostic and handle the failure.
45720         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45722         git-version-gen: include command name in one more diagnostic
45723         * build-aux/git-version-gen: When the required .tarball-version file
45724         was missing or unreadable, you might see the diagnostic from "cat",
45725         but no trace of the name of the invoking script.  Now, you still see
45726         the diagnostic from cat, but also get one from "git-version-gen: ".
45727         Inspired by a patch from Bruce Korb.
45729         update-copyright: adjust test to match changed code
45730         * tests/test-update-copyright.sh: Change test's expected output
45731         to match new actual output.
45733 2011-01-02  Bruno Haible  <bruno@clisp.org>
45735         getlogin_r: Avoid test failure on HP-UX 11.
45736         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45737         ERANGE when the second argument is zero.
45738         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45739         portability problem.
45741 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45743         * build-aux/update-copyright: doc Simon's changes
45745 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45747         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45748         environment variable.
45750 2011-01-02  Bruno Haible  <bruno@clisp.org>
45752         unigbrk: Avoid gcc warnings.
45753         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45754         unused variable.
45755         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45756         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45757         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45758         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45759         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45760         Change type of first argument to 'const char *'.
45761         (main): Remove unused variable.
45762         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45763         type of first argument to 'const char *'.
45764         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45765         Likewise.
45766         (main): Change type of variable 's'.
45767         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45768         to 'int'.
45770 2011-01-02  Bruno Haible  <bruno@clisp.org>
45772         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45773         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45774         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45775         bug.
45776         * lib/pwrite.c: Undo 2010-12-31 patch.
45777         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45779 2011-01-02  Bruno Haible  <bruno@clisp.org>
45781         pread: Fix test whether it works.
45782         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45784 2011-01-02  Bruno Haible  <bruno@clisp.org>
45786         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45787         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45788         ends in "6". Don't require a specific month name. Try also the locale
45789         names found on HP-UX 11 and Solaris 7.
45791 2011-01-02  Bruno Haible  <bruno@clisp.org>
45793         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45794         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45795         C linkage.
45796         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45798 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45800         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45801         for consistency, since the "cluster" term is not used elsewhere.
45802         * lib/unigbrk.in.h: Update name.
45803         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45804         * lib/unigbrk/u16-grapheme-next.c: Update name.
45805         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45806         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45807         * lib/unigbrk/u32-grapheme-next.c: Update name.
45808         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45809         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45810         * lib/unigbrk/u8-grapheme-next.c: Update name.
45811         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45812         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45813         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45814         Suggested by Bruno Haible.
45816 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45818         Remove module 'u8-grapheme-len' as too redundant with
45819         'u8-grapheme-next'.
45820         * modules/unigbrk/u8-grapheme-len: Delete file.
45821         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45822         * lib/unigbrk.in.h: Remove prototype for deleted function.
45823         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45824         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45826         Remove module 'u16-grapheme-len' as too redundant with
45827         'u16-grapheme-next'.
45828         * modules/unigbrk/u16-grapheme-len: Delete file.
45829         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45830         * lib/unigbrk.in.h: Remove prototype for deleted function.
45831         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45832         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45834         Remove module 'u32-grapheme-len' as too redundant with
45835         'u32-grapheme-next'.
45836         * modules/unigbrk/u32-grapheme-len: Delete file.
45837         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45838         * lib/unigbrk.in.h: Remove prototype for deleted function.
45839         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45840         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45842         Suggested by Bruno Haible.
45844 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45846         * unigbrk.in.h: Fix typo: "ben" => "been".
45847         Reported by Bruno Haible.
45849 2011-01-01  Jim Meyering  <meyering@redhat.com>
45851         maint: update almost all copyright ranges to include 2011
45852         Run the new "make update-copyright" rule.
45854 2011-01-01  Jim Meyering  <meyering@redhat.com>
45856         maint: update-copyright: exempt doc/INSTALL*
45857         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45858         since they are generated.  Suggested by Bruno Haible.
45860 2011-01-01  Jim Meyering  <meyering@redhat.com>
45862         maint: refine the update-copyright rule
45863         * Makefile (update-copyright): Also exclude any file that includes
45864         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45865         code that merely generates the comment.
45867 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45869         New module 'u8-grapheme-len'.
45870         * modules/unigbrk/u8-grapheme-len: New file.
45871         * modules/unigbrk/u8-grapheme-len-tests: New file.
45872         * lib/unigbrk.in.h: Add prototype for new function.
45873         * lib/unigbrk/u8-grapheme-len.c: New file.
45874         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45876         New module 'u16-grapheme-len'.
45877         * modules/unigbrk/u16-grapheme-len: New file.
45878         * modules/unigbrk/u16-grapheme-len-tests: New file.
45879         * lib/unigbrk.in.h: Add prototype for new function.
45880         * lib/unigbrk/u16-grapheme-len.c: New file.
45881         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45883         New module 'u32-grapheme-len'.
45884         * modules/unigbrk/u32-grapheme-len: New file.
45885         * modules/unigbrk/u32-grapheme-len-tests: New file.
45886         * lib/unigbrk.in.h: Add prototype for new function.
45887         * lib/unigbrk/u32-grapheme-len.c: New file.
45888         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45890         New module 'u8-grapheme-next'.
45891         * modules/unigbrk/u8-grapheme-next: New file.
45892         * modules/unigbrk/u8-grapheme-next-tests: New file.
45893         * lib/unigbrk.in.h: Add prototype for new function.
45894         * lib/unigbrk/u8-grapheme-next.c: New file.
45895         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45897         New module 'u16-grapheme-next'.
45898         * modules/unigbrk/u16-grapheme-next: New file.
45899         * modules/unigbrk/u16-grapheme-next-tests: New file.
45900         * lib/unigbrk.in.h: Add prototype for new function.
45901         * lib/unigbrk/u16-grapheme-next.c: New file.
45902         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45904         New module 'u32-grapheme-next'.
45905         * modules/unigbrk/u32-grapheme-next: New file.
45906         * modules/unigbrk/u32-grapheme-next-tests: New file.
45907         * lib/unigbrk.in.h: Add prototype for new function.
45908         * lib/unigbrk/u32-grapheme-next.c: New file.
45909         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45911         New module 'u8-grapheme-prev'.
45912         * modules/unigbrk/u8-grapheme-prev: New file.
45913         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45914         * lib/unigbrk.in.h: Add prototype for new function.
45915         * lib/unigbrk/u8-grapheme-prev.c: New file.
45916         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45918         New module 'u16-grapheme-prev'.
45919         * modules/unigbrk/u16-grapheme-prev: New file.
45920         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45921         * lib/unigbrk.in.h: Add prototype for new function.
45922         * lib/unigbrk/u16-grapheme-prev.c: New file.
45923         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45925         New module 'u32-grapheme-prev'.
45926         * modules/unigbrk/u32-grapheme-prev: New file.
45927         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45928         * lib/unigbrk.in.h: Add prototype for new function.
45929         * lib/unigbrk/u32-grapheme-prev.c: New file.
45930         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45932         New module 'u8-grapheme-breaks'.
45933         * modules/unigbrk/u8-grapheme-breaks: New file.
45934         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45935         * lib/unigbrk.in.h: Add prototype for new function.
45936         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45937         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45939         New module 'u16-grapheme-breaks'.
45940         * modules/unigbrk/u16-grapheme-breaks: New file.
45941         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45942         * lib/unigbrk.in.h: Add prototype for new function.
45943         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45944         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45946         New module 'u32-grapheme-breaks'.
45947         * modules/unigbrk/u32-grapheme-breaks: New file.
45948         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45949         * lib/unigbrk.in.h: Add prototype for new function.
45950         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45951         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45953         New module 'ulc-grapheme-breaks'.
45954         * modules/unigbrk/ulc-grapheme-breaks: New file.
45955         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45956         * m4/locale-ar.m4: New file.
45957         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45958         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45959         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45961 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45963         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45964         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45965         modified how this file was generated before I initially submitted
45966         the module, but failed to regenerate it.  This meant that several
45967         of the level2 entries were wrong.
45968         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45969         Remove the division-by-2 that is folded into the table now that
45970         gbrkprop.h has been regenerated properly.  Now -1 entries are
45971         handled correctly.
45973         New module 'unigbrk/uc-gbrk-prop-tests'.
45974         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45975         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45976         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45977         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45979 2011-01-01  Bruno Haible  <bruno@clisp.org>
45981         Avoid use of hexadecimal escapes.
45982         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45983         instead of hexadecimal escapes.
45985 2011-01-01  Jim Meyering  <meyering@redhat.com>
45987         maint: new rule to update copyright year ranges
45988         * Makefile (update-copyright): New rule.
45990         maint: indent with TABs in Makefile
45991         * Makefile: Expand leading sequences of spaces to TABs
45993         version-etc: update the copyright year it reports
45994         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45996 2010-12-31  Bruno Haible  <bruno@clisp.org>
45998         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45999         * lib/isfinite.c (zerof, zerod, zerol): New variables.
46000         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
46001         zero.
46003 2010-12-31  Bruno Haible  <bruno@clisp.org>
46005         pwrite: Work around HP-UX 11.11 bug.
46006         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
46007         works and set REPLACE_PWRITE if not.
46008         * lib/pwrite.c (pwrite): Add an implementation that uses the system
46009         function.
46010         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
46012 2010-12-31  Bruno Haible  <bruno@clisp.org>
46014         pread: Work around HP-UX 11 bugs.
46015         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
46016         and set REPLACE_PREAD if not.
46017         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
46019 2010-12-31  Eric Blake  <eblake@redhat.com>
46021         nl_langinfo: fix YESEXPR on Irix 6.5
46022         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
46023         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
46024         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
46025         it.
46027 2010-12-31  Bruno Haible  <bruno@clisp.org>
46029         iconv: Document HP-UX 11 bug.
46030         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
46032 2010-12-31  Bruno Haible  <bruno@clisp.org>
46034         ldexpl: Fix link error on HP-UX 11.
46035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
46036         LDEXPL_LIBM, using $ISNANL_LIBM.
46038 2010-12-31  Eric Blake  <eblake@redhat.com>
46040         ftello: avoid compilation failure with SunStudio c89
46041         * lib/ftello.c (ftello): Use lseek, not llseek.
46043         tests: avoid failing coreutils tests on cygwin
46044         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
46045         (create_exe_shims_): Return 0 when skipping.
46047 2010-12-31  Bruno Haible  <bruno@clisp.org>
46049         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
46050         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
46052 2010-12-31  Bruno Haible  <bruno@clisp.org>
46054         waitpid: Fix link error in C++ mode.
46055         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
46057 2010-12-31  Bruno Haible  <bruno@clisp.org>
46059         isnan: Use GCC built-ins when possible.
46060         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
46061         __builtin_isnan.
46062         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
46063         (isnan): Define using GCC built-ins for GCC >= 4.0.
46065 2010-12-31  Bruno Haible  <bruno@clisp.org>
46067         isnand: Fix mistake.
46068         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
46069         __builtin_isnand.
46071 2010-12-31  Bruno Haible  <bruno@clisp.org>
46073         open: Avoid C++ error on HP-UX 11.
46074         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
46076 2010-12-31  Bruno Haible  <bruno@clisp.org>
46078         time_r: Add missing declarations on HP-UX 11.
46079         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
46080         instead of HAVE_LOCALTIME_R.
46081         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
46082         HAVE_LOCALTIME_R always.
46083         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
46084         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
46085         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
46086         HAVE_LOCALTIME_R.
46087         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
46088         * doc/posix-functions/localtime_r.texi: Likewise.
46090 2010-12-29  Eric Blake  <eblake@redhat.com>
46092         mountlist: tweak previous commit
46093         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
46094         Reported by Paul Eggert.
46096         mountlist: fix local drive detection on cygwin
46097         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
46098         that works for cygwin.
46100 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46102         ftoastr, snprintf: ftoastr + snprintf module
46103         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
46104         since the snprintf module now should be good enough here.
46105         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
46106         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
46107         and gl_MODULE_INDICATOR([snprintf]), but the former enables
46108         GNULIB_SNPRINTF only for the test directory, and the latter
46109         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
46110         seems to suffice by itself.
46112 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46114         alloca: one step towards thread-safety
46115         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
46116         need for a static variable.  All callers changed.  This does not
46117         make the alloca replacement thread-safe, but it's one step.
46119         tests: minor indenting change
46120         * tests/init.sh: Sync from coreutils housekeeping patch
46121         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
46122         to keep lines within 80 columns.
46124 2010-12-28  Jim Meyering  <meyering@redhat.com>
46126         regex: don't infloop on persistent failing calloc
46127         * lib/regexec.c (build_trtable): Return failure indication upon
46128         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
46129         In glibc, this was fixed for version 2.13:
46130         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
46132 2010-12-28  Bruno Haible  <bruno@clisp.org>
46133             Paul Eggert <eggert@cs.ucla.edu>
46135         linkat: Make implementation robust against system behaviour variations.
46136         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
46137         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
46138         way, and to -2 if it needs a generic runtime test.
46139         * lib/linkat.c (solaris_optimized_link_immediate,
46140         solaris_optimized_link_follow): New functions.
46141         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
46142         (check_same_link): Use it.
46144 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
46146         New module 'unigbrk/base'.
46147         * modules/unigbrk/base: New file.
46148         * lib/unigbrk.in.h: New file.
46150         New module 'unigbrk/uc-gbrk-prop'.
46151         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
46152         * modules/unigbrk/uc-gbrk-prop: New file.
46153         * lib/unigbrk/gbrkprop.h: New file.
46154         * lib/unigbrk/uc-gbrk-prop.c: New file.
46156         New module 'unigbrk/uc-is-grapheme-break'.
46157         * modules/unigbrk/uc-is-grapheme-break: New file.
46158         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
46159         * lib/unigbrk/uc-is-grapheme-break.c: New file.
46160         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
46161         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
46162         * tests/unigbrk/GraphemeBreakTest.txt: New file.
46164         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
46166 2010-12-27  Bruno Haible  <bruno@clisp.org>
46168         linkat test: Avoid failure on Solaris 11 2010-11.
46169         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
46171 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46173         utimens: work around glibc rounding bug on more platforms
46174         * lib/utimens.c (fdutimens): Work around rounding bug even if
46175         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
46176         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
46178 2010-12-27  Bruno Haible  <bruno@clisp.org>
46180         select tests: Improve comments.
46181         * tests/test-select.c (do_select): Add comments.
46183 2010-12-27  Bruno Haible  <bruno@clisp.org>
46185         select tests: Safer way of handling timeout.
46186         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
46187         at every invocation.
46189 2010-12-27  Bruno Haible  <bruno@clisp.org>
46191         select tests: Use 'bool' where appropriate.
46192         * tests/test-select.c (connect_to_socket): Change argument type to
46193         'bool'.
46195 2010-12-27  Bruno Haible  <bruno@clisp.org>
46197         select tests: Use existing modules.
46198         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
46199         (configure.ac): Don't test for unistd.h.
46200         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
46201         declared in <unistd.h>.
46203 2010-12-27  Bruno Haible  <bruno@clisp.org>
46205         mbrtowc: Work around a Solaris 7 bug.
46206         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
46207         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
46208         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
46209         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
46210         MBRTOWC_NULL_ARG1_BUG.
46211         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
46212         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
46213         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
46214         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
46216 2010-12-27  Jim Meyering  <meyering@redhat.com>
46218         read-file.c: tweak syntax
46219         * lib/read-file.c (fread_file): Remove space after "*" in function
46220         definitions.
46222 2010-12-27  Bruno Haible  <bruno@clisp.org>
46224         times test: Avoid gcc warnings on OSF/1.
46225         * tests/test-times.c (main): Cast printf arguments from clock_t to
46226         'long int'.
46228 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46230         utimens: work around glibc rounding bug on older Linux kernels
46231         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
46232         on Linux with a glibc whose utimes might not work, then work
46233         around a longstanding glibc bug involving rounding rather than
46234         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
46235         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46237 2010-12-26  Bruno Haible  <bruno@clisp.org>
46239         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
46240         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
46241         _GL_CXXALIAS_SYS.
46242         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46244 2010-12-26  Bruno Haible  <bruno@clisp.org>
46246         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
46247         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
46248         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46249         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
46250         looking for the declaration.
46251         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46252         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
46253         problem.
46254         * doc/posix-functions/inet_pton.texi: Likewise.
46256 2010-12-26  Bruno Haible  <bruno@clisp.org>
46258         arpa_inet: Use the common idioms with C++ support.
46259         * lib/arpa_inet.in.h: Include c++defs.h.
46260         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
46261         support.
46262         * modules/arpa_inet (Depends-on): Add c++defs.
46263         (Makefile.am): Substitute the contents of c++defs.h.
46264         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
46265         * modules/arpa_inet-c++-tests: New file.
46266         * tests/test-arpa_inet-c++.cc: New file.
46268 2010-12-25  Bruno Haible  <bruno@clisp.org>
46270         Fix more C++ link errors on Solaris 8.
46271         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
46272         $(LIB_EACCESS).
46273         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
46274         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
46275         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
46276         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
46277         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
46279 2010-12-25  Bruno Haible  <bruno@clisp.org>
46281         printf-posix: Fix link error when a non-GCC compiler is used.
46282         * lib/stdio.in.h (printf): When not using GCC, override printf
46283         correctly.
46284         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46286 2010-12-25  Bruno Haible  <bruno@clisp.org>
46288         strerror_r-posix: Update doc.
46289         * doc/posix-functions/strerror_r.texi: Update doc about the return
46290         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
46292 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46294         utimens: simplify the logic of the previous change
46295         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
46296         This should not affect whether the test succeeds or fails.
46298         utimens: configure better on hosts with NFS clock skew
46299         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
46300         uses the clock of the local host.  It might use the clock of the
46301         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
46302         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46304 2010-12-25  Bruno Haible  <bruno@clisp.org>
46306         ptsname test: Avoid failure on Solaris.
46307         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
46308         open a pseudo-terminal; don't use BSD-style ptys.
46309         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
46311 2010-12-25  Bruno Haible  <bruno@clisp.org>
46313         ptsname: Avoid ERANGE failure on some systems.
46314         * lib/ptsname.c (buffer): Increase size.
46316 2010-12-25  Bruno Haible  <bruno@clisp.org>
46318         rename, renameat: Avoid test failures at NFS mounted locations.
46319         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
46320         so that subsequent mkdir calls succeed.
46322 2010-12-25  Bruno Haible  <bruno@clisp.org>
46324         iswblank: Fix C++ link error on Solaris 8.
46325         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
46326         _GL_FUNCDECL_SYS.
46328 2010-12-25  Bruno Haible  <bruno@clisp.org>
46330         unistd: Fix C++ link error on Solaris 8.
46331         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
46333 2010-12-25  Bruno Haible  <bruno@clisp.org>
46335         readlink doc: Mention an old glibc bug.
46336         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
46338 2010-12-25  Bruno Haible  <bruno@clisp.org>
46340         fcntl-h: Fix for use of C++ on glibc systems.
46341         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46342         also on glibc systems in C++ mode.
46343         Reported by Gary V. Vaughan <gary@gnu.org>.
46345 2010-12-25  Bruno Haible  <bruno@clisp.org>
46347         roundl-ieee: Make it work on OSF/1 5.1 with cc.
46348         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
46350 2010-12-25  Bruno Haible  <bruno@clisp.org>
46352         truncl-ieee: Make it work on OSF/1 5.1 with cc.
46353         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
46354         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
46355         test whether truncl works according to ISO C 99 with IEC 60559.
46356         * m4/truncl-ieee.m4: New file.
46357         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46358         m4/signbit.m4.
46359         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46361 2010-12-25  Bruno Haible  <bruno@clisp.org>
46363         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46364         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46365         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46366         test whether ceill works according to ISO C 99 with IEC 60559.
46367         * m4/ceill-ieee.m4: New file.
46368         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46369         m4/signbit.m4.
46370         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46372 2010-12-25  Bruno Haible  <bruno@clisp.org>
46374         Ensure all prerequisites of <wchar.h> are included.
46375         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46376         before <wchar.h>.
46377         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46378         gl_MBRLEN_NUL_RETVAL): Likewise.
46379         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46380         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46381         AC_FUNC_MBRTOWC): Likewise.
46382         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46383         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46384         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46385         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46386         Likewise.
46387         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46388         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46389         (gl_WCHAR_H): Improve comments.
46390         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46392 2010-12-25  Bruno Haible  <bruno@clisp.org>
46394         strtok_r: Fix C syntax error in autoconf macro.
46395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46396         characters in test program.
46398 2010-12-24  Bruno Haible  <bruno@clisp.org>
46400         ceil, trunc, round: Fix gcc warnings.
46401         * lib/ceil.c (MIN): Undefine before redefining.
46402         * lib/trunc.c (MIN): Likewise.
46403         * lib/round.c (MIN): Likewise.
46404         Include <math.h> first.
46406 2010-12-24  Bruno Haible  <bruno@clisp.org>
46408         select tests: Avoid failures on OSF/1 5.1.
46409         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46410         failure of closing the last socket; it may fail with ECONNRESET.
46412 2010-12-24  Eric Blake  <eblake@redhat.com>
46414         stdint: avoid HP-UX 10.20 preprocessor bug
46415         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46416         than #if.
46417         * tests/test-floor2.c (main): Likewise.
46418         Reported by Peter O'Gorman.
46420         pipe: make obsoletion transition easier
46421         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46422         * modules/pipe (Files): Include revived file.
46423         (Include): Drop reference, to mirror getdate's behavior.
46425 2010-12-24  Bruno Haible  <bruno@clisp.org>
46427         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46428         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46429         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46432 2010-12-24  Bruno Haible  <bruno@clisp.org>
46434         gethostname: Ensure declaration on NonStop Kernel.
46435         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46436         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46438 2010-12-24  Bruno Haible  <bruno@clisp.org>
46440         sys_select: Ensure all necessary types on NonStop Kernel.
46441         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46442         include <sys/time.h>.
46443         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46444         NonStop Kernel.
46445         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46447 2010-12-24  Bruno Haible  <bruno@clisp.org>
46449         sys_select: Remove unneeded include.
46450         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46451         have <sys/select.h>.
46453 2010-12-24  Bruno Haible  <bruno@clisp.org>
46455         gethostname: Provide a fallback for HOST_NAME_MAX.
46456         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46457         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46458         instead.
46459         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46461 2010-12-24  Bruno Haible  <bruno@clisp.org>
46463         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46464         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46465         (SA_RESTART): Likewise.
46466         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46468 2010-12-24  Bruno Haible  <bruno@clisp.org>
46470         signal: Define NSIG.
46471         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46472         * tests/test-signal.c (nsig): New variable.
46473         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46475 2010-12-24  Bruno Haible  <bruno@clisp.org>
46477         rename, renameat: Avoid test failures on OSF/1 5.1.
46478         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46479         alternative error codes.
46480         * tests/test-renameat.c (main): Likewise.
46482 2010-12-24  Bruno Haible  <bruno@clisp.org>
46484         *printf: Detect large precisions bug on Solaris 10/SPARC.
46485         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46486         by Paul Eggert.
46487         * tests/test-snprintf-posix.h (test_function): Add this test code here
46488         too.
46489         * tests/test-sprintf-posix.h (test_function): Likewise.
46490         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46491         * tests/test-vasprintf-posix.c (test_function): Likewise.
46492         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46493         around by gnulib.
46494         * doc/posix-functions/printf.texi: Likewise.
46495         * doc/posix-functions/snprintf.texi: Likewise.
46496         * doc/posix-functions/sprintf.texi: Likewise.
46497         * doc/posix-functions/vfprintf.texi: Likewise.
46498         * doc/posix-functions/vprintf.texi: Likewise.
46499         * doc/posix-functions/vsnprintf.texi: Likewise.
46500         * doc/posix-functions/vsprintf.texi: Likewise.
46501         * doc/posix-functions/dprintf.texi: Undo last commit.
46502         * doc/posix-functions/vdprintf.texi: Likewise.
46504 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46506         tests: port test-fdutimensat.c to Solaris 8
46507         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46508         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46509         On Solaris 8, it fails with errno == ENOSYS, because there is no
46510         futimens (so it can't use the fd), and there is no lutimens (so it
46511         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46513         vsnprintf: make more consistent with snprintf; doc fixes
46515         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46516         the byte count return problem was promoted from the snprintf-posix
46517         to the snprintf module.
46518         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46519         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46520         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46521         * tests/test-snprintf.c (main): Check the byte count returned.
46522         * tests/test-vsnprintf.c (main): Likewise.
46524 2010-12-23  Eric Blake  <eblake@redhat.com>
46526         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46527         * modules/sigpipe (License): Relax license.
46529 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46531         doc: document Solaris printf bug with large float precisions
46532         * doc/posix-functions/dprintf.texi (dprintf):
46533         * doc/posix-functions/fprintf.texi (fprintf):
46534         * doc/posix-functions/printf.texi (printf):
46535         * doc/posix-functions/snprintf.texi (snprintf):
46536         * doc/posix-functions/sprintf.texi (sprintf):
46537         * doc/posix-functions/vdprintf.texi (vdprintf):
46538         * doc/posix-functions/vfprintf.texi (vfprintf):
46539         * doc/posix-functions/vprintf.texi (vprintf):
46540         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46541         * doc/posix-functions/vsprintf.texi (vsprintf):
46542         Mention that these functions mishandle large floating point
46543         precisions on Solaris 10.  The same bug is also present in Solaris
46544         8, and I assume earlier.  This causes "cd gnulib-tests; make
46545         check" to fail on Solaris 8 (and I assume, later) when building
46546         the latest coreutils, in test-vasprintf-posix's call to
46547         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46548         the wide flavors (e.g., wprintf) so this patch just updates the
46549         documentation for the narrow ones.
46551         test-posixtm.c: add two tests
46552         * tests/test-posixtm.c: Add two tests, to highlight the
46553         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46554         around this bug; this is merely to document it.
46556 2010-12-22  Bruno Haible  <bruno@clisp.org>
46558         getlogin_r: Work around portability problem on OSF/1.
46559         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46560         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46561         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46562         test for a truncated result.
46563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46564         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46565         * modules/getlogin_r (Depends-on): Add memchr.
46566         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46568 2010-12-22  Bruno Haible  <bruno@clisp.org>
46570         ptsname: Avoid test failure on OSF/1 5.1.
46571         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46572         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46573         (same_slave): New function.
46574         (main): Use it to compare ptsname's result with the expected file name.
46576 2010-12-22  Bruno Haible  <bruno@clisp.org>
46578         Port extended stdio modules to HP NonStop Kernel.
46579         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46580         macros.
46581         * lib/fbufmode.c: Update comments.
46582         * lib/fflush.c: Likewise.
46583         * lib/fpurge.c: Likewise.
46584         * lib/freadable.c: Likewise.
46585         * lib/freadahead.c: Likewise.
46586         * lib/freading.c: Likewise.
46587         * lib/freadptr.c: Likewise.
46588         * lib/freadseek.c: Likewise.
46589         * lib/fseeko.c: Likewise.
46590         * lib/fseterr.c: Likewise.
46591         * lib/fwritable.c: Likewise.
46592         * lib/fwriting.c: Likewise.
46593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46595 2010-12-22  Bruno Haible  <bruno@clisp.org>
46597         ttyname_r: Work around bug on OSF/1 5.1.
46598         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46599         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46600         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46601         present.
46602         * lib/ttyname_r.c (ttyname_r): Update comments.
46604 2010-12-22  Bruno Haible  <bruno@clisp.org>
46606         round: Implement result sign according to IEEE 754.
46607         * lib/round.c (MIN, MINUS_ZERO): New macros.
46608         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46609         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46610         * tests/test-round-ieee.c (main): Likewise.
46611         * tests/test-roundl-ieee.c (main): Likewise.
46613         trunc: Implement result sign according to IEEE 754.
46614         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46615         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46616         * tests/test-trunc2.c: Include minus-zero.h.
46617         (MINUS_ZERO): New macro.
46618         (trunc_reference): Keep in sync with lib/trunc.c.
46619         * tests/test-truncf2.c: Include minus-zero.h.
46620         (MINUS_ZERO): New macro.
46621         (truncf_reference): Keep in sync with lib/trunc.c.
46622         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46623         * tests/test-trunc-ieee.c (main): Likewise.
46624         * tests/test-truncl-ieee.c (main): Likewise.
46626         ceil: Implement result sign according to IEEE 754.
46627         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46628         (FUNC): Return -0.0 for -1 < x < 0.
46629         * tests/test-ceil2.c: Include minus-zero.h.
46630         (MINUS_ZERO): New macro.
46631         (ceil_reference): Keep in sync with lib/ceil.c.
46632         * tests/test-ceilf2.c: Include minus-zero.h.
46633         (MINUS_ZERO): New macro.
46634         (ceilf_reference): Keep in sync with lib/ceil.c.
46635         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46636         * tests/test-ceil-ieee.c (main): Likewise.
46637         * tests/test-ceill-ieee.c (main): Likewise.
46639         floor: Implement result sign according to IEEE 754.
46640         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46641         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46642         * tests/test-floorf2.c (floorf_reference): Likewise.
46643         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46644         * tests/test-floor-ieee.c (main): Likewise.
46645         * tests/test-floorl-ieee.c (main): Likewise.
46647 2010-12-22  Bruno Haible  <bruno@clisp.org>
46649         getaddrinfo: Update doc.
46650         * doc/posix-functions/gai_strerror.texi: Return type is also different
46651         on AIX and HP-UX.
46653 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46655         getaddrinfo, inet_ntop: Update doc for Solaris.
46656         * doc/posix-functions/gai_strerror.texi: Return type is also an
46657         issue on Solaris 9 and earlier.
46658         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46659         on Solaris 10 and earlier.
46661 2010-12-21  Bruno Haible  <bruno@clisp.org>
46663         New module 'roundl-ieee'.
46664         * modules/roundl-ieee: New file.
46665         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46666         test whether roundl works according to ISO C 99 with IEC 60559.
46667         * m4/roundl-ieee.m4: New file.
46668         * modules/roundl-ieee-tests: New file.
46669         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46670         * tests/test-roundl.c (main): Remove signbit tests.
46671         * modules/roundl-tests (Depends-on): Remove signbit.
46672         * doc/posix-functions/roundl.texi: Mention the new module.
46674 2010-12-21  Bruno Haible  <bruno@clisp.org>
46676         New module 'truncl-ieee'.
46677         * modules/truncl-ieee: New file.
46678         * modules/truncl-ieee-tests: New file.
46679         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46680         * tests/test-truncl.c (main): Remove signbit tests.
46681         * modules/truncl-tests (Depends-on): Remove signbit.
46682         * doc/posix-functions/truncl.texi: Mention the new module.
46684 2010-12-21  Bruno Haible  <bruno@clisp.org>
46686         New module 'ceill-ieee'.
46687         * modules/ceill-ieee: New file.
46688         * modules/ceill-ieee-tests: New file.
46689         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46690         * tests/test-ceill.c (main): Remove signbit tests.
46691         * modules/ceill-tests (Depends-on): Remove signbit.
46692         * doc/posix-functions/ceill.texi: Mention the new module.
46694 2010-12-21  Bruno Haible  <bruno@clisp.org>
46696         New module 'floorl-ieee'.
46697         * modules/floorl-ieee: New file.
46698         * modules/floorl-ieee-tests: New file.
46699         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46700         * tests/test-floorl.c (main): Remove signbit tests.
46701         * modules/floorl-tests (Depends-on): Remove signbit.
46702         * doc/posix-functions/floorl.texi: Mention the new module.
46704 2010-12-21  Bruno Haible  <bruno@clisp.org>
46706         New module 'round-ieee'.
46707         * modules/round-ieee: New file.
46708         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46709         whether round works according to ISO C 99 with IEC 60559.
46710         * m4/round-ieee.m4: New file.
46711         * modules/round-ieee-tests: New file.
46712         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46713         * tests/test-round1.c (main): Remove signbit tests.
46714         * modules/round-tests (Depends-on): Remove 'signbit'.
46715         * doc/posix-functions/round.texi: Mention the new module.
46717 2010-12-21  Bruno Haible  <bruno@clisp.org>
46719         New module 'trunc-ieee'.
46720         * modules/trunc-ieee: New file.
46721         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46722         whether trunc works according to ISO C 99 with IEC 60559.
46723         * m4/trunc-ieee.m4: New file.
46724         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46726         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46727         * modules/trunc-ieee-tests: New file.
46728         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46729         * tests/test-trunc1.c (main): Remove signbit tests.
46730         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46731         * doc/posix-functions/trunc.texi: Mention the new module.
46733 2010-12-21  Bruno Haible  <bruno@clisp.org>
46735         New module 'ceil-ieee'.
46736         * modules/ceil-ieee: New file.
46737         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46738         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46739         ISO C 99 with IEC 60559.
46740         * m4/ceil-ieee.m4: New file.
46741         * modules/ceil (Files): Add lib/ceil.c.
46742         (Depends-on): Add 'float'.
46743         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46744         * lib/math.in.h (ceil): New declaration.
46745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46746         REPLACE_CEIL.
46747         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46748         * modules/ceil-ieee-tests: New file.
46749         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46750         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46751         * doc/posix-functions/ceil.texi: Mention the new module.
46753 2010-12-21  Bruno Haible  <bruno@clisp.org>
46755         New module 'floor-ieee'.
46756         * modules/floor-ieee: New file.
46757         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46758         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46759         ISO C 99 with IEC 60559.
46760         * m4/floor-ieee.m4: New file.
46761         * modules/floor (Files): Add lib/floor.c.
46762         (Depends-on): Add 'float'.
46763         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46764         * lib/math.in.h (floor): New declaration.
46765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46766         REPLACE_FLOOR.
46767         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46768         * modules/floor-ieee-tests: New file.
46769         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46770         * tests/test-math-c++.cc: Check the signature of 'floor'.
46771         * doc/posix-functions/floor.texi: Mention the new module.
46773 2010-12-21  Bruno Haible  <bruno@clisp.org>
46775         New module 'roundf-ieee'.
46776         * modules/roundf-ieee: New file.
46777         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46778         test whether roundf works according to ISO C 99 with IEC 60559.
46779         * m4/roundf-ieee.m4: New file.
46780         * modules/roundf-ieee-tests: New file.
46781         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46782         * tests/test-roundf1.c (main): Remove signbit tests.
46783         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46784         * doc/posix-functions/roundf.texi: Mention the new module.
46786 2010-12-21  Bruno Haible  <bruno@clisp.org>
46788         New module 'truncf-ieee'.
46789         * modules/truncf-ieee: New file.
46790         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46791         test whether truncf works according to ISO C 99 with IEC 60559.
46792         * m4/truncf-ieee.m4: New file.
46793         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46795         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46796         * modules/truncf-ieee-tests: New file.
46797         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46798         * tests/test-truncf1.c (main): Remove signbit tests.
46799         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46800         * doc/posix-functions/truncf.texi: Mention the new module.
46802 2010-12-21  Bruno Haible  <bruno@clisp.org>
46804         New module 'ceilf-ieee'.
46805         * modules/ceilf-ieee: New file.
46806         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46807         test whether ceilf works according to ISO C 99 with IEC 60559.
46808         * m4/ceilf-ieee.m4: New file.
46809         * modules/ceilf-ieee-tests: New file.
46810         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46811         * tests/test-ceilf1.c (main): Remove signbit tests.
46812         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46813         * doc/posix-functions/ceilf.texi: Mention the new module.
46815 2010-12-21  Bruno Haible  <bruno@clisp.org>
46817         New module 'floorf-ieee'.
46818         * modules/floorf-ieee: New file.
46819         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46820         test whether floorf works according to ISO C 99 with IEC 60559.
46821         * m4/floorf-ieee.m4: New file.
46822         * modules/floorf-ieee-tests: New file.
46823         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46824         * tests/test-floorf1.c (main): Remove signbit tests.
46825         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46826         * doc/posix-functions/floorf.texi: Mention the new module.
46828 2010-12-21  Bruno Haible  <bruno@clisp.org>
46830         Support for minus zero in autoconf macros.
46831         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46832         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46833         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46834         * tests/minus-zero.h: Update comments.
46836 2010-12-21  Bruno Haible  <bruno@clisp.org>
46838         Tests for module 'ceil'.
46839         * modules/ceil-tests: New file.
46840         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46841         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46843 2010-12-21  Bruno Haible  <bruno@clisp.org>
46845         Tests for module 'floor'.
46846         * modules/floor-tests: New file.
46847         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46848         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46850 2010-12-21  Bruno Haible  <bruno@clisp.org>
46852         math: Fix indentation.
46853         * lib/math.in.h (floorf): Fix indentation.
46855 2010-12-21  Bruno Haible  <bruno@clisp.org>
46857         Fix cross-compilation guesses on Solaris.
46858         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46859         not match "solaris2.10".
46860         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46861         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46862         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46864 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46866         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46867         This fixes a problem observed with the latest coreutils snapshot
46868         that caused a test to fail on Solaris 8.  src/csplit.c's call
46869         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46870         earlier, instead of returning the number of bytes that would have
46871         been generated; this causes csplit to incorrectly report memory
46872         exhaustion.
46873         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46874         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46875         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46876         comments to match.
46877         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46878         Fix typo in matching older versions of Solaris: "solaris2.10"
46879         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46880         only for guessing while cross-compiling.
46881         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46883 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46885         ftoastr: fix comment again
46886         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46887         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46888         Also, simplify example a bit by using flags = 0.
46890 2010-12-20  Bruno Haible  <bruno@clisp.org>
46892         round*, trunc*: Update documentation regarding glibc.
46893         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46894         * doc/posix-functions/round.texi: Likewise.
46895         * doc/posix-functions/roundl.texi: Likewise.
46896         * doc/posix-functions/truncf.texi: Likewise.
46897         * doc/posix-functions/trunc.texi: Likewise.
46898         * doc/posix-functions/truncl.texi: Likewise.
46900 2010-12-20  Bruno Haible  <bruno@clisp.org>
46902         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46903         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46904         * doc/posix-functions/round.texi: Likewise.
46905         * doc/posix-functions/roundl.texi: Likewise.
46907 2010-12-20  Bruno Haible  <bruno@clisp.org>
46909         ttyname_r: Add missing declaration on HP-UX 11.
46910         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46911         HAVE_TTYNAME_R.
46912         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46913         declared. Set HAVE_TTYNAME_R always.
46914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46915         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46916         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46917         HAVE_TTYNAME_R.
46918         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46920 2010-12-20  Bruno Haible  <bruno@clisp.org>
46922         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46923         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46924         * doc/posix-functions/getlogin_r.texi: Likewise.
46925         * tests/test-getlogin.c: Include <errno.h>.
46926         (main): Avoid test failure on HP-UX 11.11.
46927         * tests/test-getlogin_r.c (main): Likewise.
46929 2010-12-20  Bruno Haible  <bruno@clisp.org>
46931         getlogin_r: Add missing declaration on HP-UX 11.
46932         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46933         declared also when it exists as a function.
46934         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46936 2010-12-20  Bruno Haible  <bruno@clisp.org>
46938         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46939         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46940         through wcrtomb.
46942 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46944         ftoastr: fix comment
46945         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46946         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46948 2010-12-19  Bruno Haible  <bruno@clisp.org>
46950         isnan: Ensure it is a macro.
46951         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46952         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46953         Solaris.
46955 2010-12-19  Bruno Haible  <bruno@clisp.org>
46957         ldexpl test: Fix link error on OSF/1 5.1.
46958         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46960 2010-12-19  Bruno Haible  <bruno@clisp.org>
46962         wctype: Make it work in C++ mode on OSF/1 5.1.
46963         * lib/wctype.in.h (iswblank): Declare but not define here.
46964         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46965         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46966         * modules/wctype (Files): Add lib/iswblank.c.
46968 2010-12-19  Bruno Haible  <bruno@clisp.org>
46970         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46971         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46972         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46974 2010-12-19  Bruno Haible  <bruno@clisp.org>
46976         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46978         _POSIX_PII_SOCKET.
46979         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46980         * doc/posix-functions/recvfrom.texi: Likewise.
46981         * doc/posix-functions/send.texi: Likewise.
46982         * doc/posix-functions/sendto.texi: Likewise.
46984 2010-12-19  Bruno Haible  <bruno@clisp.org>
46986         tcgetsid: Add missing declaration on OSF/1 5.1.
46987         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46988         HAVE_TCGETSID.
46989         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46990         Don't set HAVE_TCGETSID.
46991         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46992         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46993         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46994         HAVE_TCGETSID.
46995         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46997 2010-12-19  Bruno Haible  <bruno@clisp.org>
46999         stdio: Fix problem with popen() declaration on OSF/1 5.1.
47000         * lib/stdio.in.h: During the include_next statement, let recursive
47001         includes of this file include only the system header file.
47003 2010-12-19  Bruno Haible  <bruno@clisp.org>
47005         iconv_open: Fix regression from 2010-12-04.
47006         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
47007         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
47009 2010-12-19  Bruno Haible  <bruno@clisp.org>
47011         stdbool test: Avoid a gcc warning.
47012         * tests/test-stdbool.c (main): Fail if e1 is false.
47013         Reported by Jim Meyering.
47015 2010-12-19  Jim Meyering  <meyering@redhat.com>
47017         setenv: restore to working order
47018         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
47019         mistakenly removed.
47020         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
47021         HAVE_SETENV.
47022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
47023         HAVE_SETENV.
47025 2010-12-19  Bruno Haible  <bruno@clisp.org>
47027         Document some different function declarations on OSF/1 5.1.
47028         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
47029         * doc/posix-functions/inet_ntop.texi: Likewise.
47030         * doc/posix-functions/gethostname.texi: Likewise.
47031         * lib/unistd.in.h (gethostname): Update comment.
47033 2010-12-19  Bruno Haible  <bruno@clisp.org>
47035         doc: Mention vasprintf-posix module.
47036         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
47037         the 'vasprintf-posix' module.
47038         * doc/glibc-functions/vasprintf.texi: Likewise.
47040 2010-12-19  Bruno Haible  <bruno@clisp.org>
47042         unsetenv: Add missing declaration on OSF/1 5.1.
47043         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
47044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
47045         Don't set HAVE_UNSETENV. In the test program, set _BSD.
47046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
47047         not HAVE_UNSETENV.
47048         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
47049         HAVE_UNSETENV.
47050         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
47052 2010-12-19  Bruno Haible  <bruno@clisp.org>
47054         setenv: Add missing declaration on OSF/1 5.1.
47055         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
47056         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
47057         declared. Don't set HAVE_SETENV.
47058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
47059         not HAVE_SETENV.
47060         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
47061         HAVE_SETENV.
47062         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
47064 2010-12-19  Bruno Haible  <bruno@clisp.org>
47066         nl_langinfo tests: Avoid gcc warning.
47067         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
47069 2010-12-19  Bruno Haible  <bruno@clisp.org>
47071         mknod: Avoid error in C++ mode on OSF/1 with GCC.
47072         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
47073         _GL_CXXALIAS_SYS.
47075 2010-12-19  Bruno Haible  <bruno@clisp.org>
47077         stdbool: Relax test.
47078         * tests/test-stdbool.c (e): Don't require that casts from a variable's
47079         address to 'bool' work in static initializer, for compilers other than
47080         GCC.
47082 2010-12-19  Bruno Haible  <bruno@clisp.org>
47084         ftello: Add missing declaration on OSF/1 5.1.
47085         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
47086         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
47087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
47088         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
47089         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
47091 2010-12-19  Bruno Haible  <bruno@clisp.org>
47093         fseeko: Add missing declaration on OSF/1 5.1.
47094         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
47095         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
47096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
47097         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
47098         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
47100 2010-12-19  Bruno Haible  <bruno@clisp.org>
47102         fchdir: Add missing declaration on OSF/1 5.1.
47103         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
47104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
47105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
47106         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
47107         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
47109 2010-12-19  Bruno Haible  <bruno@clisp.org>
47111         relocatable-prog-wrapper: Separate from relocatable-prog.
47112         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
47113         uninstall-relocwrapper rule here.
47114         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
47115         Reported by Ian Beckwith <ianb@erislabs.net>.
47117 2010-12-19  Bruno Haible  <bruno@clisp.org>
47119         unistr/u8-mbsnlen: Add missing dependency.
47120         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
47121         Reported by Ian Beckwith <ianb@erislabs.net>.
47123 2010-12-19  Bruno Haible  <bruno@clisp.org>
47125         iconv: Make it possible again to use this module without 'iconv-h'.
47126         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
47127         if it is not defined.
47128         Reported by Ian Beckwith <ianb@erislabs.net>.
47130 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47132         acl: port to Solaris 8 when copying from tmpfs to ufs
47133         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
47134         error number.  Problem observed on Solaris 8 with latest
47135         coreutils, with "mv A B", where A is on a tmpfs file system and B
47136         is on a ufs file system.  This caused coreutils' mv/part-symlink
47137         test to fail.
47139         tests: set fail=0 at start
47140         * tests/init.sh (setup_): Move fail=0 initialization here ...
47141         (mktempd_): ... from here, so that tests can rely on fail being
47142         set to 0 initially.  This fixes a problem in coreutils; see:
47143         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
47145 2010-12-18  Bruno Haible  <bruno@clisp.org>
47147         memmem-simple: Stylistic changes.
47148         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
47149         Fix preprocessor directive indentation.
47151 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47153         memmem, memmem-simple: reorganize and expand empty needle check
47154         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
47155         functional checks to memmem-simple so that one has a fully functional
47156         memmem by using just this module.
47157         Restrict the performance only check to the memmem module.
47158         Also expand the empty needle check to ensure the correct
47159         pointer is returned, not just a non NULL pointer.
47160         * doc/glibc-functions/memmem.texi: Rearrange the portability
47161         documentation to correlate with the rearranged checks.
47162         Clarify exactly how the memmem and memmem-simple modules
47163         relate to each other.
47165 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47166             Bruno Haible  <bruno@clisp.org>
47168         Improve cross-compilation guesses for uClibc.
47169         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
47170         that uClibc does not have the glibc bug.
47171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
47172         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
47174 2010-12-14  Eric Blake  <eblake@redhat.com>
47176         configmake: provide fallbacks for oldest supported autotools
47177         * m4/configmake.m4: New file.
47178         * modules/configmake (Files): Ship it.
47179         (configure.ac): Use it to guarantee fallbacks.
47181 2010-12-13  Pádraig Brady  <P@draigBrady.com>
47183         read-file: Improve handling of large files
47184         * lib/read-file.c (fread_file): Minimize realloc()s
47185         for regular files, and better manage sizes around SIZE_MAX.
47187 2010-12-13  Eric Blake  <eblake@redhat.com>
47189         cloexec, fcntl: relax license
47190         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
47191         consent from all contributors.
47192         * modules/fcntl (License): Likewise.
47194 2010-12-10  Bruno Haible  <bruno@clisp.org>
47196         Tests for module 'pipe-posix'.
47197         * modules/pipe-posix-tests: New file.
47198         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
47200 2010-12-10  Bruno Haible  <bruno@clisp.org>
47202         pipe-posix: Make it work in C++ mode.
47203         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
47204         (pipe): Use common idiom, not a macro definition.
47205         * lib/pipe.c: New file.
47206         * m4/pipe.m4: New file.
47207         * modules/pipe-posix (Description): Enhance.
47208         (Files): Add lib/pipe.c, m4/pipe.m4.
47209         (configure.ac): Invoke gl_FUNC_PIPE.
47210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
47211         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
47212         * tests/test-unistd-c++.cc: Check the signature of pipe.
47214 2010-12-10  Bruno Haible  <bruno@clisp.org>
47216         Rename module 'pipe' to 'spawn-pipe'.
47217         * modules/spawn-pipe: New file, renamed from modules/pipe.
47218         (Files, configure.ac, Makefile.am): Update.
47219         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
47220         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
47221         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
47222         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
47223         "spawn-pipe.h" instead of "pipe.h".
47224         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
47225         to gl_SPAWN_PIPE.
47226         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
47227         (Files, Makefile.am): Update.
47228         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
47229         Update.
47230         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
47231         Include "spawn-pipe.h" instead of "pipe.h".
47232         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
47233         * lib/javacomp.c: Likewise.
47234         * lib/javaversion.c: Likewise.
47235         * lib/pipe-filter-gi.c: Likewise.
47236         * lib/pipe-filter-ii.c: Likewise.
47237         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
47238         * modules/javacomp (Depends-on): Likewise.
47239         * modules/javaversion (Depends-on): Likewise.
47240         * modules/pipe-filter-gi (Depends-on): Likewise.
47241         * modules/pipe-filter-ii (Depends-on): Likewise.
47242         * MODULES.html.sh (Executing programs): Update.
47243         * NEWS: Mention the change.
47245 2010-12-10  Eric Blake  <eblake@redhat.com>
47247         pipe-posix: new module
47248         * modules/pipe-posix: New file.
47249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
47250         (gl_UNISTD_H): Check for declaration.
47251         * modules/unistd (Makefile.am): Substitute it.
47252         * lib/unistd.in.h (pipe): Provide it for mingw.
47253         * doc/posix-functions/pipe.texi (pipe): Update documentation.
47254         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
47256 2010-12-07  Bruno Haible  <bruno@clisp.org>
47258         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
47259         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
47260         u8_strcmp_gnu.
47261         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
47263 2010-12-06  Bruno Haible  <bruno@clisp.org>
47265         Update internal documentation.
47266         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
47268 2010-12-04  Bruno Haible  <bruno@clisp.org>
47270         Put more information about failed tests into the test return codes.
47271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
47272         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
47273         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47275         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
47276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47277         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47278         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47279         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
47280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
47282         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47283         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47284         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47285         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
47286         returns a bit mask.
47287         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
47288         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
47289         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
47290         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
47291         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47293         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47295         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47296         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47297         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47298         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47299         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47300         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47301         * m4/link.m4 (gl_FUNC_LINK): Likewise.
47302         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
47303         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
47304         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
47305         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47306         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
47307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47308         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
47309         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
47310         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47311         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47312         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
47313         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
47314         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47315         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47316         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
47317         gl_PRINTF_PRECISION): Likewise.
47318         * m4/regex.m4 (gl_REGEX): Likewise.
47319         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
47322         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47326         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
47327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47328         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47329         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
47330         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
47331         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47332         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47333         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47334         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
47335         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
47336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47338         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
47339         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
47340         enumerated value.
47341         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
47343 2010-12-04  Bruno Haible  <bruno@clisp.org>
47345         Update for Solaris 11 2010-11.
47346         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
47347         Express, released in November 2010.
47349 2010-12-04  Bruno Haible  <bruno@clisp.org>
47351         nproc: Relax license.
47352         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
47353         and Paul Eggert.
47354         Requested by Ludovic Courtès <ludo@gnu.org>.
47356 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47358         utimecmp: fine-grained src to nearby coarse-grained dest
47360         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47361         and the source is on a file system with higher-resolution time
47362         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47363         not work, and the time stamps are close together, the algorithm to
47364         determine the exact resolution from the read-back mtime was buggy:
47365         it had a "!=" where it should have had an "==".  This bug has been
47366         in the code ever since it was introduced to gnulib.
47367         Problem reported by Dan Jacobson in
47368         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47370 2010-11-30  Bruno Haible  <bruno@clisp.org>
47372         strerror_r-posix: Fix autoconf test.
47373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47375 2010-11-28  Bruno Haible  <bruno@clisp.org>
47376             Paul Eggert  <eggert@cs.ucla.edu>
47378         Tests for module 'getdomainname'.
47379         * modules/getdomainname-tests: New file.
47380         * tests/test-getdomainname.c: New file, based on
47381         tests/test-gethostname.c.
47383 2010-11-28  Bruno Haible  <bruno@clisp.org>
47384             Paul Eggert  <eggert@cs.ucla.edu>
47386         getdomainname: Use the system function when possible.
47387         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47388         (getdomainname): Replace if needed. Provide the declaration if it is
47389         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47390         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47391         (getdomainname): When the system has getdomainname, call the system
47392         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47393         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47394         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47395         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47396         the function if its second argument is of type 'int' or if it is found
47397         in libnsl.
47398         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47399         <sys/systeminfo.h> and sysinfo().
47400         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47402         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47403         HAVE_GETDOMAINNAME.
47404         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47405         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47406         * doc/glibc-functions/getdomainname.texi: Document the problems with
47407         the getdomainname declaration.
47409 2010-11-28  Bruno Haible  <bruno@clisp.org>
47411         sys_socket: Ensure ss_family field on AIX.
47412         * lib/sys_socket.in.h (ss_family): New macro definition.
47413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47414         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47415         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47416         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47417         * modules/sys_socket (Makefile.am): Substitute
47418         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47419         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47421 2010-11-27  Bruno Haible  <bruno@clisp.org>
47423         readline: Improve configure output.
47424         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47425         "checking for readline..." result understandable.
47427 2010-11-27  Bruno Haible  <bruno@clisp.org>
47429         *printf-posix: Detect a bug on Solaris 10/x86.
47430         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47431         for floating-point output.
47432         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47433         directive.
47434         * tests/test-snprintf-posix.h (test_function): Likewise.
47435         * tests/test-sprintf-posix.h (test_function): Likewise.
47436         * tests/test-vasprintf-posix.c (test_function): Likewise.
47437         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47438         * doc/posix-functions/printf.texi: Likewise.
47439         * doc/posix-functions/snprintf.texi: Likewise.
47440         * doc/posix-functions/sprintf.texi: Likewise.
47441         * doc/posix-functions/vfprintf.texi: Likewise.
47442         * doc/posix-functions/vprintf.texi: Likewise.
47443         * doc/posix-functions/vsnprintf.texi: Likewise.
47444         * doc/posix-functions/vsprintf.texi: Likewise.
47445         * doc/glibc-functions/obstack_printf.texi: Likewise.
47446         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47448 2010-11-27  Bruno Haible  <bruno@clisp.org>
47450         Fix link error when module libunistring-optional is in use.
47451         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47452         * modules/striconveha-tests (Makefile.am): Likewise.
47454 2010-11-27  Bruno Haible  <bruno@clisp.org>
47456         regex: Mention link dependencies.
47457         * modules/regex (Link): New section.
47458         * modules/rpmatch (Link): Likewise.
47459         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47461 2010-11-27  Bruno Haible  <bruno@clisp.org>
47463         ftoastr: Fix compilation error on Solaris.
47464         * lib/ftoastr.c: Include <config.h>.
47466 2010-11-27  Bruno Haible  <bruno@clisp.org>
47468         getloadavg: Update documentation.
47469         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47471 2010-11-27  Bruno Haible  <bruno@clisp.org>
47473         sys_socket: Fix test whether the functions are declared.
47474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47475         not <sys/select.h>.
47477 2010-11-27  Bruno Haible  <bruno@clisp.org>
47479         getpass: Make sure to get system declaration on some platforms.
47480         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47481         gl_USE_SYSTEM_EXTENSIONS.
47482         * modules/getpass (Depends-on): Add extensions.
47484 2010-11-26  Bruno Haible  <bruno@clisp.org>
47486         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47487         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47488         'iconv' module is present.
47489         (ICONV_CONST): New macro.
47490         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47491         ICONV_CONST.
47492         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47493         set ICONV_CONST.
47494         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47495         here.
47496         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47497         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47498         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47499         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47500         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47501         present.
47503 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47505         ftoastr: comment fix
47506         * lib/ftoastr.c: "little" -> "little or no" in comment
47508 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47510         stdint: port to GCC 4.3 + OSX + Octave
47511         On this platform, stdint.h is buggy and defines int64_t to long
47512         long int.  The replacement defined it to long int, causing
47513         problems with C++ style name mangling.  Instead, trust the system
47514         definition if INT64_MAX is defined, and likewise for the unsigned
47515         variant.   Problem reported by Jarno Rajahalme in
47516         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47517         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47518         and don't mess with int64_t and INT64_MAX in this case.
47519         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47521 2010-11-24  Bruno Haible  <bruno@clisp.org>
47523         doc: Corrections regarding MacOS X 10.4 and 10.5.
47524         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47525         MacOS X.
47526         Reported by Simon Josefsson.
47528 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47530         Uninstall ".bin" files installed by relocwrapper.
47531         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47532         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47533         unless it is already there.
47535 2010-11-21  Bruno Haible  <bruno@clisp.org>
47537         Update for NetBSD 5.0.
47538         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47539         NetBSD; the test fails on NetBSD 5.0.
47540         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47541         about NetBSD.
47543 2010-11-21  Bruno Haible  <bruno@clisp.org>
47545         Update for HP-UX 11.23 and HP-UX 11.31.
47546         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47547         HP-UX.
47549 2010-11-21  Bruno Haible  <bruno@clisp.org>
47551         Update for MacOS X 10.5.
47552         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47553         MacOS X; the test fails on MacOS X 10.5.8.
47554         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47555         about MacOS X.
47557 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47559         bootstrap: add bootstrap_sync option.
47560         See discussion at
47561         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47562         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47563         * build-aux/bootstrap: Accept --bootstrap-sync to update
47564         bootstrap if it is not identical to the local gnulib's
47565         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47566         enable this by default.  Accept --no-bootstrap-sync to disable
47567         it.
47569 2010-11-20  Bruno Haible  <bruno@clisp.org>
47571         Ensure that <features.h> is included before __GLIBC__ is tested.
47572         * lib/printf-parse.h: Include <features.h>.
47573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47574         Reported by Mike Frysinger <vapier@gentoo.org>.
47576         Ensure that <features.h> is included before __GLIBC__ is tested.
47577         * lib/wchar.in.h: Include <features.h>.
47578         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47579         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47580         Reported by Mike Frysinger <vapier@gentoo.org>.
47582         Ensure that <features.h> is included before __GLIBC__ is tested.
47583         * lib/arpa_inet.in.h: Include <features.h>.
47584         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47585         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47586         Reported by Mike Frysinger <vapier@gentoo.org>.
47588         Ensure that <features.h> is included before __GLIBC__ is tested.
47589         * build-aux/link-warning.h: Include <features.h>.
47590         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47591         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47592         Reported by Mike Frysinger <vapier@gentoo.org>.
47594         Ensure that <features.h> is included before __GLIBC__ is tested.
47595         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47596         Reported by Mike Frysinger <vapier@gentoo.org>.
47598 2010-11-20  Bruno Haible  <bruno@clisp.org>
47600         memmem: Fix autoconf test.
47601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47603 2010-11-20  Bruno Haible  <bruno@clisp.org>
47605         Port to uClibc.
47606         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47607         * lib/fcntl.in.h: Likewise.
47608         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47609         * lib/mbrtowc.c (mbrtowc): Likewise.
47610         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47611         * lib/strerror_r.c: Likewise.
47612         * lib/unistr/u8-strnlen.c: Likewise.
47613         * lib/vasnprintf.c (decimal_point_char): Likewise.
47614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47615         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47616         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47617         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47618         * tests/test-sigaction.c (handler, main): Likewise.
47619         * lib/freading.h: Treat uClibc like a non-glibc platform.
47620         * lib/freading.c: Likewise.
47621         * lib/gettext.h: Likewise.
47622         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47623         Likewise.
47624         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47625         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47626         * lib/propername.c (proper_name_utf8): Likewise.
47627         * lib/spawn.in.h: Likewise.
47628         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47629         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47630         mem_cd_iconveh_internal): Likewise.
47631         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47632         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47633         strstr, strcasestr): Likewise.
47634         * lib/unicodeio.c (unicode_to_mb): Likewise.
47635         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47636         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47637         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47638         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47639         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47640         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47641         * lib/unistr/u8-stpncpy.c: Likewise.
47642         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47643         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47644         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47645         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47646         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47647         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47648         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47651         Likewise.
47652         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47653         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47659         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47660         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47661         * tests/test-striconveha.c (main): Likewise.
47662         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47663         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47664         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47665         * doc/posix-functions/getline.texi: Likewise.
47666         Reported by Mike Frysinger <vapier@gentoo.org>.
47668 2010-11-20  Bruno Haible  <bruno@clisp.org>
47670         nproc: Fix condition.
47671         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47672         HAVE_PTHREAD_AFFINITY_NP.
47674 2010-11-20  Bruno Haible  <bruno@clisp.org>
47676         Fix a comment.
47677         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47679 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47681         ftoastr: don't assume snprintf
47682         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47683         Implement a subset of snprintf here, by using sprintf safely.
47684         * modules/ftoastr (Depends-on): Remove snprintf.
47686 2010-11-19  Jim Meyering  <meyering@redhat.com>
47688         test-rename.h: fix compilation failure
47689         * tests/test-rename.h (test_rename): Add omitted "}".
47691 2010-11-17  Jim Meyering  <meyering@redhat.com>
47693         maint.mk: add a URL discussing the no-@acronym policy
47694         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47696 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47698         ftoastr: depend on snprintf, improve comments
47699         * lib/ftoastr.c: Also mention Loitsch's draft.
47700         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47701         needed in the current implementation, but it might simplify
47702         speeding up the code later.
47703         * modules/ftoastr: Depend on snprintf; this improves portability.
47704         Suggested by Bruno Haible in the same email.
47706         ftoastr: port to hosts lacking strtof and strtold
47707         Problem reported by Bruno Haible in
47708         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47709         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47710         environment and strtold (and presumably strtof) are not available.
47711         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47712         (configure.ac): Require gl_C99_STRTOLD.
47714 2010-11-18  Bruno Haible  <bruno@clisp.org>
47716         c-strtold: Avoid link error on AIX 7.
47717         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47718         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47719         (gl_C_STRTOLD): Test whether strtold_l exists.
47720         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47722 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47724         intprops: new macro INT_BITS_STRLEN_BOUND
47725         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47726         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47727         not exposed.  Also, it uses a slightly tighter bound than before;
47728         though this makes no practical difference, we might as well be as
47729         tight as we easily can.
47731         ftoastr: new module, for lossless conversion of floats to short strings
47732         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47733         * modules/ftoastr: New files.
47735 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47737         bootstrap: port to Solaris sed
47738         * build-aux/bootstrap (get_version): Port to Solaris sed.
47739         See Ralf Wildenhues's note in
47740         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47742 2010-11-14  Jim Meyering  <meyering@redhat.com>
47744         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47745         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47746         and move definition closer to sole use.
47748 2010-11-13  Jim Meyering  <meyering@redhat.com>
47750         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47751         Now we require at least autoconf-2.59, which means the work-around
47752         is no longer needed.
47753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47754         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47756         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47759 2010-11-13  Bruno Haible  <bruno@clisp.org>
47761         rename, renameat: Avoid test failures at NFS mounted locations.
47762         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47763         functions.
47764         (test_rename): Use assert_nonexistent.
47765         * tests/test-rename.c: Include <dirent.h>.
47766         * tests/test-renameat.c: Likewise.
47767         Reported by Gary V. Vaughan <gary@gnu.org>.
47769         rename, renameat: Document Linux bug with NFS
47770         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47771         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47772         * doc/posix-functions/renameat.texi: Likewise.
47773         Suggested by Eric Blake.
47775 2010-11-13  Bruno Haible  <bruno@clisp.org>
47777         rename test: Add comments.
47778         * tests/test-rename.h (test_rename): Add structure and comments.
47780 2010-11-13  Eric Blake  <eblake@redhat.com>
47782         maintainer-makefile: cover a few more files
47783         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47784         scripts generated within C files, for libvirt.
47786 2010-11-13  Bruno Haible  <bruno@clisp.org>
47788         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47789         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47790         character, return the number of bytes that belong together, not always
47791         1.
47792         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47793         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47794         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47795         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47796         number of bytes of an invalid character.
47797         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47798         (main): Invoke it.
47799         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47800         results.
47801         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47802         malformed byte sequences.
47803         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47804         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47805         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47806         Reported by Ben Pfaff and Paolo Bonzini.
47808 2010-11-13  Bruno Haible  <bruno@clisp.org>
47810         openat: Work around glibc bug with fchownat() and empty file names.
47811         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47812         (gl_FUNC_FCHOWNAT): Invoke it.
47813         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47814         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47815         Reported by Gary V. Vaughan <gary@gnu.org>.
47817 2010-11-13  Bruno Haible  <bruno@clisp.org>
47819         openat: Ensure autoconf macro ordering.
47820         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47821         gl_USE_SYSTEM_EXTENSIONS.
47822         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47824 2010-11-13  Bruno Haible  <bruno@clisp.org>
47826         Update comments.
47827         * lib/unistr/u8-check.c: Update file name in comments.
47828         * lib/unistr/u8-mblen.c: Likewise.
47829         * lib/unistr/u8-prev.c: Likewise.
47830         * lib/unistr/u8-strmblen.c: Likewise.
47831         * lib/unistr/u8-strmbtouc.c: Likewise.
47833 2010-11-13  Jim Meyering  <meyering@redhat.com>
47835         tests: avoid test failure on Solaris 10 due to lack of PATH export
47836         * tests/test-update-copyright.sh: Don't forget to export PATH.
47838         init.sh: ensure that IFS is defined, just in case...
47839         * tests/init.sh (setup_): Ensure that IFS is defined,
47840         so that saving and restoring it works as expected.  This
47841         appears to be useful at least for an old version of dash
47842         from a long time ago (RH 6).  See here for details:
47843         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47845         maint.mk: tighten "test a == b" check
47846         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47847         test to files that contain something like #!/bin/sh.
47848         Without this, coreutils would get two false positives in
47849         the comments of C source files.
47851 2010-11-12  Eric Blake  <eblake@redhat.com>
47853         bootstrap: fix typo in previous attempt
47854         * build-aux/bootstrap (buildreq): Correct the grouping.
47855         Reported by Paul Eggert.
47857         maintainer-makefile: prohibit test x == x
47858         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47859         Based on a report by Matthias Bolte.
47861         bootstrap: allow FreeBSD gzip
47862         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47863         which has no '.' and goes to stderr.
47864         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47865         Reported by Matthias Bolte.
47867         maintainer-makefile: check for i18n setup
47868         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47869         will likely work.
47871 2010-11-12  Bruno Haible  <bruno@clisp.org>
47873         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47874         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47875         * lib/nanosleep.c (nanosleep): Likewise.
47877 2010-11-11  Bruno Haible  <bruno@clisp.org>
47879         fcntl-h: Fix for use of C++ on glibc systems.
47880         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47881         also on glibc systems in C++ mode.
47882         Reported by Gary V. Vaughan <gary@gnu.org>.
47884 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47886         mknod: avoid false failure with dash
47887         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47889 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47891         unlink: Fix "is it should" typo in diagnostic.
47892         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47893         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47895 2010-11-11  Bruno Haible  <bruno@clisp.org>
47897         Tests for module 'strerror_r-posix'.
47898         * modules/strerror_r-posix-tests: New file.
47899         * tests/test-strerror_r.c: New file.
47900         * tests/test-string-c++.cc: Check the signature of strerror_r.
47902         New module 'strerror_r-posix'.
47903         * lib/string.in.h (strerror_r): New declaration.
47904         * lib/strerror_r.c: New file.
47905         * m4/strerror_r.m4: New file.
47906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47907         of strerror_r.
47908         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47909         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47910         * modules/strerror_r-posix: New file.
47911         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47912         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47913         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47914         portability problems.
47916 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47918         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47919         line is also considered for output. Quoted function name in shell
47920         command, so temporary files for functions like MyClass::operator()
47921         are removed correctly without errors.
47923 2010-11-09  Bruno Haible  <bruno@clisp.org>
47925         * doc/posix-functions/strerror.texi: List more failing platforms.
47927         * doc/posix-functions/strerror.texi: Add a comment.
47929 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47931         fdopendir: fix bug on MacOS X when low on file descriptors
47933         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47934         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47935         All callers changed.
47936         (fdopendir): Invoke save_cwd at the top level, not after using
47937         multiple dup() calls to use up file descriptors.  Then retry
47938         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47939         less than the maximum number of open file descriptors, because
47940         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47941         on Mac OS X 10.6.4 for tar 1.24
47942         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47943         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47944         and for tar 1.25
47945         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47947 2010-11-07  Bruno Haible  <bruno@clisp.org>
47949         vasnprintf: Support I flag on glibc systems.
47950         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47951         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47952         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47953         snprintf function.
47954         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47955         glibc systems.
47956         * tests/test-vasnprintf-posix3.c: New file.
47957         * modules/vasnprintf-posix-tests (Files): Add it.
47958         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47960 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47962         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47963         * MODULES.html.sh: For compiler warnings, use name
47964         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47966 2010-11-05  Eric Blake  <eblake@redhat.com>
47968         ceil, floor: avoid spurious failure with icc
47969         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47970         [denormals-as-zero] when optimizing without -mieee-fp option.
47971         * tests/test-floorf2.c (floorf_reference): Likewise.
47972         * tests/test-ceilf1.c (dummy): New function.
47973         (main): Use it to outsmart icc's optimization.
47974         * tests/test-floorf1.c (dummy, main): Likewise.
47976         tests: require working signbit
47977         * modules/ceilf-tests (Depends-on): Add signbit.
47978         * modules/ceill-tests (Depends-on): Likewise.
47979         * modules/floorf-tests (Depends-on): Likewise.
47980         * modules/floorl-tests (Depends-on): Likewise.
47981         * modules/round-tests (Depends-on): Likewise.
47982         * modules/roundf-tests (Depends-on): Likewise.
47983         * modules/roundl-tests (Depends-on): Likewise.
47984         * modules/trunc-tests (Depends-on): Likewise.
47985         * modules/truncf-tests (Depends-on): Likewise.
47986         * modules/truncl-tests (Depends-on): Likewise.
47988         strtod: work around icc bug
47989         * lib/strtod.c (minus_zero): Define to working value.
47990         (strtod): Use it to avoid icc bug.
47992         copysign: enhance tests
47993         * modules/copysign-tests (Files): Add minus-zero.h.
47994         * tests/test-copysign.c (main): Also test zeros.
47996 2010-11-04  Eric Blake  <eblake@redhat.com>
47998         ceil, floor, round, trunc: enhance tests of -0
47999         * tests/test-ceilf1.c (main): Ensure correct sign of result.
48000         * tests/test-ceill.c (main): Likewise.
48001         * tests/test-floorf1.c (main): Likewise.
48002         * tests/test-floorl.c (main): Likewise.
48003         * tests/test-round1.c (main): Likewise.
48004         * tests/test-roundf1.c (main): Likewise.
48005         * tests/test-roundl.c (main): Likewise.
48006         * tests/test-trunc1.c (main): Likewise.
48007         * tests/test-truncf1.c (main): Likewise.
48008         * tests/test-truncl.c (main): Likewise.
48010 2010-11-04  Eric Blake  <eblake@redhat.com>
48012         frexp, tests: work around ICC bug with -zero
48013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
48014         works with more compilers.
48015         * tests/minus-zero.h: New file.
48016         * modules/ceilf-tests (Files): Include it.
48017         * modules/ceill-tests (Files): Likewise.
48018         * modules/floorf-tests (Files): Likewise.
48019         * modules/floorl-tests (Files): Likewise.
48020         * modules/frexp-nolibm-tests (Files): Likewise.
48021         * modules/frexp-tests (Files): Likewise.
48022         * modules/frexpl-nolibm-tests (Files): Likewise.
48023         * modules/frexpl-tests (Files): Likewise.
48024         * modules/isnan-tests (Files): Likewise.
48025         * modules/isnand-nolibm-tests (Files): Likewise.
48026         * modules/isnand-tests (Files): Likewise.
48027         * modules/isnanf-nolibm-tests (Files): Likewise.
48028         * modules/isnanf-tests (Files): Likewise.
48029         * modules/isnanl-nolibm-tests (Files): Likewise.
48030         * modules/isnanl-tests (Files): Likewise.
48031         * modules/round-tests (Files): Likewise.
48032         * modules/roundf-tests (Files): Likewise.
48033         * modules/roundl-tests (Files): Likewise.
48034         * modules/ldexpl-tests (Files): Likewise.
48035         * modules/signbit-tests (Files): Likewise.
48036         * modules/snprintf-posix-tests (Files): Likewise.
48037         * modules/sprintf-posix-tests (Files): Likewise.
48038         * modules/strtod-tests (Files): Likewise.
48039         * modules/trunc-tests (Files): Likewise.
48040         * modules/truncf-tests (Files): Likewise.
48041         * modules/truncl-tests (Files): Likewise.
48042         * modules/vsnprintf-posix-tests (Files): Likewise.
48043         * modules/vsprintf-posix-tests (Files): Likewise.
48044         * modules/vasnprintf-posix-tests (Files): Likewise.
48045         * modules/vasprintf-posix-tests (Files): Likewise.
48046         * tests/test-ceilf1.c (main): Use it.
48047         * tests/test-ceill.c (main): Likewise.
48048         * tests/test-floorf1.c (main): Likewise.
48049         * tests/test-floorl.c (main): Likewise.
48050         * tests/test-frexp.c (main): Likewise.
48051         * tests/test-frexpl.c (main): Likewise.
48052         * tests/test-isnan.c (main): Likewise.
48053         * tests/test-isnand.h (main): Likewise.
48054         * tests/test-isnanf.h (main): Likewise.
48055         * tests/test-isnanl.h (main): Likewise.
48056         * tests/test-ldexpl.c (main): Likewise.
48057         * tests/test-round.c (main): Likewise.
48058         * tests/test-roundf.c (main): Likewise.
48059         * tests/test-roundl.c (main): Likewise.
48060         * tests/test-signbit.c (test_signbitf, test_signbitd)
48061         (test_signbitl): Likewise.
48062         * tests/test-snprintf-posix.h (test_function): Likewise.
48063         * tests/test-sprintf-posix.h (test_function): Likewise.
48064         * tests/test-strtod.c (main): Likewise.
48065         * tests/test-trunc1.c (main): Likewise.
48066         * tests/test-truncf1.c (main): Likewise.
48067         * tests/test-truncl.c (main): Likewise.
48069         isnanl: work around icc bug
48070         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
48072 2010-11-03  Eric Blake  <eblake@redhat.com>
48074         tests: fix compiler warnings
48075         * tests/test-getopt.h (test_getopt): Fix condition.
48076         * tests/test-getopt_long.h (test_getopt_long): Likewise.
48077         * tests/test-pipe2.c (main): Likewise.
48078         * tests/test-quotearg-simple.c (main): Avoid icc warning.
48080         utimens: fix broken m4 test
48081         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
48083 2010-10-28  Bruno Haible  <bruno@clisp.org>
48085         posix_spawn*, getdtablesize: Relax license.
48086         * modules/posix_spawn (License): Change to LGPLv2+.
48087         * modules/posix_spawnp (License): Likewise.
48088         * modules/posix_spawn-internal (License): Likewise.
48089         * modules/posix_spawnattr_init (License): Likewise.
48090         * modules/posix_spawnattr_getflags (License): Likewise.
48091         * modules/posix_spawnattr_setflags (License): Likewise.
48092         * modules/posix_spawnattr_getpgroup (License): Likewise.
48093         * modules/posix_spawnattr_setpgroup (License): Likewise.
48094         * modules/posix_spawnattr_getschedparam (License): Likewise.
48095         * modules/posix_spawnattr_setschedparam (License): Likewise.
48096         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
48097         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
48098         * modules/posix_spawnattr_getsigdefault (License): Likewise.
48099         * modules/posix_spawnattr_setsigdefault (License): Likewise.
48100         * modules/posix_spawnattr_getsigmask (License): Likewise.
48101         * modules/posix_spawnattr_setsigmask (License): Likewise.
48102         * modules/posix_spawnattr_destroy (License): Likewise.
48103         * modules/posix_spawn_file_actions_init (License): Likewise.
48104         * modules/posix_spawn_file_actions_addclose (License): Likewise.
48105         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
48106         * modules/posix_spawn_file_actions_addopen (License): Likewise.
48107         * modules/posix_spawn_file_actions_destroy (License): Likewise.
48108         * modules/getdtablesize (License): Likewise.
48109         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
48111 2010-10-26  Bruno Haible  <bruno@clisp.org>
48113         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
48114         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
48115         Cygwin and mingw.
48116         Suggested by Eric Blake.
48118 2010-10-26  Bruno Haible  <bruno@clisp.org>
48120         stdio: Work around compilation error due to renameat() on Solaris 10.
48121         * lib/stdio.in.h: Include <unistd.h> on Solaris.
48122         * lib/renameat.c: Don't include <unistd.h> here.
48123         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
48124         Reported by Paul Eggert and Eric Blake.
48126 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48128         renameat: port to Solaris 10, which declares renameat in unistd.h
48130         * lib/renameat.c: Include unistd.h before stdio.h, because
48131         Solaris 10 declares renameat in unistd.h.  Problem encountered
48132         when building GNU tar 1.24 on Solaris 10.
48134 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48136         fdopendir: fix C89 compilation
48137         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
48138         compilers.
48140 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
48142         inttostr: simplify by removing unnecessary redundancy
48143         * lib/anytostr.c: Don't include verify.h.
48144         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
48145         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
48146         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
48147         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
48148         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
48149         Likewise.
48150         * modules/inttostr (Depends-on): Remove 'verify'.
48152 2010-10-23  Bruno Haible  <bruno@clisp.org>
48154         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
48155         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
48156         Reported by Eric Blake.
48158 2010-10-23  Bruno Haible  <bruno@clisp.org>
48160         Tests: Fix LOCALE_JA on MirBSD 10.
48161         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
48162         to an UTF-8 locale.
48163         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
48164         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48165         Reported by Eric Blake.
48167 2010-10-21  Bruno Haible  <bruno@clisp.org>
48169         nl_langinfo test: Avoid test failure on NetBSD 5.
48170         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
48171         Reported by Eric Blake.
48173 2010-10-21  Eric Blake  <eblake@redhat.com>
48175         c-stack: work around libsigsegv 2.8 bug
48176         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
48177         overflow on at least PowerPC64.
48179 2010-10-17  Bruno Haible  <bruno@clisp.org>
48181         userspec: Drop redundant file.
48182         * modules/userspec (Files): Remove lib/inttostr.h.
48184 2010-10-17  Bruno Haible  <bruno@clisp.org>
48186         nl_langinfo tests: Silence some warnings.
48187         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
48188         Reported by Jim Meyering.
48190 2010-10-17  Bruno Haible  <bruno@clisp.org>
48192         Make use of GCC's attribute __alloc_size__.
48193         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
48194         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
48195         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
48196         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
48197         __alloc_size__.
48198         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48199         Suggested by Jim Meyering.
48201 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
48203         bootstrap: anchor .gitignore entries.
48204         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
48205         with...
48206         (insert_vc_ignore): ... this new function, which prepends `/' to
48207         all .gitignore entries before passing them to
48208         insert_sorted_if_absent.
48210 2010-10-16  Bruno Haible  <bruno@clisp.org>
48212         nextafter: Fix configure check.
48213         * modules/nextafter (configure.ac): Correct expected prototype.
48215 2010-10-16  Bruno Haible  <bruno@clisp.org>
48217         termios: Update documentation.
48218         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
48220 2010-10-16  Bruno Haible  <bruno@clisp.org>
48222         tests: Make them compile with TinyCC.
48223         * tests/test-strstr.c (main): Remove parentheses around array
48224         initializer.
48226 2010-10-15  Eric Blake  <eblake@redhat.com>
48228         ignore-value: make header idempotent
48229         * lib/ignore-value.h: Add double-inclusion guards.
48230         Reported by Stefan Berger.
48232 2010-10-15  Jim Meyering  <meyering@redhat.com>
48234         GNUmakefile: handle "stable" target, not "major"
48235         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
48236         lists in maint.mk and announce-gen.  Without this, "make stable"
48237         would fail to ensure that $(VERSION) is up to date.
48239 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
48241         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
48242         & co.
48244 2010-10-14  Bruno Haible  <bruno@clisp.org>
48246         vasnprintf: Don't set errno to 0.
48247         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
48248         block that sets it to 0.
48249         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
48251 2010-10-14  Bruno Haible  <bruno@clisp.org>
48253         socketlib: Fix.
48254         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
48255         gl_PREREQ_SYS_H_WINSOCK2.
48256         Reported by Ian Beckwith <ianb@erislabs.net>.
48258 2010-10-13  Jim Meyering  <meyering@redhat.com>
48260         test-select-stdin.c: avoid warn_unused_result warnings
48261         * tests/test-select-stdin.c: Include "macros.h".
48262         ASSERT that read and fflush succeed.
48264 2010-10-13  Jim Meyering  <meyering@redhat.com>
48266         git-version-gen: do require git-VC'd files in cwd
48267         * build-aux/git-version-gen: Reject a git version string
48268         if there are no commits associated with the current directory.
48269         This avoids an unlikely false-positive (unrelated dir whose parent
48270         repository also contains a tag matching v*), as pointed out
48271         by Giuseppe Scrivano in
48272         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
48274 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48276         argv-iter: omit nonconforming declaration
48277         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
48278         enum arg_iter_err declaration, which doesn't conform to C99.
48279         Solaris 10 cc warns about this.
48281 2010-10-13  Eric Blake  <eblake@redhat.com>
48283         termios: fix compilation on mingw
48284         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
48285         (gl_TERMIOS_H): Adjust it on mingw.
48286         * modules/termios (Makefile.am): Substitute new key.
48287         * lib/termios.in.h (includes): Make include_next conditional.
48288         * doc/posix-headers/termios.texi (termios.h): Update
48289         documentation.
48290         Reported by Daniel P. Berrange.
48292 2010-10-13  Jim Meyering  <meyering@redhat.com>
48294         git-version-gen: don't require that .git/ be in the current dir
48295         * build-aux/git-version-gen: Adjust this script so that it works
48296         when run from any working directory beneath the top-level .git/-
48297         containing directory.  Inspired by a patch from Giuseppe Scrivano,
48298         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
48300         test-select: avoid warn_unused_result warnings
48301         * tests/test-select.c: Include "macros.h".
48302         ASSERT that each call to read, write, and pipe succeeds.
48303         While not technically required, also check each "close".
48304         * modules/select-tests (Files): Add tests/macros.h.
48306         test-symlinkat: remove declaration of unused local
48307         * tests/test-symlinkat.c (main): Remove unused local, "buf".
48309         test-inttostr: avoid shadowing warnings
48310         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
48311         and use malloc rather than the stack for the same reason as
48312         mentioned in the comment justifying the other allocation.
48314 2010-10-11  Bruno Haible  <bruno@clisp.org>
48316         stdlib: Allow multiple gnulib generated replacements to coexist.
48317         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
48318         Reported by Sam Steingold <sds@gnu.org>.
48320 2010-10-11  Jim Meyering  <meyering@redhat.com>
48322         fix a documentation typo
48323         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
48325 2010-10-11  Eric Blake  <eblake@redhat.com>
48327         futimens: work around Solaris 11 bug
48328         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
48329         * tests/test-futimens.h (test_futimens): Enhance, rather than
48330         weaken test.
48331         * doc/posix-functions/futimens.texi (futimens): Document the bug.
48333 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48335         Indentation.
48336         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
48337         higher-level operators more to the left.
48339 2010-10-11  Jim Meyering  <meyering@redhat.com>
48341         test-futimens: avoid unwarranted test failure on Solaris 5.11
48342         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
48343         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
48344         because it tries to dereference the NULL name argument.
48346 2010-10-11  Bruno Haible  <bruno@clisp.org>
48348         Indentation.
48349         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
48350         indentation.
48352 2010-10-11  Jim Meyering  <meyering@redhat.com>
48354         spawn.in.h: make indentation consistent with parentheses
48355         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
48356         Make indentation consistent with parentheses.
48358 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48360         Fix mismatched parens in previous commit
48361         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48362         parens.
48364 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48366         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48368         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48369         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48370         * lib/malloca.c: Include "verify.h".
48371         (verify1): Remove, replacing with a verify call.
48372         * lib/relocwrapper.c (verify1): Likewise.
48373         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48374         Likewise.
48375         * modules/malloca (Depends-on): Add 'verify'.
48376         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48377         * modules/vasnprintf (Depends-on): Add 'verify'.
48378         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48379         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48380         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48381         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48382         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48383         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48384         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48386         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48388         Formerly the style was sometimes 2*X - 1, because the C standard
48389         was wrongly thought to disallow ?: in integral constant expressions.
48390         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48391         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48392         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48393         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48394         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48395         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48396         verify that time_t cannot be floating.
48398 2010-10-08  Eric Blake  <eblake@redhat.com>
48400         time: enforce recent POSIX ruling that time_t is integral
48401         * lib/time.in.h (__time_t_must_be_integral): Detect any
48402         problematic systems, allowing the rest of gnulib to assume POSIX.
48404 2010-10-08  Jim Meyering  <meyering@redhat.com>
48406         fdopendir: fix a bug on systems lacking openat and /proc support
48407         OpenBSD 4.7 is one such system.  The most noticeable effect was
48408         failure of any application making nontrivial use of fts: rm, du,
48409         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48410           ./rm: traversal failed: `a': Bad file descriptor
48411         Debugging that, you see that even though FD 6 was closed just
48412         prior to the opendir call in fd_clone_opendir, its resulting
48413         dir->dd_fd was 8, rather than the expected value of 6:
48415         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48416         93                close (fd);
48417         (gdb) n
48418         94                dir = fd_clone_opendir (dupfd);
48419         (gdb) n
48420         95                saved_errno = errno;
48421         (gdb) p dir->dd_fd
48422         $11 = 8
48424         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48425         The problem is that on OpenBSD, fd_clone_opendir has to resort
48426         to using the old-style save/restore CWD mechanism, due to its
48427         lack of openat/proc support, and *that* would steal the FD (6)
48428         that opendir was supposed to use.
48430         The fix is to squirrel away the desired FD so that save_cwd uses a
48431         different one, and then free the dest FD right before calling opendir.
48432         That guarantees opendir will use the required file descriptor.
48434         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48436 2010-10-08  Bruno Haible  <bruno@clisp.org>
48438         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48439         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48441 2010-10-08  Bruno Haible  <bruno@clisp.org>
48443         nanosleep: Make replacement POSIX compliant.
48444         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48445         is out of range.
48446         Reported by Jim Meyering.
48448 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48450         bootstrap: add hook for altering gnulib.mk, for Bison
48451         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48452         the Bison bootstrapping process can rewrite file names and variables
48453         in this file before later parts of 'bootstrap' use the file.
48454         Bison wants to include lib/gnulib.mk from the top-level makefile,
48455         so it needs the file names in this file to be relative to the top
48456         level, not relative to lib; plus it needs variable names to be
48457         rewritten.
48458         (slurp): Use the new function.
48460         bootstrap: reformat for readability
48461         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48463 2010-10-08  Eric Blake  <eblake@redhat.com>
48465         docs: update cygwin progress
48466         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48467         1.7.7.
48468         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48469         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48470         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48471         * doc/posix-functions/carg.texi (carg): Likewise.
48472         * doc/posix-functions/cargf.texi (cargf): Likewise.
48473         * doc/posix-functions/casin.texi (casin): Likewise.
48474         * doc/posix-functions/casinf.texi (casinf): Likewise.
48475         * doc/posix-functions/casinh.texi (casinh): Likewise.
48476         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48477         * doc/posix-functions/catan.texi (catan): Likewise.
48478         * doc/posix-functions/catanf.texi (catanf): Likewise.
48479         * doc/posix-functions/catanh.texi (catanh): Likewise.
48480         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48481         * doc/posix-functions/ccos.texi (ccos): Likewise.
48482         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48483         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48484         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48485         * doc/posix-functions/cexp.texi (cexp): Likewise.
48486         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48487         * doc/posix-functions/cimag.texi (cimag): Likewise.
48488         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48489         * doc/posix-functions/clog.texi (clog): Likewise.
48490         * doc/posix-functions/clogf.texi (clogf): Likewise.
48491         * doc/posix-functions/conj.texi (conj): Likewise.
48492         * doc/posix-functions/conjf.texi (conjf): Likewise.
48493         * doc/posix-functions/cpow.texi (cpow): Likewise.
48494         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48495         * doc/posix-functions/cproj.texi (cproj): Likewise.
48496         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48497         * doc/posix-functions/creal.texi (creal): Likewise.
48498         * doc/posix-functions/crealf.texi (crealf): Likewise.
48499         * doc/posix-functions/csin.texi (csin): Likewise.
48500         * doc/posix-functions/csinf.texi (csinf): Likewise.
48501         * doc/posix-functions/csinh.texi (csinh): Likewise.
48502         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48503         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48504         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48505         * doc/posix-functions/ctan.texi (ctan): Likewise.
48506         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48507         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48508         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48509         * doc/posix-headers/complex.texi (complex.h): Likewise.
48511 2010-10-07  Jim Meyering  <meyering@redhat.com>
48513         parse-datetime: avoid compilation failure on OpenBSD 4.7
48514         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48515         This works around a compilation failure on OpenBSD 4.7:
48516         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48518 2010-10-07  Eric Blake  <eblake@redhat.com>
48520         docs: update cygwin progress
48521         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48522         1.7.6.
48523         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48524         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48525         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48526         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48527         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48528         Likewise.
48529         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48530         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48531         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48532         Likewise.
48533         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48534         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48535         Likewise.
48536         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48537         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48538         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48539         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48540         Likewise.
48541         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48542         Likewise.
48543         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48545         docs: update parse-datetime history
48546         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48547         documentation of this function's history and alternatives.
48549         cygwin: use more robust version check
48550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48551         exclude an eventual cygwin 1.9.1.
48552         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48554         (gl_FUNC_STRCASESTR): Likewise.
48555         Reported by Bruno Haible.
48557 2010-10-06  Bruno Haible  <bruno@clisp.org>
48559         string, sys_select: Avoid #including large headers unless necessary.
48560         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48561         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48562         OSF/1, BeOS, Haiku.
48563         Reported by Jim Meyering.
48565 2010-10-05  Eric Blake  <eblake@redhat.com>
48567         memmem, strstr, strcasestr: fix bug with long periodic needle
48568         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48569         periodic needle having false positive.
48570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48571         and cygwin 1.7.7.
48572         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48574         (gl_FUNC_STRCASESTR): Likewise.
48575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48576         * tests/test-memmem.c (main): Expose the bug.
48577         * tests/test-strcasestr.c (main): Likewise.
48578         * tests/test-strstr.c (main): Likewise.
48579         * tests/test-c-strcasestr.c (main): Likewise.
48580         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48581         * doc/posix-functions/strstr.texi (strstr): Likewise.
48582         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48583         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48585 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48587         parse-datetime: do some more renaming
48588         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48589         parse_datetime, not get_date.  Mention the renaming.
48590         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48591         in comments.
48592         * m4/bison.m4: Likewise.
48594 2010-10-05  Eric Blake  <eblake@redhat.com>
48596         parse-datetime: better name than get_date
48597         * NEWS: Reword the deprecation notice.
48598         * modules/get_date: Rename to modules/parse-datetime.
48599         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48600         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48601         * lib/get_date.y: Rename to lib/parse-datetime.y.
48602         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48603         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48604         * doc/getdate.texi: Provide fallback wrapper.
48605         * lib/getdate.h: Move guts, and wrap...
48606         * lib/parse-datetime.h: ...new file.
48607         * lib/parse-datetime.y (get_date): Rename...
48608         (parse_datetime): ...to this.
48609         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48610         (gl_PARSE_DATETIME): ...to this.
48611         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48612         documentation.
48613         * modules/getdate (Files): Provide fallback docs and header.
48614         (Notice, Depends-on): Update references.
48615         * tests/test-parse-datetime.c: Likewise.
48616         * DEPENDENCIES: Likewise.
48617         * MODULES.html.sh (Date and time <time.h>): Likewise.
48618         * doc/parse-datetime.texi (Date input formats)
48619         (Authors of parse_datetime): Likewise.
48620         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48621         (Include): Likewise.
48622         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48623         * gnulib-tool: Likewise.
48624         * m4/bison.m4 (gl_BISON): Likewise.
48625         Suggested by Bruno Haible.
48627 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48629         more ports to Solaris tr, which needs [] around ranges
48630         * gnulib-tool: Solaris tr needs [] around ranges.
48631         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48632         * tests/test-pipe-filter-gi1.c (main): Likewise.
48633         * tests/test-pipe-filter-ii1.c (main): Likewise.
48635 2010-10-05  Eric Blake  <eblake@redhat.com>
48637         bootstrap: fix Solaris regression
48638         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48639         around ranges.
48640         Reported by Pádraig Brady.
48642         bootstrap: work with pkg-config
48643         * build-aux/bootstrap (check_versions): Also transliterate - in
48644         prerequisite name.
48645         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48646         prerequisites that were already found, to avoid confusion.
48647         Reported by Justin Clift.
48649         faccessat: remove unused wrappers
48650         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48651         presence of these wrappers dragged in -lgen on Solaris.
48652         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48654 2010-10-05  Jim Meyering  <meyering@redhat.com>
48656         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48657         * Makefile (sc_pragma_columns): New syntax-check rule.
48659 2010-10-04  Bruno Haible  <bruno@clisp.org>
48661         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48662         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48663         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48664         Reported by Bruce Korb and Eric Blake.
48666 2010-10-04  Bruno Haible  <bruno@clisp.org>
48668         threadlib: Make option --with-libpth-prefix work.
48669         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48670         use $LIBPTH, not just -lpth.
48672 2010-10-04  Bruno Haible  <bruno@clisp.org>
48674         Avoid line length limitation from HP NonStop system header files.
48675         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48676         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48677         * lib/ctype.in.h: Likewise.
48678         * lib/dirent.in.h: Likewise.
48679         * lib/errno.in.h: Likewise.
48680         * lib/fcntl.in.h: Likewise.
48681         * lib/float.in.h: Likewise.
48682         * lib/getopt.in.h: Likewise.
48683         * lib/iconv.in.h: Likewise.
48684         * lib/inttypes.in.h: Likewise.
48685         * lib/langinfo.in.h: Likewise.
48686         * lib/locale.in.h: Likewise.
48687         * lib/math.in.h: Likewise.
48688         * lib/netdb.in.h: Likewise.
48689         * lib/netinet_in.in.h: Likewise.
48690         * lib/poll.in.h: Likewise.
48691         * lib/pthread.in.h: Likewise.
48692         * lib/pty.in.h: Likewise.
48693         * lib/sched.in.h: Likewise.
48694         * lib/se-selinux.in.h: Likewise.
48695         * lib/search.in.h: Likewise.
48696         * lib/signal.in.h: Likewise.
48697         * lib/spawn.in.h: Likewise.
48698         * lib/stdarg.in.h: Likewise.
48699         * lib/stddef.in.h: Likewise.
48700         * lib/stdint.in.h: Likewise.
48701         * lib/stdio.in.h: Likewise.
48702         * lib/stdlib.in.h: Likewise.
48703         * lib/string.in.h: Likewise.
48704         * lib/strings.in.h: Likewise.
48705         * lib/sys_file.in.h: Likewise.
48706         * lib/sys_ioctl.in.h: Likewise.
48707         * lib/sys_select.in.h: Likewise.
48708         * lib/sys_socket.in.h: Likewise.
48709         * lib/sys_stat.in.h: Likewise.
48710         * lib/sys_time.in.h: Likewise.
48711         * lib/sys_times.in.h: Likewise.
48712         * lib/sys_utsname.in.h: Likewise.
48713         * lib/sys_wait.in.h: Likewise.
48714         * lib/sysexits.in.h: Likewise.
48715         * lib/termios.in.h: Likewise.
48716         * lib/time.in.h: Likewise.
48717         * lib/unistd.in.h: Likewise.
48718         * lib/wchar.in.h: Likewise.
48719         * lib/wctype.in.h: Likewise.
48720         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48721         * modules/ctype (Makefile.am): Likewise.
48722         * modules/dirent (Makefile.am): Likewise.
48723         * modules/errno (Makefile.am): Likewise.
48724         * modules/fcntl-h (Makefile.am): Likewise.
48725         * modules/float (Makefile.am): Likewise.
48726         * modules/getopt-posix (Makefile.am): Likewise.
48727         * modules/iconv-h (Makefile.am): Likewise.
48728         * modules/inttypes (Makefile.am): Likewise.
48729         * modules/langinfo (Makefile.am): Likewise.
48730         * modules/locale (Makefile.am): Likewise.
48731         * modules/math (Makefile.am): Likewise.
48732         * modules/netdb (Makefile.am): Likewise.
48733         * modules/netinet_in (Makefile.am): Likewise.
48734         * modules/poll-h (Makefile.am): Likewise.
48735         * modules/pthread (Makefile.am): Likewise.
48736         * modules/pty (Makefile.am): Likewise.
48737         * modules/sched (Makefile.am): Likewise.
48738         * modules/search (Makefile.am): Likewise.
48739         * modules/selinux-h (Makefile.am): Likewise.
48740         * modules/signal (Makefile.am): Likewise.
48741         * modules/spawn (Makefile.am): Likewise.
48742         * modules/stdarg (Makefile.am): Likewise.
48743         * modules/stddef (Makefile.am): Likewise.
48744         * modules/stdint (Makefile.am): Likewise.
48745         * modules/stdio (Makefile.am): Likewise.
48746         * modules/stdlib (Makefile.am): Likewise.
48747         * modules/string (Makefile.am): Likewise.
48748         * modules/strings (Makefile.am): Likewise.
48749         * modules/sys_file (Makefile.am): Likewise.
48750         * modules/sys_ioctl (Makefile.am): Likewise.
48751         * modules/sys_select (Makefile.am): Likewise.
48752         * modules/sys_socket (Makefile.am): Likewise.
48753         * modules/sys_stat (Makefile.am): Likewise.
48754         * modules/sys_time (Makefile.am): Likewise.
48755         * modules/sys_times (Makefile.am): Likewise.
48756         * modules/sys_utsname (Makefile.am): Likewise.
48757         * modules/sys_wait (Makefile.am): Likewise.
48758         * modules/sysexits (Makefile.am): Likewise.
48759         * modules/termios (Makefile.am): Likewise.
48760         * modules/time (Makefile.am): Likewise.
48761         * modules/unistd (Makefile.am): Likewise.
48762         * modules/wchar (Makefile.am): Likewise.
48763         * modules/wctype (Makefile.am): Likewise.
48765 2010-10-04  Bruno Haible  <bruno@clisp.org>
48767         read-file tests: Avoid a test failure on NonStop Kernel.
48768         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48769         a regular file.
48770         Reported by Joachim Schmitz <schmitz@hp.com>.
48772 2010-10-03  Bruno Haible  <bruno@clisp.org>
48774         gnulib-tool: Fixes for --create-testdir with --libtool.
48775         * gnulib-tool (func_get_automake_snippet): Don't augment
48776         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48777         an executable.
48778         (func_create_testdir): Handle module 'alloca' like func_import.
48779         Reported by Bruce Korb <bruce.korb@gmail.com>.
48781 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48783         Avoid some lines longer than 80 characters.
48784         * lib/stdint.in.h: Break long comment lines.
48785         * lib/math.in.h: Likewise.
48786         (_GL_NUM_UINT_WORDS): New macro, for readability.
48787         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48788         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48789         * lib/stdlib.in.h: Likewise.
48790         * lib/spawn.in.h: Likewise.
48791         * lib/sys_socket.in.h: Update an URL.
48792         * lib/sys_stat.in.h: Break long line.
48794 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48796         Improve pmccabe2html.
48797         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48798         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48799         when the sources change. Remove the line in the HTML about "Used
48800         ranges" (which implied that there might be other unused ranges),
48801         rename "Resume" to "Summary" (easier to understand for more users).
48802         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48803         styles, and some unnecessary blank lines.
48805 2010-10-03  Bruno Haible  <bruno@clisp.org>
48806             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48808         acl: Add support for ACLs on NonStop Kernel.
48809         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48810         Check whether the function aclsort() exists.
48811         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48812         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48813         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48814         (acl_nontrivial [HAVE_ACLSORT]: New function.
48815         (file_has_acl): Implement for NonStop Kernel.
48816         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48817         (qset_acl): Implement for NonStop Kernel.
48818         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48819         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48820         (main): Implement for NonStop Kernel.
48821         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48822         Kernel. Handle this flavor.
48823         * tests/test-set-mode-acl.sh: Likewise.
48824         * tests/test-copy-acl.sh: Likewise.
48825         * tests/test-copy-file.sh: Likewise.
48827 2010-10-03  Bruno Haible  <bruno@clisp.org>
48829         Info about ACLs on NonStop Kernel.
48830         * doc/acl-resources.txt: Add info about NonStop Kernel.
48831         References by Joachim Schmitz <schmitz@hp.com>.
48833 2010-10-02  Bruno Haible  <bruno@clisp.org>
48835         Define missing EDQUOT on NonStop Kernel.
48836         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48837         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48839         missing.
48840         * doc/posix-headers/errno.texi: Mention the NSK bug.
48841         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48842         Reported by Joachim Schmitz <schmitz@hp.com>.
48844 2010-10-02  Bruno Haible  <bruno@clisp.org>
48846         Update doc for POSIX:2008.
48847         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48848         Update URL of POSIX specification.
48850 2010-10-02  Bruno Haible  <bruno@clisp.org>
48852         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48853         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48854         from gnulib, not from Automake.
48856 2010-10-02  Bruno Haible  <bruno@clisp.org>
48858         New module 'system-posix'.
48859         * modules/system-posix: New file.
48860         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48861         module is present.
48862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48863         GNULIB_SYSTEM_POSIX.
48864         * modules/stdlib (Depends-on): Remove sys_wait.
48865         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48866         * doc/posix-functions/system.texi: Mention the new module.
48867         * doc/posix-headers/stdlib.texi: Likewise.
48868         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48869         define test_sys_wait_macros to a no-op.
48870         Reported by Sam Steingold <sds@gnu.org>.
48872 2010-09-30  Bruno Haible  <bruno@clisp.org>
48874         More renaming from 'getdate' to 'get_date'.
48875         * doc/get_date.texi: Renamed from doc/getdate.texi.
48876         * modules/get_date (Files): Update.
48877         * MODULES.html.sh (Date and time <time.h>): Update.
48878         * DEPENDENCIES: Update.
48879         * gnulib-tool: Update comment.
48880         * m4/bison.m4 (gl_BISON): Likewise.
48881         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48883 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48885         bootstrap: support ACLOCAL_FLAGS during aclocal
48886         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48887         can add additional -I dir for third-party .m4 files.
48889 2010-09-30  Eric Blake  <eblake@redhat.com>
48891         bootstrap: use glibtoolize on MacOS
48892         * build-aux/bootstrap (check_versions): Convert libtool into
48893         libtoolize.
48894         (tool search): Move libtool check earlier, and look for
48895         glibtoolize for MacOS.
48896         (gnulib_tool_options): Auto-add --libtool when appropriate.
48897         Reported by Justin Clift.
48899         poll: fix typo that broke test on MacOS
48900         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48901         Reported by Justin Clift.
48903         getdate: rename to get_date
48904         Note: getdate.h is not renamed, to minimize client impact.
48905         * modules/getdate: Mark obsolete.  Move old contents...
48906         * modules/get_date: ...to new module name.
48907         * modules/getdate-tests: Move...
48908         * modules/get_date-tests: ...here.
48909         * m4/getdate.m4: Move...
48910         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48911         * lib/getdate.y: Move...
48912         * lib/get_date.y: ...here.
48913         * tests/test-getdate.c: Move...
48914         * tests/test-get_date.c: ...here.
48915         * doc/posix-functions/getdate.texi (getdate): Update name.
48916         * NEWS: Mention the change.
48918 2010-09-29  Bruno Haible  <bruno@clisp.org>
48920         Separate the module 'waitpid' from the module 'sys_wait'.
48921         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48922         present.
48923         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48924         gl_MODULE_INDICATOR_FOR_TESTS.
48925         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48926         * modules/sys_wait (Depends-on): Remove waitpid.
48927         (Makefile.am): Substitute GNULIB_WAITPID.
48928         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48929         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48930         signature only if the 'waitpid' module is present.
48931         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48932         * NEWS: Mention the change.
48933         * modules/grantpt (Depends-on): Add waitpid.
48934         * modules/wait-process (Depends-on): Likewise.
48936 2010-09-29  Bruno Haible  <bruno@clisp.org>
48938         More tests for module 'sys_wait'.
48939         * modules/sys_wait-c++-tests: New file.
48940         * tests/test-sys_wait-c++.cc: New file.
48941         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48942         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48944 2010-09-29  Bruno Haible  <bruno@clisp.org>
48946         New module 'waitpid'.
48947         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48948         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48949         Don't include <process.h>.
48950         (waitpid): Declare only, using modern idiom.
48951         * m4/waitpid.m4: New file.
48952         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48953         * modules/waitpid: New file.
48954         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48955         (Makefile.am): Update.
48956         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48958 2010-09-28  Bruno Haible  <bruno@clisp.org>
48960         poll: Assume ANSI C.
48961         * lib/poll.c (poll): Use an ANSI C declaration.
48963 2010-09-28  Bruno Haible  <bruno@clisp.org>
48965         poll-h: Create poll.h on all platforms.
48966         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48967         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48968         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48969         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48970         (gl_REPLACE_POLL_H): Don't set POLL_H.
48971         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48972         * modules/poll-h (Depends-on): Add include_next.
48973         (Makefile.am): Create poll.h unconditionally. Substitute also
48974         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48976 2010-09-28  Bruno Haible  <bruno@clisp.org>
48978         Tests for module 'poll-h'.
48979         * modules/poll-h-c++-tests: New file.
48980         * tests/test-poll-h-c++.cc: New file.
48982         Tests for module 'poll-h'.
48983         * modules/poll-h-tests: New file.
48984         * tests/test-poll-h.c: New file.
48986 2010-09-28  Bruno Haible  <bruno@clisp.org>
48988         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48989         * modules/poll-h (Depends-on): Add 'extensions'.
48991 2010-09-28  Bruno Haible  <bruno@clisp.org>
48993         New module 'poll-h'.
48994         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48995         (poll): Use modern idiom.
48996         * modules/poll-h: New file.
48997         * modules/poll (Files): Remove lib/poll.in.h.
48998         (Depends-on): Add poll-h.
48999         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
49000         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
49001         * m4/poll_h.m4: New file.
49002         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
49003         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
49004         and invoke gl_REPLACE_POLL_H.
49005         * lib/poll.c: Use common idiom.
49006         * tests/test-poll.c: Likewise.
49007         * doc/posix-headers/poll.texi: Mention the poll-h module.
49008         Suggested by Eric Blake.
49010 2010-09-26  Bruno Haible  <bruno@clisp.org>
49012         sys_wait: Implement WSTOPSIG.
49013         * lib/sys_wait.in.h (WSTOPSIG): New macro.
49014         Reported by Simon Josefsson.
49016 2010-09-26  Simon Josefsson  <simon@josefsson.org>
49018         stdlib, sys_wait: Avoid compilation error on mingw.
49019         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
49021 2010-09-26  Bruno Haible  <bruno@clisp.org>
49023         stdlib tests: Avoid code duplication.
49024         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
49025         * modules/sys_wait-tests (Files): Likewise.
49026         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
49027         * tests/test-stdlib.c: Include test-sys_wait.h.
49028         (main): Invoke test_sys_wait_macros.
49029         * tests/test-sys_wait.c: Include test-sys_wait.h.
49030         (main): Invoke test_sys_wait_macros.
49032 2010-09-25  Simon Josefsson  <simon@josefsson.org>
49034         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
49035         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
49036         sure Windows sockets are working before calling getaddrinfo.
49037         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
49038         * doc/gnulib.texi (Windows sockets): Fix typo.
49040 2010-09-25  Bruno Haible  <bruno@clisp.org>
49042         Tests for module 'regex-quote'.
49043         * modules/regex-quote-tests: New file.
49044         * tests/test-regex-quote.c: New file.
49046         New module 'regex-quote'.
49047         * lib/regex-quote.h: New file.
49048         * lib/regex-quote.c: New file.
49049         * modules/regex-quote: New file.
49050         Suggested by Reuben Thomas <rrt@sc3d.org>.
49052 2010-09-24  Bruno Haible  <bruno@clisp.org>
49054         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
49055         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
49057 2010-09-23  Bruno Haible  <bruno@clisp.org>
49059         setenv: Relax license.
49060         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
49061         Blake.
49062         Requested by Eric Blake.
49064 2010-09-22  Bruno Haible  <bruno@clisp.org>
49066         termios: Relax license.
49067         * modules/termios (License): Change to LGPLv2+.
49068         Requested by Eric Blake.
49070 2010-09-22  Bruno Haible  <bruno@clisp.org>
49072         threadlib: Allow the package to change the default to 'no'.
49073         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
49074         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
49075         Reported by Paul Eggert.
49077 2010-09-22  Pádraig Brady  <P@draigbrady.com>
49078             Bruno Haible  <bruno@clisp.org>
49080         Fix endless loop in mbmemcasecoll.
49081         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
49082         byte.
49083         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
49085 2010-09-22  Bruno Haible  <bruno@clisp.org>
49087         Tests for module 'memcoll'.
49088         * modules/memcoll-tests: New file.
49089         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
49091         memcoll, xmemcoll: Clarify size vs. length.
49092         * modules/memcoll.c (memcoll0): Clarify specification.
49093         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
49094         passed to collate_error.
49096 2010-09-22  Bruno Haible  <bruno@clisp.org>
49098         Tests for module 'memcasecmp'.
49099         * modules/memcasecmp-tests: New file.
49100         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
49102 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49104         * lib/pthread.in.h: Add split double-inclusion guard, and include
49105         system <pthread.h> if there is one.  Use @@-style as in other
49106         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
49107         pthread.h doesn't.
49108         (pthread_mutexattr_destroy, pthread_mutexattr_init):
49109         (pthread_mutexattr_settype, pthread_mutex_trylock):
49110         New static inline functions, if there's no system <pthread.h>.
49111         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
49112         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
49113         Approximate with mutexes if the system lacks spinlocks, as in
49114         MacOS.
49115         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
49116         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
49117         @@-style.  Check for spinlocks separately.
49118         (gl_PTHREAD_DEFAULTS): New macro.
49119         * modules/pthread: Redo to use a more typical style for in.h files.
49121 2010-09-21  Eric Blake  <eblake@redhat.com>
49123         net_if: enhance tests
49124         * tests/test-net_if.c (main): Move signature checks earlier.
49125         Print failures to stderr.
49126         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
49127         Document the bug that we do not yet fix.
49129 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49131         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
49132         about gnulib, not GSS.
49134 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49136         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
49137         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
49138         for Emacs.
49139         * build-aux/pmccabe2html: Make Makefile.am example code more
49140         cut-and-paste friendly.
49142 2010-09-21  Simon Josefsson  <simon@josefsson.org>
49144         * tests/test-net_if.c: New file.
49145         * modules/net_if-tests: New file.
49147 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49149         pthread: add pthread_spin_destroy
49150         * lib/pthread.in.h (pthread_spin_destroy): New function.
49152 2010-09-19  Bruno Haible  <bruno@clisp.org>
49154         gnulib-tool: Fix --help output.
49155         * gnulib-tool (func_usage): Fix help message.
49156         Reported by Reuben Thomas <rrt@sc3d.org>.
49158 2010-09-18  Jim Meyering  <meyering@redhat.com>
49160         maint.mk: avoid unexpanded \n in two diagnostics
49161         * top/maint.mk (sc_prohibit_always_true_header_tests):
49162         Don't use a literal \n in a halt=... assignment.  It would not be
49163         expanded, and the two \n bytes would appear in the diagnostic output
49164         rather than the desired newline.  Use halt=$$(printf ... instead.
49165         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49167 2010-09-18  Bruno Haible  <bruno@clisp.org>
49169         netinet_in: Doc tweak.
49170         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
49171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49173 2010-09-18  Jim Meyering  <meyering@redhat.com>
49175         init.sh: correct an outdated comment
49176         * tests/init.sh (create_exe_shims_):  s/function/alias/
49178         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
49179         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
49180         a file named "*.exe" is removed between the glob expansion and the
49181         processing of that oddly named file.
49183 2010-09-17  Eric Blake  <eblake@redhat.com>
49185         mirbsd: add some more support
49186         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
49187         in BSD family.
49188         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
49189         devices as OpenBSD.
49190         * m4/host-os.m4 (mirbsd): Add MirBSD.
49192         tests: fix unportable assumption on sys/wait.h
49193         * tests/test-sys_wait.c (main): Relax test.
49194         * tests/test-stdlib.c (main): Likewise.
49196         init.sh: accommodate directory with no .exes
49197         * tests/init.sh: Accomodate directory containing only scripts.
49199         tests: avoid compiler warning
49200         * tests/test-stdlib.c (main): Use the variable.
49202         fdutimens, fdutimensat: update signature, again
49203         * lib/utimens.h (gl_futimens): Delete, and move signature...
49204         (fdutimens): ...here.
49205         (fdutimensat): Rearrange signature.
49206         (lutimensat): Rename variable for clarity.
49207         * lib/fdutimensat.c (fdutimensat): Update signature.
49208         * lib/utimens.c (fdutimens): Likewise.
49209         (gl_futimens): Delete.
49210         (utimens, lutimens): Update callers.
49211         * lib/futimens.c (futimens): Likewise.
49212         * tests/test-fdutimensat.c: Likewise.
49213         * tests/test-utimens.c: Likewise.
49214         * tests/test-futimens.h: Update comment.
49215         * NEWS: Mention this.
49216         Suggested by Paul Eggert.
49218 2010-09-17  Bruno Haible  <bruno@clisp.org>
49220         Take over the maintenance of some older macros from Autoconf.
49221         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
49222         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
49223         GNU Autoconf.
49224         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
49225         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
49227 2010-09-17  Eric Blake  <eblake@redhat.com>
49229         fdutimensat: drop atflag validation
49230         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
49231         with valid fd, to close a race scenario where futimens is
49232         unsupported and FILE was replaced by a symlink.
49233         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
49234         accordingly.
49235         Suggested by Paul Eggert.
49237 2010-09-16  Bruno Haible  <bruno@clisp.org>
49239         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
49240         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
49242 2010-09-16  Bruno Haible  <bruno@clisp.org>
49244         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
49245         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
49246         login_tty exists.
49247         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49249 2010-09-16  Bruno Haible  <bruno@clisp.org>
49251         login_tty: Make the replacement code work on BSD systems.
49252         * lib/login_tty.c: Include <sys/ioctl.h>.
49253         (login_tty): Use ioctl TIOCSCTTY when available.
49254         * modules/login_tty (Depends-on): Add sys_ioctl.
49255         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49257 2010-09-16  Bruno Haible  <bruno@clisp.org>
49259         login_tty: Stricter unit test.
49260         * modules/login_tty-tests (Depends-on): Add tcgetsid.
49261         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
49262         and tcgetsid() after login_tty.
49263         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49265 2010-09-16  Bruno Haible  <bruno@clisp.org>
49267         New module 'tcgetsid'.
49268         * lib/tcgetsid.c: New file.
49269         * m4/tcgetsid.m4: New file.
49270         * modules/tcgetsid: New file.
49271         * modules/termios (Depends-on): Add c++defs, warn-on-use.
49272         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
49273         GNULIB_TCGETSID, HAVE_TCGETSID.
49274         * lib/termios.in.h: Include <sys/types.h>.
49275         (tcgetsid): New declaration.
49276         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
49277         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
49278         * doc/posix-functions/tcgetsid.texi: Mention the new module.
49279         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
49281 2010-09-16  Bruno Haible  <bruno@clisp.org>
49283         Tests for module 'termios'.
49284         * modules/termios-c++-tests: New file.
49285         * modules/termios-tests: New file.
49286         * tests/test-termios-c++.cc: New file.
49287         * tests/test-termios.c: New file.
49289         New module 'termios'.
49290         * modules/termios: New file.
49291         * lib/termios.in.h: New file.
49292         * m4/termios_h.m4: New file.
49293         * doc/posix-headers/termios.texi: Mention the new module.
49295 2010-09-16  Eric Blake  <eblake@redhat.com>
49297         fdutimensat: add an atflag parameter
49298         * lib/fdutimensat.c (fdutimensat): Add new parameter.
49299         * lib/utimens.h (fdutimensat): Update prototype.
49300         * tests/test-fdutimensat.c: Adjust test to match.
49301         * NEWS: Document the change.
49302         Suggested by Paul Eggert.
49304 2010-09-16  Bruno Haible  <bruno@clisp.org>
49306         Fix typos in comments.
49307         * lib/striconveh.h: Fix typo in comment.
49308         * lib/login_tty.c (login_tty): Likewise.
49310 2010-09-15  Bruno Haible  <bruno@clisp.org>
49312         stdlib: clarify MirBSD WEXITSTATUS bug
49313         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
49314         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49316 2010-09-15  Eric Blake  <eblake@redhat.com>
49318         stdlib: work around MirBSD WEXITSTATUS bug
49319         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
49320         * modules/stdlib (Depends-on): Add sys_wait.
49321         * tests/test-sys_wait.c (main): Enhance test.
49322         * tests/test-stdlib.c (main): Likewise.
49323         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
49325         docs: mention MacOS issue with WEXITSTATUS(constant)
49326         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
49327         issue.
49328         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49330         strnlen: add tests
49331         * modules/strnlen-tests: New file.
49332         * tests/test-strnlen.c: Likewise.
49334 2010-09-14  Bruno Haible  <bruno@clisp.org>
49336         unistr/base: Avoid link errors when module 'libunistring' is also used.
49337         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
49338         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
49339         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
49340         Declare also when HAVE_LIBUNISTRING is set.
49341         Reported by Pádraig Brady <P@draigbrady.com>.
49343 2010-09-14  Eric Blake  <eblake@redhat.com>
49345         test-rawmemchr: make more robust
49346         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
49347         (Depends-on, configure.ac): Add needed prerequisites to use it.
49348         * modules/memchr-tests (Files, Depends-on, configure.ac):
49349         Likewise, to avoid implicit reliance on memchr module prereqs.
49350         * tests/test-memchr.c (main): Ensure proper masking.
49351         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
49352         reads.
49354         memchr: detect glibc Alpha bug
49355         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
49356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49357         Alpha.
49358         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49359         * tests/test-memchr.c (main): Enhance test.
49360         Reported by Nelson H. F. Beebe.
49362 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49364         fts, getcwd, glob: audit for dirfd returning -1
49365         * lib/fts.c (opendir): Remove #define; no longer used.
49366         (opendirat): New arg PDIR_FD.  All callers changed.
49367         (fts_build, _opendir2): Use new opendirat to avoid the need for
49368         dirfd, or for checking whether dirfd returns a negative value.
49369         Don't use opendir; always use openat followed by fdopendir.
49370         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49371         it.
49372         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49373         returns -1 here.
49374         * modules/fts (Depends-on): Remove dirfd.
49375         * modules/getcwd (Depends-on): Likewise.
49377 2010-09-13  Eric Blake  <eblake@redhat.com>
49379         float: fix broken MirBSD header
49380         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49381         * doc/posix-headers/float.texi (float.h): Document it.
49383 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49385         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49386         * lib/fts.c (opendirat): New arg extra_flags.
49387         (__opendir2): Use it to avoid following symlinks when opening
49388         a directory, if symlinks are not supposed to be followed.  See
49389         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49391         fdopendir: preserve argument fd before returning
49392         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49393         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49394         (fdopendir): Use them, arranging for FD to be open to the same
49395         directory that it was when it started.  (It might be temporarily
49396         closed while fdopendir is running, so this not thread- or
49397         signal-safe.)  Be careful to do the right thing even when file
49398         descriptors are scarce and dup fails with errno == EMFILE.  See
49399         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49401 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49403         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49404         * NEWS: Document change.
49405         * m4/regex.m4: Disable test for regoff_t size.
49407 2010-09-13  Jim Meyering  <meyering@redhat.com>
49409         fts: don't operate on an invalid file descriptor after failed dup
49410         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49411         negative file descriptor.
49413 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49415         savedir: add streamsavedir, deprecate fdsavedir
49416         * NEWS: Mention deprecation of fdsavedir.
49417         * lib/savedir.c (streamsavedir): New extern function, whose name
49418         ends in "savedir" to be consistent with the others.  This differs
49419         from savedirstream in that it doesn't close its argument.  The
49420         next version of GNU tar will use this instead of fdsavedir, to
49421         avoid some race conditions and conserve file descriptors.
49422         (savedirstream): Reimplement as a wrapper around streamsavedir.
49423         (fdsavedir): Add a comment deprecating this function.  As far as
49424         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49425         * lib/savedir.h (streamsavedir): New decl.
49426         (fdsavedir): Add a comment deprecating this.
49428 2010-09-10  Bruno Haible  <bruno@clisp.org>
49430         langinfo: Fix last commit.
49431         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49432         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49435 2010-09-10  Bruno Haible  <bruno@clisp.org>
49437         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49438         * lib/progreloc.c (O_EXEC): Define fallback.
49440 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49442         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49443         * NEWS: Document recent changes to fcntl-h.
49444         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49445         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49446         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49447         Similarly for O_SEARCH; this last was already true, but not documented.
49448         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49449         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49450         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49451         Likewise.
49452         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49453         is zero, not whether it is defined.
49454         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49455         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49456         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49458 2010-09-10  Bruno Haible  <bruno@clisp.org>
49460         langinfo, nl_langinfo: Fix for IRIX 5.3.
49461         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49462         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49463         HAVE_LANGINFO_YESEXPR.
49464         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49465         HAVE_LANGINFO_YESEXPR.
49466         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49467         HAVE_LANGINFO_T_FMT_AMPM is 0.
49468         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49469         HAVE_LANGINFO_YESEXPR is 0.
49470         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49471         NOEXPR.
49472         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49473         * doc/posix-functions/nl_langinfo.texi: Likewise.
49474         Reported by Eric Blake.
49476 2010-09-10  Bruno Haible  <bruno@clisp.org>
49478         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49479         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49480         on FreeBSD 8.0 and OpenBSD 4.6.
49481         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49482         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49483         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49484         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49485         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49486         ac_includes_default.
49487         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49489 2010-09-09  Eric Blake  <eblake@redhat.com>
49491         strsignal: work around NetBSD bug
49492         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49493         * lib/string.in.h (includes): Likewise.
49494         * doc/posix-functions/strsignal.texi (strsignal): Document the
49495         bug.
49496         Reported by Nelson H. F. Beebe.
49498         gnulib-tool: work with NetBSD /bin/sh
49499         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49500         (func_get_description, func_get_comment, func_get_status)
49501         (func_get_notice, func_get_applicability, func_get_filelist)
49502         (func_get_dependencies, func_get_autoconf_early_snippet)
49503         (func_get_autoconf_snippet, func_get_automake_snippet)
49504         (func_get_include_directive, func_get_link_directive)
49505         (func_get_license, func_get_maintainer, func_import): Avoid
49506         shell syntax errors from parsing syntax extensions.
49508 2010-09-09  Bruno Haible  <bruno@clisp.org>
49510         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49511         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49512         a reliable way to determine whether the 'alias' command works.
49514 2010-09-08  Jim Meyering  <meyering@redhat.com>
49516         init.sh: penalize a set-x-impaired shell; don't disqualify it
49517         * tests/init.sh: Too many shells corrupt application stderr when
49518         you set -x, so we can't afford to disqualify them, since at least
49519         on Irix-6.5, that would disqualify all bourne shells.
49520         Instead, use a two-pass approach.
49521         On the first pass, try to find a shell that meets the stricter
49522         condition that set -x does not corrupt stderr.
49523         If no shell meets the stricter condition, retest each candidate
49524         shell, but without that extra condition.  Finally, when
49525         VERBOSE=yes is requested and set -x might cause trouble, simply
49526         issue a warning and refrain from enabling debug output.
49528 2010-09-08  Eric Blake  <eblake@redhat.com>
49530         unsetenv: fix OpenBSD bug
49531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49532         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49533         documentation.
49534         Reported by Jim Meyering.
49536         strtod: work around IRIX 6.5 bug
49537         * lib/strtod.c (strtod): Reparse number on shorter string if
49538         exponent parse was invalid.
49539         * tests/test-strtod.c (main): Add check for "0x1p 2".
49540         Reported by Tom G. Christensen.
49542         getopt: optimize previous patch
49543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49544         empty variable.  Speed up awk script.
49545         Reported by Paolo Bonzini.
49547 2010-09-08  Jim Meyering  <meyering@redhat.com>
49549         test.sh: disqualify shells for which set -x corrupts stderr
49550         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49551         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49552         appear in stderr output.  For example, this command:
49553             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49554         prints "P=1" on those two systems:
49556 2010-09-08  Bruno Haible  <bruno@clisp.org>
49558         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49559         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49560         commands, because some shells ignore redirections when there is an
49561         error in the command lookup.
49562         Reported by Eric Blake.
49564 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49566         * lib/regex.h: Fix a mention of `regex_compile' (should be
49567         `re_compile_pattern').
49568         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49569         (re_set_registers): Correct name of parameter in comment.
49571         * doc/regex.texi: Add documentation for missing syntax flags.
49572         Remove commented-out documentation of defunct syntax option
49573         RE_NO_EMPTY_ALTS.
49574         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49575         Add documentation of re_set_registers.
49576         Document trick to re-use a pattern buffer by setting fastmap manually.
49577         Update documentation of struct re_pattern_buffer per public members.
49578         Uncomment documentation of equivalence class operators and
49579         collating symbol operators, since they are now implemented,
49580         Explain leftmost-longest matching in relation to alternatives.
49581         Tidy documentation of substring matching.
49582         Remove POSIX documentation, which is done better in
49583         glibc, and refer the reader there. Keep BSD API documentation, as
49584         that is not readily available elsewhere.
49586 2010-09-07  Eric Blake  <eblake@redhat.com>
49588         getopt: handle POSIXLY_CORRECT set but not exported
49589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49590         export state of POSIXLY_CORRECT, due to bash set -o posix.
49591         Reported by Dustin J. Mitchell.
49593 2010-09-05  Bruno Haible  <bruno@clisp.org>
49595         gnulib-tool: Highlight the changed options.
49596         * gnulib-tool (func_usage): Display the --import, --add-import,
49597         --remove-import explanations in bold font.
49599 2010-09-06  Karl Berry  <karl@gnu.org>
49601         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49603 2010-09-05  Bruno Haible  <bruno@clisp.org>
49605         uniwidth/width: Update comment.
49606         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49607         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49609 2010-09-05  Bruno Haible  <bruno@clisp.org>
49611         isinf, isnan: Relax license.
49612         * modules/isinf (License): Change from GPL to LGPL, with consent from
49613         Ben Pfaff.
49614         * modules/isnan (License): Likewise.
49615         Requested by Ludovic Courtès.
49617 2010-09-04  Bruno Haible  <bruno@clisp.org>
49619         gnulib-tool: Help migration from --import to --add-import or --update.
49620         * gnulib-tool: Emit a verbose error message when --import is used
49621         without any module name.
49623 2010-09-04  Bruno Haible  <bruno@clisp.org>
49625         Update doc about gnulib-tool.
49626         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49627         'gnulib-tool --update' in more detail.
49628         Reported by Eric Blake.
49630 2010-09-04  Bruno Haible  <bruno@clisp.org>
49632         gnulib-tool: Change --import. New options --add/remove-import.
49633         * gnulib-tool: New options --add-import, --remove-import.
49634         (func_usage): Document them.
49635         (have_associative): Define always.
49636         (func_import): In import mode, don't merge the specified settings with
49637         the cached settings. Implement remove-import mode.
49638         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49639         Explain when to use them versus --import.
49640         (Simple update): Use --add-import instead of --import.
49641         * NEWS: Mention the change.
49643 2010-09-04  Bruno Haible  <bruno@clisp.org>
49645         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49646         separate gnulib.mk.
49648 2010-09-04  Bruno Haible  <bruno@clisp.org>
49650         gnulib-tool: Don't talk about CVS any more.
49651         * gnulib-tool (func_usage, func_import): Write "version control"
49652         instead of CVS.
49654 2010-09-04  Jim Meyering  <meyering@redhat.com>
49656         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49657         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49658         false positives (whose names may be ill-chosen) when searching
49659         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49660         would cause a false-positive.
49662         avoid coreutils "make distcheck" failure
49663         Coreutils tests with an absolute build directory name that contains
49664         a space.  Not quoting this directory name caused a failure.
49665         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49666         * tests/test-vc-list-files-cvs.sh: Likewise.
49668 2010-09-04  Bruno Haible  <bruno@clisp.org>
49670         gnulib-tool: Avoid error when run in a package without Makefile.am.
49671         * gnulib-tool: When collecting the m4dirs in a package that does not
49672         have a Makefile.am, eliminate those directories that contain no
49673         gnulib-cache.m4. Fix expression that counts these directories.
49675 2010-09-04  Bruno Haible  <bruno@clisp.org>
49677         update-copyright test: Improve output when perl is missing or too old.
49678         * tests/test-update-copyright.sh: Move test of Perl version down after
49679         the test whether Perl exists. Provide an explanation relating Perl's
49680         error message to Automake's SKIP: message.
49682 2010-09-04  Bruno Haible  <bruno@clisp.org>
49684         Don't augment PATH in TESTS_ENVIRONMENT.
49685         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49686         set abs_aux_dir instead of augmenting PATH.
49687         * modules/vc-list-files-tests (Makefile.am): Likewise.
49688         * tests/test-update-copyright.sh: Augment PATH here.
49689         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49690         path_prepend_.
49691         * tests/test-vc-list-files-git.sh: Likewise.
49693 2010-09-04  Jim Meyering  <meyering@redhat.com>
49695         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49696         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49698 2010-09-04  Bruno Haible  <bruno@clisp.org>
49700         strdup: Fix compilation error in C++ mode.
49701         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49702         the macro.
49704 2010-09-04  Bruno Haible  <bruno@clisp.org>
49706         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49707         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49708         macro into a function.
49709         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49711 2010-09-04  Bruno Haible  <bruno@clisp.org>
49713         Set PATH_SEPARATOR the same way autoconf does.
49714         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49715         the value of PATH_SEPARATOR the same way autoconf-generated configure
49716         scripts do.
49717         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49718         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49720 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49722         Set PATH_SEPARATOR the same way autoconf does.
49723         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49724         the same way autoconf-generated configure scripts do.
49725         * posix-modules: Likewise.
49727 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49729         hash: fix safe_hasher const typo
49730         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49731         const; otherwise, there is a type error later.
49733 2010-09-02  Jim Meyering  <meyering@redhat.com>
49735         test-update-copyright.sh: require perl 5.8.0
49736         * tests/test-update-copyright.sh: Require 5.8.0,
49737         which Tom G. Christensen has confirmed is adequate,
49738         while 5.6.1 is not.
49740 2010-09-02  Eric Blake  <eblake@redhat.com>
49742         tests: init.sh improvements for re-exec'ing with zsh
49743         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49744         -vx through shell re-exec.
49745         Reported by Tom G. Christensen.
49747         wctype: fix typo in previous commit
49748         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49749         Reported by Ludovic Courtès.
49751 2010-09-02  Jim Meyering  <meyering@redhat.com>
49753         test-update-copyright.sh: skip test if Perl is too old
49754         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49755         Reported by Tom G. Christensen.
49757 2010-09-02  Bruno Haible  <bruno@clisp.org>
49759         wctype: Avoid compilation error on IRIX 6.5.30.
49760         * lib/wctype.in.h (iswblank): Declare with a replacement if
49761         REPLACE_ISWBLANK is set.
49762         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49763         declared. Set REPLACE_ISWBLANK.
49764         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49765         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49766         * doc/posix-headers/wctype.texi: Likewise.
49767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49769 2010-09-01  Bruno Haible  <bruno@clisp.org>
49771         New module 'socketlib'.
49772         * modules/socketlib: New file.
49773         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49774         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49775         * modules/sockets (Depends-on): Add socketlib.
49776         Suggested by Sam Steingold <sds@gnu.org>.
49778 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49780         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49782         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49783         when one needs search access to a directory but not read access.
49784         On systems where it is available, it works in some cases where
49785         O_RDONLY does not, namely on directories that are searchable but
49786         not readable, and which need only to be searchable.  If O_SEARCH
49787         is not available, fall back to the traditional method of using
49788         O_RDONLY.
49790         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49791         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49792         when opening a directory that needs only to be searchable.
49793         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49794         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49795         * lib/openat-proc.c (openat_proc_name): Likewise.
49796         * lib/openat.c (openat_needs_fchdir): Likewise.
49797         * lib/save-cwd.c (save_cwd): Likewise.
49798         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49800 2010-08-28  Bruno Haible  <bruno@clisp.org>
49802         New module 'host-cpu-c-abi'.
49803         * modules/host-cpu-c-abi: New file.
49804         * m4/host-cpu-c-abi.m4: New file, based on part of
49805         clisp/src/m4/general.m4.
49806         Requested by Sam Steingold <sds@gnu.org>.
49808 2010-08-31  Eric Blake  <eblake@redhat.com>
49809         and Jim Meyering  <meyering@redhat.com>
49811         hash: factor, and guard against misbehaving hasher function
49812         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49813         of table->hasher's return value.  Also protect against a hash value
49814         so large that adding it to table->bucket results in a NULL pointer.
49815         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49816         Use it in place of open-coded check-and-abort.
49818 2010-08-30  Bruno Haible  <bruno@clisp.org>
49820         hash: silence spurious clang warning
49821         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49822         Reported by Eric Blake.
49824 2010-08-30  Eric Blake  <eblake@redhat.com>
49826         strstr, memmem, strcasestr: avoid leaked shell message
49827         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49828         FreeBSD.
49829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49832         tests: silence clang warning
49833         * tests/test-malloca.c (do_allocation): Avoid dead store.
49835 2010-08-29  Bruno Haible  <bruno@clisp.org>
49837         gettext: Fix recent mistake.
49838         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49840 2010-08-29  Bruno Haible  <bruno@clisp.org>
49842         selinux-h: Offer a --without-selinux option.
49843         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49844         --without-selinux was specified, skip all tests and define
49845         HAVE_SELINUX_SELINUX_H to 0.
49846         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49847         set LIB_SELINUX to empty.
49848         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49849         gl_LIBSELINUX. If --without-selinux was specified, replace
49850         selinux/context.h.
49851         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49853 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49854             Bruno Haible  <bruno@clisp.org>
49856         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49857         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49858         of HAVE_REALLOC.
49859         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49860         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49861         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49862         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49864 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49865             Bruno Haible  <bruno@clisp.org>
49867         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49868         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49869         HAVE_CALLOC.
49870         * lib/xmalloc.c: Update accordingly.
49871         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49872         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49873         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49875 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49876             Bruno Haible  <bruno@clisp.org>
49878         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49879         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49880         HAVE_MALLOC.
49881         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49882         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49883         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49885 2010-08-29  Bruno Haible  <bruno@clisp.org>
49887         Update modules list.
49888         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49889         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49890         (String handling <string.h>): Add astrxfrm.
49891         (File system functions): Add readlinkat.
49893 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49895         Tests for module 'realloc-gnu'.
49896         * modules/realloc-gnu-tests: New file.
49897         * tests/test-realloc-gnu.c: New file.
49899         Tests for module 'calloc-gnu'.
49900         * modules/calloc-gnu-tests: New file.
49901         * tests/test-calloc-gnu.c: New file.
49903         Tests for module 'malloc-gnu'.
49904         * modules/malloc-gnu-tests: New file.
49905         * tests/test-malloc-gnu.c: New file.
49907 2010-08-28  Bruno Haible  <bruno@clisp.org>
49909         Rename module 'realloc' -> 'realloc-gnu'.
49910         * modules/realloc-gnu: New file, copied from modules/realloc.
49911         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49912         obsolete.
49913         * modules/mgetgroups (Depends-on): Update.
49914         * doc/posix-functions/realloc.texi: Update.
49915         * NEWS: Mention the change.
49917         Rename module 'calloc' -> 'calloc-gnu'.
49918         * modules/calloc-gnu: New file, copied from modules/calloc.
49919         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49920         obsolete.
49921         * doc/posix-functions/calloc.texi: Update.
49922         * NEWS: Mention the change.
49924         Rename module 'malloc' -> 'malloc-gnu'.
49925         * modules/malloc-gnu: New file, copied from modules/malloc.
49926         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49927         obsolete.
49928         * modules/argp (Depends-on): Update.
49929         * modules/regex (Depends-on): Update.
49930         * doc/posix-functions/malloc.texi: Update.
49931         * NEWS: Mention the change.
49933 2010-08-28  Eric Blake  <eblake@redhat.com>
49935         pread, pwrite: add missing dependency
49936         * modules/pread (Depends-on): Add extensions.
49937         * modules/pwrite (Depends-on): Likewise.
49939 2010-08-28  Bruno Haible  <bruno@clisp.org>
49941         unistr/u*-strchr: Fix tests dependencies.
49942         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49943         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49944         Reported by Ian Beckwith <ianb@erislabs.net>.
49946 2010-08-28  Bruno Haible  <bruno@clisp.org>
49948         read-file: Don't occupy too much unused memory.
49949         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49951 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49952             Eric Blake  <eblake@redhat.com>
49953             Bruno Haible  <bruno@clisp.org>
49955         read-file: Avoid memory reallocations with regular files.
49956         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49957         (fread_file): With regular files, use the remaining length as the
49958         initial buffer size.  Check against overflow.
49959         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49960         sys_stat.
49962 2010-08-28  Bruno Haible  <bruno@clisp.org>
49964         ftello: Relax license.
49965         * modules/ftello (License): Relax to LGPLv2+.
49966         Reported by Eric Blake.
49968 2010-08-28  Bruno Haible  <bruno@clisp.org>
49970         Avoid relocwrapper link errors due to gnulib replacement functions.
49971         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49972         function.
49973         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49975 2010-08-28  Bruno Haible  <bruno@clisp.org>
49977         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49978         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49979         defined.
49980         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49981         Suggested by Eric Blake.
49983 2010-08-28  Bruno Haible  <bruno@clisp.org>
49985         sys_socket, netdb: Ensure socklen_t gets defined.
49986         * modules/sys_socket (Depends-on): Add socklen.
49987         * modules/netdb (Depends-on): Likewise.
49988         * modules/getaddrinfo (Depends-on): Remove socklen.
49989         * modules/getsockopt (Depends-on): Likewise.
49990         * modules/setsockopt (Depends-on): Likewise.
49991         * tests/test-sys_socket.c: Check that socklen_t is defined.
49992         * tests/test-netdb.c: Likewise.
49993         * m4/socklen.m4: Update comments.
49994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49996 2010-08-27  Eric Blake  <eblake@redhat.com>
49998         login_tty: add missing dependency
49999         * modules/login_tty (Depends-on): Add pty.
50001 2010-08-26  Eric Blake  <eblake@redhat.com>
50003         lib-symbol-versions: fix m4 quoting
50004         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
50005         format for AC_LINK_IFELSE.
50007         glob: fix compile test
50008         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
50010         btowc: fix missing file
50011         * modules/btowc (Files): Also ship locale-fr.m4.
50013         lseek: fix link test
50014         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
50015         AC_LINK_IFELSE.
50017         include_next: silence autoconf 2.68 warning
50018         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
50019         AC_COMPILE_IFELSE as special.
50020         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
50021         autoconf < 2.68.
50023         acl: fix compilation test
50024         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
50025         AC_COMPILE_IFELSE.
50027 2010-08-26  Bruno Haible  <bruno@clisp.org>
50029         Modernize AC_TRY_RUN invocations.
50030         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
50031         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
50032         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
50033         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
50034         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
50035         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50036         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
50037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50038         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
50039         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
50040         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
50041         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50042         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
50043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
50045         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
50046         gl_MBRLEN_NUL_RETVAL): Likewise.
50047         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50048         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50049         Likewise.
50050         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50051         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
50052         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
50053         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
50054         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
50055         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
50056         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
50057         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
50058         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
50059         Likewise.
50060         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50061         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
50062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50063         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50064         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50065         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
50066         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
50067         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
50068         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50071 2010-08-26  Bruno Haible  <bruno@clisp.org>
50073         Modernize AC_TRY_LINK invocations.
50074         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
50075         AC_TRY_LINK.
50076         * m4/argp.m4 (gl_ARGP): Likewise.
50077         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
50078         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
50079         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50080         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50081         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50082         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
50083         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
50084         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
50085         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50086         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50087         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50088         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
50089         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
50090         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
50091         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50092         * m4/hostent.m4 (gl_HOSTENT): Likewise.
50093         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
50094         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
50095         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50096         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
50097         Likewise.
50098         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
50099         Likewise.
50100         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
50101         Likewise.
50102         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
50104         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
50105         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
50106         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
50107         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50108         * m4/servent.m4 (gl_SERVENT): Likewise.
50109         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
50110         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
50111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
50112         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
50113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50114         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50115         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50116         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50117         * modules/tsearch-tests (configure.ac): Likewise.
50119 2010-08-26  Bruno Haible  <bruno@clisp.org>
50121         Modernize AC_TRY_COMPILE invocations.
50122         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
50123         AC_TRY_COMPILE.
50124         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
50125         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
50126         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50127         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50128         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50129         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50130         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50131         * m4/lock.m4 (gl_LOCK): Likewise.
50132         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
50133         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50134         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
50135         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
50136         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50137         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
50138         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50139         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
50140         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50141         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50142         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50143         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50144         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
50145         extraneous semicolon.
50147 2010-08-26  Jim Meyering  <meyering@redhat.com>
50149         stat-time: relax license LGPL
50150         * modules/stat-time (License): Change from GPL to LGPL,
50151         with consent from all contributors, for use in libguile.
50152         Requested by Ludovic Courtès.
50154 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
50156         poll: return immediately on POLLHUP.
50157         * lib/poll.c (poll): Always set timeout before wait_timeout is
50158         computed.
50160 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50162         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
50163         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
50164         rmdir ("dir/.//"), unlinkat.
50166 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50168         stdbool: avoid spurious failure with modern xlc
50169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50171 2010-08-24  Bruno Haible  <bruno@clisp.org>
50173         getloadavg: simplify code
50174         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
50175         gl_have_func. Update comments.
50177 2010-08-24  Eric Blake  <eblake@redhat.com>
50179         getloadavg: don't define SVR4 on cygwin
50180         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
50181         only define SVR4 when -lkvm is required.
50182         Reported by Yaakov Selkowitz.
50184 2010-08-24  Bruno Haible  <bruno@clisp.org>
50186         priv-set: fix comment
50187         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
50189 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50191         priv-set: fix comments
50192         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
50193         to match code, as suggested by David Bartley in:
50194         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
50196 2010-08-23  Eric Blake  <eblake@redhat.com>
50198         stdbool: avoid rejecting clang
50199         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50200         * tests/test-stdbool.c: Enable more tests if using the system
50201         <stdbool.h> instead of the gnulib replacement.
50202         (main): Move xlc bug test to a runtime test for all compilers.
50203         Reported by Anders Kaseorg.
50205         argz: fix shell quoting issue
50206         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
50207         Reported by Charles Wilson.
50209 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
50210             Erik Faye-Lund <kusmabite@gmail.com>
50212         poll, select: handle ERROR_BROKEN_PIPE.
50213         * lib/poll.c (win32_compute_revents): Return POLLHUP when
50214         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50215         * lib/select.c (win32_compute_revents): Do not mark a pipe
50216         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50218 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
50220         fts: allow compilation with C++
50221         * lib/fts_.h: Specify extern "C" linkage with C++.
50223 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50225         Fix gnulib-tool sed script de-commentation for AIX sed.
50226         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
50227         sed.
50229 2010-08-17  Eric Blake  <eblake@redhat.com>
50231         test-stddef: test for (some) offsetof bugs
50232         * tests/test-stddef.c: Enhance test to ensure correct type of
50233         offsetof.
50234         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
50235         that we are not fixing at this time.
50237 2010-08-15  Bruno Haible  <bruno@clisp.org>
50239         stpncpy: Allow stpncpy to be defined as a macro.
50240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
50241         if it's already correctly declared.
50242         * lib/string.in.h (stpncpy): Undefine before redefining.
50243         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
50245 2010-08-14  Bruno Haible  <bruno@clisp.org>
50247         Rename module 'memxfrm' to 'amemxfrm'.
50248         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
50249         (amemxfrm): Renamed from memxfrm.
50250         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
50251         (amemxfrm): Renamed from memxfrm.
50252         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
50253         * NEWS: Mention the change.
50254         * MODULES.html.sh (String handling <string.h>): Update.
50255         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
50256         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
50257         * lib/unicase/u16-casexfrm.c: Likewise.
50258         * lib/unicase/u32-casexfrm.c: Likewise.
50259         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
50260         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
50261         * lib/uninorm/u16-normxfrm.c: Likewise.
50262         * lib/uninorm/u32-normxfrm.c: Likewise.
50263         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
50264         memxfrm.
50265         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
50266         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
50267         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
50268         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
50269         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
50270         Suggested by Paul Eggert.
50272 2010-08-14  Bruno Haible  <bruno@clisp.org>
50274         Tests for module 'astrxfrm'.
50275         * modules/astrxfrm-tests: New file.
50276         * tests/test-astrxfrm.c: New file.
50278         New module 'astrxfrm'.
50279         * lib/astrxfrm.h: New file.
50280         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
50281         * modules/astrxfrm: New file.
50283 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
50285         regex: Tweak doc.
50286         * doc/regex.texi (Overview): Don't mention regex.c.
50287         (GNU Regular Expression Compiling): Likewise.
50288         (Match-end-of-line Operator): Mention 'not_eol'.
50290 2010-08-14  Brian Gough  <bjg@gnu.org>
50291             Bruno Haible  <bruno@clisp.org>
50293         git-merge-changelog: add doc relating to use with bzr and hg.
50294         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
50296 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
50298         pthread: fix pthread.h creation for srcdir != builddir
50299         * modules/pthread (Makefile.am): Fix the rule to work also in a
50300         non-srcdir build.
50302 2010-08-13  Karl Berry  <karl@gnu.org>
50304         * doc/regex.texi (Predefined Syntaxes): @smallexample.
50305         * doc/posix-*/*: force line break before @url of POSIX
50306         specifications.
50307         Suggested by Werner Lemberg.
50309 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50311         strtod: fix const diagnostic
50312         * lib/strtod.c (strtod): Don't assign const char * to char *,
50313         as this elicits a warning from GCC when warnings are enabled.
50315 2010-08-10  Pádraig Brady  <P@draigbrady.com>
50316         and Eric Blake  <eblake@redhat.com>
50318         copy-acl: ignore ENOTSUP on HP-UX
50319         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
50320         so that it is available for HP-UX.
50321         * lib/copy-acl.c (qcopy_acl): Use it.
50322         Reported by Patrick M. Callahan.
50324 2010-08-10  Eric Blake  <eblake@redhat.com>
50326         open, chown: relax license
50327         * modules/open (License): Change to LGPLv2+, with consent by all
50328         authors, for use in augeas.
50329         * modules/chown (License): Likewise.
50330         * modules/lchown (Likewise): Likewise.
50331         Requested by Adam Stokes.
50333 2010-08-09  Karl Berry  <karl@gnu.org>
50335         * build-aux/ar-lib: new file, import from Automake.
50336         * config/srclist.txt: autocheck for updates.
50338 2010-08-09  Eric Blake  <eblake@redhat.com>
50340         readlinkat: adjust client modules
50341         * modules/areadlinkat (Depends-on): Use readlinkat, not
50342         symlinkat.
50343         * modules/areadlinkat-with-size (Depends-on): Likewise.
50345         mknod: be more vocal about danger of running tests as root
50346         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
50347         root, since that is just asking for problems.
50348         Suggested by Bruno Haible, based on a report by Rainer Tammer.
50350         readlinkat: split into its own module
50351         * modules/symlinkat: Split readlinkat...
50352         * modules/readlinkat: ...into separate module.
50353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
50354         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
50355         * lib/symlinkat.c (readlinkat): Move...
50356         * lib/readlinkat.c: ...into new file.
50357         * modules/symlinkat-tests: Split readlinkat test...
50358         * modules/readlinkat-tests: ...into separate module.
50359         * tests/test-symlinkat.c: Split...
50360         * tests/test-readlinkat.c: ...into new file.
50361         * NEWS: Document the split.
50362         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50363         * lib/unistd.in.h (readlinkat): Likewise.
50364         Suggested by Bruno Haible.
50366 2010-08-08  Bruno Haible  <bruno@clisp.org>
50368         memxfrm: Speed up.
50369         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50370         that usually only one call to strxfrm is necessary for each string
50371         part.
50372         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50374 2010-08-07  Karl Berry  <karl@gnu.org>
50376         * doc/posix-headers/limits.texi,
50377         * doc/posix-functions/malloc.texi,
50378         * doc/posix-functions/strsignal.texi: missing @item.
50379         * doc/ld-version-script.texi: spurious leading i.
50380         * doc/regex.texi (Interval Operators): no commas inside @var.
50382 2010-08-01  Bruno Haible  <bruno@clisp.org>
50384         Integrate the regex documentation.
50385         * doc/gnulib.texi: Define 'cn' index.
50386         (Regular expressions): New a chapter that includes regex.texi and
50387         regexprops-generic.texi.
50388         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50389         syntax.
50391         Whitespace cleanup.
50392         * doc/regex.texi: Remove trailing spaces.
50394         Add regex documentation.
50395         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50396         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50397         Written by Kathy A. Hargreaves and Karl Berry.
50399 2010-08-01  Bruno Haible  <bruno@clisp.org>
50401         link: Update documentation.
50402         * doc/posix-functions/link.texi: Update regarding Solaris.
50404 2010-07-31  Bruno Haible  <bruno@clisp.org>
50406         Update modules list.
50407         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50408         (String handling <string.h>): Add memcmp2, memxfrm.
50409         (Container data structures): Add xlist, xsublist, xoset.
50410         (Core language properties): Add alignof, unused-parameter.
50411         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50412         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50413         (Unibyte characters <ctype.h>): New section.
50414         (String handling <string.h>): New section.
50415         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50416         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50417         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50418         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50419         tan, tanh, tanl, y0, y1, yn.
50420         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50421         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50422         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50423         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50424         unlockpt, vdprintf, vdprintf-posix.
50425         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50426         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50427         xconcat-filename.
50428         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50429         getdtablesize, pipe2, pipe2-safer.
50430         (Security): New section.
50431         (Networking functions): Add accept4.
50432         (Signal handling): Add sigpipe.
50433         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50434         mbmemcasecoll.
50435         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50436         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50437         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50438         pipe-filter-ii.
50439         (Misc): Add argp-version-etc, login_tty, parse-duration.
50441 2010-07-31  Bruno Haible  <bruno@clisp.org>
50443         Improve doc in MODULES.html.
50444         * modules/linkat (Description): Add the word "function".
50445         * modules/mkfifo (Description): Likewise.
50446         * modules/mknod (Description): Likewise.
50447         * modules/remove (Description): Likewise.
50448         * modules/renameat (Description): Likewise.
50449         * modules/stat (Description): Likewise.
50450         * modules/symlink (Description): Likewise.
50451         * modules/unlink (Description): Likewise.
50453 2010-07-31  Bruno Haible  <bruno@clisp.org>
50455         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50456         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50457         option --enable/disable-c++ instead of --enable/disable-cxx.
50458         * NEWS: Mention the change.
50460 2010-07-31  Bruno Haible  <bruno@clisp.org>
50462         readlink, areadlink: Relax test a bit.
50463         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50464         alternative to ENOTDIR.
50465         * tests/test-areadlink.h (test_areadlink): Likewise.
50466         Reported by Rainer Tammer.
50468 2010-07-31  Bruno Haible  <bruno@clisp.org>
50470         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50471         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50472         character, perform the search using U_STRCHR.
50473         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50474         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50475         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50476         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50477         Suggested by Paolo Bonzini.
50479 2010-07-31  Bruno Haible  <bruno@clisp.org>
50481         unistr/u*-strstr: Fix dependencies.
50482         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50483         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50484         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50486 2010-07-31  Bruno Haible  <bruno@clisp.org>
50488         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50489         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50490         the beginning of the loop.
50491         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50492         cases in 'switch' statement.
50494         unistr/u8-strchr: Fix several bugs.
50495         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50496         the string. When not found, return NULL, not a pointer near the end.
50498         More tests for unistr/u8-strchr.
50499         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50500         that the function does not read past the first occurrence of the byte
50501         being searched.
50502         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50503         * tests/unistr/test-u16-strchr.c (main): New function.
50504         * tests/unistr/test-u32-strchr.c (main): New function.
50506 2010-07-31  Bruno Haible  <bruno@clisp.org>
50508         posix-modules: Ignore backup files of documentation files.
50509         * posix-modules: grep only through files named *.texi.
50511 2010-07-31  Bruno Haible  <bruno@clisp.org>
50513         symlinkat: Fix documentation.
50514         * doc/posix-functions/readlinkat.texi: Fix module name.
50516 2010-07-31  Bruno Haible  <bruno@clisp.org>
50518         fchownat: Replace also when chown has the trailing slash bug.
50519         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50520         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50521         introduced on 2010-04-10.
50522         Reported by Rainer Tammer.
50524 2010-07-31  Bruno Haible  <bruno@clisp.org>
50526         linkat: Work around AIX 7.1 bug.
50527         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50528         whether linkat handles trailing slash correctly. If not, replace linkat
50529         and define LINKAT_TRAILING_SLASH_BUG.
50530         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50531         check whether (fd1,file1) points to a directory if file1 or file2 ends
50532         in a slash. Code taken from lib/link.c.
50533         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50534         Reported by Rainer Tammer.
50536 2010-07-31  Bruno Haible  <bruno@clisp.org>
50538         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50539         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50540         This disables an xlc optimization that was causing wrong test results.
50541         Reported by Rainer Tammer.
50543 2010-07-31  Bruno Haible  <bruno@clisp.org>
50545         iconv: Work around AIX 6.1..7.1 bug.
50546         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50547         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50548         cross-compiling, guess no on all versions of AIX.
50549         Reported by Rainer Tammer.
50551 2010-07-31  Bruno Haible  <bruno@clisp.org>
50553         readlink: Relax test a bit.
50554         * tests/test-readlink.h (test_readlink): Allow different errno value
50555         when readlink is called with a file name that ends in / and refers to
50556         a file.
50557         Suggested by Eric Blake.
50558         Reported by Rainer Tammer.
50560 2010-07-31  Bruno Haible  <bruno@clisp.org>
50562         copysign: Does not require -lm on glibc systems.
50563         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50564         gl_COMMON_DOUBLE_MATHFUNC.
50565         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50567 2010-07-31  Bruno Haible  <bruno@clisp.org>
50569         duplocale: Work around AIX 7.1 bug.
50570         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50571         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50572         * lib/duplocale.c (rpl_duplocale): Update comment.
50573         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50574         Reported by Rainer Tammer.
50576 2010-07-30  Bruno Haible  <bruno@clisp.org>
50578         dirfd: Avoid link error on AIX 7.1.
50579         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50580         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50581         exist, set REPLACE_DIRFD.
50582         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50583         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50584         * doc/posix-functions/dirfd.texi: Update.
50585         Reported by Rainer Tammer.
50587 2010-07-30  Eric Blake  <eblake@redhat.com>
50589         strtod: next round of AIX fixes
50590         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50591         exponent.
50592         * tests/test-strtod.c (main): Enhance tests.
50593         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50594         Reported by Rainer Tammer.
50596         futimens: fix configure check
50597         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50598         Reported by Bruno Haible.
50600 2010-07-30  Bruno Haible  <bruno@clisp.org>
50602         getline: Update regarding AIX.
50603         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50604         Reported by Rainer Tammer.
50606 2010-07-30  Bruno Haible  <bruno@clisp.org>
50608         wcwidth: Drop replacement on AIX 7.
50609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50610         AIX 7.
50611         Reported by Rainer Tammer.
50613 2010-07-30  Bruno Haible  <bruno@clisp.org>
50615         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50616         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50617         a 'char *'.
50618         Reported by Rainer Tammer.
50620 2010-07-30  Bruno Haible  <bruno@clisp.org>
50622         unlink: Update regarding AIX.
50623         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50624         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50625         Reported by Rainer Tammer.
50627 2010-07-30  Bruno Haible  <bruno@clisp.org>
50629         symlink: Update regarding AIX.
50630         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50631         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50632         Reported by Rainer Tammer.
50634 2010-07-30  Bruno Haible  <bruno@clisp.org>
50636         strndup: Update regarding AIX.
50637         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50638         AIX 7.
50639         Reported by Rainer Tammer.
50641 2010-07-30  Bruno Haible  <bruno@clisp.org>
50643         stat: Update regarding AIX.
50644         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50645         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50646         Reported by Rainer Tammer.
50648 2010-07-30  Bruno Haible  <bruno@clisp.org>
50650         truncl: Fix autoconf test.
50651         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50652         whether truncl works.
50653         Reported by Rainer Tammer.
50655 2010-07-30  Bruno Haible  <bruno@clisp.org>
50657         round: Update regarding AIX.
50658         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50659         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50660         Reported by Rainer Tammer.
50662 2010-07-30  Bruno Haible  <bruno@clisp.org>
50664         rename: Update regarding AIX.
50665         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50666         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50667         Reported by Rainer Tammer.
50669 2010-07-30  Bruno Haible  <bruno@clisp.org>
50671         printf.m4: Update regarding AIX.
50672         * m4/printf.m4: Update comments regarding AIX.
50673         Reported by Rainer Tammer.
50675 2010-07-30  Bruno Haible  <bruno@clisp.org>
50677         iconv: Update regarding AIX.
50678         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50679         AIX 7.
50680         Reported by Rainer Tammer.
50682 2010-07-30  Bruno Haible  <bruno@clisp.org>
50684         getopt: Update regarding AIX.
50685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50686         no on AIX.
50687         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50688         Reported by Rainer Tammer.
50690 2010-07-30  Bruno Haible  <bruno@clisp.org>
50692         ldexpl; Update regarding AIX.
50693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50694         on AIX 7.
50695         Reported by Rainer Tammer.
50697 2010-07-30  Bruno Haible  <bruno@clisp.org>
50699         frexpl: Update regarding AIX.
50700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50701         on AIX 7.
50702         Reported by Rainer Tammer.
50704 2010-07-30  Bruno Haible  <bruno@clisp.org>
50706         open, fopen: Update regarding AIX.
50707         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50708         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50709         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50710         * doc/posix-functions/fopen.texi: Likewise.
50711         Reported by Rainer Tammer.
50713 2010-07-30  Bruno Haible  <bruno@clisp.org>
50715         chown: Update doc regarding AIX.
50716         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50717         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50718         Reported by Rainer Tammer.
50720 2010-07-30  Eric Blake  <eblake@redhat.com>
50722         strtod: fix bug in replacement function on AIX
50723         * lib/strtod.c (strtod): Special case broken "0x" parse in
50724         underlying strtod.
50725         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50726         * doc/posix-functions/strtod.texi (strtod): Likewise.
50727         Reported by Rainer Tammer.
50729 2010-07-30  Bruno Haible  <bruno@clisp.org>
50731         mbrlen: Fix cross-compilation guess for AIX.
50732         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50733         guess. Leftover from 2008-12-22.
50735 2010-07-30  Bruno Haible  <bruno@clisp.org>
50737         mbrtowc: Fix cross-compilation guess for AIX.
50738         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50739         guess. Leftover from 2008-12-21.
50741 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50743         init.sh: work around trap limitation of some shells
50744         * tests/init.sh (setup_): Move exit trap outside of shell function.
50746 2010-07-29  Eric Blake  <eblake@redhat.com>
50748         strtod: aid debugging
50749         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50750         understanding why strtod is rejected.
50752 2010-07-28  Bruno Haible  <bruno@clisp.org>
50754         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50755         * lib/unistr/u8-chr.c: Include <string.h>.
50756         * tests/unistr/test-u8-chr.c: Likewise.
50757         * tests/unistr/test-u16-chr.c: Likewise.
50758         * tests/unistr/test-u32-chr.c: Likewise.
50759         * tests/unistr/test-u8-strchr.c: Likewise.
50760         * tests/unistr/test-u16-strchr.c: Likewise.
50761         * tests/unistr/test-u32-strchr.c: Likewise.
50762         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50763         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50764         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50765         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50767 2010-07-28  Bruno Haible  <bruno@clisp.org>
50769         Use spaces for indentation, not tabs.
50770         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50772 2010-07-27  Bruno Haible  <bruno@clisp.org>
50774         mbspcasecmp: Fix function specification.
50775         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50776         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50777         Reported by Eric Blake <eblake@redhat.com>.
50779 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50781         timespec: use cast and not conditional, as truncation isn't possible
50782         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50783         instead of a conditional.  Comment about the situation in more detail.
50784         This undoes most of the 2009-10-29 patch.
50786 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50788         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50789         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50790         * lib/unistr/u8-strchr.c: Likewise.
50791         * modules/unistr/u8-chr: Depend on memchr.
50793         unistr/u*-strchr: add tests
50794         * modules/unistr/u8-strchr-tests: New file.
50795         * modules/unistr/u16-strchr-tests: New file.
50796         * modules/unistr/u32-strchr-tests: New file.
50797         * tests/unistr/test-strchr.h: New file.
50798         * tests/unistr/test-u8-strchr.c: New file.
50799         * tests/unistr/test-u16-strchr.c: New file.
50800         * tests/unistr/test-u32-strchr.c: New file.
50802         unistr/u*-chr: test multibyte sequences more
50803         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50804         test vector.
50805         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50806         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50807         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50809         unistr/u*-chr: test multibyte sequences
50810         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50812         unistr/u*-chr: prepare for multibyte tests
50813         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50814         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50815         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50816         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50817         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50818         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50820 2010-07-18  Bruno Haible  <bruno@clisp.org>
50822         unistr/u8-strchr: Optimize non-ASCII argument case.
50823         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50824         because the first byte often matches anyway.
50825         Reported by Pádraig Brady <P@draigbrady.com>.
50827 2010-07-15  Karl Berry  <karl@gnu.org>
50829         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50831 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50833         getcwd: on Solaris, work better if ancestors are inaccessible
50834         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50835         buffer and size, try again with a large buffer.  This works better
50836         on Solaris, since its getcwd succeeds even if the path to the root
50837         is inaccessible, and this is helpful in common cases such as .zfs
50838         hidden directories.  Problem reported by J Chapman Flack in
50839         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50840         Use system getcwd if it's declared, not merely if it's partly
50841         working; use the partly-working test only to avoid needless effort
50842         if the system getcwd fails.
50843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50844         comment that was already obsolete and is now even more obsolete.
50845         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50846         now might call strdup.
50848 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50850         pthread: Add enough so that coreutils/src/sort.c compiles.
50851         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50852         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50853         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50854         Include <sys/types.h>, in case it defines pthread_t.
50855         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50856         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50857         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50858         (pthread_rwlockattr_t, pthread_spinlock_t):
50859         New typedefs, if HAVE_PTHREAD_T is not defined.
50860         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50861         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50862         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50863         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50864         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50865         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50866         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50867         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50868         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50869         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50870         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50871         New macros.
50872         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50873         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50874         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50875         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50876         (pthread_spin_unlock): New dummy functions.
50877         (pthread_create): Return EAGAIN; don't set errno.
50878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50879         require AC_C_INLINE.
50880         * modules/pthread (Depends-on): Add sched, time.
50881         (pthread.h): Use AM_V_GEN.
50883 2010-07-13  Bruno Haible  <bruno@clisp.org>
50885         striconveh: Don't malloc memory if the result buffer is sufficient.
50886         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50887         buffer if its size is sufficient.
50888         Reported by Ludovic Courtès <ludo@gnu.org>.
50890 2010-07-13  Bruno Haible  <bruno@clisp.org>
50892         strtod: Add safety check.
50893         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50895 2010-07-12  Bruno Haible  <bruno@clisp.org>
50897         Unify tests that set gl_cv_func_ldexpl_no_libm.
50898         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50899         gl_FUNC_LDEXPL.
50900         (gl_FUNC_LDEXPL): Invoke it.
50901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50903 2010-07-12  Bruno Haible  <bruno@clisp.org>
50905         Unify tests that set gl_cv_func_ldexp_no_libm.
50906         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50907         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50908         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50909         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50910         * modules/strtod (Files): Add m4/ldexp.m4.
50912 2010-07-12  Bruno Haible  <bruno@clisp.org>
50914         Unify tests that set gl_cv_func_frexpl_no_libm.
50915         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50916         gl_FUNC_FREXPL_NO_LIBM.
50917         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50918         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50920 2010-07-12  Bruno Haible  <bruno@clisp.org>
50922         Unify tests that set gl_cv_func_frexp_no_libm.
50923         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50924         gl_FUNC_FREXP_NO_LIBM.
50925         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50926         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50928 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50930         memcoll: clarify sizes versus lengths, document better, and tweak perf
50931         * lib/memcoll.c (strcoll_loop, memcoll0):
50932         Improve quality of descriptive comments.  Name variables
50933         consistently as to whether they are lengths (which do not include
50934         terminating null) versus sizes (which do).
50935         * lib/xmemcoll.c (xmemcoll0): Likewise.
50936         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50937         returned when s1size == 0; this is easier to compile and saves
50938         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50940 2010-07-12  Bruno Haible  <bruno@clisp.org>
50942         Tests for module '_Exit'.
50943         * modules/_Exit-tests: New file.
50944         * tests/test-_Exit.sh: New file.
50945         * tests/test-_Exit.c: New file.
50947         New module '_Exit'.
50948         * lib/stdlib.in.h (__attribute__): New macro.
50949         (_Exit): New declaration.
50950         * lib/_Exit.c: New file.
50951         * m4/_Exit.m4: New file.
50952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50954         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50955         * modules/_Exit: New file.
50956         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50957         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50959 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50961         strtod: make it more-accurate typically, and don't require libm
50962         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50963         Include limits.h.  Don't include string.h.
50964         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50965         (locale_isspace): New function, so that no casts are needed to
50966         check whether *s is a space.
50967         (ldexp): Provide an unused dummy if not available.
50968         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50969         (strtod): Use them.  This implementation prefers to use the
50970         underlying strtod if available, falling back on our own code
50971         only to fix known bugs.  This is more likely to produce an
50972         accurate result.  Also, it avoids the use of libm functions.
50973         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50974         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50975         was absent, but it caused a test failure with coreutils.
50976         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50977         with libm.
50978         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50979         * modules/strtod-tests (Makefile.am): Likewise.
50981 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50982             Bruno Haible  <bruno@clisp.org>
50984         unistr/u8-strchr: Optimize ASCII argument case.
50985         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50987 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50989         (x)memcoll: minor tweaks
50990         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50991         is after the type that it qualifies.
50992         (memcoll0): Likewise.
50993         * lib/memcoll.h (memcoll0): Likewise.
50994         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50995         * lib/xmemcoll.h (xmemcoll0): Likewise.
50996         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50997         differs from memcoll in that the NUL byte is part of the argument.
50998         Omit the abort-checks, as performance is a real issue here.  Plus,
50999         the checks were wrong anyway (an off-by-one error).  Omit local
51000         variable 'diff', as it's a bit clearer that way.
51001         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
51002         no longer needed.
51004 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
51006         (x)memcoll: speedup when input is known to be NUL delimited
51007         * lib/memcoll.c: Include stdlib.
51008         (memcoll0): New function.
51009         (strcoll_loop): New function, refactored for use in both memcoll
51010         and memcoll0.
51011         * lib/memcoll.h (memcoll0): Add prototype.
51012         * lib/xmemcoll.c (xmemcoll0): New function.
51013         (collate_error): New function, refactored for use in both xmemcoll
51014         and xmemcoll0.
51015         * lib/xmemcoll.h (xmemcoll0): Add prototype.
51016         * m4/memcoll.m4: add inline invocation.
51018 2010-07-06  Pádraig Brady  <P@draigBrady.com>
51020         * build-aux/bootstrap: Remove any local translations
51021         from the translation project synchronization directory,
51022         so that local only translations are not distributed.
51024 2010-07-04  Bruno Haible  <bruno@clisp.org>
51026         fsusage: Clarify which code applies to which platforms.
51027         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
51028         platform.
51029         * lib/fsusage.c (get_fs_usage): Likewise.
51031 2010-07-04  Bruno Haible  <bruno@clisp.org>
51033         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
51034         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
51035         Reported by Martin Lambers <marlam@marlam.de>.
51037 2010-07-04  Jim Meyering  <meyering@redhat.com>
51039         hash: once again explicitly disallow insertion of NULL
51040         * lib/hash.c (hash_insert0): Reinstate just-removed test:
51041         inserting a NULL pointer cannot work with these functions.
51042         Add a comment with details.
51043         This reverts part of the 2010-07-01 commit, 5bef1a35
51044         "hash: extend module to deal with non-pointer keys".
51046 2010-07-01  Bruno Haible  <bruno@clisp.org>
51048         stdbool: Update doc.
51049         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
51050         Info from Christian Weisgerber <naddy@mips.inka.de>.
51052 2010-07-01  Jim Meyering  <meyering@redhat.com>
51054         hash: extend module to deal with non-pointer keys
51055         * lib/hash.c (hash_insert0): New interface, much like hash_insert
51056         but that allows insertion of non-pointer entries.
51057         Do not disallow an ENTRY value of NULL.
51058         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
51059         * lib/hash.h (hash_insert0): Declare.
51061 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
51063         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
51064         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
51065         not present (i.e. with autoconf 2.59 and when using gettextize, not
51066         gnulib), require AC_GNU_SOURCE instead.
51068 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
51070         idpriv-drop: Fix tests.
51071         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
51072         not to the test-idpriv-droptemp program.
51074 2010-06-29  Bruno Haible  <bruno@clisp.org>
51076         string: Fix syntax error with g++ 2.96.
51077         * lib/string.in.h (__pure__): Remove definition.
51078         (_GL_ATTRIBUTE_PURE): New macro.
51079         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
51080         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
51081         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51083 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
51085         unitypes: Fix bug introduced on 2010-05-18.
51086         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
51088 2010-06-22  Eric Blake  <eblake@redhat.com>
51090         memmem: slight optimization
51091         * lib/str-two-way.h (critical_factorization): Update comments.
51092         Reduce work during factorization phase.
51093         Reported by Carlos Bueno <carlos@bueno.org>.
51095 2010-06-21  Bruno Haible  <bruno@clisp.org>
51097         Fix HAVE_CALLOC_POSIX misnomer.
51098         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
51099         !HAVE_CALLOC_POSIX.
51100         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
51101         HAVE_CALLOC_POSIX.
51102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
51103         instead of HAVE_CALLOC_POSIX.
51104         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
51105         HAVE_CALLOC_POSIX.
51107         Use modern idiom for calloc() replacement.
51108         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
51109         AC_FUNC_CALLOC.
51110         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
51111         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
51112         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51113         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
51114         (gl_REPLACE_CALLOC): New macro.
51116 2010-06-21  Bruno Haible  <bruno@clisp.org>
51118         Fix HAVE_REALLOC_POSIX misnomer.
51119         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
51120         !HAVE_REALLOC_POSIX.
51121         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
51122         HAVE_REALLOC_POSIX.
51123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
51124         instead of HAVE_REALLOC_POSIX.
51125         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
51126         HAVE_REALLOC_POSIX.
51128         Use modern idiom for realloc() replacement.
51129         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
51130         AC_FUNC_REALLOC.
51131         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
51132         Autoconf's AC_FUNC_REALLOC.
51133         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51134         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
51135         (gl_REPLACE_REALLOC): New macro.
51136         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51138 2010-06-21  Bruno Haible  <bruno@clisp.org>
51140         Fix HAVE_MALLOC_POSIX misnomer.
51141         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
51142         !HAVE_MALLOC_POSIX.
51143         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
51144         HAVE_MALLOC_POSIX.
51145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
51146         instead of HAVE_MALLOC_POSIX.
51147         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
51148         HAVE_MALLOC_POSIX.
51150         Use modern idiom for malloc() replacement.
51151         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
51152         AC_FUNC_MALLOC.
51153         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
51154         Autoconf's AC_FUNC_MALLOC.
51155         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51156         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
51157         (gl_REPLACE_MALLOC): New macro.
51158         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51160 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
51162         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
51163         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
51164         This macro takes 3 arguments, not 4.
51166 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
51168         ipv6: fix detection under mingw
51169         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
51170         in6_addr.
51172 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
51174         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
51175         that strtod() works when cross-compiling to a glibc version known
51176         to work.
51178 2010-06-15  Bruno Haible  <bruno@clisp.org>
51180         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
51182 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
51184         select: Correct timeout.
51185         * lib/select.c (rpl_select): Compute wait_timeout correctly.
51187 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51189         git-version-gen: init shell var to avoid env var influence
51190         * build-aux/git-version-gen (v): Init shell var to empty.
51192 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
51194         priv-set: Don't assume that priv.h exists merely because getppriv does.
51195         See Jan Andersen's bug report about AIX 5L in
51196         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
51197         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
51198         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
51199         * lib/priv-set.h: Likewise.
51200         * tests/test-priv-set.c: Likewise.
51202 2010-06-13  Bruno Haible  <bruno@clisp.org>
51204         relocatable: Make it easier to test whether to install wrappers.
51205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
51206         RELOCATABLE_VIA_WRAPPER.
51208 2010-06-13  Bruno Haible  <bruno@clisp.org>
51210         gnulib-tool: Display specified modules and dependencies differently.
51211         * gnulib-tool (func_show_module_list): New function.
51212         (func_import, func_create_testdir): Invoke it.
51213         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51215 2010-06-13  Bruno Haible  <bruno@clisp.org>
51217         gnulib-tool: Align code of func_import and func_create_testdir.
51218         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
51219         specified_modules.
51221 2010-06-12  Jim Meyering  <meyering@redhat.com>
51223         test-inttostr: avoid spurious failure on Solaris 9
51224         * tests/test-inttostr.c (main): Skip the test when snprintf fails
51225         to accept "%ju".  Reported by Bruno Haible.
51227 2010-06-11  Jim Meyering  <meyering@redhat.com>
51229         test-sys_socket: mark variables as used more readably
51230         * tests/test-sys_socket.c (main): Mark otherwise unused variables
51231         as "used" explicitly via (void) statement casts.  This is more
51232         readable than using them in an artificial return expression.
51233         Suggestion from Bruno Haible.
51235 2010-06-11  Bruno Haible  <bruno@clisp.org>
51237         Avoid some more warnings from "gcc -Wwrite-strings".
51238         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
51239         to 'const char *'.
51240         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
51241         * tests/test-c-strcasestr.c (main): Likewise.
51242         * tests/test-mbscasestr1.c (main): Likewise.
51243         * tests/test-mbscasestr2.c (main): Likewise.
51244         * tests/test-memmem.c (main): Likewise.
51245         * tests/test-strstr.c (main): Likewise.
51246         * tests/test-strcasestr.c (main): Likewise.
51248 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51250         init.sh: change framework_failure_ to fail with status 99, not 1
51251         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
51252         automake's parallel-tests rule that this is an unexpected failure,
51253         even if the test is listed in XFAIL_TESTS.
51255 2010-06-11  Jim Meyering  <meyering@redhat.com>
51257         test-inttostr: avoid warnings about 4-6KB literal strings
51258         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
51259         Include "macros.h", for its definition of ASSERT.
51260         (CK): s/assert/ASSERT/
51261         * modules/inttostr-tests (Files): Add macros.h.
51263         init.sh: don't use $ME_ or skip_ before they are defined
51264         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
51265         their first uses.  Also hoist their companions: warn_, fail_,
51266         framework_failure_, $stderr_fileno.  Prompted by a patch from
51267         Stefano Lattarini.
51269         test-sys_socket: avoid set-but-not-used warnings from gcc
51270         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
51271         avoid warning about set-but-not-used variables.
51273         test-xvasprintf: avoid 'const' discard warnings
51274         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
51275         "const" when assigning from literal strings.
51276         (test_xasprintf): Add "void" in function argument list to placate
51277         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
51279         tests: avoid compilation warnings in argmatch and exclude tests...
51280         in packages that define ARGMATCH_DIE_DECL, like coreutils.
51281         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
51282         Since it always exits, declare with the "noreturn" attribute.
51283         * tests/test-argmatch.c: Likewise.
51285         tests: avoid 'const' discard warnings in mbsstr tests
51286         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
51287         * tests/test-mbsstr2.c (main): Likewise.
51289         test-verify: avoid warning from gcc's -Wmissing-declarations
51290         * tests/test-verify.c (function): Declare to be static.
51292         test-inttostr.c: include <string.h> for use of strcmp
51293         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
51295         test-linkat: avoid failed assertion on "other" architectures
51296         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
51297         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
51298         sparc: https://bugs.launchpad.net/bugs/591968
51300 2010-06-11  Jim Meyering  <meyering@redhat.com>
51302         printf.m4: avoid autoconf's "Expanded Before Required" warning
51303         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
51304         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
51305         autoconf warning.
51307 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
51309         Replacement header templates are now named with ".in", not "_".
51310         * doc/gnulib-intro.texi: Correct.
51312 2010-06-10  Jim Meyering  <meyering@redhat.com>
51314         inttostr-tests: depend on snprintf, not snprintf-posix
51315         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
51316         snprintf-posix, to avoid this aclocal failure:
51317           missing file gnulib-tests/vasnprintf.c
51318           configure.ac:45: error: expected source file, required through \
51319           AC_LIBSOURCES, not found
51321 2010-06-10  Jim Meyering  <meyering@redhat.com>
51323         inttostr: add a new function, inttostr, and tests
51324         The namesake function was not available.  The existence of the
51325         template file, inttostr.c makes its addition nontrivial.
51326         * lib/anytostr.c: Rename from inttostr.c.
51327         (anytostr): Rename from inttostr.
51328         * lib/inttostr.c: New file.
51329         * modules/inttostr (Files): Add anytostr.c.
51330         (Makefile.am): Set lib_SOURCES instead of ...
51331         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
51332         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
51333         * lib/offtostr.c: Likewise.
51334         * lib/uinttostr.c: Likewise.
51335         * lib/umaxtostr.c: Likewise.
51336         * modules/inttostr-tests: New file.
51337         * tests/test-inttostr.c: New file.  Test these functions.
51339 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
51340             Bruno Haible  <bruno@clisp.org>
51342         Add "Extending Gnulib" chapter to manual.
51343         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
51344         chapter.
51345         (Extending Gnulib): New chapter.
51346         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
51347         chapter.
51349 2010-06-09  Bruno Haible  <bruno@clisp.org>
51351         Avoid relocwrapper link errors due to gnulib replacement functions.
51352         * lib/areadlink.c: Use the system's malloc, realloc functions.
51353         (areadlink): Set errno to ENOMEM explicitly.
51354         * modules/areadlink (Depends-on): Remove malloc-posix.
51355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51357 2010-06-09  Bruno Haible  <bruno@clisp.org>
51359         Avoid relocwrapper link errors due to gnulib replacement functions.
51360         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51361         * lib/malloca.c: Likewise.
51362         * lib/relocatable.c: Likewise.
51363         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51364         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51365         * lib/setenv.c: Use the system's malloc, realloc functions.
51366         * lib/strerror.c: Use the system's sprintf function.
51367         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51369 2010-06-04  Bruno Haible  <bruno@clisp.org>
51371         Prefer documented low-level autoconf macro names.
51372         * m4/lib-link.m4: Use m4_translit instead of translit.
51373         * m4/environ.m4: Likewise.
51374         * m4/mathfunc.m4: Likewise.
51375         * m4/onceonly.m4: Likewise.
51376         * m4/stdint.m4: Likewise.
51377         Suggested by Eric Blake.
51379 2010-06-04  Martin Lambers  <marlam@marlam.de>
51380             Bruno Haible  <bruno@clisp.org>
51382         havelib: Allow library names with '+' characters.
51383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51384         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51386 2010-06-09  Bruno Haible  <bruno@clisp.org>
51388         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51389         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51390         realloc failed.
51392 2010-06-08  Peter Simons  <simons@cryp.to>
51394         maint.mk: make the news-check rule more configurable
51395         * top/maint.mk (news-check-lines-spec): New variable.
51396         (news-check): Use "sed -n 1,10p" in place of "head".
51398 2010-06-07  Jim Meyering  <meyering@redhat.com>
51400         do-release-commit-and-tag: fix typo in --help
51401         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51403         regex: avoid new dead-code warning with gcc-4.6.0
51404         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51405         if-block containing a while-loop.  It's been unused for at least
51406         5 years.
51408 2010-06-05  Bruno Haible  <bruno@clisp.org>
51410         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51411         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51413 2010-06-04  Bruno Haible  <bruno@clisp.org>
51415         Update to GNU gettext 0.18.1.
51416         * modules/gettext (configure.ac): Require gettext infrastructure from
51417         version 0.18.1.
51419 2010-06-03  Bruno Haible  <bruno@clisp.org>
51421         Don't use AC_LIBOBJ with file names in subdirectories.
51422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51423         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51424         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51425         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51426         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51427         gl_LIBUNISTRING_LIBSOURCE.
51428         (Makefile.am): Augment lib_SOURCES here, conditionally.
51429         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51431 2010-06-03  Bruno Haible  <bruno@clisp.org>
51433         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51434         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51435         expansion does not end with a newline.
51436         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51437         unnecessary newline.
51439 2010-06-03  Bruno Haible  <bruno@clisp.org>
51441         Reduce dependencies.
51442         * tests/test-quotearg.h: New file, extracted from
51443         tests/test-quotearg.c.
51444         * tests/test-quotearg-simple.c: New file, extracted from
51445         tests/test-quotearg.c.
51446         * tests/test-quotearg.c: Don't include <ctype.h>.
51447         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51448         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51449         use_quote_double_quotes, use_quotearg_colon): Moved to
51450         tests/test-quotearg.h.
51451         (results_g, flag_results, custom_quotes, custom_results): Moved
51452         to tests/test-quotearg-simple.c.
51453         (main): Moved the part that does not depend on gettext to
51454         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51455         performed.
51456         * modules/quotearg-simple: New file.
51457         * modules/quotearg-simple-tests: New file.
51458         * modules/quotearg (Depends-on): Add quotearg-simple.
51459         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51460         (Files): Add tests/test-quotearg.h.
51461         Reported by Paolo Bonzini.
51463 2010-06-03  Bruno Haible  <bruno@clisp.org>
51465         Reduce dependencies.
51466         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51468 2010-06-03  Bruno Haible  <bruno@clisp.org>
51470         time: Undefine more broken macros.
51471         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51472         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51473         Reported by Eric Blake.
51475 2010-06-03  Bruno Haible  <bruno@clisp.org>
51477         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51478         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51479         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51480         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51481         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51482         Reported by Ludovic Courtès <ludo@gnu.org>.
51484 2010-06-02  Eric Blake  <eblake@redhat.com>
51486         time: work with mingw + pthreads-win32 library
51487         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51488         if timespec is defined only in pthread.h.
51489         * modules/time (Makefile.am): Substitute it.
51490         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51491         <pthread.h>, when needed.
51492         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51493         from the library.
51495 2010-05-31  Bruno Haible  <bruno@clisp.org>
51497         Avoid expanding two macros in the wrong order.
51498         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51499         gl_LIBUNISTRING if it is defined.
51500         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51501         autoconf >= 2.64.
51502         Reported by Ludovic Courtès <ludo@gnu.org>.
51504 2010-05-27  Jim Meyering  <meyering@redhat.com>
51506         maint.mk: also prohibit "#undef" of always-defined symbols
51507         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51508         Allow more than one space before the symbol name.
51509         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51510         the regexp uses alternation.
51512 2010-05-26  Eric Blake  <eblake@redhat.com>
51514         maint.mk: avoid echo -e
51515         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51516         Convert all uses of echo -* to printf.
51517         Reported by Matthias Bolte.
51519 2010-05-25  Bruno Haible  <bruno@clisp.org>
51521         Update to GNU gettext 0.18, part 2.
51522         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51523         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51525 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51527         Add missing include in test-pwrite.c.
51528         * tests/test-pwrite.c: Include string.h, for strcmp.
51530 2010-05-24  Bruno Haible  <bruno@clisp.org>
51532         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51534 2010-05-24  Bruno Haible  <bruno@clisp.org>
51536         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51537         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51538         iconveh_error argument.
51539         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51540         U_STRCONV_TO_LOCALE.
51541         * lib/unistr/u16-strcoll.c: Likewise.
51542         * lib/unistr/u32-strcoll.c: Likewise.
51543         * modules/unistr/u8-strcoll (Depends-on): Add
51544         uniconv/u8-strconv-to-enc, localcharset. Remove
51545         uniconv/u8-strconv-to-locale.
51546         (configure.ac): Bump version number.
51547         * modules/unistr/u16-strcoll (Depends-on): Add
51548         uniconv/u16-strconv-to-enc, localcharset. Remove
51549         uniconv/u16-strconv-to-locale.
51550         (configure.ac): Bump version number.
51551         * modules/unistr/u32-strcoll (Depends-on): Add
51552         uniconv/u32-strconv-to-enc, localcharset. Remove
51553         uniconv/u32-strconv-to-locale.
51554         (configure.ac): Bump version number.
51556 2010-05-24  Bruno Haible  <bruno@clisp.org>
51558         Avoid a test failure on NetBSD 5.0.
51559         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51560         an iconv() bug.
51562 2010-05-24  Bruno Haible  <bruno@clisp.org>
51564         Adjust #include directive style.
51565         * modules/regex (Includes): Recommend to write <regex.h>.
51567 2010-05-24  Bruno Haible  <bruno@clisp.org>
51569         regex: Don't require alloca.
51570         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51571         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51572         only inside if (0).
51574 2010-05-23  Jim Meyering  <meyering@redhat.com>
51576         test-renameat.c: include <sys/stat.h>
51577         * tests/test-renameat.c: Include <sys/stat.h>; required for
51578         definition of S_IS* macros.
51580 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51582         Update maintainer documentation for 'relocatable-prog' module.
51583         * doc/relocatable-maint.texi: Update.
51584         Comments by Bruno Haible.
51586 2010-05-23  Bruno Haible  <bruno@clisp.org>
51588         git-merge-changelog: Enable --split-merged-entry by default.
51589         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51590         (usage): Don't mention this option any more.
51591         Reported by Ralf Wildenhues.
51593 2010-05-23  Jim Meyering  <meyering@redhat.com>
51595         test-pwrite: do not leave behind a test file named "out"
51596         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51597         The trivial-looking use of init.sh is really necessary.
51598         It ensures that the temporary file, "out", is created in
51599         a temporary directory, and removed upon termination.
51600         * tests/test-pwrite.sh: Re-add file.
51601         * modules/pwrite-tests: Reference it.
51603 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51605         Fix output redirection buglet in init.sh.
51606         * tests/init.sh: Fix redirection of stderr.
51608 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51610         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51612 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51614         * modules/valgrind-tests: New file.
51615         * m4/valgrind-tests.m4: New file.
51616         * doc/valgrind-tests.texi: New file.
51617         * doc/gnulib.texi (Running self-tests under valgrind): New
51618         section.
51620 2010-05-19  Bruno Haible  <bruno@clisp.org>
51622         Clean up dead code in recent commit.
51623         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51624         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51625         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51626         Suggested by Paolo Bonzini.
51628 2010-05-19  Bruno Haible  <bruno@clisp.org>
51630         Avoid valgrind error reports from libunistring.
51631         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51632         * modules/libunistring (Files): Add it.
51633         * modules/libunistring-optional (Files): Likewise.
51635 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51636             Bruno Haible  <bruno@clisp.org>
51638         New module 'libunistring-optional'.
51639         * modules/libunistring-optional: New file.
51640         * m4/libunistring-base.m4: New file.
51641         * m4/libunistring-optional.m4: New file.
51642         * lib/unicase.in.h: Renamed from lib/unicase.h.
51643         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51644         * lib/unictype.in.h: Renamed from lib/unictype.h.
51645         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51646         * lib/uniname.in.h: Renamed from lib/uniname.h.
51647         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51648         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51649         * lib/unistr.in.h: Renamed from lib/unistr.h.
51650         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51651         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51652         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51653         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51654         gl_LIBUNISTRING. If the library was found, determine the installed
51655         version and set LIBUNISTRING_VERSION.
51656         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51657         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51658         handle a configuration option --with-included-libunistring.
51659         * modules/libunistring (Files): Add m4/absolute-header.m4.
51660         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51661         Add m4/libunistring-base.m4.
51662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51663         (Makefile.am): Build unicase.h from unicase.in.h.
51664         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51665         Add m4/libunistring-base.m4.
51666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51667         (Makefile.am): Build uniconv.h from uniconv.in.h.
51668         * modules/unictype/base (Files): Use unictype.in.h instead of
51669         unictype.h. Add m4/libunistring-base.m4.
51670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51671         (Makefile.am): Build unictype.h from unictype.in.h.
51672         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51673         Add m4/libunistring-base.m4.
51674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51675         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51676         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51677         Add m4/libunistring-base.m4.
51678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51679         (Makefile.am): Build uniname.h from uniname.in.h.
51680         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51681         Add m4/libunistring-base.m4.
51682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51683         (Makefile.am): Build uninorm.h from uninorm.in.h.
51684         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51685         unistdio.h. Add m4/libunistring-base.m4.
51686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51687         (Makefile.am): Build unistdio.h from unistdio.in.h.
51688         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51689         Add m4/libunistring-base.m4.
51690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51691         (Makefile.am): Build unistr.h from unistr.in.h.
51692         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51693         Add m4/libunistring-base.m4.
51694         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51695         (Makefile.am): Build unitypes.h from unitypes.in.h.
51696         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51697         Add m4/libunistring-base.m4.
51698         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51699         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51700         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51701         uniwidth.h. Add m4/libunistring-base.m4.
51702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51703         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51704         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51705         instead of augmenting lib_SOURCES.
51706         * modules/unicase/empty-suffix-context: Likewise.
51707         * modules/unicase/locale-language: Likewise.
51708         * modules/unicase/tolower: Likewise.
51709         * modules/unicase/totitle: Likewise.
51710         * modules/unicase/toupper: Likewise.
51711         * modules/unicase/u8-casecmp: Likewise.
51712         * modules/unicase/u8-casecoll: Likewise.
51713         * modules/unicase/u8-casefold: Likewise.
51714         * modules/unicase/u8-casexfrm: Likewise.
51715         * modules/unicase/u8-ct-casefold: Likewise.
51716         * modules/unicase/u8-ct-tolower: Likewise.
51717         * modules/unicase/u8-ct-totitle: Likewise.
51718         * modules/unicase/u8-ct-toupper: Likewise.
51719         * modules/unicase/u8-is-cased: Likewise.
51720         * modules/unicase/u8-is-casefolded: Likewise.
51721         * modules/unicase/u8-is-lowercase: Likewise.
51722         * modules/unicase/u8-is-titlecase: Likewise.
51723         * modules/unicase/u8-is-uppercase: Likewise.
51724         * modules/unicase/u8-prefix-context: Likewise.
51725         * modules/unicase/u8-suffix-context: Likewise.
51726         * modules/unicase/u8-tolower: Likewise.
51727         * modules/unicase/u8-totitle: Likewise.
51728         * modules/unicase/u8-toupper: Likewise.
51729         * modules/unicase/u16-casecmp: Likewise.
51730         * modules/unicase/u16-casecoll: Likewise.
51731         * modules/unicase/u16-casefold: Likewise.
51732         * modules/unicase/u16-casexfrm: Likewise.
51733         * modules/unicase/u16-ct-casefold: Likewise.
51734         * modules/unicase/u16-ct-tolower: Likewise.
51735         * modules/unicase/u16-ct-totitle: Likewise.
51736         * modules/unicase/u16-ct-toupper: Likewise.
51737         * modules/unicase/u16-is-cased: Likewise.
51738         * modules/unicase/u16-is-casefolded: Likewise.
51739         * modules/unicase/u16-is-lowercase: Likewise.
51740         * modules/unicase/u16-is-titlecase: Likewise.
51741         * modules/unicase/u16-is-uppercase: Likewise.
51742         * modules/unicase/u16-prefix-context: Likewise.
51743         * modules/unicase/u16-suffix-context: Likewise.
51744         * modules/unicase/u16-tolower: Likewise.
51745         * modules/unicase/u16-totitle: Likewise.
51746         * modules/unicase/u16-toupper: Likewise.
51747         * modules/unicase/u32-casecmp: Likewise.
51748         * modules/unicase/u32-casecoll: Likewise.
51749         * modules/unicase/u32-casefold: Likewise.
51750         * modules/unicase/u32-casexfrm: Likewise.
51751         * modules/unicase/u32-ct-casefold: Likewise.
51752         * modules/unicase/u32-ct-tolower: Likewise.
51753         * modules/unicase/u32-ct-totitle: Likewise.
51754         * modules/unicase/u32-ct-toupper: Likewise.
51755         * modules/unicase/u32-is-cased: Likewise.
51756         * modules/unicase/u32-is-casefolded: Likewise.
51757         * modules/unicase/u32-is-lowercase: Likewise.
51758         * modules/unicase/u32-is-titlecase: Likewise.
51759         * modules/unicase/u32-is-uppercase: Likewise.
51760         * modules/unicase/u32-prefix-context: Likewise.
51761         * modules/unicase/u32-suffix-context: Likewise.
51762         * modules/unicase/u32-tolower: Likewise.
51763         * modules/unicase/u32-totitle: Likewise.
51764         * modules/unicase/u32-toupper: Likewise.
51765         * modules/unicase/ulc-casecmp: Likewise.
51766         * modules/unicase/ulc-casecoll: Likewise.
51767         * modules/unicase/ulc-casexfrm: Likewise.
51768         * modules/uniconv/u8-conv-from-enc: Likewise.
51769         * modules/uniconv/u8-conv-to-enc: Likewise.
51770         * modules/uniconv/u8-strconv-from-enc: Likewise.
51771         * modules/uniconv/u8-strconv-from-locale: Likewise.
51772         * modules/uniconv/u8-strconv-to-enc: Likewise.
51773         * modules/uniconv/u8-strconv-to-locale: Likewise.
51774         * modules/uniconv/u16-conv-from-enc: Likewise.
51775         * modules/uniconv/u16-conv-to-enc: Likewise.
51776         * modules/uniconv/u16-strconv-from-enc: Likewise.
51777         * modules/uniconv/u16-strconv-from-locale: Likewise.
51778         * modules/uniconv/u16-strconv-to-enc: Likewise.
51779         * modules/uniconv/u16-strconv-to-locale: Likewise.
51780         * modules/uniconv/u32-conv-from-enc: Likewise.
51781         * modules/uniconv/u32-conv-to-enc: Likewise.
51782         * modules/uniconv/u32-strconv-from-enc: Likewise.
51783         * modules/uniconv/u32-strconv-from-locale: Likewise.
51784         * modules/uniconv/u32-strconv-to-enc: Likewise.
51785         * modules/uniconv/u32-strconv-to-locale: Likewise.
51786         * modules/unictype/bidicategory-byname: Likewise.
51787         * modules/unictype/bidicategory-name: Likewise.
51788         * modules/unictype/bidicategory-of: Likewise.
51789         * modules/unictype/bidicategory-test: Likewise.
51790         * modules/unictype/block-list: Likewise.
51791         * modules/unictype/block-test: Likewise.
51792         * modules/unictype/category-C: Likewise.
51793         * modules/unictype/category-Cc: Likewise.
51794         * modules/unictype/category-Cf: Likewise.
51795         * modules/unictype/category-Cn: Likewise.
51796         * modules/unictype/category-Co: Likewise.
51797         * modules/unictype/category-Cs: Likewise.
51798         * modules/unictype/category-L: Likewise.
51799         * modules/unictype/category-Ll: Likewise.
51800         * modules/unictype/category-Lm: Likewise.
51801         * modules/unictype/category-Lo: Likewise.
51802         * modules/unictype/category-Lt: Likewise.
51803         * modules/unictype/category-Lu: Likewise.
51804         * modules/unictype/category-M: Likewise.
51805         * modules/unictype/category-Mc: Likewise.
51806         * modules/unictype/category-Me: Likewise.
51807         * modules/unictype/category-Mn: Likewise.
51808         * modules/unictype/category-N: Likewise.
51809         * modules/unictype/category-Nd: Likewise.
51810         * modules/unictype/category-Nl: Likewise.
51811         * modules/unictype/category-No: Likewise.
51812         * modules/unictype/category-P: Likewise.
51813         * modules/unictype/category-Pc: Likewise.
51814         * modules/unictype/category-Pd: Likewise.
51815         * modules/unictype/category-Pe: Likewise.
51816         * modules/unictype/category-Pf: Likewise.
51817         * modules/unictype/category-Pi: Likewise.
51818         * modules/unictype/category-Po: Likewise.
51819         * modules/unictype/category-Ps: Likewise.
51820         * modules/unictype/category-S: Likewise.
51821         * modules/unictype/category-Sc: Likewise.
51822         * modules/unictype/category-Sk: Likewise.
51823         * modules/unictype/category-Sm: Likewise.
51824         * modules/unictype/category-So: Likewise.
51825         * modules/unictype/category-Z: Likewise.
51826         * modules/unictype/category-Zl: Likewise.
51827         * modules/unictype/category-Zp: Likewise.
51828         * modules/unictype/category-Zs: Likewise.
51829         * modules/unictype/category-and: Likewise.
51830         * modules/unictype/category-and-not: Likewise.
51831         * modules/unictype/category-byname: Likewise.
51832         * modules/unictype/category-name: Likewise.
51833         * modules/unictype/category-none: Likewise.
51834         * modules/unictype/category-of: Likewise.
51835         * modules/unictype/category-or: Likewise.
51836         * modules/unictype/category-test: Likewise.
51837         * modules/unictype/combining-class: Likewise.
51838         * modules/unictype/ctype-alnum: Likewise.
51839         * modules/unictype/ctype-alpha: Likewise.
51840         * modules/unictype/ctype-blank: Likewise.
51841         * modules/unictype/ctype-cntrl: Likewise.
51842         * modules/unictype/ctype-digit: Likewise.
51843         * modules/unictype/ctype-graph: Likewise.
51844         * modules/unictype/ctype-lower: Likewise.
51845         * modules/unictype/ctype-print: Likewise.
51846         * modules/unictype/ctype-punct: Likewise.
51847         * modules/unictype/ctype-space: Likewise.
51848         * modules/unictype/ctype-upper: Likewise.
51849         * modules/unictype/ctype-xdigit: Likewise.
51850         * modules/unictype/decimal-digit: Likewise.
51851         * modules/unictype/digit: Likewise.
51852         * modules/unictype/mirror: Likewise.
51853         * modules/unictype/numeric: Likewise.
51854         * modules/unictype/property-alphabetic: Likewise.
51855         * modules/unictype/property-ascii-hex-digit: Likewise.
51856         * modules/unictype/property-bidi-arabic-digit: Likewise.
51857         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51858         * modules/unictype/property-bidi-block-separator: Likewise.
51859         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51860         * modules/unictype/property-bidi-common-separator: Likewise.
51861         * modules/unictype/property-bidi-control: Likewise.
51862         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51863         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51864         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51865         * modules/unictype/property-bidi-european-digit: Likewise.
51866         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51867         * modules/unictype/property-bidi-left-to-right: Likewise.
51868         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51869         * modules/unictype/property-bidi-other-neutral: Likewise.
51870         * modules/unictype/property-bidi-pdf: Likewise.
51871         * modules/unictype/property-bidi-segment-separator: Likewise.
51872         * modules/unictype/property-bidi-whitespace: Likewise.
51873         * modules/unictype/property-byname: Likewise.
51874         * modules/unictype/property-combining: Likewise.
51875         * modules/unictype/property-composite: Likewise.
51876         * modules/unictype/property-currency-symbol: Likewise.
51877         * modules/unictype/property-dash: Likewise.
51878         * modules/unictype/property-decimal-digit: Likewise.
51879         * modules/unictype/property-default-ignorable-code-point: Likewise.
51880         * modules/unictype/property-deprecated: Likewise.
51881         * modules/unictype/property-diacritic: Likewise.
51882         * modules/unictype/property-extender: Likewise.
51883         * modules/unictype/property-format-control: Likewise.
51884         * modules/unictype/property-grapheme-base: Likewise.
51885         * modules/unictype/property-grapheme-extend: Likewise.
51886         * modules/unictype/property-grapheme-link: Likewise.
51887         * modules/unictype/property-hex-digit: Likewise.
51888         * modules/unictype/property-hyphen: Likewise.
51889         * modules/unictype/property-id-continue: Likewise.
51890         * modules/unictype/property-id-start: Likewise.
51891         * modules/unictype/property-ideographic: Likewise.
51892         * modules/unictype/property-ids-binary-operator: Likewise.
51893         * modules/unictype/property-ids-trinary-operator: Likewise.
51894         * modules/unictype/property-ignorable-control: Likewise.
51895         * modules/unictype/property-iso-control: Likewise.
51896         * modules/unictype/property-join-control: Likewise.
51897         * modules/unictype/property-left-of-pair: Likewise.
51898         * modules/unictype/property-line-separator: Likewise.
51899         * modules/unictype/property-logical-order-exception: Likewise.
51900         * modules/unictype/property-lowercase: Likewise.
51901         * modules/unictype/property-math: Likewise.
51902         * modules/unictype/property-non-break: Likewise.
51903         * modules/unictype/property-not-a-character: Likewise.
51904         * modules/unictype/property-numeric: Likewise.
51905         * modules/unictype/property-other-alphabetic: Likewise.
51906         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51907         * modules/unictype/property-other-grapheme-extend: Likewise.
51908         * modules/unictype/property-other-id-continue: Likewise.
51909         * modules/unictype/property-other-id-start: Likewise.
51910         * modules/unictype/property-other-lowercase: Likewise.
51911         * modules/unictype/property-other-math: Likewise.
51912         * modules/unictype/property-other-uppercase: Likewise.
51913         * modules/unictype/property-paired-punctuation: Likewise.
51914         * modules/unictype/property-paragraph-separator: Likewise.
51915         * modules/unictype/property-pattern-syntax: Likewise.
51916         * modules/unictype/property-pattern-white-space: Likewise.
51917         * modules/unictype/property-private-use: Likewise.
51918         * modules/unictype/property-punctuation: Likewise.
51919         * modules/unictype/property-quotation-mark: Likewise.
51920         * modules/unictype/property-radical: Likewise.
51921         * modules/unictype/property-sentence-terminal: Likewise.
51922         * modules/unictype/property-soft-dotted: Likewise.
51923         * modules/unictype/property-space: Likewise.
51924         * modules/unictype/property-terminal-punctuation: Likewise.
51925         * modules/unictype/property-test: Likewise.
51926         * modules/unictype/property-titlecase: Likewise.
51927         * modules/unictype/property-unassigned-code-value: Likewise.
51928         * modules/unictype/property-unified-ideograph: Likewise.
51929         * modules/unictype/property-uppercase: Likewise.
51930         * modules/unictype/property-variation-selector: Likewise.
51931         * modules/unictype/property-white-space: Likewise.
51932         * modules/unictype/property-xid-continue: Likewise.
51933         * modules/unictype/property-xid-start: Likewise.
51934         * modules/unictype/property-zero-width: Likewise.
51935         * modules/unictype/scripts: Likewise.
51936         * modules/unictype/syntax-c-ident: Likewise.
51937         * modules/unictype/syntax-c-whitespace: Likewise.
51938         * modules/unictype/syntax-java-ident: Likewise.
51939         * modules/unictype/syntax-java-whitespace: Likewise.
51940         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51941         * modules/unilbrk/u8-width-linebreaks: Likewise.
51942         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51943         * modules/unilbrk/u16-width-linebreaks: Likewise.
51944         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51945         * modules/unilbrk/u32-width-linebreaks: Likewise.
51946         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51947         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51948         * modules/uniname/uniname: Likewise.
51949         * modules/uninorm/canonical-decomposition: Likewise.
51950         * modules/uninorm/composition: Likewise.
51951         * modules/uninorm/decomposing-form: Likewise.
51952         * modules/uninorm/decomposition: Likewise.
51953         * modules/uninorm/filter: Likewise.
51954         * modules/uninorm/nfc: Likewise.
51955         * modules/uninorm/nfd: Likewise.
51956         * modules/uninorm/nfkc: Likewise.
51957         * modules/uninorm/nfkd: Likewise.
51958         * modules/uninorm/u8-normalize: Likewise.
51959         * modules/uninorm/u8-normcmp: Likewise.
51960         * modules/uninorm/u8-normcoll: Likewise.
51961         * modules/uninorm/u8-normxfrm: Likewise.
51962         * modules/uninorm/u16-normalize: Likewise.
51963         * modules/uninorm/u16-normcmp: Likewise.
51964         * modules/uninorm/u16-normcoll: Likewise.
51965         * modules/uninorm/u16-normxfrm: Likewise.
51966         * modules/uninorm/u32-normalize: Likewise.
51967         * modules/uninorm/u32-normcmp: Likewise.
51968         * modules/uninorm/u32-normcoll: Likewise.
51969         * modules/uninorm/u32-normxfrm: Likewise.
51970         * modules/unistdio/u8-asnprintf: Likewise.
51971         * modules/unistdio/u8-asprintf: Likewise.
51972         * modules/unistdio/u8-snprintf: Likewise.
51973         * modules/unistdio/u8-sprintf: Likewise.
51974         * modules/unistdio/u8-u8-asnprintf: Likewise.
51975         * modules/unistdio/u8-u8-asprintf: Likewise.
51976         * modules/unistdio/u8-u8-snprintf: Likewise.
51977         * modules/unistdio/u8-u8-sprintf: Likewise.
51978         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51979         * modules/unistdio/u8-u8-vasprintf: Likewise.
51980         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51981         * modules/unistdio/u8-u8-vsprintf: Likewise.
51982         * modules/unistdio/u8-vasnprintf: Likewise.
51983         * modules/unistdio/u8-vasprintf: Likewise.
51984         * modules/unistdio/u8-vsnprintf: Likewise.
51985         * modules/unistdio/u8-vsprintf: Likewise.
51986         * modules/unistdio/u16-asnprintf: Likewise.
51987         * modules/unistdio/u16-asprintf: Likewise.
51988         * modules/unistdio/u16-snprintf: Likewise.
51989         * modules/unistdio/u16-sprintf: Likewise.
51990         * modules/unistdio/u16-u16-asnprintf: Likewise.
51991         * modules/unistdio/u16-u16-asprintf: Likewise.
51992         * modules/unistdio/u16-u16-snprintf: Likewise.
51993         * modules/unistdio/u16-u16-sprintf: Likewise.
51994         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51995         * modules/unistdio/u16-u16-vasprintf: Likewise.
51996         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51997         * modules/unistdio/u16-u16-vsprintf: Likewise.
51998         * modules/unistdio/u16-vasnprintf: Likewise.
51999         * modules/unistdio/u16-vasprintf: Likewise.
52000         * modules/unistdio/u16-vsnprintf: Likewise.
52001         * modules/unistdio/u16-vsprintf: Likewise.
52002         * modules/unistdio/u32-asnprintf: Likewise.
52003         * modules/unistdio/u32-asprintf: Likewise.
52004         * modules/unistdio/u32-snprintf: Likewise.
52005         * modules/unistdio/u32-sprintf: Likewise.
52006         * modules/unistdio/u32-u32-asnprintf: Likewise.
52007         * modules/unistdio/u32-u32-asprintf: Likewise.
52008         * modules/unistdio/u32-u32-snprintf: Likewise.
52009         * modules/unistdio/u32-u32-sprintf: Likewise.
52010         * modules/unistdio/u32-u32-vasnprintf: Likewise.
52011         * modules/unistdio/u32-u32-vasprintf: Likewise.
52012         * modules/unistdio/u32-u32-vsnprintf: Likewise.
52013         * modules/unistdio/u32-u32-vsprintf: Likewise.
52014         * modules/unistdio/u32-vasnprintf: Likewise.
52015         * modules/unistdio/u32-vasprintf: Likewise.
52016         * modules/unistdio/u32-vsnprintf: Likewise.
52017         * modules/unistdio/u32-vsprintf: Likewise.
52018         * modules/unistdio/ulc-asnprintf: Likewise.
52019         * modules/unistdio/ulc-asprintf: Likewise.
52020         * modules/unistdio/ulc-fprintf: Likewise.
52021         * modules/unistdio/ulc-snprintf: Likewise.
52022         * modules/unistdio/ulc-sprintf: Likewise.
52023         * modules/unistdio/ulc-vasnprintf: Likewise.
52024         * modules/unistdio/ulc-vasprintf: Likewise.
52025         * modules/unistdio/ulc-vfprintf: Likewise.
52026         * modules/unistdio/ulc-vsnprintf: Likewise.
52027         * modules/unistdio/ulc-vsprintf: Likewise.
52028         * modules/unistr/u8-check: Likewise.
52029         * modules/unistr/u8-chr: Likewise.
52030         * modules/unistr/u8-cmp: Likewise.
52031         * modules/unistr/u8-cmp2: Likewise.
52032         * modules/unistr/u8-cpy: Likewise.
52033         * modules/unistr/u8-cpy-alloc: Likewise.
52034         * modules/unistr/u8-endswith: Likewise.
52035         * modules/unistr/u8-mblen: Likewise.
52036         * modules/unistr/u8-mbsnlen: Likewise.
52037         * modules/unistr/u8-mbtouc: Likewise.
52038         * modules/unistr/u8-mbtouc-unsafe: Likewise.
52039         * modules/unistr/u8-mbtoucr: Likewise.
52040         * modules/unistr/u8-move: Likewise.
52041         * modules/unistr/u8-next: Likewise.
52042         * modules/unistr/u8-prev: Likewise.
52043         * modules/unistr/u8-set: Likewise.
52044         * modules/unistr/u8-startswith: Likewise.
52045         * modules/unistr/u8-stpcpy: Likewise.
52046         * modules/unistr/u8-stpncpy: Likewise.
52047         * modules/unistr/u8-strcat: Likewise.
52048         * modules/unistr/u8-strchr: Likewise.
52049         * modules/unistr/u8-strcmp: Likewise.
52050         * modules/unistr/u8-strcoll: Likewise.
52051         * modules/unistr/u8-strcpy: Likewise.
52052         * modules/unistr/u8-strcspn: Likewise.
52053         * modules/unistr/u8-strdup: Likewise.
52054         * modules/unistr/u8-strlen: Likewise.
52055         * modules/unistr/u8-strmblen: Likewise.
52056         * modules/unistr/u8-strmbtouc: Likewise.
52057         * modules/unistr/u8-strncat: Likewise.
52058         * modules/unistr/u8-strncmp: Likewise.
52059         * modules/unistr/u8-strncpy: Likewise.
52060         * modules/unistr/u8-strnlen: Likewise.
52061         * modules/unistr/u8-strpbrk: Likewise.
52062         * modules/unistr/u8-strrchr: Likewise.
52063         * modules/unistr/u8-strspn: Likewise.
52064         * modules/unistr/u8-strstr: Likewise.
52065         * modules/unistr/u8-strtok: Likewise.
52066         * modules/unistr/u8-to-u16: Likewise.
52067         * modules/unistr/u8-to-u32: Likewise.
52068         * modules/unistr/u8-uctomb: Likewise.
52069         * modules/unistr/u16-check: Likewise.
52070         * modules/unistr/u16-chr: Likewise.
52071         * modules/unistr/u16-cmp: Likewise.
52072         * modules/unistr/u16-cmp2: Likewise.
52073         * modules/unistr/u16-cpy: Likewise.
52074         * modules/unistr/u16-cpy-alloc: Likewise.
52075         * modules/unistr/u16-endswith: Likewise.
52076         * modules/unistr/u16-mblen: Likewise.
52077         * modules/unistr/u16-mbsnlen: Likewise.
52078         * modules/unistr/u16-mbtouc: Likewise.
52079         * modules/unistr/u16-mbtouc-unsafe: Likewise.
52080         * modules/unistr/u16-mbtoucr: Likewise.
52081         * modules/unistr/u16-move: Likewise.
52082         * modules/unistr/u16-next: Likewise.
52083         * modules/unistr/u16-prev: Likewise.
52084         * modules/unistr/u16-set: Likewise.
52085         * modules/unistr/u16-startswith: Likewise.
52086         * modules/unistr/u16-stpcpy: Likewise.
52087         * modules/unistr/u16-stpncpy: Likewise.
52088         * modules/unistr/u16-strcat: Likewise.
52089         * modules/unistr/u16-strchr: Likewise.
52090         * modules/unistr/u16-strcmp: Likewise.
52091         * modules/unistr/u16-strcoll: Likewise.
52092         * modules/unistr/u16-strcpy: Likewise.
52093         * modules/unistr/u16-strcspn: Likewise.
52094         * modules/unistr/u16-strdup: Likewise.
52095         * modules/unistr/u16-strlen: Likewise.
52096         * modules/unistr/u16-strmblen: Likewise.
52097         * modules/unistr/u16-strmbtouc: Likewise.
52098         * modules/unistr/u16-strncat: Likewise.
52099         * modules/unistr/u16-strncmp: Likewise.
52100         * modules/unistr/u16-strncpy: Likewise.
52101         * modules/unistr/u16-strnlen: Likewise.
52102         * modules/unistr/u16-strpbrk: Likewise.
52103         * modules/unistr/u16-strrchr: Likewise.
52104         * modules/unistr/u16-strspn: Likewise.
52105         * modules/unistr/u16-strstr: Likewise.
52106         * modules/unistr/u16-strtok: Likewise.
52107         * modules/unistr/u16-to-u32: Likewise.
52108         * modules/unistr/u16-to-u8: Likewise.
52109         * modules/unistr/u16-uctomb: Likewise.
52110         * modules/unistr/u32-check: Likewise.
52111         * modules/unistr/u32-chr: Likewise.
52112         * modules/unistr/u32-cmp: Likewise.
52113         * modules/unistr/u32-cmp2: Likewise.
52114         * modules/unistr/u32-cpy: Likewise.
52115         * modules/unistr/u32-cpy-alloc: Likewise.
52116         * modules/unistr/u32-endswith: Likewise.
52117         * modules/unistr/u32-mblen: Likewise.
52118         * modules/unistr/u32-mbsnlen: Likewise.
52119         * modules/unistr/u32-mbtouc: Likewise.
52120         * modules/unistr/u32-mbtouc-unsafe: Likewise.
52121         * modules/unistr/u32-mbtoucr: Likewise.
52122         * modules/unistr/u32-move: Likewise.
52123         * modules/unistr/u32-next: Likewise.
52124         * modules/unistr/u32-prev: Likewise.
52125         * modules/unistr/u32-set: Likewise.
52126         * modules/unistr/u32-startswith: Likewise.
52127         * modules/unistr/u32-stpcpy: Likewise.
52128         * modules/unistr/u32-stpncpy: Likewise.
52129         * modules/unistr/u32-strcat: Likewise.
52130         * modules/unistr/u32-strchr: Likewise.
52131         * modules/unistr/u32-strcmp: Likewise.
52132         * modules/unistr/u32-strcoll: Likewise.
52133         * modules/unistr/u32-strcpy: Likewise.
52134         * modules/unistr/u32-strcspn: Likewise.
52135         * modules/unistr/u32-strdup: Likewise.
52136         * modules/unistr/u32-strlen: Likewise.
52137         * modules/unistr/u32-strmblen: Likewise.
52138         * modules/unistr/u32-strmbtouc: Likewise.
52139         * modules/unistr/u32-strncat: Likewise.
52140         * modules/unistr/u32-strncmp: Likewise.
52141         * modules/unistr/u32-strncpy: Likewise.
52142         * modules/unistr/u32-strnlen: Likewise.
52143         * modules/unistr/u32-strpbrk: Likewise.
52144         * modules/unistr/u32-strrchr: Likewise.
52145         * modules/unistr/u32-strspn: Likewise.
52146         * modules/unistr/u32-strstr: Likewise.
52147         * modules/unistr/u32-strtok: Likewise.
52148         * modules/unistr/u32-to-u16: Likewise.
52149         * modules/unistr/u32-to-u8: Likewise.
52150         * modules/unistr/u32-uctomb: Likewise.
52151         * modules/uniwbrk/u8-wordbreaks: Likewise.
52152         * modules/uniwbrk/u16-wordbreaks: Likewise.
52153         * modules/uniwbrk/u32-wordbreaks: Likewise.
52154         * modules/uniwbrk/ulc-wordbreaks: Likewise.
52155         * modules/uniwbrk/wordbreak-property: Likewise.
52156         * modules/uniwidth/u8-strwidth: Likewise.
52157         * modules/uniwidth/u8-width: Likewise.
52158         * modules/uniwidth/u16-strwidth: Likewise.
52159         * modules/uniwidth/u16-width: Likewise.
52160         * modules/uniwidth/u32-strwidth: Likewise.
52161         * modules/uniwidth/u32-width: Likewise.
52162         * modules/uniwidth/width: Likewise.
52163         * modules/unicase/cased-tests (Makefile.am): Link all test programs
52164         with $(LIBUNISTRING).
52165         * modules/unicase/ignorable-tests: Likewise.
52166         * modules/unicase/locale-language-tests: Likewise.
52167         * modules/unicase/tolower-tests: Likewise.
52168         * modules/unicase/totitle-tests: Likewise.
52169         * modules/unicase/toupper-tests: Likewise.
52170         * modules/unicase/u8-casecmp-tests: Likewise.
52171         * modules/unicase/u8-casecoll-tests: Likewise.
52172         * modules/unicase/u8-casefold-tests: Likewise.
52173         * modules/unicase/u8-is-cased-tests: Likewise.
52174         * modules/unicase/u8-is-casefolded-tests: Likewise.
52175         * modules/unicase/u8-is-lowercase-tests: Likewise.
52176         * modules/unicase/u8-is-titlecase-tests: Likewise.
52177         * modules/unicase/u8-is-uppercase-tests: Likewise.
52178         * modules/unicase/u8-tolower-tests: Likewise.
52179         * modules/unicase/u8-totitle-tests: Likewise.
52180         * modules/unicase/u8-toupper-tests: Likewise.
52181         * modules/unicase/u16-casecmp-tests: Likewise.
52182         * modules/unicase/u16-casecoll-tests: Likewise.
52183         * modules/unicase/u16-casefold-tests: Likewise.
52184         * modules/unicase/u16-is-cased-tests: Likewise.
52185         * modules/unicase/u16-is-casefolded-tests: Likewise.
52186         * modules/unicase/u16-is-lowercase-tests: Likewise.
52187         * modules/unicase/u16-is-titlecase-tests: Likewise.
52188         * modules/unicase/u16-is-uppercase-tests: Likewise.
52189         * modules/unicase/u16-tolower-tests: Likewise.
52190         * modules/unicase/u16-totitle-tests: Likewise.
52191         * modules/unicase/u16-toupper-tests: Likewise.
52192         * modules/unicase/u32-casecmp-tests: Likewise.
52193         * modules/unicase/u32-casecoll-tests: Likewise.
52194         * modules/unicase/u32-casefold-tests: Likewise.
52195         * modules/unicase/u32-is-cased-tests: Likewise.
52196         * modules/unicase/u32-is-casefolded-tests: Likewise.
52197         * modules/unicase/u32-is-lowercase-tests: Likewise.
52198         * modules/unicase/u32-is-titlecase-tests: Likewise.
52199         * modules/unicase/u32-is-uppercase-tests: Likewise.
52200         * modules/unicase/u32-tolower-tests: Likewise.
52201         * modules/unicase/u32-totitle-tests: Likewise.
52202         * modules/unicase/u32-toupper-tests: Likewise.
52203         * modules/unicase/ulc-casecmp-tests: Likewise.
52204         * modules/unicase/ulc-casecoll-tests: Likewise.
52205         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
52206         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
52207         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
52208         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
52209         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
52210         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
52211         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
52212         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
52213         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
52214         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
52215         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
52216         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
52217         * modules/unictype/bidicategory-byname-tests: Likewise.
52218         * modules/unictype/bidicategory-name-tests: Likewise.
52219         * modules/unictype/bidicategory-of-tests: Likewise.
52220         * modules/unictype/bidicategory-test-tests: Likewise.
52221         * modules/unictype/block-list-tests: Likewise.
52222         * modules/unictype/block-of-tests: Likewise.
52223         * modules/unictype/block-test-tests: Likewise.
52224         * modules/unictype/category-C-tests: Likewise.
52225         * modules/unictype/category-Cc-tests: Likewise.
52226         * modules/unictype/category-Cf-tests: Likewise.
52227         * modules/unictype/category-Cn-tests: Likewise.
52228         * modules/unictype/category-Co-tests: Likewise.
52229         * modules/unictype/category-Cs-tests: Likewise.
52230         * modules/unictype/category-L-tests: Likewise.
52231         * modules/unictype/category-Ll-tests: Likewise.
52232         * modules/unictype/category-Lm-tests: Likewise.
52233         * modules/unictype/category-Lo-tests: Likewise.
52234         * modules/unictype/category-Lt-tests: Likewise.
52235         * modules/unictype/category-Lu-tests: Likewise.
52236         * modules/unictype/category-M-tests: Likewise.
52237         * modules/unictype/category-Mc-tests: Likewise.
52238         * modules/unictype/category-Me-tests: Likewise.
52239         * modules/unictype/category-Mn-tests: Likewise.
52240         * modules/unictype/category-N-tests: Likewise.
52241         * modules/unictype/category-Nd-tests: Likewise.
52242         * modules/unictype/category-Nl-tests: Likewise.
52243         * modules/unictype/category-No-tests: Likewise.
52244         * modules/unictype/category-P-tests: Likewise.
52245         * modules/unictype/category-Pc-tests: Likewise.
52246         * modules/unictype/category-Pd-tests: Likewise.
52247         * modules/unictype/category-Pe-tests: Likewise.
52248         * modules/unictype/category-Pf-tests: Likewise.
52249         * modules/unictype/category-Pi-tests: Likewise.
52250         * modules/unictype/category-Po-tests: Likewise.
52251         * modules/unictype/category-Ps-tests: Likewise.
52252         * modules/unictype/category-S-tests: Likewise.
52253         * modules/unictype/category-Sc-tests: Likewise.
52254         * modules/unictype/category-Sk-tests: Likewise.
52255         * modules/unictype/category-Sm-tests: Likewise.
52256         * modules/unictype/category-So-tests: Likewise.
52257         * modules/unictype/category-Z-tests: Likewise.
52258         * modules/unictype/category-Zl-tests: Likewise.
52259         * modules/unictype/category-Zp-tests: Likewise.
52260         * modules/unictype/category-Zs-tests: Likewise.
52261         * modules/unictype/category-and-not-tests: Likewise.
52262         * modules/unictype/category-and-tests: Likewise.
52263         * modules/unictype/category-byname-tests: Likewise.
52264         * modules/unictype/category-name-tests: Likewise.
52265         * modules/unictype/category-none-tests: Likewise.
52266         * modules/unictype/category-of-tests: Likewise.
52267         * modules/unictype/category-or-tests: Likewise.
52268         * modules/unictype/category-test-withtable-tests: Likewise.
52269         * modules/unictype/combining-class-tests: Likewise.
52270         * modules/unictype/ctype-alnum-tests: Likewise.
52271         * modules/unictype/ctype-alpha-tests: Likewise.
52272         * modules/unictype/ctype-blank-tests: Likewise.
52273         * modules/unictype/ctype-cntrl-tests: Likewise.
52274         * modules/unictype/ctype-digit-tests: Likewise.
52275         * modules/unictype/ctype-graph-tests: Likewise.
52276         * modules/unictype/ctype-lower-tests: Likewise.
52277         * modules/unictype/ctype-print-tests: Likewise.
52278         * modules/unictype/ctype-punct-tests: Likewise.
52279         * modules/unictype/ctype-space-tests: Likewise.
52280         * modules/unictype/ctype-upper-tests: Likewise.
52281         * modules/unictype/ctype-xdigit-tests: Likewise.
52282         * modules/unictype/decimal-digit-tests: Likewise.
52283         * modules/unictype/digit-tests: Likewise.
52284         * modules/unictype/mirror-tests: Likewise.
52285         * modules/unictype/numeric-tests: Likewise.
52286         * modules/unictype/property-alphabetic-tests: Likewise.
52287         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
52288         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
52289         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
52290         * modules/unictype/property-bidi-block-separator-tests: Likewise.
52291         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
52292         * modules/unictype/property-bidi-common-separator-tests: Likewise.
52293         * modules/unictype/property-bidi-control-tests: Likewise.
52294         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
52295         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
52296         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
52297         * modules/unictype/property-bidi-european-digit-tests: Likewise.
52298         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
52299         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
52300         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
52301         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
52302         * modules/unictype/property-bidi-pdf-tests: Likewise.
52303         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
52304         * modules/unictype/property-bidi-whitespace-tests: Likewise.
52305         * modules/unictype/property-byname-tests: Likewise.
52306         * modules/unictype/property-combining-tests: Likewise.
52307         * modules/unictype/property-composite-tests: Likewise.
52308         * modules/unictype/property-currency-symbol-tests: Likewise.
52309         * modules/unictype/property-dash-tests: Likewise.
52310         * modules/unictype/property-decimal-digit-tests: Likewise.
52311         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
52312         * modules/unictype/property-deprecated-tests: Likewise.
52313         * modules/unictype/property-diacritic-tests: Likewise.
52314         * modules/unictype/property-extender-tests: Likewise.
52315         * modules/unictype/property-format-control-tests: Likewise.
52316         * modules/unictype/property-grapheme-base-tests: Likewise.
52317         * modules/unictype/property-grapheme-extend-tests: Likewise.
52318         * modules/unictype/property-grapheme-link-tests: Likewise.
52319         * modules/unictype/property-hex-digit-tests: Likewise.
52320         * modules/unictype/property-hyphen-tests: Likewise.
52321         * modules/unictype/property-id-continue-tests: Likewise.
52322         * modules/unictype/property-id-start-tests: Likewise.
52323         * modules/unictype/property-ideographic-tests: Likewise.
52324         * modules/unictype/property-ids-binary-operator-tests: Likewise.
52325         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
52326         * modules/unictype/property-ignorable-control-tests: Likewise.
52327         * modules/unictype/property-iso-control-tests: Likewise.
52328         * modules/unictype/property-join-control-tests: Likewise.
52329         * modules/unictype/property-left-of-pair-tests: Likewise.
52330         * modules/unictype/property-line-separator-tests: Likewise.
52331         * modules/unictype/property-logical-order-exception-tests: Likewise.
52332         * modules/unictype/property-lowercase-tests: Likewise.
52333         * modules/unictype/property-math-tests: Likewise.
52334         * modules/unictype/property-non-break-tests: Likewise.
52335         * modules/unictype/property-not-a-character-tests: Likewise.
52336         * modules/unictype/property-numeric-tests: Likewise.
52337         * modules/unictype/property-other-alphabetic-tests: Likewise.
52338         * modules/unictype/property-other-default-ignorable-code-point-tests:
52339         Likewise.
52340         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
52341         * modules/unictype/property-other-id-continue-tests: Likewise.
52342         * modules/unictype/property-other-id-start-tests: Likewise.
52343         * modules/unictype/property-other-lowercase-tests: Likewise.
52344         * modules/unictype/property-other-math-tests: Likewise.
52345         * modules/unictype/property-other-uppercase-tests: Likewise.
52346         * modules/unictype/property-paired-punctuation-tests: Likewise.
52347         * modules/unictype/property-paragraph-separator-tests: Likewise.
52348         * modules/unictype/property-pattern-syntax-tests: Likewise.
52349         * modules/unictype/property-pattern-white-space-tests: Likewise.
52350         * modules/unictype/property-private-use-tests: Likewise.
52351         * modules/unictype/property-punctuation-tests: Likewise.
52352         * modules/unictype/property-quotation-mark-tests: Likewise.
52353         * modules/unictype/property-radical-tests: Likewise.
52354         * modules/unictype/property-sentence-terminal-tests: Likewise.
52355         * modules/unictype/property-soft-dotted-tests: Likewise.
52356         * modules/unictype/property-space-tests: Likewise.
52357         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52358         * modules/unictype/property-test-tests: Likewise.
52359         * modules/unictype/property-titlecase-tests: Likewise.
52360         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52361         * modules/unictype/property-unified-ideograph-tests: Likewise.
52362         * modules/unictype/property-uppercase-tests: Likewise.
52363         * modules/unictype/property-variation-selector-tests: Likewise.
52364         * modules/unictype/property-white-space-tests: Likewise.
52365         * modules/unictype/property-xid-continue-tests: Likewise.
52366         * modules/unictype/property-xid-start-tests: Likewise.
52367         * modules/unictype/property-zero-width-tests: Likewise.
52368         * modules/unictype/scripts-tests: Likewise.
52369         * modules/unictype/syntax-c-ident-tests: Likewise.
52370         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52371         * modules/unictype/syntax-java-ident-tests: Likewise.
52372         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52373         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52374         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52375         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52376         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52377         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52378         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52379         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52380         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52381         * modules/uniname/uniname-tests: Likewise.
52382         * modules/uninorm/canonical-decomposition-tests: Likewise.
52383         * modules/uninorm/compat-decomposition-tests: Likewise.
52384         * modules/uninorm/composition-tests: Likewise.
52385         * modules/uninorm/decomposing-form-tests: Likewise.
52386         * modules/uninorm/decomposition-tests: Likewise.
52387         * modules/uninorm/filter-tests: Likewise.
52388         * modules/uninorm/nfc-tests: Likewise.
52389         * modules/uninorm/nfd-tests: Likewise.
52390         * modules/uninorm/nfkc-tests: Likewise.
52391         * modules/uninorm/nfkd-tests: Likewise.
52392         * modules/uninorm/u8-normcmp-tests: Likewise.
52393         * modules/uninorm/u8-normcoll-tests: Likewise.
52394         * modules/uninorm/u16-normcmp-tests: Likewise.
52395         * modules/uninorm/u16-normcoll-tests: Likewise.
52396         * modules/uninorm/u32-normcmp-tests: Likewise.
52397         * modules/uninorm/u32-normcoll-tests: Likewise.
52398         * modules/unistdio/u8-asnprintf-tests: Likewise.
52399         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52400         * modules/unistdio/u8-vasprintf-tests: Likewise.
52401         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52402         * modules/unistdio/u8-vsprintf-tests: Likewise.
52403         * modules/unistdio/u16-asnprintf-tests: Likewise.
52404         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52405         * modules/unistdio/u16-vasprintf-tests: Likewise.
52406         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52407         * modules/unistdio/u16-vsprintf-tests: Likewise.
52408         * modules/unistdio/u32-asnprintf-tests: Likewise.
52409         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52410         * modules/unistdio/u32-vasprintf-tests: Likewise.
52411         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52412         * modules/unistdio/u32-vsprintf-tests: Likewise.
52413         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52414         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52415         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52416         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52417         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52418         * modules/unistr/u8-check-tests: Likewise.
52419         * modules/unistr/u8-chr-tests: Likewise.
52420         * modules/unistr/u8-cmp-tests: Likewise.
52421         * modules/unistr/u8-cmp2-tests: Likewise.
52422         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52423         * modules/unistr/u8-cpy-tests: Likewise.
52424         * modules/unistr/u8-mblen-tests: Likewise.
52425         * modules/unistr/u8-mbsnlen-tests: Likewise.
52426         * modules/unistr/u8-mbtouc-tests: Likewise.
52427         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52428         * modules/unistr/u8-mbtoucr-tests: Likewise.
52429         * modules/unistr/u8-move-tests: Likewise.
52430         * modules/unistr/u8-next-tests: Likewise.
52431         * modules/unistr/u8-prev-tests: Likewise.
52432         * modules/unistr/u8-set-tests: Likewise.
52433         * modules/unistr/u8-stpcpy-tests: Likewise.
52434         * modules/unistr/u8-stpncpy-tests: Likewise.
52435         * modules/unistr/u8-strcat-tests: Likewise.
52436         * modules/unistr/u8-strcmp-tests: Likewise.
52437         * modules/unistr/u8-strcoll-tests: Likewise.
52438         * modules/unistr/u8-strcpy-tests: Likewise.
52439         * modules/unistr/u8-strdup-tests: Likewise.
52440         * modules/unistr/u8-strlen-tests: Likewise.
52441         * modules/unistr/u8-strmblen-tests: Likewise.
52442         * modules/unistr/u8-strmbtouc-tests: Likewise.
52443         * modules/unistr/u8-strncat-tests: Likewise.
52444         * modules/unistr/u8-strncmp-tests: Likewise.
52445         * modules/unistr/u8-strncpy-tests: Likewise.
52446         * modules/unistr/u8-strnlen-tests: Likewise.
52447         * modules/unistr/u8-to-u16-tests: Likewise.
52448         * modules/unistr/u8-to-u32-tests: Likewise.
52449         * modules/unistr/u8-uctomb-tests: Likewise.
52450         * modules/unistr/u16-check-tests: Likewise.
52451         * modules/unistr/u16-chr-tests: Likewise.
52452         * modules/unistr/u16-cmp-tests: Likewise.
52453         * modules/unistr/u16-cmp2-tests: Likewise.
52454         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52455         * modules/unistr/u16-cpy-tests: Likewise.
52456         * modules/unistr/u16-mblen-tests: Likewise.
52457         * modules/unistr/u16-mbsnlen-tests: Likewise.
52458         * modules/unistr/u16-mbtouc-tests: Likewise.
52459         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52460         * modules/unistr/u16-mbtoucr-tests: Likewise.
52461         * modules/unistr/u16-move-tests: Likewise.
52462         * modules/unistr/u16-next-tests: Likewise.
52463         * modules/unistr/u16-prev-tests: Likewise.
52464         * modules/unistr/u16-set-tests: Likewise.
52465         * modules/unistr/u16-stpcpy-tests: Likewise.
52466         * modules/unistr/u16-stpncpy-tests: Likewise.
52467         * modules/unistr/u16-strcat-tests: Likewise.
52468         * modules/unistr/u16-strcmp-tests: Likewise.
52469         * modules/unistr/u16-strcoll-tests: Likewise.
52470         * modules/unistr/u16-strcpy-tests: Likewise.
52471         * modules/unistr/u16-strdup-tests: Likewise.
52472         * modules/unistr/u16-strlen-tests: Likewise.
52473         * modules/unistr/u16-strmblen-tests: Likewise.
52474         * modules/unistr/u16-strmbtouc-tests: Likewise.
52475         * modules/unistr/u16-strncat-tests: Likewise.
52476         * modules/unistr/u16-strncmp-tests: Likewise.
52477         * modules/unistr/u16-strncpy-tests: Likewise.
52478         * modules/unistr/u16-strnlen-tests: Likewise.
52479         * modules/unistr/u16-to-u32-tests: Likewise.
52480         * modules/unistr/u16-to-u8-tests: Likewise.
52481         * modules/unistr/u16-uctomb-tests: Likewise.
52482         * modules/unistr/u32-check-tests: Likewise.
52483         * modules/unistr/u32-chr-tests: Likewise.
52484         * modules/unistr/u32-cmp-tests: Likewise.
52485         * modules/unistr/u32-cmp2-tests: Likewise.
52486         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52487         * modules/unistr/u32-cpy-tests: Likewise.
52488         * modules/unistr/u32-mblen-tests: Likewise.
52489         * modules/unistr/u32-mbsnlen-tests: Likewise.
52490         * modules/unistr/u32-mbtouc-tests: Likewise.
52491         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52492         * modules/unistr/u32-mbtoucr-tests: Likewise.
52493         * modules/unistr/u32-move-tests: Likewise.
52494         * modules/unistr/u32-next-tests: Likewise.
52495         * modules/unistr/u32-prev-tests: Likewise.
52496         * modules/unistr/u32-set-tests: Likewise.
52497         * modules/unistr/u32-stpcpy-tests: Likewise.
52498         * modules/unistr/u32-stpncpy-tests: Likewise.
52499         * modules/unistr/u32-strcat-tests: Likewise.
52500         * modules/unistr/u32-strcmp-tests: Likewise.
52501         * modules/unistr/u32-strcoll-tests: Likewise.
52502         * modules/unistr/u32-strcpy-tests: Likewise.
52503         * modules/unistr/u32-strdup-tests: Likewise.
52504         * modules/unistr/u32-strlen-tests: Likewise.
52505         * modules/unistr/u32-strmblen-tests: Likewise.
52506         * modules/unistr/u32-strmbtouc-tests: Likewise.
52507         * modules/unistr/u32-strncat-tests: Likewise.
52508         * modules/unistr/u32-strncmp-tests: Likewise.
52509         * modules/unistr/u32-strncpy-tests: Likewise.
52510         * modules/unistr/u32-strnlen-tests: Likewise.
52511         * modules/unistr/u32-to-u16-tests: Likewise.
52512         * modules/unistr/u32-to-u8-tests: Likewise.
52513         * modules/unistr/u32-uctomb-tests: Likewise.
52514         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52515         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52516         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52517         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52518         * modules/uniwidth/u8-strwidth-tests: Likewise.
52519         * modules/uniwidth/u8-width-tests: Likewise.
52520         * modules/uniwidth/u16-strwidth-tests: Likewise.
52521         * modules/uniwidth/u16-width-tests: Likewise.
52522         * modules/uniwidth/u32-strwidth-tests: Likewise.
52523         * modules/uniwidth/u32-width-tests: Likewise.
52524         * modules/uniwidth/width-tests: Likewise.
52526 2010-05-18  Richard Jones  <rjones@redhat.com>
52528         doc: users.txt: list hivex
52529         * users.txt: Add hivex.
52531 2010-05-18  Richard Jones  <rjones@redhat.com>
52533         doc: users.txt: list febootstrap
52534         * users.txt: Add febootstrap.
52536 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52538         bootstrap: fix an error when gnulib is not used as a git submodule
52539         * build-aux/bootstrap (gnulib_path): If its length is zero then
52540         assign "gnulib" to it.
52541         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52543 2010-05-16  Bruno Haible  <bruno@clisp.org>
52545         Avoid autoconf warnings about AM_ICONV.
52546         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52547         2.64.
52549 2010-05-16  Bruno Haible  <bruno@clisp.org>
52551         absolute-header: Make the macro usable in more situations.
52552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52553         from gl_ABSOLUTE_HEADER.
52554         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52556 2010-05-16  James Youngman  <jay@gnu.org>
52558         doc: update users.txt
52559         * users.txt: Add CSSC.
52561 2010-05-16  Jim Meyering  <meyering@redhat.com>
52563         init.sh: fix an error in the previous change; add more comments
52564         * tests/init.sh: Compare exit code in loop against 9, not 2.
52565         Patch by Bruno Haible.
52566         Make the two tests more similar by adding an empty "then" clause.
52567         Add comments.
52569         init.sh: avoid unnecessary shell re-exec
52570         * tests/init.sh: Improve the re-exec-required check to first test the
52571         current shell.  If it passes the test, do not search for a shell that
52572         does pass, and do not re-exec.  This test is particularly contorted to
52573         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52574         of $(...) evokes a syntax error and causes immediate shell exit with
52575         status 2.  Bruno Haible reported that the re-exec made it impossible
52576         to single-step through any init.sh-using script.
52578 2010-05-16  Bruno Haible  <bruno@clisp.org>
52580         Fix collision between gnulib's and libintl's printf replacements.
52581         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52582         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52583         (printf): When using GNU C, map the __printf__ function to rpl_printf
52584         via __asm__. When not using GNU C, define rpl_printf instead of
52585         __printf__.
52586         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52587         commit.
52588         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52589         commit.
52590         * m4/asm-underscore.m4: New file.
52591         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52592         * modules/stdio (Files): Add m4/asm-underscore.m4.
52593         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52594         Reported by Ben Pfaff.
52596 2010-05-16  Bruno Haible  <bruno@clisp.org>
52598         verify: Avoid skipping the test on openSUSE 11.0.
52599         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52601 2010-05-13  Bruno Haible  <bruno@clisp.org>
52603         Avoid useless warnings from G++.
52604         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52605         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52606         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52608 2010-05-11  Jim Meyering  <meyering@redhat.com>
52610         maint.mk: tweak preceding change
52611         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52612         regexps tighter by anchoring at EOL, and make the new group "shy"
52613         for slightly decreased overhead.
52615 2010-05-11  Eric Blake  <eblake@redhat.com>
52617         maint.mk: gnulib doesn't guarantee NSIG
52618         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52620 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52622         test-pwrite.c: Remove unused variable declaration.
52623         * tests/test-pwrite.c (main): Remove read_buf declaration.
52625         Remove useless test-pwrite.sh file.
52626         * tests/test-pwrite.sh: Delete file.
52627         * modules/pwrite-tests: Remove references.
52628         Reported by Bruno Haible.
52630 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52632         init.sh: fix a typo
52633         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52635 2010-05-10  Jim Meyering  <meyering@redhat.com>
52637         maint.mk: avoid using a temporary file in the always-defined-macros check
52638         * top/maint.mk (.re-defmac): Remove rule.
52639         (gl_trap_): Remove definition.
52640         (sc_prohibit_always-defined_macros): Rewrite not to create and
52641         depend on a temporary file.  Instead, depend on GNU grep's ability
52642         to read a list of regular expressions from stdin when given "-f -".
52644 2010-05-09  Bruno Haible  <bruno@clisp.org>
52646         Update to GNU gettext 0.18, part 1.
52647         * m4/gettext.m4: Update to GNU gettext 0.18.
52648         * m4/intl.m4: Likewise.
52649         * m4/po.m4: Likewise.
52650         * modules/gettext (Files): Add m4/fcntl-o.m4.
52651         (configure.ac): Require gettext infrastructure from version 0.18.
52653 2010-05-09  Jim Meyering  <meyering@redhat.com>
52655         init.sh: enable MALLOC_PERTURB_
52656         * tests/init.sh: Enable glibc's malloc-perturbing option.
52658         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52659         With my recent change in init.sh from the two-line form:
52660             -#   : ${srcdir=.}
52661             -#   . "$srcdir/init.sh"; path_prepend_ .
52662             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52663         I noticed that using the one-line form would cause this test
52664         to fail with a false-positive, or to stop working altogether,
52665         depending on whether help-version changed or all the tests did.
52666         * top/maint.mk (_hv_regex): Remove this definition.
52667         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52668         (_hv_regex_strong): Use a stronger regex to check for conformance.
52669         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52670         Give a separate diagnostic for lack of conforming use.
52672         maint.mk: prohibit definition of symbols defined by gnulib
52673         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52674         definition of symbols defined by gnulib.
52676 2010-05-09  Bruno Haible  <bruno@clisp.org>
52678         acl: Avoid test failure on Cygwin-hosted mingw.
52679         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52681 2010-05-09  Bruno Haible  <bruno@clisp.org>
52683         error: Use system's fcntl function.
52684         * lib/error.c (fcntl): Undefine.
52686 2010-05-09  Jim Meyering  <meyering@redhat.com>
52688         verify: adjust formatting to be more consistent
52689         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52690         argument-list '('s, and after one comma.
52692 2010-05-09  Bruno Haible  <bruno@clisp.org>
52694         error: More reliable output on mingw.
52695         * lib/error.c: Include <windows.h>.
52696         (is_open): New function.
52697         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52698         defined.
52700 2010-05-09  Bruno Haible  <bruno@clisp.org>
52702         vasnprintf: Fix syntax errors in libintl build on mingw.
52703         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52704         pad_ourselves and prec_ourselves after use.
52706 2010-05-08  Bruno Haible  <bruno@clisp.org>
52708         * lib/config.charset: Update comments for Cygwin 1.7.
52709         * lib/localcharset.c: Likewise.
52711 2010-05-07  Jim Meyering  <meyering@redhat.com>
52713         init.sh: improve comments
52714         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52715         . "${srcdir=.}/init.sh"; path_prepend_ .
52716         Add a note about path_prepend_ and the alternative of using
52717         TESTS_ENVIRONMENT.
52719 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52721         exclude: Unescape hashed patterns in wildcard mode.
52722         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52723         to the hash list.
52724         * tests/test-exclude8.sh: New test case.
52725         * modules/exclude-tests: Add new test.
52727 2010-05-05  Eric Blake  <eblake@redhat.com>
52729         verify: automate tests
52730         * modules/verify-tests: New module.
52731         * tests/test-verify.sh: New file.
52732         * tests/test-verify.c: Guard each negative test with a unique id.
52733         Also avoid warning about unused left hand of comma expressions.
52735 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52737         Further improvements to verify.h, suggested by Eric Blake.
52738         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52739         the GL_* versions, to avoid collision with OpenGL.
52740         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52741         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52742         than testing merely whether it's defined.
52744         Modify verify.h to pacify gcc -Wredundant_decls.
52745         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52746         These use the prefix "GL_" since they're likely to be useful elsewhere.
52747         We may need to break them out into a different .h file.
52748         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52749         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52750         of verify_function__.
52752 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52754         Tests for module pwrite.
52755         * modules/pwrite-tests: New file.
52756         * tests/test-pwrite.sh: New file.
52757         * tests/test-pwrite.c: New file.
52759         New module pwrite.
52760         * lib/unistd.in.h (pwrite): New declaration.
52761         * lib/pwrite.c: New file, from glibc with modifications.
52762         * m4/pwrite.m4: New file.
52763         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52764         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52765         REPLACE_PWRITE.
52766         * modules/pwrite: New file.
52767         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52768         REPLACE_PWRITE.
52769         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52770         * doc/posix-functions/pwrite.texi: Mention the new module.
52772 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52774         pread: Update documentation.
52775         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52777 2010-05-04  Eric Blake  <eblake@redhat.com>
52779         docs: update cygwin progress
52780         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52781         this bug.
52782         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52783         Added in cygwin 1.7.2.
52784         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52785         Likewise.
52786         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52787         Likewise.
52788         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52789         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52790         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52791         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52792         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52793         Mention nproc module.
52794         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52795         bug in cygwin 1.7.5 addition.
52796         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52797         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52798         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52799         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52800         1.7.5.
52801         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52802         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52803         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52804         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52805         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52806         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52807         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52808         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52809         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52810         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52811         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52812         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52813         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52814         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52815         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52816         Likewise.
52817         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52818         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52819         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52820         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52821         Likewise.
52822         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52823         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52824         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52825         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52826         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52827         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52828         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52829         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52830         Likewise.
52831         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52832         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52833         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52834         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52835         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52836         Likewise.
52837         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52838         Likewise.
52839         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52840         Likewise.
52841         * doc/glibc-functions/xdrrec_endofrecord.texi
52842         (xdrrec_endofrecord): Likewise.
52843         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52844         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52845         Likewise.
52846         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52847         Likewise.
52849 2010-05-04  Jim Meyering  <meyering@redhat.com>
52851         gendocs.sh: make its "-s FILE" option more useful
52852         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52853         $PACKAGE to reflect the probably-different basename of "FILE".
52855 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52857         bootstrap: don't ignore download_po_files failure
52858         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52859         failure.
52861 2010-05-03  Jim Meyering  <meyering@redhat.com>
52863         maint.mk: allow to pass options to gendocs.sh
52864         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52865         (gendocs_options_): New overridable variable.
52867         gnu-web-doc-update: don't ignore configure or build failure
52868         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52870         announce-gen: backslash-escape '@'s in --help output
52871         * build-aux/announce-gen: Fix syntax errors.
52873         maint.mk, announce-gen: allow project-specific announcement mail headers
52874         * top/maint.mk (translation_project_): Define default.
52875         (announcement_Cc_, announcement_mail_headers_): Likewise.
52876         (announcement): Invoke announce-gen with new --mail-headers option.
52877         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52879         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52880         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52881         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52882         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52883         line in the "err2" output file when running "make check" in verbose
52884         mode (i.e., with set -x enabled).
52886 2010-05-03  Bruno Haible  <bruno@clisp.org>
52888         wctob: Fix for weird platforms.
52889         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52890         argument value.
52892 2010-05-03  Jim Meyering  <meyering@redhat.com>
52894         maint.mk: prohibit unwarranted use of <strings.h>
52895         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52896         strings.h in a file that does not also use strcasecmp, strncasecmp,
52897         ffs or ffsll.
52899         maint.mk: remove obsolete comments
52900         * top/maint.mk: Remove stale, commented-out rules.
52902 2010-05-02  Bruno Haible  <bruno@clisp.org>
52904         wcwidth: Declare also when it's aliased.
52905         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52906         macro.
52908 2010-05-02  Bruno Haible  <bruno@clisp.org>
52910         Fix regression from 2010-04-25.
52911         * gnulib-tool (func_modules_transitive_closure): Check the status of
52912         all modules, not only of the tests that are of the form foo-tests where
52913         foo is a module.
52915 2010-05-02  Bruno Haible  <bruno@clisp.org>
52917         wctob: Work around nasty Cygwin 1.7.2 bug.
52918         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52919         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52921 2010-05-01  Bruno Haible  <bruno@clisp.org>
52923         fpurge: Sharper test.
52924         * tests/test-fpurge.c (main): Add one more ftell check.
52925         * modules/fpurge-tests (Depends-on): Add ftell.
52926         Suggested by Eric Blake.
52928 2010-05-01  Bruno Haible  <bruno@clisp.org>
52930         ftello: Another test.
52931         * tests/test-ftello3.c: New file.
52932         * modules/ftello-tests (Files): Add it.
52933         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52934         MOSTLYCLEANFILES.
52936         ftell: Another test.
52937         * tests/test-ftell3.c: New file.
52938         * modules/ftell-tests (Files): Add it.
52939         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52940         MOSTLYCLEANFILES.
52942 2010-05-01  Bruno Haible  <bruno@clisp.org>
52944         ftell, ftello: Work around Solaris bug.
52945         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52946         * lib/ftello.c: Include stdio-impl.h.
52947         (ftello): On Solaris, when _IOWRT is set, compute the result without
52948         looking at _IOREAD.
52949         * modules/ftello (Files): Add lib/stdio-impl.h.
52950         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52951         * doc/posix-functions/ftello.texi: Likewise.
52952         Reported by Eric Blake.
52954 2010-05-01  Bruno Haible  <bruno@clisp.org>
52956         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52957         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52958         the _IOWRT flag is also set.
52960 2010-05-01  Bruno Haible  <bruno@clisp.org>
52962         Fix doc about a HP-UX stdio bug.
52963         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52964         * doc/posix-functions/ftello.texi: Likewise.
52966 2010-05-01  Bruno Haible  <bruno@clisp.org>
52968         lseek test: Fix failure on Solaris.
52969         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52970         output.
52972 2010-04-30  Jim Meyering  <meyering@redhat.com>
52974         bootstrap: don't ignore failure to generate po*/Makevars
52975         * build-aux/bootstrap (with_gettext): Don't ignore failure
52976         to create po/Makevars or runtime-po/Makevars.
52978 2010-04-29  Eric Blake  <eblake@redhat.com>
52980         headers: relax license to LGPLv2+
52981         * modules/fcntl-h (License): Relax license.
52982         * modules/getopt-posix (License): Likewise.
52983         * modules/locale (License): Likewise.
52984         * modules/math (License): Likewise.
52985         * modules/pty (License): Likewise.
52986         * modules/sched (License): Likewise.
52987         * modules/search (License): Likewise.
52988         * modules/spawn (License): Likewise.
52989         * modules/stdarg (License): Likewise.
52990         * modules/sysexits (License): Likewise.
52992 2010-04-29  Jim Meyering  <meyering@redhat.com>
52994         inttypes: relax license to LGPLv2+
52995         * modules/inttypes (License): Relax license.
52997 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52999         * top/maint.mk (indent): Run twice to produce idempotent results.
53001 2010-04-28  Bruno Haible  <bruno@clisp.org>
53003         getdate: Generate getdate.c in the source directory.
53004         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
53005         MOSTLYCLEANFILES.
53006         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
53008 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
53010         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
53011         is not declared as a const *; avoid warnings in that case.
53013 2010-04-28  Eric Blake  <eblake@redhat.com>
53015         canonicalize-lgpl: avoid compiler warning
53016         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
53017         declaration' / 'extraneous semicolon' warning with some compilers.
53018         Reported by Andreas Gruenbacher.
53020 2010-04-28  Jim Meyering  <meyering@redhat.com>
53022         init.sh: ensure a more reliable exit status when exiting via trap
53023         * tests/init.sh (setup_): Don't rely on $? in signal handler.
53024         Inspired by patches from Dmitry V. Levin.
53025         Also trap on signal 3 (SIGQUIT).
53027 2010-04-27  Bruno Haible  <bruno@clisp.org>
53029         Update doc about utimes().
53030         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
53031         'utimens' module.
53032         Reported by Andreas Gruenbacher <agruen@suse.de>.
53034 2010-04-27  Eric Blake  <eblake@redhat.com>
53036         full-read, full-write: relax license
53037         * modules/full-read (License): Drop to LGPLv2+.
53038         * modules/full-write (License): Likewise.
53039         * modules/safe-read (License): Likewise.
53040         * modules/safe-write (License): Likewise.
53042         pthread: mention library for linking
53043         * modules/pthread (Link): Mention $(LIB_PTHREAD).
53045 2010-04-27  Jim Meyering  <meyering@redhat.com>
53047         maint.mk: fix a bug introduced in last change
53048         * top/maint.mk (gl_assured_headers_): Now that all names are on
53049         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
53050         is not anchored to end of word, it should be adequate.
53052         maint.mk: avoid side-effect in latest syntax-check
53053         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
53054         to run commands via $(shell...), and hence to incur cost only when
53055         the new rule is actually run.
53057         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
53058         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
53059         and use that to create a regexp used to detect all #if HAVE_..._H uses.
53060         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
53061         (gl_assured_headers_, az_, AZ_): Define.
53062         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
53064 2010-04-26  Jim Meyering  <jim@meyering.net>
53065             Bruno Haible  <bruno@clisp.org>
53067         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
53068         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
53069         Prompted by an exchange with Gilles Espinasse.
53071 2010-04-26  Jim Meyering  <meyering@redhat.com>
53073         git-version-gen: aesthetic tweak
53074         * build-aux/git-version-gen: Use "$nl" rather than a literal,
53075         so that the command remains on a single line.
53077 2010-04-26  Eric Blake  <eblake@redhat.com>
53079         git-version-gen: allow use on EBCDIC hosts
53080         * build-aux/git-version-gen (dirty): Use literal rather than tying
53081         ourselves to ascii.
53082         Reported by Steve Goetze.
53084 2010-04-25  Bruno Haible  <bruno@clisp.org>
53086         netdb: Add support for GNULIB_POSIXCHECK.
53087         * lib/netdb.in.h: Include warn-on-use.h.
53088         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
53089         functions are used when GNULIB_POSIXCHECK is defined and the
53090         getaddrinfo module is not in use.
53091         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
53092         freeaddrinfo, gai_strerror, getnameinfo are declared.
53093         * modules/netdb (Depends-on): Add warn-on-use.
53094         (Makefile.am): Include warn-on-use.h in netdb.h.
53096 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
53098         build: avoid "make check" failure without .git/ directory
53099         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
53100         there is no .git/ directory.
53102 2010-04-25  Bruno Haible  <bruno@clisp.org>
53104         ptsname: Fix misuse of ttyname_r.
53105         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
53106         of errno.
53108 2010-04-25  Bruno Haible  <bruno@clisp.org>
53110         ttyname_r: Make it work on Solaris 10.
53111         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
53112         if the system function has the POSIX declaration. Test whether the
53113         function fails if the buffer is less than 128 bytes large.
53114         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
53115         system's ttyname_r function. Provide a reasonably large buffer.
53116         * modules/ttyname_r (Depends-on): Add extensions.
53117         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
53119 2010-04-25  Bruno Haible  <bruno@clisp.org>
53121         Use the 'extensions' module for some more functions on Solaris.
53122         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
53123         module.
53124         * doc/posix-functions/ctime_r.texi: Likewise.
53125         * doc/posix-functions/getgrgid_r.texi: Likewise.
53126         * doc/posix-functions/getgrnam_r.texi: Likewise.
53127         * doc/posix-functions/getpwnam_r.texi: Likewise.
53128         * doc/posix-functions/getpwuid_r.texi: Likewise.
53129         * doc/posix-functions/readdir_r.texi: Likewise.
53130         * doc/posix-functions/sigwait.texi: Likewise.
53131         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
53132         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
53134 2010-04-25  Bruno Haible  <bruno@clisp.org>
53136         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
53137         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
53138         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
53139         * lib/ttyname_r.c: Include <limits.h>.
53140         (ttyname_r): Define using the system's ttyname_r function, if it exists
53141         and not on Solaris.
53142         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
53143         set.
53144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
53145         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
53146         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
53147         Reported by Simon Josefsson.
53149 2010-04-25  Bruno Haible  <bruno@clisp.org>
53151         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
53152         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
53153         * doc/posix-functions/ctime_r.texi: Likewise.
53154         * doc/posix-functions/getgrgid_r.texi: Likewise.
53155         * doc/posix-functions/getgrnam_r.texi: Likewise.
53156         * doc/posix-functions/getlogin_r.texi: Likewise.
53157         * doc/posix-functions/getpwnam_r.texi: Likewise.
53158         * doc/posix-functions/getpwuid_r.texi: Likewise.
53159         * doc/posix-functions/readdir_r.texi: Likewise.
53160         * doc/posix-functions/sigwait.texi: Likewise.
53161         * doc/posix-functions/ttyname_r.texi: Likewise.
53162         Reported by Simon Josefsson.
53164 2010-04-25  Bruno Haible  <bruno@clisp.org>
53166         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
53167         * gnulib-tool (func_usage): Document that --with-*-tests options apply
53168         also to --create-testdir.
53169         (func_acceptable): Don't consider the status of *-tests modules here.
53170         (func_modules_transitive_closure): Consider it here, before including a
53171         test module.
53172         (func_import, func_create_testdir): Set inc_all_direct_tests,
53173         inc_all_indirect_tests.
53174         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
53175         --create-testdir and --create-megatestdir.
53177 2010-04-25  Bruno Haible  <bruno@clisp.org>
53179         gnulib-tool: Add --without-*-tests options.
53180         * gnulib-tool (func_usage): Document the --without-*-tests options.
53181         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
53182         excl_unportable_tests): New variables.
53183         Fail if they are specified with --import or --update.
53184         (func_acceptable): Respect the excl_*_tests variables.
53185         (func_import): Set the excl_*_tests variables to empty.
53187 2010-04-25  Simon Josefsson  <simon@josefsson.org>
53188             Bruno Haible  <bruno@clisp.org>
53190         Work around a MacOS X 10.4 bug with openpty.
53191         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
53192         * tests/test-openpty.c (main): Close the master side explicitly.
53194 2010-04-25  Bruno Haible  <bruno@clisp.org>
53196         strnlen: Fix a C++ test error on MacOS X and Solaris.
53197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
53198         the function is not declared.
53199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
53200         Simon Josefsson.
53202 2010-04-24  Bruno Haible  <bruno@clisp.org>
53204         Avoid a gcc warning.
53205         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
53206         of correct type for %08lx directive.
53207         Reported by Eric Blake.
53209 2010-04-24  Bruno Haible  <bruno@clisp.org>
53211         vasnprintf: Correct errno value in case of out-of-memory.
53212         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
53213         or sprintf. Use the errno value from SNPRINTF or sprintf.
53214         Reported by Ian Beckwith <ianb@erislabs.net>.
53216 2010-04-24  Bruno Haible  <bruno@clisp.org>
53218         ansi-c++-opt: Find correct compiler when cross-compiling.
53219         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
53220         AC_CHECK_PROGS.
53221         Reported by Simon Josefsson.
53223 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
53225         vc-list-files: Add support for subversion
53226         * build-aux/vc-list-files: Use "svn list" to generate the list of
53227         files controlled by subversion.
53229 2010-04-23  Jim Meyering  <meyering@redhat.com>
53231         vc-list-files tests: convert to use init.sh
53232         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
53233         path_prepend_.
53234         Use Exit, not exit.
53235         Use skip_ rather than open coding it.
53236         Remove trap set-up and compare definitions.
53237         * tests/test-vc-list-files-git.sh: Likewise.
53238         * modules/vc-list-files-tests (Files): Add tests/init.sh.
53240 2010-04-22  Simon Josefsson  <simon@josefsson.org>
53242         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
53243         backup files.
53245 2010-04-21  Simon Josefsson  <simon@josefsson.org>
53247         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
53249 2010-04-20  Eric Blake  <eblake@redhat.com>
53251         tests: be robust to ignored SIGPIPE
53252         * tests/test-select-in.sh: Consume all output.
53253         * tests/test-lseek.sh: Check correct exit status, while avoiding
53254         EPIPE.
53256 2010-04-20  Simon Josefsson  <simon@josefsson.org>
53257             Bruno Haible  <bruno@clisp.org>
53259         visibility: Don't use -fvisibility if it leads to a warning.
53260         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
53261         yes, don't pretend that visibility works if it leads to a warning.
53262         Reported by Mike Gran <spk121@yahoo.com>.
53264 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
53266         * build-aux/bootstrap: Use "git -h" for testing for supported options
53267         instead of "git --help".  The short-form option only shows a summary,
53268         and doesn't layout the full man page.  Grep for the full option name
53269         in the summary, too.
53271 2010-04-19  Bruno Haible  <bruno@clisp.org>
53273         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
53274         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
53275         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
53276         mention of RELOCATABLE_STRIP.
53277         Reported by Sylvain Beucler <beuc@beuc.net>.
53279 2010-04-19  Bruno Haible  <bruno@clisp.org>
53281         * lib/diffseq.h: Fix typo in comment.
53282         Reported by Eric Blake.
53284 2010-04-19  Bruno Haible  <bruno@clisp.org>
53286         ioctl: Move autoconf macro to a .m4 file.
53287         * m4/ioctl.m4: New file, extracted from modules/ioctl.
53288         * modules/ioctl (Files): Add it.
53289         (configure.ac): Simply invoke gl_FUNC_IOCTL.
53290         Reported by Ian Beckwith <ianb@erislabs.net>.
53292 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
53293             Bruno Haible  <bruno@clisp.org>
53295         diffseq: Accommodate use-case with abstract arrays.
53296         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
53297         is not defined.
53298         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
53299         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
53301 2010-04-18  Bruno Haible  <bruno@clisp.org>
53303         * doc/posix-headers/stdbool.texi: More precise wording.
53305 2010-04-17  Jim Meyering  <meyering@redhat.com>
53307         maint.mk: use gnu-style indentation in an embedded perl script
53308         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
53309         Rename variable: s/two/last_two_bytes/
53311 2010-04-16  Eric Blake  <eblake@redhat.com>
53313         test-stdbool: skip test that fails with Solaris CC
53314         * tests/test-stdbool.c (f): Skip test that causes compilation
53315         error under buggy C++ compiler.
53316         * lib/stdbool.in.h: Document the limitation.
53317         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
53319         setenv: allow compilation with C++
53320         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
53321         register keyword.
53323         stdint: allow test to pass with C++
53324         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
53326         getopt: allow compilation with C++
53327         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
53328         struct.
53329         * lib/getopt.c (_getopt_internal_r): Use correct type.
53330         Reported by Dagobert Michelson, via Joel E. Denny.
53332 2010-04-16  Bruno Haible  <bruno@clisp.org>
53334         Override netdb.h always.
53335         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
53336         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
53337         Reported by Ludovic Courtès <ludo@gnu.org>.
53339 2010-04-15  Bruno Haible  <bruno@clisp.org>
53341         openpty: Fix mistake from 2010-03-21.
53342         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
53343         Reported by Simon Josefsson.
53345 2010-04-15  Eric Blake  <eblake@redhat.com>
53347         test-forkpty: fix expected signature
53348         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
53349         Reported by Simon Josefsson.
53351 2010-04-15  Jim Meyering  <meyering@redhat.com>
53353         maint.mk: texinfo_suffix_re_: correct the default regexp
53354         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
53356         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53357         make it configurable via texinfo_suffix_re_.
53359 2010-04-14  Eric Blake  <eblake@redhat.com>
53361         strtok_r: relax license to LGPLv2+
53362         * modules/strtok_r (License): Relax license.
53363         Reported by Matthias Bolte.
53365 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53367         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53368         version 1.4.4 by default instead of requiring the libgcrypt
53369         version used during build.  This makes it possible to use the
53370         application with older but still binary compatible libgcrypt
53371         versions.
53373 2010-04-13  Eric Blake  <eblake@redhat.com>
53375         getopt-gnu: match recent glibc fixes and posix ruling
53376         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53377         '+' handling, when requesting extensions.
53378         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53379         'W;' handling.
53380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53381         * doc/posix-functions/getopt.texi (getopt): Document this.
53382         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53383         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53384         Likewise.
53386         getopt: merge bug fixes from glibc
53387         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53388         diagnostics.  Honor '+:' correctly.  Reject ';'.
53390         getopt-posix: detect MacOS bug
53391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53392         optind when missing a required argument.
53393         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53394         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53395         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53396         Likewise.
53398         getopt-posix: avoid spurious failure on Solaris
53399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53400         an indicator that setting optind=1 is sufficient for reset.
53402         getopt-posix: avoid spurious failure on FreeBSD
53403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53404         in POSIX mode, since the m4 test uses it.
53406         gnulib-tool: silence warning on BSD sh
53407         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53409 2010-04-13  Jim Meyering  <meyering@redhat.com>
53411         doc: users.txt: GNU patch now uses gnulib
53412         * users.txt: Add patch.
53414 2010-04-12  Jim Meyering  <meyering@redhat.com>
53416         maint.mk: generate more concise timing data for syntax-check rules
53417         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53418         " done" from each line that reports a syntax-check test duration.
53420 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53422         git-version-gen: use "git update-index..." rather than "git status"
53423         * build-aux/git-version-gen: Use git update-index --refresh, not
53424         "git status".  With some versions of git, "git status" would fail
53425         to update the index and result in an unwarranted "-dirty" suffix.
53427 2010-04-11  Jim Meyering  <meyering@redhat.com>
53429         openat: correct formatting (no semantic change)
53430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53431         Suggested by Bruno Haible.
53433 2010-04-11  Bruno Haible  <bruno@clisp.org>
53435         Stricter declaration checking in testdirs.
53436         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53437         If for_tests is true, augment AM_CPPFLAGS to define
53438         GNULIB_STRICT_CHECKING.
53439         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53440         GNULIB_STRICT_CHECKING is defined, verify that the function is
53441         declared.
53443 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53444             Bruno Haible  <bruno@clisp.org>
53446         libunistring: Improve configure output.
53447         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53448         Don't say "consider installing GNU libunistring" when checking again
53449         with libiconv.
53451 2010-04-11  Bruno Haible  <bruno@clisp.org>
53453         libunistring: Correct value of $LTLIBUNISTRING.
53454         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53455         correct the value of $LTLIBUNISTRING.
53457 2010-04-11  Bruno Haible  <bruno@clisp.org>
53459         havelib: Add static libraries to LIBS in the right order.
53460         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53461         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53463 2010-04-11  Bruno Haible  <bruno@clisp.org>
53465         libunistring: Detect libunistring also when it depends on libiconv.
53466         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53467         the second AC_LIB_HAVE_LINKFLAGS invocation.
53469 2010-04-11  James Youngman  <jay@gnu.org>
53471         close-stream: declare local scalars to be "const"
53472         * lib/close-stream.c (close_stream): Make boolean variables const
53473         to document the fact that we set but do not change them.
53475 2010-04-11  Bruno Haible  <bruno@clisp.org>
53477         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53479 2010-04-11  Jim Meyering  <meyering@redhat.com>
53481         maint.mk: don't include dist-check.mk
53482         * top/maint.mk: Remove bogus include directive.
53484         maint.mk: improve empty-line-at-EOF check
53485         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53486         solution, rather than tail+Perl-based one.  The latter would read
53487         a few kilobytes from the end of each file, and did not handle empty
53488         files properly.
53490         maint.mk: print the elapsed time for each syntax-check rule
53491         * top/maint.mk (sc_m_rules_): Save start time in a file.
53492         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53493         (local-check): Interpose the .z rules
53495 2010-04-11  Jim Meyering  <meyering@redhat.com>
53497         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53498         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53499         empty file with one that ends in an empty line.
53501 2010-04-10  Bruno Haible  <bruno@clisp.org>
53503         mkdir: Make it work on mingw64.
53504         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53505         * lib/mkdir.c: Update comment.
53506         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53508 2010-04-10  Bruno Haible  <bruno@clisp.org>
53510         Don't override improved macro from newer autoconf.
53511         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53512         autoconf >= 2.62.
53513         Reported by Joel E. Denny <jdenny@clemson.edu>.
53515 2010-04-10  Jim Meyering  <meyering@redhat.com>
53517         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53518         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53520         maint.mk: correct a diagnostic
53521         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53522         in diagnostic; now use $prohibit.
53524 2010-04-10  Bruno Haible  <address@hidden>
53526         fchownat: Fix a C++ test error on Solaris 8.
53527         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53528         the function does not exist.
53530 2010-04-10  Bruno Haible  <bruno@clisp.org>
53532         vasnprintf: Add more tests.
53533         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53534         (test_function): Test converting an invalid wide string.
53536         vasnprintf: Correct handling of unconvertible wide string arguments.
53537         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53538         VASNPRINTF.
53539         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53540         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53541         smaller than the expected maximum need for the directive. Set errno to
53542         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53543         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53545         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53546         * modules/vasnprintf (Files): Add m4/printf.m4.
53547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53549 2010-04-10  Bruno Haible  <bruno@clisp.org>
53551         vasnprintf: Fix crash in %ls directive.
53552         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53553         string is passed as argument to %ls, with no precision and no width.
53554         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53556 2010-04-10  Bruno Haible  <bruno@clisp.org>
53558         vasnprintf: Fix multiple test failures on mingw.
53559         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53560         _snprintf, or snwprintf, not _snwprintf.
53562 2010-04-10  Bruno Haible  <bruno@clisp.org>
53564         write: Fix a C++ test error on mingw.
53565         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53567 2010-04-10  Bruno Haible  <bruno@clisp.org>
53569         vasnprintf test: Reduce code duplication.
53570         * tests/test-vasnprintf.c (test_function): New function, extracted from
53571         test_vasnprintf.
53572         (test_vasnprintf, test_asnprintf): Invoke it.
53574 2010-04-10  Bruno Haible  <bruno@clisp.org>
53576         strnlen: Fix warning in C++ mode on MacOS X.
53577         * lib/string.in.h (strnlen): Use the modern idiom.
53578         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53579         defining strnlen as a macro already in <config.h>.
53580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53581         REPLACE_STRNLEN.
53582         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53583         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53585 2010-04-08  James Youngman  <jay@gnu.org>
53587         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53588         the example.
53590 2010-04-09  Jim Meyering  <meyering@redhat.com>
53592         maint.mk: print better diagnostic when there is no $(_hv_file)
53593         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53594         announce that when $(_hv_file) (aka help-version) does not exist.
53596         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53597         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53598         not try to interpret its random input bytes.  Jarno Rajahalme reported
53599         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53600         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53601         (mktempd_): Likewise, just in case.
53603         ftruncate: add two years to projected module removal date: 2012
53604         * m4/ftruncate.m4: Adjust comments.
53606         ftruncate: mark module as obsolete; even MinGW provides it, now
53607         * modules/ftruncate (Status): Obsolete.
53608         (Notice): Say that.
53609         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53612 2010-04-08  Bruno Haible  <bruno@clisp.org>
53614         Fix side effects from tests-related modules.
53615         * modules/dprintf-posix (Comment): New section.
53616         * modules/fprintf-posix (Comment): Likewise.
53617         * modules/obstack-printf-posix (Comment): Likewise.
53618         * modules/printf-posix (Comment): Likewise.
53619         * modules/snprintf-posix (Comment): Likewise.
53620         * modules/sprintf-posix (Comment): Likewise.
53621         * modules/vasnprintf-posix (Comment): Likewise.
53622         * modules/vasprintf-posix (Comment): Likewise.
53623         * modules/vdprintf-posix (Comment): Likewise.
53624         * modules/vfprintf-posix (Comment): Likewise.
53625         * modules/vprintf-posix (Comment): Likewise.
53626         * modules/vsnprintf-posix (Comment): Likewise.
53627         * modules/vsprintf-posix (Comment): Likewise.
53628         * modules/xprintf-posix (Comment): Likewise.
53629         * modules/xvasprintf-posix (Comment): Likewise.
53630         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53631         * modules/floorf-tests (Depends-on): Likewise.
53632         * modules/round-tests (Depends-on): Likewise.
53633         * modules/roundf-tests (Depends-on): Likewise.
53634         * modules/trunc-tests (Depends-on): Likewise.
53635         * modules/truncf-tests (Depends-on): Likewise.
53636         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53637         'fprintf-posix' module is not present.
53638         * tests/test-floorf2.c (check): Likewise.
53639         * tests/test-trunc2.c (check): Likewise.
53640         * tests/test-truncf2.c (check): Likewise.
53641         * tests/test-round2.c (equal): Likewise.
53642         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53644 2010-04-07  Karl Berry  <karl@gnu.org>
53646         * config/srclist.txt,
53647         * config/srclistvars.sh,
53648         * config/srclist-update: doc fixes.
53650 2010-04-07  Jim Meyering  <meyering@redhat.com>
53652         maint.mk: add a PATH crosschecking syntax-check rule
53653         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53654         Useful if you use a test like the one in help-version (coreutils,
53655         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53656         printed by prog --version.
53658 2010-04-06  Bruno Haible  <bruno@clisp.org>
53660         Fix link error on mingw.
53661         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53662         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53664 2010-04-06  Bruno Haible  <bruno@clisp.org>
53666         Assume rmdir exists.
53667         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53669 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53671         doc: update users.txt
53672         * users.txt: Add gcal.
53674 2010-04-06  Jim Meyering  <meyering@redhat.com>
53676         init.sh: simply unset TMPDIR rather than risking env -i
53677         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53678         although it probably works fine on all Unix-based systems, some
53679         systems (Cygwin?) cannot tolerate a totally cleared environment.
53680         Suggestion from Eric Blake.
53682 2010-04-06  Jim Meyering  <meyering@redhat.com>
53684         init.sh: portability fix: use env's POSIX-specified -i option not -u
53685         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53686         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53688 2010-04-05  Bruno Haible  <bruno@clisp.org>
53690         btowc: Work around Cygwin 1.7.2 bug.
53691         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53692         does not map NUL to 0.
53693         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53695 2010-04-05  Bruno Haible  <bruno@clisp.org>
53697         Make the multithread modules work on Cygwin 1.7.2.
53698         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53699         imported symbols can be declared weak, so that it returns "no" on
53700         Cygwin 1.7.2.
53702 2010-04-05  Bruno Haible  <bruno@clisp.org>
53704         Use the module 'strncat'.
53705         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53707         Tests for module 'strncat'.
53708         * modules/strncat-tests: New file.
53709         * tests/test-strncat.c: New file.
53711         New module 'strncat'.
53712         * lib/string.in.h (strncat): New declaration.
53713         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53714         * m4/strncat.m4: New file, based on m4/memchr.m4.
53715         * modules/strncat: New file.
53716         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53717         is declared.
53718         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53719         REPLACE_STRNCAT.
53720         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53721         REPLACE_STRNCAT.
53722         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53723         module.
53724         * tests/test-string-c++.cc: Check signature of strncat.
53726 2010-04-05  Jim Meyering  <meyering@redhat.com>
53728         xstrtoumax-tests: convert to use init.sh
53729         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53730         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53731         Use Exit, not exit.
53732         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53734         xstrtoimax-tests: convert to use init.sh
53735         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53736         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53737         Use Exit, not exit.
53738         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53740 2010-04-05  Bruno Haible  <bruno@clisp.org>
53742         sys_socket: Avoid #define replacements in C++ mode.
53743         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53744         warning to the function if possible, rather than #defining the symbol
53745         to a dysfunctional alias.
53747 2010-04-05  Bruno Haible  <bruno@clisp.org>
53749         fseeko: Fix C++ test error on mingw.
53750         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53751         gl_FUNC_FSEEKO.
53752         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53753         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53754         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53755         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53757 2010-04-05  Bruno Haible  <bruno@clisp.org>
53759         duplocale: Improve test output.
53760         * tests/test-duplocale.c (main): Print reason for skipped test.
53762 2010-04-05  Bruno Haible  <bruno@clisp.org>
53764         Assume rmdir exists.
53765         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53766         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53768 2010-04-05  Bruno Haible  <bruno@clisp.org>
53770         Fix link error on Solaris 8 with cc.
53771         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53773 2010-04-05  Bruno Haible  <bruno@clisp.org>
53775         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53776         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53778 2010-04-05  Bruno Haible  <bruno@clisp.org>
53780         vasprintf: Update documentation.
53781         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53783 2010-04-05  Bruno Haible  <bruno@clisp.org>
53785         ptsname: Improve test.
53786         * tests/test-ptsname.c (main): Also try the various master names of BSD
53787         systems.
53789 2010-04-05  Bruno Haible  <bruno@clisp.org>
53791         memchr: Avoid a possible C++ test error.
53792         * lib/string.in.h (memchr): Provide declaration if function is missing.
53793         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53794         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53796         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53798 2010-04-05  Bruno Haible  <bruno@clisp.org>
53800         strtok_r: Improve idiom.
53801         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53802         AC_LIBOBJ is used.
53804 2010-04-05  Bruno Haible  <bruno@clisp.org>
53806         strdup: Improve idiom.
53807         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53808         AC_LIBOBJ is used.
53809         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53810         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53811         when AC_LIBOBJ is used.
53813 2010-04-05  Bruno Haible  <bruno@clisp.org>
53815         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53816         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53817         don't set REPLACE_MBSINIT to 1.
53818         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53819         don't set REPLACE_MBRTOWC to 1.
53820         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53821         exist, don't set REPLACE_MBSRTOWCS to 1.
53822         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53823         exist, don't set REPLACE_MBSNRTOWCS to 1.
53824         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53825         don't set REPLACE_WCRTOMB to 1.
53826         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53827         exist, don't set REPLACE_WCSRTOMBS to 1.
53828         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53829         exist, don't set REPLACE_WCSNRTOMBS to 1.
53831 2010-04-05  Bruno Haible  <bruno@clisp.org>
53833         ldexpl: Improve idiom.
53834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53835         make sure to set HAVE_DECL_LDEXPL to 0.
53837 2010-04-05  Jim Meyering  <meyering@redhat.com>
53839         xstrtol-tests: convert to use init.sh
53840         * modules/xstrtol-tests (Files): Add tests/init.sh.
53841         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53842         Use Exit, not exit.
53843         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53845         atexit-tests: convert to use init.sh
53846         * modules/atexit-tests (Files): Add tests/init.sh.
53847         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53848         Use Exit, not exit.
53849         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53851         init.sh: fix typo
53852         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53854         init.sh: make it easier for a test script to write to the tty, ...
53855         when using automake's parallel-tests mode.
53856         * tests/init.sh (stderr_fileno_): Define overridable variable.
53857         (warn_): New function, to use it.
53858         (fail_, skip_, framework_failure_): Use warn_.
53860 2010-04-04  Bruno Haible  <bruno@clisp.org>
53862         btowc: Avoid warning.
53863         * lib/btowc.c: Include <stdlib.h>.
53864         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53866 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53867             Bruno Haible  <bruno@clisp.org>
53869         wchar: Port to NetBSD 1.5.
53870         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53871         * lib/wctype.in.h (WEOF): Likewise.
53873 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53874             Bruno Haible  <bruno@clisp.org>
53876         Port extended stdio to NetBSD 1.5.
53877         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53878         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53879         older.
53881 2010-04-04  Bruno Haible  <bruno@clisp.org>
53883         string: Remove unused substitution.
53884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53885         HAVE_DECL_STRERROR.
53886         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53888 2010-04-04  Bruno Haible  <bruno@clisp.org>
53890         strtod: Avoid a possible C++ test error.
53891         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53892         set REPLACE_STRTOD.
53894 2010-04-04  Bruno Haible  <bruno@clisp.org>
53896         strerror: Update documentation.
53897         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53899 2010-04-04  Bruno Haible  <bruno@clisp.org>
53901         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53902         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53903         _GL_CXXALIAS_SYS_CAST.
53905 2010-04-04  Bruno Haible  <bruno@clisp.org>
53907         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53908         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53909         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53910         REPLACE_FREXPL to 1.
53911         * doc/posix-functions/frexpl.texi: Update documentation.
53913 2010-04-04  Bruno Haible  <bruno@clisp.org>
53915         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53916         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53918 2010-04-04  Bruno Haible  <bruno@clisp.org>
53920         Implement nanosleep for native Windows.
53921         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53923 2010-04-04  Bruno Haible  <bruno@clisp.org>
53925         math: Fix some C++ test errors on Solaris 8.
53926         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53928 2010-04-04  Bruno Haible  <bruno@clisp.org>
53930         math: Fix some C++ test errors on Cygwin.
53931         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53932         truncl): Provide declaration if the system does not have it.
53933         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53934         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53935         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53936         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53937         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53938         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53939         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53940         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53941         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53942         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53943         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53944         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53945         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53946         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53947         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53948         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53950         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53951         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53952         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53953         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53954         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53956 2010-04-04  Bruno Haible  <bruno@clisp.org>
53958         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53959         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53960         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53961         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53962         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53963         * m4/isinf.m4 (gl_ISINF): Likewise.
53964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53966 2010-04-04  Bruno Haible  <bruno@clisp.org>
53968         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53969         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53971 2010-04-04  Bruno Haible  <bruno@clisp.org>
53973         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53974         * modules/tmpfile (configure.ac): Update.
53976         tmpfile: Fix C++ test error on mingw.
53977         * lib/stdio.in.h (tmpfile): New declaration.
53978         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53979         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53980         * modules/tmpfile (Depends-on): Add stdio.
53981         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53982         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53983         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53984         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53985         REPLACE_TMPFILE.
53986         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53988 2010-04-04  Bruno Haible  <bruno@clisp.org>
53990         ioctl: Fix C++ test error on mingw.
53991         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53992         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53993         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53995 2010-04-03  Bruno Haible  <bruno@clisp.org>
53997         wcwidth: Fix C++ test error on mingw.
53998         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
54000         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
54002 2010-04-03  Bruno Haible  <bruno@clisp.org>
54004         nanosleep: Fix C++ test error on mingw.
54005         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
54006         * lib/time.in.h (nanosleep): Use modern idiom.
54007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
54008         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
54009         REPLACE_NANOSLEEP to 1.
54010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
54011         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
54013 2010-04-03  Bruno Haible  <bruno@clisp.org>
54015         strptime: Fix C++ test error on mingw.
54016         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
54017         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
54018         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
54019         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
54020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
54021         not REPLACE_STRPTIME.
54022         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
54023         REPLACE_STRPTIME.
54025 2010-04-03  Bruno Haible  <bruno@clisp.org>
54027         timegm: Fix C++ test error on mingw.
54028         * lib/time.in.h (timegm): Use modern idiom.
54029         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
54030         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
54031         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
54032         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
54034 2010-04-03  Bruno Haible  <bruno@clisp.org>
54036         timegm: Assume declaration if function exists.
54037         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
54038         if it exists. Don't clobber ac_cv_func_timegm.
54040 2010-04-03  Bruno Haible  <bruno@clisp.org>
54042         time_r: Fix C++ test error on mingw.
54043         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
54044         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
54045         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
54046         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
54047         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
54049 2010-04-03  Bruno Haible  <bruno@clisp.org>
54051         time_r: Minor updates.
54052         * modules/time_r (Description): Mention the provided functions.
54053         * lib/time_r.c: Don't include <string.h>.
54054         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
54055         * doc/posix-functions/localtime_r.texi: Likewise.
54057 2010-04-03  Bruno Haible  <bruno@clisp.org>
54059         time: Fix regression introduced on 2010-03-08.
54060         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
54061         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
54063 2010-04-03  Jim Meyering  <meyering@redhat.com>
54065         maint.mk: don't silently disable project-specific syntax-check rules
54066         * top/maint.mk (_prohibit_regexp): Define, to help people realize
54067         that they need to convert their project-specific syntax-check rules
54068         to use the new _sc_search_regexp.
54070 2010-04-03  Bruno Haible  <bruno@clisp.org>
54072         fchdir: Fix regression introduced on 2010-03-08.
54073         * lib/unistd.in.h (fchdir): Fix declaration.
54074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
54075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
54076         REPLACE_FCHDIR.
54077         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
54078         REPLACE_FCHDIR.
54080 2010-04-03  Bruno Haible  <bruno@clisp.org>
54082         getpagesize: Fix C++ test error on mingw.
54083         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
54084         system does not declare the function.
54085         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
54086         declared.
54087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54088         HAVE_DECL_GETPAGESIZE.
54089         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
54091 2010-04-03  Bruno Haible  <bruno@clisp.org>
54093         stdio: Make C++ tests work on mingw.
54094         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
54095         does not declare the function.
54097 2010-04-03  Bruno Haible  <bruno@clisp.org>
54099         ftello: Fix C++ test error on mingw.
54100         * lib/stdio.in.h (ftello): Use modern idiom.
54101         * lib/ftello.c (ftello): Renamed from rpl_ftello.
54102         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
54103         is missing and that it needs to be replaced.
54104         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
54105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
54106         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
54108 2010-04-03  Bruno Haible  <bruno@clisp.org>
54110         fseeko: Fix C++ test error on mingw.
54111         * lib/stdio.in.h (fseeko): Use modern idiom.
54112         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
54113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
54114         is missing and that it needs to be replaced.
54115         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
54116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
54117         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
54119 2010-04-03  Bruno Haible  <bruno@clisp.org>
54121         mkstemp: Fix C++ test error on mingw.
54122         * lib/stdlib.in.h (mkstemp): Use modern idiom.
54123         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
54124         function is missing and that it needs to be replaced.
54125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
54126         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
54128 2010-04-03  Bruno Haible  <bruno@clisp.org>
54130         stpncpy: Fix C++ test error on mingw.
54131         * lib/string.in.h (stpncpy): Use modern idiom.
54132         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
54133         function is missing and that it needs to be replaced.
54134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54135         REPLACE_STPNCPY.
54136         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
54138 2010-04-03  Bruno Haible  <bruno@clisp.org>
54140         sys_stat: Fix C++ test error on mingw.
54141         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
54142         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
54144 2010-04-03  Bruno Haible  <bruno@clisp.org>
54146         pty: Update doc.
54147         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
54149 2010-04-03  Bruno Haible  <bruno@clisp.org>
54151         unistd: Fix C++ test error on mingw.
54152         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
54154 2010-04-03  Bruno Haible  <bruno@clisp.org>
54156         Update doc regarding mingw.
54157         * doc/glibc-functions/openpty.texi: Update regarding mingw.
54158         * doc/glibc-functions/login_tty.texi: Likewise.
54159         * doc/glibc-functions/forkpty.texi: Likewise.
54161 2010-04-03  Bruno Haible  <bruno@clisp.org>
54163         stdlib: Avoid compilation failure of c-strtold on mingw.
54164         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
54166 2010-04-03  Bruno Haible  <bruno@clisp.org>
54168         locale: Make C++ tests work on Cygwin and mingw.
54169         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
54170         cannot provide the function.
54171         Reported by Simon Josefsson.
54173 2010-04-03  Bruno Haible  <bruno@clisp.org>
54175         localename: Port to MacOS X 10.6.
54176         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
54177         memory layout of the locales in MacOS X 10.6 as well.
54178         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
54180 2010-04-02  Bruno Haible  <bruno@clisp.org>
54182         gnulib-tool: Ensure that long-running tests are executed last.
54183         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
54184         running tests after the one for the other tests.
54186 2010-04-02  Bruno Haible  <bruno@clisp.org>
54188         gnulib-tool: Ensure the tests in the main directory are executed first.
54189         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
54190         start with the current directory.
54192 2010-04-02  Bruno Haible  <bruno@clisp.org>
54194         Tests for module 'havelib', moved here from GNU gettext.
54195         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
54196         modifications.
54197         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
54198         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
54199         with modifications.
54200         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
54201         modifications.
54202         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
54203         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
54204         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
54205         with modifications.
54206         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
54207         with modifications.
54208         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
54209         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
54210         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
54211         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
54212         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
54213         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
54214         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
54215         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
54216         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
54217         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
54218         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
54219         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
54220         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
54221         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
54222         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
54223         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
54224         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
54225         with modifications.
54226         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
54227         with modifications.
54228         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
54229         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
54230         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
54231         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
54232         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
54233         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
54234         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
54235         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
54236         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
54237         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
54238         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
54239         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
54240         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
54241         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
54242         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
54243         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
54244         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
54245         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
54246         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
54247         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
54248         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
54249         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
54250         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
54251         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
54252         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
54253         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
54254         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
54255         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
54256         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
54257         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
54258         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
54259         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
54260         * tests/havelib/rpathx/rpathx.c: New file, from
54261         gettext/autoconf-lib-link.
54262         * tests/havelib/rpathx/Makefile.am: New file, from
54263         gettext/autoconf-lib-link.
54264         * tests/havelib/rpathx/configure.ac: New file, from
54265         gettext/autoconf-lib-link with modifications.
54266         * tests/havelib/rpathy/rpathy.c: New file, from
54267         gettext/autoconf-lib-link.
54268         * tests/havelib/rpathy/Makefile.am: New file, from
54269         gettext/autoconf-lib-link.
54270         * tests/havelib/rpathy/configure.ac: New file, from
54271         gettext/autoconf-lib-link with modifications.
54272         * tests/havelib/rpathz/rpathz.c: New file, from
54273         gettext/autoconf-lib-link.
54274         * tests/havelib/rpathz/Makefile.am: New file, from
54275         gettext/autoconf-lib-link.
54276         * tests/havelib/rpathz/configure.ac: New file, from
54277         gettext/autoconf-lib-link with modifications.
54278         * tests/havelib/rpathlx/usex.c: New file, from
54279         gettext/autoconf-lib-link.
54280         * tests/havelib/rpathlx/Makefile.am: New file, from
54281         gettext/autoconf-lib-link.
54282         * tests/havelib/rpathlx/configure.ac: New file, from
54283         gettext/autoconf-lib-link with modifications.
54284         * tests/havelib/rpathly/usey.c: New file, from
54285         gettext/autoconf-lib-link.
54286         * tests/havelib/rpathly/Makefile.am: New file, from
54287         gettext/autoconf-lib-link.
54288         * tests/havelib/rpathly/configure.ac: New file, from
54289         gettext/autoconf-lib-link with modifications.
54290         * tests/havelib/rpathlz/usez.c: New file, from
54291         gettext/autoconf-lib-link.
54292         * tests/havelib/rpathlz/Makefile.am: New file, from
54293         gettext/autoconf-lib-link.
54294         * tests/havelib/rpathlz/configure.ac: New file, from
54295         gettext/autoconf-lib-link with modifications.
54296         * tests/havelib/rpathlyx/usey.c: New file, from
54297         gettext/autoconf-lib-link.
54298         * tests/havelib/rpathlyx/Makefile.am: New file, from
54299         gettext/autoconf-lib-link.
54300         * tests/havelib/rpathlyx/configure.ac: New file, from
54301         gettext/autoconf-lib-link with modifications.
54302         * tests/havelib/rpathlzyx/usez.c: New file, from
54303         gettext/autoconf-lib-link.
54304         * tests/havelib/rpathlzyx/Makefile.am: New file, from
54305         gettext/autoconf-lib-link.
54306         * tests/havelib/rpathlzyx/configure.ac: New file, from
54307         gettext/autoconf-lib-link with modifications.
54308         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
54309         with modifications.
54311 2010-04-02  Bruno Haible  <bruno@clisp.org>
54313         gnulib-tool: Create distributed built sources also for the tests.
54314         * gnulib-tool (func_create_testdir): Also generate distributed built
54315         sources in the tests directory.
54317 2010-04-02  Bruno Haible  <bruno@clisp.org>
54319         gnulib-tool: Obey user's environment variables.
54320         * gnulib-tool (func_create_testdir): When creating built sources,
54321         respect the environment variables for autoconf, automake, etc. given by
54322         the user.
54324 2010-04-02  Bruno Haible  <bruno@clisp.org>
54326         gnulib-tool: Provide the value of --m4-base to modules.
54327         * gnulib-tool (func_import, func_create_testdir): Emit a definition
54328         of gl_m4_base.
54330 2010-04-02  Eric Blake  <eblake@redhat.com>
54332         maint.mk: fix some fallout
54333         * NEWS: Document the incompatible change, and its effect on cfg.mk.
54334         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
54336 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54338         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
54339         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
54340         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
54341         (sc_cast_of_x_alloc_return_value): Likewise.
54342         (sc_cast_of_alloca_return_value): Likewise.
54343         (sc_space_tab): Likewise.
54344         (sc_prohibit_atoi_atof): Likewise.
54345         (sc_prohibit_magic_number_exit): Likewise.
54346         (sc_error_exit_success): Likewise.
54347         (sc_file_system): Likewise.
54348         (sc_prohibit_have_config_h): Likewise.
54349         (sc_require_config_h): Likewise.
54350         (sc_prohibit_HAVE_MBRTOWC): Likewise.
54351         (sc_obsolete_symbols): Likewise.
54352         (sc_changelog): Likewise.
54353         (sc_program_name): Likewise.
54354         (sc_the_the): Likewise.
54355         (sc_trailing_blank): Likewise.
54356         (sc_two_space_separator_in_usage): Likewise.
54357         (sc_useless_cpp_parens): Likewise.
54358         (sc_GPL_version): Likewise.
54359         (sc_GFDL_version): Likewise.
54360         (sc_texinfo_acronym): Likewise.
54361         (sc_prohibit_cvs_keyword): Likewise.
54362         (sc_prohibit_stat_st_blocks): Likewise.
54363         (sc_prohibit_S_IS_definition): Likewise.
54364         (sc_redundant_const): Likewise.
54365         (sc_makefile_TAB_only_indentation): Likewise.
54366         (sc_m4_quote_check): Likewise.
54367         (sc_makefile_path_separator_check): Likewise.
54368         (sc_copyright_check): Likewise.
54369         (sc_Wundef_boolean): Likewise.
54370         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54372         maint.mk: match 0 or more whitespace-before-function-call '('
54373         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54374         that have zero or two-and-more spaces between the function name
54375         and the open parenthesis.
54376         (sc_error_message_warn_fatal): Likewise.
54377         (sc_error_message_uppercase): Likewise.
54378         (sc_error_message_period): Likewise.
54380 2010-03-31  Eric Blake  <eblake@redhat.com>
54382         maint.mk: check for [ as well as test
54383         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54384         Based on a libvirt report by Matthias Bolte.
54386         gnumakefile: don't squelch _version output
54387         * top/GNUmakefile (_version): Create one-shot dependency rather
54388         than using $(shell) when version must be regenerated.
54389         (_autoreconf): Run verbosely, by default.
54391         sys_time: avoid compiler warnings
54392         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54393         unconditional, fixing regression from 2010-03-29.
54394         Reported by Simon Josefsson.
54396 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54398         maint.mk: s/_header_without_use/_sc_header_without_use/
54399         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54400         (sc_prohibit_assert_without_use): Use the new name.
54401         (sc_prohibit_close_stream_without_use): Likewise.
54402         (sc_prohibit_getopt_without_use): Likewise.
54403         (sc_prohibit_quotearg_without_use): Likewise.
54404         (sc_prohibit_quote_without_use): Likewise.
54405         (sc_prohibit_long_options_without_use): Likewise.
54406         (sc_prohibit_inttostr_without_use): Likewise.
54407         (sc_prohibit_ignore_value_without_use): Likewise.
54408         (sc_prohibit_error_without_use): Likewise.
54409         (sc_prohibit_xalloc_without_use): Likewise.
54410         (sc_prohibit_hash_without_use): Likewise.
54411         (sc_prohibit_hash_pjw_without_use): Likewise.
54412         (sc_prohibit_safe_read_without_use): Likewise.
54413         (sc_prohibit_argmatch_without_use): Likewise.
54414         (sc_prohibit_canonicalize_without_use): Likewise.
54415         (sc_prohibit_root_dev_ino_without_use): Likewise.
54416         (sc_prohibit_openat_without_use): Likewise.
54417         (sc_prohibit_c_ctype_without_use): Likewise.
54418         (sc_prohibit_signal_without_use): Likewise.
54419         (sc_prohibit_intprops_without_use): Likewise.
54421 2010-03-30  Eric Blake  <eblake@redhat.com>
54423         maint: improve module indicators
54424         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54425         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54426         columns, and avoid extra macro expansion.
54428         fdopendir: work around FreeBSD bug
54429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54430         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54431         * modules/dirent (Makefile.am): Substitute it.
54432         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54433         declaration.
54434         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54435         fix.
54436         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54438 2010-03-29  Bruno Haible  <bruno@clisp.org>
54440         Emit #pragma system_header after the inclusion guard, not before.
54441         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54442         guard that spans the entire file, not before. This enables an
54443         optimization in GCC's preprocessor.
54444         * lib/ctype.in.h: Likewise.
54445         * lib/dirent.in.h: Likewise.
54446         * lib/errno.in.h: Likewise.
54447         * lib/float.in.h: Likewise.
54448         * lib/getopt.in.h: Likewise.
54449         * lib/iconv.in.h: Likewise.
54450         * lib/langinfo.in.h: Likewise.
54451         * lib/locale.in.h: Likewise.
54452         * lib/math.in.h: Likewise.
54453         * lib/netdb.in.h: Likewise.
54454         * lib/netinet_in.in.h: Likewise.
54455         * lib/pty.in.h: Likewise.
54456         * lib/sched.in.h: Likewise.
54457         * lib/se-selinux.in.h: Likewise.
54458         * lib/search.in.h: Likewise.
54459         * lib/spawn.in.h: Likewise.
54460         * lib/stdarg.in.h: Likewise.
54461         * lib/stdint.in.h: Likewise.
54462         * lib/string.in.h: Likewise.
54463         * lib/strings.in.h: Likewise.
54464         * lib/sys_file.in.h: Likewise.
54465         * lib/sys_ioctl.in.h: Likewise.
54466         * lib/sys_time.in.h: Likewise.
54467         * lib/sys_times.in.h: Likewise.
54468         * lib/sys_utsname.in.h: Likewise.
54469         * lib/sys_wait.in.h: Likewise.
54470         * lib/sysexits.in.h: Likewise.
54471         * lib/wctype.in.h: Likewise.
54473 2010-03-28  James Youngman  <jay@gnu.org>
54475         save-cwd: don't leak a file descriptor when the caller execs.
54476         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54477         saved file descriptor.
54478         * modules/save-cwd (Depends-on): Depend on cloexec.
54480 2010-03-29  Bruno Haible  <bruno@clisp.org>
54482         Remove vestiges of fts-lgpl module.
54483         * lib/fts_.h: Assume GNULIB_FTS is 1.
54484         * lib/fts.c: Likewise.
54485         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54487 2010-03-28  Bruno Haible  <bruno@clisp.org>
54489         Fix definition of tests witness macro.
54490         * gnulib-tool (func_import): Fix definition of witness macro.
54492 2010-03-28  Bruno Haible  <bruno@clisp.org>
54494         Fix ioctl's protoype on glibc systems.
54495         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54496         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54497         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54498         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54499         signature. If not, arrange to replace the ioctl function.
54500         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54501         REPLACE_IOCTL.
54502         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54503         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54504         Reported by Ludovic Courtès <ludo@gnu.org>.
54506 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54508         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54509         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54510         made it so grep -r --include=GLOB* ... did not work.
54512 2010-03-26  Jim Meyering  <meyering@redhat.com>
54513             Eric Blake  <eblake@redhat.com>
54515         maint.mk: prohibit use of test's -o and -a operators
54516         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54518 2010-03-28  Bruno Haible  <bruno@clisp.org>
54520         Remove unused GNULIB_XYZ macro definitions.
54521         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54522         invocation.
54524 2010-03-28  Bruno Haible  <bruno@clisp.org>
54526         Mark privileged tests modules.
54527         * modules/idpriv-drop-tests (Status): New section.
54528         * modules/idpriv-droptemp-tests (Status): New section.
54530 2010-03-28  Bruno Haible  <bruno@clisp.org>
54532         Split C++ tests into separate tests modules.
54533         * modules/dirent-c++-tests: New file, extracted from
54534         modules/dirent-tests.
54535         * modules/dirent-tests: Depend on it.
54536         * modules/fcntl-h-c++-tests: New file, extracted from
54537         modules/fcntl-h-tests.
54538         * modules/fcntl-h-tests: Depend on it.
54539         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54540         * modules/glob-tests: Depend on it.
54541         * modules/iconv-h-c++-tests: New file, extracted from
54542         modules/iconv-h-tests.
54543         * modules/iconv-h-tests: Depend on it.
54544         * modules/langinfo-c++-tests: New file, extracted from
54545         modules/langinfo-tests.
54546         * modules/langinfo-tests: Depend on it.
54547         * modules/locale-c++-tests: New file, extracted from
54548         modules/locale-tests.
54549         * modules/locale-tests: Depend on it.
54550         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54551         * modules/math-tests: Depend on it.
54552         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54553         * modules/pty-tests: Depend on it.
54554         * modules/search-c++-tests: New file, extracted from
54555         modules/search-tests.
54556         * modules/search-tests: Depend on it.
54557         * modules/signal-c++-tests: New file, extracted from
54558         modules/signal-tests.
54559         * modules/signal-tests: Depend on it.
54560         * modules/spawn-c++-tests: New file, extracted from
54561         modules/spawn-tests.
54562         * modules/spawn-tests: Depend on it.
54563         * modules/stdio-c++-tests: New file, extracted from
54564         modules/stdio-tests.
54565         * modules/stdio-tests: Depend on it.
54566         * modules/stdlib-c++-tests: New file, extracted from
54567         modules/stdlib-tests.
54568         * modules/stdlib-tests: Depend on it.
54569         * modules/string-c++-tests: New file, extracted from
54570         modules/string-tests.
54571         * modules/string-tests: Depend on it.
54572         * modules/sys_ioctl-c++-tests: New file, extracted from
54573         modules/sys_ioctl-tests.
54574         * modules/sys_ioctl-tests: Depend on it.
54575         * modules/sys_select-c++-tests: New file, extracted from
54576         modules/sys_select-tests.
54577         * modules/sys_select-tests: Depend on it.
54578         * modules/sys_socket-c++-tests: New file, extracted from
54579         modules/sys_socket-tests.
54580         * modules/sys_socket-tests: Depend on it.
54581         * modules/sys_stat-c++-tests: New file, extracted from
54582         modules/sys_stat-tests.
54583         * modules/sys_stat-tests: Depend on it.
54584         * modules/sys_time-c++-tests: New file, extracted from
54585         modules/sys_time-tests.
54586         * modules/sys_time-tests: Depend on it.
54587         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54588         * modules/time-tests: Depend on it.
54589         * modules/unistd-c++-tests: New file, extracted from
54590         modules/unistd-tests.
54591         * modules/unistd-tests: Depend on it.
54592         * modules/wchar-c++-tests: New file, extracted from
54593         modules/wchar-tests.
54594         * modules/wchar-tests: Depend on it.
54595         * modules/wctype-c++-tests: New file, extracted from
54596         modules/wctype-tests.
54597         * modules/wctype-tests: Depend on it.
54598         Reported by Simon Josefsson.
54600 2010-03-28  Bruno Haible  <bruno@clisp.org>
54602         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54603         * gnulib-tool (func_exists_module): New function, extracted from
54604         func_verify_module.
54605         (func_verify_module): Use it.
54606         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54607         'foo' only if 'foo' exists.
54608         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54609         module.
54611 2010-03-28  Bruno Haible  <bruno@clisp.org>
54613         gnulib-tool: Add support for special categories of tests.
54614         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54615         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54616         (func_usage): Document them.
54617         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54618         inc_unportable_tests, inc_all_tests): New variables.
54619         (func_acceptable): Consider these variables.
54620         (func_modules_transitive_closure): Make it work when the 'Status' field
54621         consists of multiple words.
54622         (func_import): Store and restore the values of inc_cxx_tests,
54623         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54624         inc_all_tests in gnulib-comp.m4.
54625         (func_create_testdir): Set inc_all_tests to true.
54626         * doc/gnulib.texi (Extra tests modules): New section.
54627         Suggested by Jim Meyering.
54629 2010-03-28  Bruno Haible  <bruno@clisp.org>
54631         ansi-c++-opt: Allow turning off the C++ build by default.
54632         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54633         gl_CXX_CHOICE_DEFAULT_NO is defined.
54634         Requested by Eric Blake.
54636 2010-03-28  Bruno Haible  <bruno@clisp.org>
54638         unistd: Avoid #define replacements in C++ mode.
54639         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54640         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54641         setsockopt, shutdown, select): In C++, attach a warning to the function
54642         if possible, rather than #defining the symbol to a dysfunctional alias.
54643         Reported by John W. Eaton <jwe@gnu.org>.
54645 2010-03-28  Bruno Haible  <bruno@clisp.org>
54647         Fix link errors on mingw.
54648         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54649         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54650         $(LIBSOCKET).
54651         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54652         $(LIBSOCKET).
54654 2010-03-28  Bruno Haible  <bruno@clisp.org>
54655             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54657         lib-ignore: Determine different options for different compilers.
54658         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54659         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54660         Add comments.
54661         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54662         * NEWS: Mention the change.
54664 2010-03-27  Bruno Haible  <bruno@clisp.org>
54666         Remove unused GNULIB_XYZ macro definitions.
54667         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54668         * modules/fseek (configure.ac): Likewise.
54669         * modules/ioctl (configure.ac): Likewise.
54670         * modules/open (configure.ac): Likewise.
54671         * modules/stdlib-safer (configure.ac): Likewise.
54673 2010-03-27  Bruno Haible  <bruno@clisp.org>
54675         Add a remark about certain modules.
54676         * modules/malloc (Comment): New section.
54677         * modules/realloc (Comment): Likewise.
54678         * modules/sigpipe (Comment): Likewise.
54680 2010-03-27  Bruno Haible  <bruno@clisp.org>
54682         Resolve conflict between the two kinds of module indicators.
54683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54684         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54685         * modules/canonicalize (configure.ac): Invoke
54686         gl_MODULE_INDICATOR_FOR_TESTS.
54687         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54688         GNULIB_XYZ.
54689         * tests/test-dirent-c++.cc: Likewise.
54690         * tests/test-dirent-safer.c: Likewise.
54691         * tests/test-dup2.c: Likewise.
54692         * tests/test-fchdir.c: Likewise.
54693         * tests/test-fcntl-h-c++.cc: Likewise.
54694         * tests/test-getopt.c: Likewise.
54695         * tests/test-getopt.h: Likewise.
54696         * tests/test-langinfo-c++.cc: Likewise.
54697         * tests/test-locale-c++.cc: Likewise.
54698         * tests/test-math-c++.cc: Likewise.
54699         * tests/test-pty-c++.cc: Likewise.
54700         * tests/test-search-c++.cc: Likewise.
54701         * tests/test-signal-c++.cc: Likewise.
54702         * tests/test-spawn-c++.cc: Likewise.
54703         * tests/test-stdio-c++.cc: Likewise.
54704         * tests/test-stdlib-c++.cc: Likewise.
54705         * tests/test-string-c++.cc: Likewise.
54706         * tests/test-sys_ioctl-c++.cc: Likewise.
54707         * tests/test-sys_select-c++.cc: Likewise.
54708         * tests/test-sys_socket-c++.cc: Likewise.
54709         * tests/test-sys_stat-c++.cc: Likewise.
54710         * tests/test-sys_time-c++.cc: Likewise.
54711         * tests/test-time-c++.cc: Likewise.
54712         * tests/test-unistd-c++.cc: Likewise.
54713         * tests/test-wchar-c++.cc: Likewise.
54714         * tests/uninorm/test-u8-nfc.c: Likewise.
54715         * tests/uninorm/test-u8-nfd.c: Likewise.
54716         * tests/uninorm/test-u8-nfkc.c: Likewise.
54717         * tests/uninorm/test-u8-nfkd.c: Likewise.
54718         * tests/uninorm/test-u16-nfc.c: Likewise.
54719         * tests/uninorm/test-u16-nfd.c: Likewise.
54720         * tests/uninorm/test-u16-nfkc.c: Likewise.
54721         * tests/uninorm/test-u16-nfkd.c: Likewise.
54722         * tests/uninorm/test-u32-nfc.c: Likewise.
54723         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54724         * tests/uninorm/test-u32-nfd.c: Likewise.
54725         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54726         * tests/uninorm/test-u32-nfkc.c: Likewise.
54727         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54728         * tests/uninorm/test-u32-nfkd.c: Likewise.
54729         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54730         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54732 2010-03-27  Bruno Haible  <bruno@clisp.org>
54734         Distinguish two kinds of module indicators.
54735         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54736         gl_MODULE_INDICATOR.
54737         (gl_MODULE_INDICATOR): New macro.
54738         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54739         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54740         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54741         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54742         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54743         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54744         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54745         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54746         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54747         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54748         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54749         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54754         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54755         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54756         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54757         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54758         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54759         * modules/cloexec (configure.ac): Likewise.
54760         * modules/getopt-gnu (configure.ac): Likewise.
54761         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54762         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54763         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54764         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54766 2010-03-27  Bruno Haible  <bruno@clisp.org>
54768         New module description field 'Comment'.
54769         * gnulib-tool: New option --extract-comment.
54770         (func_usage): Document it.
54771         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54772         (func_get_comment): New function.
54773         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54775 2010-03-27  Bruno Haible  <bruno@clisp.org>
54777         Addendum to 2010-02-07 commit.
54778         * gnulib-tool (func_usage): Document --extract-applicability option.
54780 2010-03-27  Bruno Haible  <bruno@clisp.org>
54782         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54783         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54784         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54785         rather than link errors.
54787 2010-03-27  Bruno Haible  <bruno@clisp.org>
54789         Avoid side effects from tests-related modules on the compilation of lib.
54790         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54791         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54792         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54793         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54794         macro.
54795         (func_import): Define a witness macro. Assign it a value that depends
54796         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54797         tests-related modules.
54798         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54799         Reported by Jim Meyering.
54801 2010-03-27  Bruno Haible  <bruno@clisp.org>
54803         Factorize common .m4 code.
54804         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54805         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54806         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54807         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54808         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54809         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54810         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54811         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54812         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54813         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54814         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54815         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54816         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54817         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54818         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54819         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54820         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54821         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54823         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54824         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54825         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54826         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54827         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54828         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54829         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54830         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54831         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54832         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54833         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54834         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54835         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54837 2010-03-27  Bruno Haible  <bruno@clisp.org>
54839         Fix a compilation error on Cygwin with g++ >= 4.3.
54840         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54841         if it is undefined or if we alias it to chmod.
54842         (lstat): Don't warn about the use of this function if it is undefined
54843         or if we alias it to stat.
54844         Reported by Simon Josefsson.
54846 2010-03-27  Bruno Haible  <bruno@clisp.org>
54848         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54849         * modules/getlogin (configure.ac): Update.
54851         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54852         * modules/getlogin_r (configure.ac): Update.
54854         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54856         * modules/inet_ntop (configure.ac): Update.
54858         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54859         * modules/inet_pton (configure.ac): Update.
54861         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54862         * modules/mbslen (configure.ac): Update.
54864         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54865         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54866         * modules/forkpty (configure.ac): Update.
54867         * modules/openpty (configure.ac): Update.
54869 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54871         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54872         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54874 2010-03-25  Eric Blake  <eblake@redhat.com>
54876         maint: use pragma consistently across replacement headers
54877         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54878         * lib/dirent.in.h (system_header): Likewise.
54879         * lib/errno.in.h (system_header): Likewise.
54880         * lib/float.in.h (system_header): Likewise.
54881         * lib/getopt.in.h (system_header): Likewise.
54882         * lib/iconv.in.h (system_header): Likewise.
54883         * lib/inttypes.in.h (system_header): Likewise.
54884         * lib/langinfo.in.h (system_header): Likewise.
54885         * lib/locale.in.h (system_header): Likewise.
54886         * lib/math.in.h (system_header): Likewise.
54887         * lib/netdb.in.h (system_header): Likewise.
54888         * lib/netinet_in.in.h (system_header): Likewise.
54889         * lib/pty.in.h (system_header): Likewise.
54890         * lib/sched.in.h (system_header): Likewise.
54891         * lib/se-selinux.in.h (system_header): Likewise.
54892         * lib/search.in.h (system_header): Likewise.
54893         * lib/spawn.in.h (system_header): Likewise.
54894         * lib/stdarg.in.h (system_header): Likewise.
54895         * lib/stdint.in.h (system_header): Likewise.
54896         * lib/string.in.h (system_header): Likewise.
54897         * lib/strings.in.h (system_header): Likewise.
54898         * lib/sys_file.in.h (system_header): Likewise.
54899         * lib/sys_ioctl.in.h (system_header): Likewise.
54900         * lib/sys_socket.in.h (system_header): Likewise.
54901         * lib/sys_times.in.h (system_header): Likewise.
54902         * lib/sys_utsname.in.h (system_header): Likewise.
54903         * lib/sys_wait.in.h (system_header): Likewise.
54904         * lib/sysexits.in.h (system_header): Likewise.
54905         * lib/unistd.in.h (system_header): Likewise.
54906         * lib/wctype.in.h (system_header): Likewise.
54908         arpa/inet: fix mingw compilation warning
54909         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54910         Reported by Matthew Bolte.
54912 2010-03-25  Bruno Haible  <bruno@clisp.org>
54914         Avoid collision between gnulib wrapper and libintl wrapper.
54915         * lib/printf.c (printf): Don't define if a printf wrapper is already
54916         defined in intl/printf.c.
54917         Reported by Michel Boaventura <michel@michelboaventura.com>.
54919 2010-03-25  Bruno Haible  <bruno@clisp.org>
54921         Use ANSI C.
54922         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54924 2010-03-25  Bruno Haible  <bruno@clisp.org>
54926         Minor formatting changes.
54927         * lib/acosl.c: Insert space before function argument list.
54928         * lib/argz.c: Likewise.
54929         * lib/asinl.c: Likewise.
54930         * lib/expl.c: Likewise.
54931         * lib/gen-uni-tables.c: Likewise.
54932         * lib/gettext.h: Likewise.
54933         * lib/glthread/lock.h: Likewise.
54934         * lib/tanl.c: Likewise.
54935         * lib/uniname/uniname.c: Likewise.
54936         * tests/test-idpriv-drop.c: Likewise.
54937         * tests/test-idpriv-droptemp.c: Likewise.
54938         * tests/test-lock.c: Likewise.
54939         * tests/test-tls.c: Likewise.
54940         * lib/argp-help.c: Insert space before function-like macro argument
54941         list.
54942         * lib/memcmp.c: Likewise.
54943         * tests/test-base64.c: Likewise.
54944         * lib/localename.c: Insert space before sizeof's argument list.
54945         * lib/safe-alloc.h: Likewise.
54946         * lib/file-set.h: Insert space before macro argument list.
54947         * tests/test-argp.c: Likewise.
54948         * lib/argp-namefrob.h: Insert space before function parameter list.
54949         * lib/getaddrinfo.c: Likewise.
54950         * lib/netdb.in.h: Likewise.
54951         * lib/parse-duration.h: Likewise.
54952         * lib/parse-duration.c: Likewise.
54953         * lib/poll.c: Likewise.
54954         * lib/select.c: Likewise.
54955         * lib/trim.h: Likewise.
54956         * tests/test-usleep.c: Likewise.
54957         * lib/ldexpl.c: Insert space before function parameter list and before
54958         function argument list.
54959         * lib/logl.c: Likewise.
54960         * lib/sqrtl.c: Likewise.
54961         * lib/trim.c: Likewise.
54962         * lib/cosl.c: Use GNU style indentation. Insert space before function
54963         argument list.
54964         * lib/sinl.c: Likewise.
54965         * lib/tsearch.c: Insert space after 'for'.
54966         Reported by Jim Meyering.
54968 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54970         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54971         config header before grepping, as it's not present before
54972         autoreconf/configure are run.  Reported by Simon Josefsson.
54974 2010-03-23  Bruno Haible  <bruno@clisp.org>
54976         pt_chown: Make it work with automake < 1.11.
54977         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54978         Reported by Simon Josefsson.
54980 2010-03-23  Bruno Haible  <bruno@clisp.org>
54982         pt_chown: Don't depend on GPLed modules.
54983         * lib/pt_chown.c: Don't include idpriv.h.
54984         (main): Don't drop privileges.
54985         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54986         Reported by Simon Josefsson.
54988 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54990         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54991         suggestions from karl@freefriends.org (Karl Berry).
54993 2010-03-22  Eric Blake  <eblake@redhat.com>
54995         gethostname: further tweaks
54996         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54997         are overriding gethostname.
54998         Suggested by Bruno Haible.
55000 2010-03-21  Bruno Haible  <bruno@clisp.org>
55002         Fix comments.
55003         * lib/forkpty.c (rpl_forkpty): Fix comment.
55004         * lib/openpty.c (rpl_openpty): Likewise.
55005         Reported by Eric Blake.
55007 2010-03-22  Eric Blake  <eblake@redhat.com>
55009         gethostname: fix build on mingw
55010         * lib/unistd.in.h (includes): Work around fact that mingw
55011         <winsock2.h> re-includes <unistd.h>, by avoiding any
55012         redeclarations if we are being included by <winsock2.h>.
55013         Reported by Matthias Bolte.
55015 2010-03-21  Bruno Haible  <bruno@clisp.org>
55017         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
55018         * lib/forkpty.c (forkpty): New replacement function, from glibc with
55019         modifications.
55020         * lib/pty.in.h (forkpty): Update declaration. Add comments.
55021         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
55022         provide the replacement.
55023         * modules/forkpty (Depends-on): Add openpty, login_tty.
55024         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
55025         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
55026         * doc/glibc-functions/forkpty.texi: More supported platforms.
55027         * config/srclist.txt: Add forkpty.c (commented).
55029 2010-03-21  Bruno Haible  <bruno@clisp.org>
55031         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
55032         (Makefile.am): Verify that PTY_LIB is defined.
55034         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
55036 2010-03-21  Bruno Haible  <bruno@clisp.org>
55038         Tests for module 'login_tty'.
55039         * modules/login_tty-tests: New file.
55040         * tests/test-login_tty.c: New file.
55042         New module 'login_tty'.
55043         * lib/login_tty.c: New file.
55044         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
55045         * modules/login_tty: New file.
55046         * doc/glibc-functions/login_tty.texi: Mention the new module.
55048 2010-03-21  Bruno Haible  <bruno@clisp.org>
55050         login_tty: Documentation.
55051         * doc/glibc-functions/login_tty.texi: New file.
55052         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
55054 2010-03-21  Bruno Haible  <bruno@clisp.org>
55056         pty: Consistent macro naming.
55057         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
55058         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
55059         * modules/pty (configure.ac): Update.
55061 2010-03-21  Bruno Haible  <bruno@clisp.org>
55063         Tests for openpty: Make stricter.
55064         * tests/test-openpty.c (main): Add test of canonical processing and
55065         erase.
55066         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
55068         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
55069         * lib/openpty.c (openpty): New replacement function.
55070         * lib/pty.in.h: Include <termios.h>.
55071         (openpty): Update declaration. Add comments.
55072         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
55073         is not declared, arrange to provide the replacement. Check for _getpty
55074         and posix_openpt.
55075         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
55076         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
55077         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
55078         * modules/pty-tests (test_pty_c___LDADD): New variable.
55079         * doc/glibc-functions/openpty.texi: More supported platforms.
55081 2010-03-21  Bruno Haible  <bruno@clisp.org>
55083         setenv: Tweaks.
55084         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
55085         the test program.
55086         * doc/posix-functions/setenv.texi: Update platforms list.
55088 2010-03-21  Bruno Haible  <bruno@clisp.org>
55090         New module 'unlockpt'.
55091         * lib/unlockpt.c: New file, from glibc with modifications.
55092         * m4/unlockpt.m4: New file.
55093         * modules/unlockpt: New file.
55094         * lib/stdlib.in.h (unlockpt): New declaration.
55095         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
55096         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
55097         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
55098         HAVE_UNLOCKPT.
55099         * doc/posix-functions/unlockpt.texi: Mention the new module.
55100         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
55101         * config/srclist.txt: Add unlockpt.c (commented).
55103 2010-03-21  Jim Meyering  <meyering@redhat.com>
55105         maint.mk: prohibit inclusion of "intprops.h" without use
55106         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
55108 2010-03-21  Bruno Haible  <bruno@clisp.org>
55110         New module 'grantpt'.
55111         * lib/grantpt.c: New file, from glibc with modifications.
55112         * m4/grantpt.m4: New file.
55113         * modules/grantpt: New file.
55114         * lib/stdlib.in.h (grantpt): New declaration.
55115         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
55116         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
55117         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
55118         HAVE_GRANTPT.
55119         * doc/posix-functions/grantpt.texi: Mention the new module.
55120         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
55121         * config/srclist.txt: Add grantpt.c (commented).
55123 2010-03-21  Bruno Haible  <bruno@clisp.org>
55125         New module 'pt_chown'.
55126         * lib/pt_chown.c: New file, from glibc with modifications.
55127         * lib/pty-private.h: New file, from glibc with modifications.
55128         * modules/pt_chown: New file.
55129         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
55131 2010-03-21  Bruno Haible  <bruno@clisp.org>
55133         Tests for module 'ptsname'.
55134         * modules/ptsname-tests: New file.
55135         * tests/test-ptsname.c: New file.
55137         New module 'ptsname'.
55138         * lib/ptsname.c: New file, from glibc with modifications.
55139         * m4/ptsname.m4: New file.
55140         * modules/ptsname: New file.
55141         * lib/stdlib.in.h (ptsname): New declaration.
55142         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
55143         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
55144         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
55145         HAVE_PTSNAME.
55146         * doc/posix-functions/ptsname.texi: Mention the new module.
55147         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
55148         * config/srclist.txt: Add ptsname.c (commented).
55150 2010-03-21  Bruno Haible  <bruno@clisp.org>
55152         Tests for module 'ttyname_r'.
55153         * modules/ttyname_r-tests: New file.
55154         * tests/test-ttyname_r.c: New file.
55156         New module 'ttyname_r'.
55157         * lib/ttyname_r.c: New file.
55158         * m4/ttyname_r.m4: New file.
55159         * modules/ttyname_r: New file.
55160         * lib/unistd.in.h (ttyname_r): New declaration.
55161         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
55162         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
55163         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
55164         HAVE_TTYNAME_R.
55165         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
55166         * doc/posix-functions/ttyname_r.texi: Mention the new module.
55168 2010-03-20  Bruno Haible  <bruno@clisp.org>
55170         signal: Undefine macro definitions in C++ mode.
55171         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
55172         sigfillset): Undefine macro definitions from the system header in C++
55173         mode.
55174         Reported by John W. Eaton <jwe@gnu.org>.
55176 2010-03-20  Bruno Haible  <bruno@clisp.org>
55178         Ensure no #include statements inside extern "C" { ... }.
55179         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
55180         contain #include statements.
55181         * lib/time.in.h: Likewise.
55183 2010-03-20  Bruno Haible  <bruno@clisp.org>
55185         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
55186         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
55187         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
55188         Reported by John W. Eaton <jwe@gnu.org>.
55190 2010-03-20  Bruno Haible  <bruno@clisp.org>
55192         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
55193         Reported by Jim Meyering.
55195 2010-03-20  Bruno Haible  <bruno@clisp.org>
55197         pipe: Set errno upon failure.
55198         * lib/pipe.h: Specify that when -1 is returned, errno is set.
55199         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
55200         errno value in error message.
55202 2010-03-20  Bruno Haible  <bruno@clisp.org>
55203             Jim Meyering  <meyering@redhat.com>
55205         lchown: Avoid "unused variable" warning.
55206         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
55208 2010-03-20  Bruno Haible  <bruno@clisp.org>
55210         Work around unlink() bug on MacOS X 10.5.6.
55211         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
55212         attempting to unlink a parent directory.
55213         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
55214         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
55215         activate for the replacement function.
55216         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
55218 2010-03-20  Bruno Haible  <bruno@clisp.org>
55220         Fix link errors on Solaris 8.
55221         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
55222         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
55224 2010-03-19  Jim Meyering  <meyering@redhat.com>
55226         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
55227         The _LIBC implementation of build_range_exp correctly honors the
55228         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
55229         However, the non-_LIBC implementation would ignore that syntax-bit
55230         flag and return REG_ERANGE unconditionally.
55231         This change makes it honor that flag.
55232         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
55233         Make two pointer parameters "const".
55234         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
55235         (parse_bracket_exp): Update caller.
55237         regex.m4: correct the reversed range endpoint ([b-a]) test
55238         * m4/regex.m4: When requiring that [b-a] evoke failure,
55239         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
55240         test pass once again for x86-based systems.
55242 2010-03-19  Bruno Haible  <bruno@clisp.org>
55244         scandir: Fix link error on Solaris 8.
55245         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
55246         macros.
55248 2010-03-19  Bruno Haible  <bruno@clisp.org>
55250         getusershell: Fix documentation.
55251         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
55252         module.
55253         * doc/glibc-functions/setusershell.texi: Likewise.
55255         getusershell: Provide declaration, missing on Solaris 9.
55256         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
55257         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
55258         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
55259         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
55260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55261         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
55262         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
55263         HAVE_GETUSERSHELL.
55264         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
55266 2010-03-19  Bruno Haible  <bruno@clisp.org>
55268         wctype: Provide iswblank function.
55269         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
55270         exists and is fine.
55271         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
55272         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
55273         * tests/test-wctype.c (main): Re-enable the iswblank tests.
55274         * doc/posix-functions/iswblank.texi: Update.
55276 2010-03-19  Bruno Haible  <bruno@clisp.org>
55278         Tests of module 'pty' in C++ mode.
55279         * modules/pty-tests: New file.
55280         * tests/test-pty-c++.cc: New file.
55281         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55283 2010-03-19  Eric Blake  <eblake@redhat.com>
55285         logb: fix documentation
55286         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
55287         1.5 declaration bug.
55289         forkpty, openpty: prefer glibc's const-safe prototype
55290         * lib/forkpty.c (rpl_forkpty): New file.
55291         * lib/openpty.c (rpl_openpty): Likewise.
55292         * modules/forkpty (Files): Distribute it.
55293         * modules/openpty (Files): Likewise.
55294         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
55295         check...
55296         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
55297         replacement for non-const BSD signature.
55298         * modules/pty (Makefile.am): Substitute witnesses.
55299         * lib/pty.in.h (forkpty, openpty): Declare replacements.
55300         * tests/test-forkpty.c: Update signature check.
55301         * tests/test-openpty.c: Likewise.
55302         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
55303         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55305         forkpty, openpty: split functions into new modules
55306         * modules/pty (Makefile.am): Substitute new witnesses.
55307         (Libraries): Move library detection...
55308         * modules/forkpty: ...into new module.
55309         * modules/openpty: Another new module.
55310         * modules/pty-tests: Rename and split...
55311         * modules/forkpty-tests: ...to this...
55312         * modules/openpty-tests: ...and this.
55313         * tests/test-pty.c: Rename and split...
55314         * tests/test-forkpty.c: ...to this...
55315         * tests/test-openpty.c: ...and this.
55316         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
55317         (gl_PTY): Split library searching...
55318         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
55319         (gl_FORKPTY, gl_OPENPTY): New macros.
55320         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
55321         * NEWS: Mention the split.
55322         * MODULES.html.sh (Misc): Document the modules.
55323         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
55324         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55326         pty: improve replacement header
55327         * lib/pty.in.h: New file.
55328         * modules/pty (Files): Ship it.
55329         (Makefile.am): Always build replacement.
55330         * m4/pty.m4: Rename...
55331         * m4/pty_h.m4: ...to this.
55332         (gl_PTY): Modernize setting of witness macros; update check of
55333         forkpty to take proper advantage of cache.
55334         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
55336         getopt: avoid compiler warning
55337         * lib/getopt.c (attribute_hidden): Remove unused macro.
55339 2010-03-18  Bruno Haible  <bruno@clisp.org>
55341         Fix link errors on Solaris 8.
55342         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
55343         * modules/search-tests (test_search_c___LDADD): Likewise.
55344         * modules/signal-tests (test_signal_c___LDADD): Likewise.
55345         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
55346         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
55347         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
55348         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
55349         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
55350         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
55352 2010-03-18  Bruno Haible  <bruno@clisp.org>
55354         Fix bug introduced on 2010-03-14.
55355         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
55356         (gl_SPAWN_H): Require it.
55357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55358         Reported by Simon Josefsson.
55360 2010-03-18  Bruno Haible  <bruno@clisp.org>
55362         Fix typo introduced on 2009-12-31.
55363         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55364         posix_spawn_file_actions_adddup2.
55366 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55367         and Eric Blake  <eblake@redhat.com>
55369         test-vc-list-files-git: make more robust
55370         * tests/test-vc-list-files-git.sh: Unset problematic environment
55371         variables.  Chain commands together.
55373 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55375         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55376         `AC_CHECK_DECL' invocation.
55378 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55380         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55381         appears before executable statements. Suggested by Petr Sumbera
55382         <Petr.Sumbera@Sun.COM>.
55384 2010-03-14  Bruno Haible  <bruno@clisp.org>
55386         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55387         portability problems. Instead use a simpler test.
55388         (main): Check that invalid arguments are rejected only on Linux.
55390 2010-03-14  Bruno Haible  <bruno@clisp.org>
55392         Fix bug introduced on 2009-12-31.
55393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55394         gl_PREREQ_SYS_H_WINSOCK2 always.
55395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55396         SYS_SOCKET_H variable.
55397         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55398         Update comments.
55399         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55403         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55405 2010-03-14  Bruno Haible  <bruno@clisp.org>
55407         Fix values returned by sinl, cosl.
55408         * lib/trigl.h: Add specification comments.
55409         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55410         that combines the values from the precomputed table with the values of
55411         the Chebyshev polynomials.
55413 2010-03-14  Bruno Haible  <bruno@clisp.org>
55415         Fix compilation error when modules 'posix_spawn[p]' are not used.
55416         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55419 2010-03-14  Bruno Haible  <bruno@clisp.org>
55421         Fix compilation error on mingw when module 'time_r' is not used.
55422         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55423         is 1.
55424         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55425         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55426         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55427         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55429 2010-03-14  Bruno Haible  <bruno@clisp.org>
55431         Fix compilation error with Sun C.
55432         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55433         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55434         instead of GCC specific ULONG_LONG_MAX.
55435         * lib/xstrtoll.c: Likewise.
55436         * lib/xstrtoull.c: Likewise.
55438 2010-03-13  Bruno Haible  <bruno@clisp.org>
55440         Allow the user to disable C++ code and tests.
55441         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55442         (gl_PROG_ANSI_CXX): Require it.
55444 2010-03-13  Bruno Haible  <bruno@clisp.org>
55446         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55447         cases.
55449 2010-03-13  Bruno Haible  <bruno@clisp.org>
55451         Test that gnulib does not break the standard C++ headers.
55452         * tests/test-locale-c++2.cc: New file.
55453         * modules/locale-tests (Files): Add it.
55454         (Makefile.am): Compile it for test-locale-c++.
55455         * tests/test-math-c++2.cc: New file.
55456         * modules/math-tests (Files): Add it.
55457         (Makefile.am): Compile it for test-math-c++.
55458         * tests/test-signal-c++2.cc: New file.
55459         * modules/signal-tests (Files): Add it.
55460         (Makefile.am): Compile it for test-signal-c++.
55461         * tests/test-stdio-c++2.cc: New file.
55462         * modules/stdio-tests (Files): Add it.
55463         (Makefile.am): Compile it for test-stdio-c++.
55464         * tests/test-stdlib-c++2.cc: New file.
55465         * modules/stdlib-tests (Files): Add it.
55466         (Makefile.am): Compile it for test-stdlib-c++.
55467         * tests/test-string-c++2.cc: New file.
55468         * modules/string-tests (Files): Add it.
55469         (Makefile.am): Compile it for test-string-c++.
55470         * tests/test-time-c++2.cc: New file.
55471         * modules/time-tests (Files): Add it.
55472         (Makefile.am): Compile it for test-time-c++.
55473         Reported by John W. Eaton <jwe@gnu.org>.
55475 2010-03-13  Bruno Haible  <bruno@clisp.org>
55477         * gnulib-tool (func_usage): Clarify which options are available for
55478         --create-testdir and --create-megatestdir.
55480 2010-03-13  Bruno Haible  <bruno@clisp.org>
55482         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55483         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55484         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55485         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55486         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55487         when appropriate.
55488         Reported by Jim Meyering.
55490 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55492         * gnulib-tool (func_import): Explain origin of code.
55494 2010-03-12  Bruno Haible  <bruno@clisp.org>
55496         Fix problem with automake's definition of CXXLINK.
55497         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55498         Reported by Simon Josefsson and Ludovic Courtès.
55500 2010-03-12  Bruno Haible  <bruno@clisp.org>
55502         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55503         stable releases.
55505 2010-03-11  Bruno Haible  <bruno@clisp.org>
55507         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55508         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55509         whether the system provides one variant or multiple variants of the
55510         function.
55511         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55512         C++ compilers.
55513         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55514         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55515         Reported by Jim Meyering.
55517 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55519         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55521 2010-03-08  Bruno Haible  <bruno@clisp.org>
55523         gnulib-tool: Add support for --libtool in --create-testdir.
55524         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55525         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55527 2010-03-08  Eric Blake  <eblake@redhat.com>
55529         gnulib-tool.texi: mention possibility of git submodule
55530         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55531         submodules.
55532         * doc/.gitignore: Ignore another generated file.
55534 2010-03-08  Karl Berry  <karl@gnu.org>
55536         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55537         of committing gnulib files while skipping others.
55539 2010-03-07  Bruno Haible  <bruno@clisp.org>
55541         Tests of module 'wctype' in C++ mode.
55542         * tests/test-wctype-c++.cc: New file.
55543         * modules/wctype-tests (Files): Add it and tests/signature.h.
55544         (Depends-on): Add ansi-c++-opt.
55545         (Makefile.am): Arrange to compile and run test-wctype-c++.
55547         Tests of module 'wchar' in C++ mode.
55548         * tests/test-wchar-c++.cc: New file.
55549         * modules/wchar-tests (Files): Add it and tests/signature.h.
55550         (Depends-on): Add ansi-c++-opt.
55551         (Makefile.am): Arrange to compile and run test-wchar-c++.
55552         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55553         gl_MODULE_INDICATOR.
55555         Tests of module 'unistd' in C++ mode.
55556         * tests/test-unistd-c++.cc: New file.
55557         * modules/unistd-tests (Files): Add it and tests/signature.h.
55558         (Depends-on): Add ansi-c++-opt.
55559         (Makefile.am): Arrange to compile and run test-unistd-c++.
55560         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55561         gl_MODULE_INDICATOR.
55563         Tests of module 'time' in C++ mode.
55564         * tests/test-time-c++.cc: New file.
55565         * modules/time-tests (Files): Add it and tests/signature.h.
55566         (Depends-on): Add ansi-c++-opt.
55567         (Makefile.am): Arrange to compile and run test-time-c++.
55568         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55570         Tests of module 'sys_time' in C++ mode.
55571         * tests/test-sys_time-c++.cc: New file.
55572         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55573         (Depends-on): Add ansi-c++-opt.
55574         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55575         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55576         gl_MODULE_INDICATOR.
55578         Tests of module 'sys_stat' in C++ mode.
55579         * tests/test-sys_stat-c++.cc: New file.
55580         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55581         (Depends-on): Add ansi-c++-opt.
55582         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55583         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55584         gl_MODULE_INDICATOR.
55586         Tests of module 'sys_socket' in C++ mode.
55587         * tests/test-sys_socket-c++.cc: New file.
55588         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55589         (Depends-on): Add ansi-c++-opt.
55590         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55592         gl_MODULE_INDICATOR.
55594         Tests of module 'sys_select' in C++ mode.
55595         * tests/test-sys_select-c++.cc: New file.
55596         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55597         (Depends-on): Add ansi-c++-opt.
55598         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55599         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55600         gl_MODULE_INDICATOR.
55602         Tests of module 'sys_ioctl' in C++ mode.
55603         * tests/test-sys_ioctl-c++.cc: New file.
55604         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55605         (Depends-on): Add ansi-c++-opt.
55606         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55607         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55608         gl_MODULE_INDICATOR.
55610         Tests of module 'string' in C++ mode.
55611         * tests/test-string-c++.cc: New file.
55612         * modules/string-tests (Files): Add it and tests/signature.h.
55613         (Depends-on): Add ansi-c++-opt.
55614         (Makefile.am): Arrange to compile and run test-string-c++.
55615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55616         gl_MODULE_INDICATOR.
55618         Tests of module 'stdlib' in C++ mode.
55619         * tests/test-stdlib-c++.cc: New file.
55620         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55621         (Depends-on): Add ansi-c++-opt.
55622         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55623         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55624         gl_MODULE_INDICATOR.
55626         Tests of module 'stdio' in C++ mode.
55627         * tests/test-stdio-c++.cc: New file.
55628         * modules/stdio-tests (Files): Add it and tests/signature.h.
55629         (Depends-on): Add ansi-c++-opt.
55630         (Makefile.am): Arrange to compile and run test-stdio-c++.
55631         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55632         gl_MODULE_INDICATOR.
55634         Tests of module 'spawn' in C++ mode.
55635         * tests/test-spawn-c++.cc: New file.
55636         * modules/spawn-tests (Files): Add it and tests/signature.h.
55637         (Depends-on): Add ansi-c++-opt.
55638         (Makefile.am): Arrange to compile and run test-spawn-c++.
55639         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55640         gl_MODULE_INDICATOR.
55642         Tests of module 'signal' in C++ mode.
55643         * tests/test-signal-c++.cc: New file.
55644         * modules/signal-tests (Files): Add it and tests/signature.h.
55645         (Depends-on): Add ansi-c++-opt.
55646         (Makefile.am): Arrange to compile and run test-signal-c++.
55647         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55648         gl_MODULE_INDICATOR.
55650         Tests of module 'search' in C++ mode.
55651         * tests/test-search-c++.cc: New file.
55652         * modules/search-tests (Files): Add it and tests/signature.h.
55653         (Depends-on): Add ansi-c++-opt.
55654         (Makefile.am): Arrange to compile and run test-search-c++.
55655         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55656         gl_MODULE_INDICATOR.
55658         Tests of module 'math' in C++ mode.
55659         * tests/test-math-c++.cc: New file.
55660         * modules/math-tests (Files): Add it and tests/signature.h.
55661         (Depends-on): Add ansi-c++-opt.
55662         (Makefile.am): Arrange to compile and run test-math-c++.
55663         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55665         Tests of module 'locale' in C++ mode.
55666         * tests/test-locale-c++.cc: New file.
55667         * modules/locale-tests (Files): Add it and tests/signature.h.
55668         (Depends-on): Add ansi-c++-opt.
55669         (Makefile.am): Arrange to compile and run test-locale-c++.
55670         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55671         gl_MODULE_INDICATOR.
55673         Tests of module 'langinfo' in C++ mode.
55674         * tests/test-langinfo-c++.cc: New file.
55675         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55676         (Depends-on): Add ansi-c++-opt.
55677         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55678         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55679         gl_MODULE_INDICATOR.
55681         Tests of module 'iconv-h' in C++ mode.
55682         * tests/test-iconv-h-c++.cc: New file.
55683         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55684         (Depends-on): Add ansi-c++-opt.
55685         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55687         Tests of module 'glob' in C++ mode.
55688         * tests/test-glob-c++.cc: New file.
55689         * modules/glob-tests (Files): Add it.
55690         (Depends-on): Add ansi-c++-opt.
55691         (Makefile.am): Arrange to compile and run test-glob-c++.
55693         Tests of module 'fcntl-h' in C++ mode.
55694         * tests/test-fcntl-h-c++.cc: New file.
55695         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55696         (Depends-on): Add ansi-c++-opt.
55697         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55698         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55699         gl_MODULE_INDICATOR.
55701         Tests of module 'dirent' in C++ mode.
55702         * tests/test-dirent-c++.cc: New file.
55703         * modules/dirent-tests (Files): Add it and tests/signature.h.
55704         (Depends-on): Add ansi-c++-opt.
55705         (Makefile.am): Arrange to compile and run test-dirent-c++.
55706         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55707         gl_MODULE_INDICATOR.
55709         New module 'ansi-c++-opt'.
55710         * modules/ansi-c++-opt: New file.
55711         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55713         Document C++ namespace mode.
55714         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55716         wctype: Avoid #define replacements in C++ mode.
55717         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55718         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55719         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55720         In C++, define a namespaced alias symbol.
55721         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55722         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55723         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55724         rule.
55726         wchar: Avoid #define replacements in C++ mode.
55727         * lib/wchar.in.h: Include c++defs.h.
55728         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55729         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55730         symbol.
55731         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55732         * modules/wchar (Depends-on): Add c++defs.
55733         (Makefile.am): Update wchar.h rule.
55735         unistd: Avoid #define replacements in C++ mode.
55736         * lib/unistd.in.h: Include c++defs.h.
55737         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55738         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55739         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55740         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55741         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55742         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55743         symbol.
55744         (environ): Update.
55745         * modules/unistd (Depends-on): Add c++defs.
55746         (Makefile.am): Update unistd.h rule.
55748         time: Avoid #define replacements in C++ mode.
55749         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55750         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55751         define a namespaced alias symbol.
55752         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55753         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55754         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55755         * modules/time (Depends-on): Add c++defs, warn-on-use.
55756         (Makefile.am): Update time.h rule.
55757         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55758         * modules/nanosleep (configure.ac): Likewise.
55759         * modules/strptime (configure.ac): Likewise.
55760         * modules/timegm (configure.ac): Likewise.
55762         sys_time: Avoid #define replacements in C++ mode.
55763         * lib/sys_time.in.h: Include c++defs.h.
55764         (gettimeofday): In C++, define a namespaced alias symbol.
55765         * modules/sys_time (Depends-on): Add c++defs.
55766         (Makefile.am): Update sys/time.h rule.
55768         sys_stat: Avoid #define replacements in C++ mode.
55769         * lib/sys_stat.in.h: Include c++defs.h.
55770         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55771         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55772         namespaced alias symbol.
55773         In C++, define a namespaced alias symbol.
55774         * modules/sys_stat (Depends-on): Add c++defs.
55775         (Makefile.am): Update sys/stat.h rule.
55777         sys_socket: Avoid #define replacements in C++ mode.
55778         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55779         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55780         definitions also when the system has a <sys/socket.h>.
55781         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55782         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55783         In C++, define a namespaced alias symbol.
55784         * modules/sys_socket (Depends-on): Add c++defs.
55785         (Makefile.am): Update sys/socket.h rule.
55787         sys_select: Avoid #define replacements in C++ mode.
55788         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55789         definitions also when the system has a <sys/select.h>.
55790         (select): In C++, define a namespaced alias symbol.
55791         * modules/sys_select (Depends-on): Add c++defs.
55792         (Makefile.am): Update sys/select.h rule.
55794         sys_ioctl: Avoid #define replacements in C++ mode.
55795         * lib/sys_ioctl.in.h: Include c++defs.h.
55796         (ioctl): In C++, define a namespaced alias symbol.
55797         * modules/sys_ioctl (Depends-on): Add c++defs.
55798         (Makefile.am): Update sys/ioctl.h rule.
55800         string: Avoid #define replacements in C++ mode.
55801         * lib/string.in.h: Include c++defs.h.
55802         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55803         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55804         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55805         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55806         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55807         * modules/string (Depends-on): Add c++defs.
55808         (Makefile.am): Update string.h rule.
55810         stdlib: Avoid #define replacements in C++ mode.
55811         * lib/stdlib.in.h: Include c++defs.h.
55812         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55813         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55814         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55815         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55816         symbol.
55817         * modules/stdlib (Depends-on): Add c++defs.
55818         (Makefile.am): Update stdlib.h rule.
55820         stdio: Avoid #define replacements in C++ mode.
55821         * lib/stdio.in.h: Include c++defs.h.
55822         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55823         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55824         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55825         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55826         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55827         namespaced alias symbol.
55828         * modules/stdio (Depends-on): Add c++defs.
55829         (Makefile.am): Update stdio.h rule.
55831         spawn: Avoid #define replacements in C++ mode.
55832         * lib/spawn.in.h: Include c++defs.h.
55833         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55834         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55835         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55836         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55837         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55838         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55839         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55840         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55841         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55842         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55843         In C++, define a namespaced alias symbol.
55844         * modules/spawn (Depends-on): Add c++defs.
55845         (Makefile.am): Update spawn.h rule.
55847         signal: Avoid #define replacements in C++ mode.
55848         * lib/signal.in.h: Include c++defs.h.
55849         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55850         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55851         namespaced alias symbol.
55852         * modules/signal (Depends-on): Add c++defs.
55853         (Makefile.am): Update signal.h rule.
55855         search: Avoid #define replacements in C++ mode.
55856         * lib/search.in.h: Include c++defs.h.
55857         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55858         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55859         symbol.
55860         * modules/search (Depends-on): Add c++defs.
55861         (Makefile.am): Update search.h rule.
55863         math: Avoid #define replacements in C++ mode.
55864         * lib/math.in.h: Include c++defs.h.
55865         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55866         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55867         trunc, truncl): In C++, define a namespaced alias symbol.
55868         * modules/math (Depends-on): Add c++defs.
55869         (Makefile.am): Update math.h rule.
55871         locale: Avoid #define replacements in C++ mode.
55872         * lib/locale.in.h: Include c++defs.h.
55873         (duplocale): In C++, define a namespaced alias symbol.
55874         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55875         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55876         * modules/locale (Depends-on): Add c++defs.
55877         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55879         langinfo: Avoid #define replacements in C++ mode.
55880         * lib/langinfo.in.h: Include c++defs.h.
55881         (nl_langinfo): In C++, define a namespaced alias symbol.
55882         * modules/langinfo (Depends-on): Add c++defs.
55883         (Makefile.am): Update langinfo.h rule.
55885         iconv-h: Avoid #define replacements in C++ mode.
55886         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55887         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55888         symbol.
55889         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55890         whenever iconv is present.
55891         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55892         (Makefile.am): Update iconv.h rule.
55894         glob: Avoid #define replacements in C++ mode.
55895         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55896         (_gl_glob_errfunc_fn): New type.
55897         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55898         symbol.
55899         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55900         (Makefile.am): Update glob.h rule.
55902         fcntl-h: Avoid #define replacements in C++ mode.
55903         * lib/fcntl.in.h: Include c++defs.h.
55904         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55905         * modules/fcntl-h (Depends-on): Add c++defs.
55906         (Makefile.am): Update fcntl.h rule.
55908         dirent: Avoid #define replacements in C++ mode.
55909         * lib/dirent.in.h: Include c++defs.h.
55910         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55911         namespaced alias symbol.
55912         (dirfd): Update declaration.
55913         * modules/dirent (Depends-on): Add c++defs.
55914         (Makefile.am): Update dirent.h rule.
55916         ctype: Make it usable in C++ code.
55917         * lib/ctype.in.h: Include c++defs.h.
55918         (isblank): Declare as extern "C".
55919         * modules/ctype (Depends-on): Add c++defs.
55920         (Makefile.am): Update ctype.h rule.
55922         New module 'c++defs'.
55923         * modules/c++defs: New file.
55924         * build-aux/c++defs.h: New file.
55925         Reported by John W. Eaton <jwe@gnu.org>.
55927 2010-03-07  Bruno Haible  <bruno@clisp.org>
55929         logb: Provide missing declaration for Cygwin.
55930         * lib/math.in.h (logb): New declaration.
55931         * m4/logb.m4: New file.
55932         * modules/logb (Files): Add m4/logb.m4.
55933         (Depends-on): Add math.
55934         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55935         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55937         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55938         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55940 2010-03-07  Bruno Haible  <bruno@clisp.org>
55942         Fix test-cond link error.
55943         * tests/test-cond.c: Include <stdio.h>.
55945 2010-03-07  Bruno Haible  <bruno@clisp.org>
55947         Fix test-dirent-safer link error.
55948         * modules/dirent-safer-tests (Makefile.am): Define
55949         test_dirent_safer_LDADD.
55951 2010-03-07  Bruno Haible  <bruno@clisp.org>
55953         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55954         among default module list.
55956 2010-03-07  Bruno Haible  <bruno@clisp.org>
55958         Fix link error on platforms with GNU libiconv.
55959         * modules/unistr/u8-strcoll-tests (Makefile): Define
55960         test_u8_strcoll_LDADD.
55961         * modules/unistr/u16-strcoll-tests (Makefile): Define
55962         test_u16_strcoll_LDADD.
55963         * modules/unistr/u32-strcoll-tests (Makefile): Define
55964         test_u32_strcoll_LDADD.
55966 2010-03-07  Bruno Haible  <bruno@clisp.org>
55968         Use POSIX declarations for socket functions.
55969         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55970         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55971         rpl_sendto): Change declaration to match POSIX.
55972         * lib/connect.c (rpl_connect): Likewise.
55973         * lib/accept.c (rpl_accept): Likewise.
55974         * lib/bind.c (rpl_bind): Likewise.
55975         * lib/getpeername.c (rpl_getpeername): Likewise.
55976         * lib/getsockname.c (rpl_getsockname): Likewise.
55977         * lib/recv.c (rpl_recv): Likewise.
55978         * lib/send.c (rpl_send): Likewise.
55979         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55980         * lib/sendto.c (rpl_sendto): Likewise.
55982 2010-03-06  Bruno Haible  <bruno@clisp.org>
55984         Clarify access, euidaccess, faccessat.
55985         * doc/posix-functions/faccessat.texi: Mention security problem under
55986         "Other problems", not "Portability problems".
55987         * doc/posix-functions/access.texi: Likewise. Mention a related security
55988         problem.
55989         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55990         * lib/euidaccess.c: Add comments about platforms.
55991         * lib/unistd.in.h (access, euidaccess): Add warnings.
55993 2010-03-07  Bruno Haible  <bruno@clisp.org>
55995         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55996         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55997         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55998         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55999         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
56000         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
56001         declare when POSIX_SPAWN_SETSCHEDULER is zero.
56002         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
56003         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
56004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
56005         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
56006         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
56007         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
56008         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
56009         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
56010         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
56011         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
56012         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
56013         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
56014         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
56015         Likewise.
56016         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
56017         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
56018         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
56019         Likewise.
56020         * tests/test-spawn.c (main): Make it work when
56021         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
56023 2010-03-07  Bruno Haible  <bruno@clisp.org>
56025         Fix incorrect Makefile.am generation in German locale.
56026         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56027         Execute sed command with character range in C locale.
56029 2010-03-06  Bruno Haible  <bruno@clisp.org>
56031         Tests for module 'iconv-h'.
56032         * modules/iconv-h-tests: New file.
56033         * tests/test-iconv-h.c: New file.
56035         New module 'iconv-h'.
56036         * modules/iconv-h: New file.
56037         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
56038         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
56039         (configure.ac): Remove gl_ICONV_H.
56040         (Makefile.am): Remove rule for iconv.h.
56042 2010-03-06  Bruno Haible  <bruno@clisp.org>
56044         More consistent naming of *.m4 files.
56045         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
56046         * modules/wctype (Files): Update.
56048         More consistent naming of *.m4 files.
56049         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
56050         * modules/wchar (Files): Update.
56052 2010-03-06  Jim Meyering  <meyering@redhat.com>
56054         euidaccess: relax license to LGPLv2+
56055         * modules/euidaccess (License): Relax to LGPLv2+.
56057 2010-03-06  Bruno Haible  <bruno@clisp.org>
56059         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
56060         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
56061         (Makefile.am): Augment lib_SOURCES instead.
56063 2010-03-04  Jim Meyering  <meyering@redhat.com>
56065         utime: remove obsolete module
56066         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
56067         unnecessary for years, and has been marked as obsolete for 10 months.
56068         * modules/utime: Remove file.
56069         * lib/utime.c: Remove file.
56070         * m4/utime.m4: Remove file.
56071         * m4/utimes-null.m4: Remove file.
56072         * doc/posix-functions/utime.texi (utime): Remove reference to
56073         the module.  Move the sole "fixed by gnulib" item into the
56074         "problems not fixed by Gnulib" list.
56075         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
56077 2010-03-05  Simon Josefsson  <simon@josefsson.org>
56079         * modules/exit (License): Relax license to LGPLv2+.
56080         (Status): Mark as obsolete.
56081         * NEWS: Mention deprecated 'exit' module.
56082         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
56083         of now obsolete 'exit'.
56085 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56087         fts-lgpl: remove unused module
56088         * modules/fts-lgpl: Remove.
56089         * MODULES.html.sh (func_all_modules): Adjust.
56090         * check-module (find_included_lib_files): Adjust.
56091         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
56093 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
56095         copy-acl: enhance Solaris ACL error handling
56096         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
56097         * lib/set-mode-acl.c (qset_acl): Likewise.
56099 2010-03-02  Bruno Haible  <bruno@clisp.org>
56101         spawn: Don't override the system defined values on FreeBSD 8.
56102         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
56103         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
56104         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
56105         if HAVE_POSIX_SPAWN is 1.
56106         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
56108 2010-03-01  Bruno Haible  <bruno@clisp.org>
56110         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
56111         regarding Automake.
56113 2010-02-25  Bruno Haible  <bruno@clisp.org>
56115         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
56116         * gnulib-tool: Define 'echo' as a function only before the ksh alias
56117         setting, not afterwards.
56118         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
56120 2010-02-24  Eric Blake  <eblake@redhat.com>
56122         bootstrap, git-version-gen: use timestamp
56123         * build-aux/git-version-gen (scriptversion): Force UTC.
56124         * build-aux/bootstrap (scriptversion): New variable.
56126         bootstrap: allow older git
56127         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
56128         older than 1.6.4.  Requested by the libvirt project.
56130 2010-02-23  Eric Blake  <eblake@redhat.com>
56132         warn-on-use: work with old autoconf
56133         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
56134         AS_VAR semantics of autoconf 2.60.
56135         Reported by Bruno Haible.
56137         bootstrap: improve some comments
56138         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
56139         clarification comments.
56141         gettimeofday: provide correct function
56142         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
56143         when replacement is declared, otherwise provide gettimeofday.
56144         Reported by Michael Goffioul.
56146 2010-02-23  Jim Meyering  <meyering@redhat.com>
56148         lib-ignore: relax license to "unlimited", not LGPLv2+
56149         * modules/lib-ignore (License): Relax to "unlimited".
56151 2010-02-23  Jim Meyering  <meyering@redhat.com>
56153         lib-ignore: relax license to LGPLv2+
56154         * modules/lib-ignore (License): Relax to LGPLv2+.
56156 2010-02-22  Eric Blake  <eblake@redhat.com>
56158         lseek: avoid bash 3.2 broken pipe bug
56159         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
56160         warning from bash 3.2.
56161         Reported by Ben Pfaff, with analysis from Bruno Haible.
56163         bootstrap: support non-FSF copyright holder
56164         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
56165         bootstrap.conf override of COPYRIGHT_HOLDER.
56166         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
56168         bootstrap: interoperate with gettext 0.14.1
56169         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
56171         bootstrap: allow for alternate submodule location
56172         * build-aux/bootstrap (gnulib_path): New variable; use instead of
56173         hardcoding submodule location.
56174         (gnulib_mk): Allow direct use of Makefile.am.
56176         bootstrap: use GNULIB_SRCDIR to reduce disk usage
56177         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
56178         rather than reconfiguring where the submodule points.
56180         gettimeofday: restore support for platforms that lack function
56181         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
56182         replacement if function is missing.
56183         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
56184         * modules/sys_time (Makefile.am): Substitute it.
56185         * lib/sys_time.in.h (gettimeofday): Check it.
56186         Reported by Michael Goffioul.
56188 2010-02-21  Bruno Haible  <bruno@clisp.org>
56190         * lib/stdio.in.h (obstack_printf): Fix typo.
56192 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
56194         vc-list-files: use bzr ls's -R option
56195         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
56196         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
56198 2010-02-21  Jim Meyering  <meyering@redhat.com>
56200         init.sh: fix EXEEXT shims to work also for names like test-prog
56201         * tests/init.sh: Re-exec a better shell, when needed.
56202         If the current shell lacks support for posix $(...), an init.sh-using
56203         test will now try to find a shell that supports that.  If EXEEXT is
56204         nonempty, we also require support for hyphen-in-alias-name and shell
56205         substitutions like ${var#glob}.  Failure to find such a shell results
56206         in a skipped test.
56208 2010-02-21  Bruno Haible  <bruno@clisp.org>
56210         Really work around "broken pipe" error message from bash 3.2.
56211         * gnulib-tool (func_reset_sigpipe): Remove function.
56212         (echo): In bash 3.2, define to a function that uses printf.
56213         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
56215 2010-02-20  Bruno Haible  <bruno@clisp.org>
56217         Restore support for automake 1.9.6 with autoconf 2.61.
56218         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
56219         Reported by James Youngman <jay@gnu.org>.
56221 2010-02-20  Bruno Haible  <bruno@clisp.org>
56223         Improve *printf warning condition.
56224         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
56225         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
56226         and the function is overridden due to SIGPIPE emulation.
56228 2010-02-20  Bruno Haible  <bruno@clisp.org>
56230         * lib/stdio.in.h: Tweak comments.
56232 2010-02-19  Bruno Haible  <bruno@clisp.org>
56234         Make it easier to find modules. New gnulib-tool option '--find'.
56235         * gnulib-tool: New option --find.
56236         (func_usage): Document it.
56237         (func_sanitize_modulelist): New function, extracted from
56238         func_all_modules.
56239         (func_all_modules): Invoke it.
56240         * doc/gnulib-tool.texi (Which modules?): New node.
56242 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
56244         * lib/sys_select.in.h: Provide select replacement even if
56245         sys/select.h exists on a system, for Interix.
56247 2010-02-18  Jim Meyering  <meyering@redhat.com>
56249         init.sh: don't use $(...) just yet
56250         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
56251         to accommodate e.g., Solaris' /bin/sh.
56253 2010-02-17  Bruno Haible  <bruno@clisp.org>
56255         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
56256         Reported by Ludovic Courtès <ludo@gnu.org>.
56258 2010-02-16  Simon Josefsson  <simon@josefsson.org>
56260         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
56261         linking with -lintl.
56263 2010-02-17  Simon Josefsson  <simon@josefsson.org>
56265         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
56266         if not provided by the system's netdb.h.  Reported by
56267         ludo@gnu.org (Ludovic Courtès).
56269 2010-02-15  Jim Meyering  <meyering@redhat.com>
56271         init.sh: improve portability and efficiency
56272         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
56273         "dummy" in a for loop.
56274         Use '!', not '^' to select the complement of a character set used
56275         in a "case" statement.
56276         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
56277         Suggestions from Eric Blake.
56279         init.sh: automatically accommodate programs with the .exe suffix
56280         Automatically arrange for an invocation of "prog" to execute the
56281         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
56282         may use the simpler "prog", yet still work when built on a system
56283         that requires specifying the added suffix.
56284         Do this by constructing a function named "prog" that invokes
56285         "prog.exe" for each .exe file in selected directories.
56286         * tests/init.sh (find_exe_basenames_): New function.
56287         (create_exe_shim_functions_): New function.
56288         (path_prepend_): Use it.
56290         maint.mk: mark syntax-check sc_*.m rules as .PHONY
56291         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
56292         "make -t syntax-check" doesn't create a ton of sc_*.m files.
56294 2010-02-14  Jim Meyering  <meyering@redhat.com>
56296         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
56297         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
56298         (sc_prohibit_hash_pjw_without_use): New rule.
56300         maint.mk: allow the default upload destination dir to be overridden
56301         * top/maint.mk (upload_dest_dir_): Define with a default that
56302         preserves the status quo.
56303         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
56304         Reported by Peter Simons.
56306         maint.mk: prohibit inclusion of "hash.h" without_use
56307         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
56309 2010-02-10  Jim Meyering  <meyering@redhat.com>
56311         maint.mk: prohibit inclusion of "ignore-value.h" without_use
56312         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
56314 2010-02-09  Eric Blake  <ebb9@byu.net>
56315         and Bruno Haible  <bruno@clisp.org>
56317         obstack-printf-posix: ensure declaration
56318         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
56319         extracted from gl_FUNC_OBSTACK_PRINTF.
56320         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
56321         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56322         Likewise.
56323         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
56324         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
56325         0.
56327 2010-02-08  Bruno Haible  <bruno@clisp.org>
56329         gnulib-tool: Fix typo in 2010-02-07 commit.
56330         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
56331         Reported by Eric Blake.
56333 2010-02-07  Bruno Haible  <bruno@clisp.org>
56335         gnulib-tool: Fix up caching patches.
56336         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
56337         option --no-cache. Use associative arrays when supported by the shell.
56338         (sed_comments): New variable.
56339         (modcache): Renamed from do_cache.
56340         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
56341         abbreviate unnecessarily.
56342         (have_associative): New variable.
56343         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
56344         way also for ksh and zsh.
56345         (func_init_sed_convert_to_cache_statements): New function, extracted
56346         from func_cache_lookup_module. Add support for associative arrays.
56347         Don't set the c_MODULE_cached variable here. Ignore all lines before
56348         the first field header. Remove only the final newline, not all trailing
56349         newlines. Support empty fields correctly. Limit the use of 'eval' to
56350         assignments.
56351         (func_get_description, func_get_status, func_get_notice,
56352         func_get_applicability, func_get_filelist, func_get_dependencies,
56353         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
56354         func_get_automake_snippet, func_get_include_directive,
56355         func_get_link_directive, func_get_license, func_get_maintainer):
56356         Update documentation. List the unoptimized code first. Add support for
56357         associative arrays. Limit the use of 'eval' to assignments.
56358         (func_get_applicability): Undo stylistic pessimisations.
56359         (func_get_automake_snippet, func_get_include_directive): Reduce code
56360         duplication.
56361         (func_modules_transitive_closure, func_modules_add_dummy,
56362         func_modules_notice, func_modules_to_filelist, func_add_file,
56363         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56364         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56365         func_create_testdir, func_create_megatestdir): Update documentation.
56367 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56369         * gnulib-tool (func_cache_lookup_module): Store the module name
56370         belonging to the cache variable; error out if two different
56371         module names map to the same cache variable name.
56373 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56375         gnulib-tool: Make caching optional.
56376         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56377         Update matching short versions of --no-changelog.
56378         (func_usage): Update.
56379         (sed_extract_cache_prog): Renamed from ...
56380         (sed_extract_prog): ... this; revert to old extraction script.
56381         (func_get_description, func_get_status)
56382         (func_get_notice, func_get_applicability, func_get_filelist)
56383         (func_get_dependencies, func_get_autoconf_early_snippet)
56384         (func_get_autoconf_snippet, func_get_automake_snippet)
56385         (func_get_include_directive, func_get_link_directive)
56386         (func_get_license, func_get_maintainer): If $do_cache is false,
56387         use old, non-caching extraction scripts.
56388         Suggestion by Bruno Haible.
56390 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56392         gnulib-tool: cache module metainformation.
56393         * gnulib-tool (sed_extract_prog): Match newline before each
56394         header, and rewrite header to a shell variable suffix.
56395         (func_cache_var, func_cache_lookup_module): New functions,
56396         to turn a module name into a cache variable prefix, and to
56397         look up and cache module metainformation.
56398         (func_get_description, func_get_status)
56399         (func_get_notice, func_get_applicability, func_get_filelist)
56400         (func_get_dependencies, func_get_autoconf_early_snippet)
56401         (func_get_autoconf_snippet, func_get_automake_snippet)
56402         (func_get_include_directive, func_get_link_directive)
56403         (func_get_license, func_get_maintainer): Use
56404         func_cache_lookup_module.
56406 2010-02-07  Bruno Haible  <bruno@clisp.org>
56408         fnctl: Fix missing dependency.
56409         * modules/fcntl (Depends-on): Add getdtablesize.
56410         Reported by John W. Eaton <jwe@gnu.org>.
56412 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56414         Argp: fix recognition of short alias options.
56416         * lib/argp-parse.c (convert_options): Fix improper use of
56417         `|' between character values.
56418         * tests/test-argp.c (group1_option): New alias option
56419         --read (-r).
56420         (group1_parser): Special handling for 'r'.
56421         (test15): New test case.
56422         (test_fun): Add test15.
56423         * tests/test-argp-2.sh: Update expected --help and --usage
56424         outputs.
56426 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56428         * tests/test-argp.c: Fix indentation.
56430 2010-02-04  Eric Blake  <ebb9@byu.net>
56432         gettimeofday: expose type of second argument
56433         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56434         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56435         * tests/test-gettimeofday.c: Use it to silence warning.
56436         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56437         the issue.
56439 2010-02-03  Jim Meyering  <meyering@redhat.com>
56441         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56442         * lib/regcomp.c (TYPE_SIGNED): Define.
56443         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56445         regcomp.c: avoid a new -Wshadow warning
56446         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56448 2010-02-01  Jim Meyering  <meyering@redhat.com>
56450         removing useless parentheses in cpp #define directives
56451         For motivation, see commit c0221df4, "define STREQ(a,b)
56452         consistently, removing useless parentheses"
56453         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56454         * lib/mountlist.c (MNT_IGNORE): Likewise.
56455         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56457 2010-02-01  Eric Blake  <ebb9@byu.net>
56459         sys_time: use link-warning
56460         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56461         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56462         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56463         * modules/sys_time (Depends-on): Add warn-on-use.
56464         (Makefile.am): Always build replacement.
56465         (configure.ac): Update substitutions.
56466         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56467         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56468         bother with SYS_TIME_H.
56469         * modules/gettimeofday (configure.ac): Declare indicator.
56470         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56471         in use.
56473         closein-tests: silence compiler warning
56474         * tests/test-closein.c (main): Ignore fread result.
56475         * modules/closein-tests (Depends-on): Add ignore-value.
56477         tests: silence warning about system return
56478         * tests/test-areadlink-with-size.c (main): Ignore system result.
56479         * tests/test-areadlink.c (main): Likewise.
56480         * tests/test-areadlinkat-with-size.c (main): Likewise.
56481         * tests/test-areadlinkat.c (main): Likewise.
56482         * tests/test-canonicalize-lgpl.c (main): Likewise.
56483         * tests/test-canonicalize.c (main): Likewise.
56484         * tests/test-chown.c (main): Likewise.
56485         * tests/test-fchownat.c (main): Likewise.
56486         * tests/test-fdutimensat.c (main): Likewise.
56487         * tests/test-fstatat.c (main): Likewise.
56488         * tests/test-futimens.c (main): Likewise.
56489         * tests/test-lchown.c (main): Likewise.
56490         * tests/test-link.c (main): Likewise.
56491         * tests/test-linkat.c (main): Likewise.
56492         * tests/test-lstat.c (main): Likewise.
56493         * tests/test-mkdir.c (main): Likewise.
56494         * tests/test-mkdirat.c (main): Likewise.
56495         * tests/test-mkfifo.c (main): Likewise.
56496         * tests/test-mkfifoat.c (main): Likewise.
56497         * tests/test-mknod.c (main): Likewise.
56498         * tests/test-readlink.c (main): Likewise.
56499         * tests/test-remove.c (main): Likewise.
56500         * tests/test-rename.c (main): Likewise.
56501         * tests/test-renameat.c (main): Likewise.
56502         * tests/test-rmdir.c (main): Likewise.
56503         * tests/test-symlink.c (main): Likewise.
56504         * tests/test-symlinkat.c (main): Likewise.
56505         * tests/test-unlink.c (main): Likewise.
56506         * tests/test-unlinkat.c (main): Likewise.
56507         * tests/test-utimens.c (main): Likewise.
56508         * tests/test-utimensat.c (main): Likewise.
56509         * modules/areadlink-tests (Depends-on): Add ignore-value.
56510         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56511         * modules/areadlinkat-tests (Depends-on): Likewise.
56512         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56513         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56514         * modules/canonicalize-tests (Depends-on): Likewise.
56515         * modules/chown-tests (Depends-on): Likewise.
56516         * modules/fdutimensat-tests (Depends-on): Likewise.
56517         * modules/futimens-tests (Depends-on): Likewise.
56518         * modules/lchown-tests (Depends-on): Likewise.
56519         * modules/link-tests (Depends-on): Likewise.
56520         * modules/linkat-tests (Depends-on): Likewise.
56521         * modules/lstat-tests (Depends-on): Likewise.
56522         * modules/mkdir-tests (Depends-on): Likewise.
56523         * modules/mkfifo-tests (Depends-on): Likewise.
56524         * modules/mkfifoat-tests (Depends-on): Likewise.
56525         * modules/mknod-tests (Depends-on): Likewise.
56526         * modules/openat-tests (Depends-on): Likewise.
56527         * modules/readlink-tests (Depends-on): Likewise.
56528         * modules/remove-tests (Depends-on): Likewise.
56529         * modules/rename-tests (Depends-on): Likewise.
56530         * modules/renameat-tests (Depends-on): Likewise.
56531         * modules/rmdir-tests (Depends-on): Likewise.
56532         * modules/symlink-tests (Depends-on): Likewise.
56533         * modules/symlinkat-tests (Depends-on): Likewise.
56534         * modules/unlink-tests (Depends-on): Likewise.
56535         * modules/utimens-tests (Depends-on): Likewise.
56536         * modules/utimensat-tests (Depends-on): Likewise.
56538 2010-01-31  Bruno Haible  <bruno@clisp.org>
56540         Perform the same test for many <math.h> functions.
56541         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56542         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56543         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56544         of gl_MATHFUNC.
56545         * modules/acos (configure.ac): Likewise.
56546         * modules/asin (configure.ac): Likewise.
56547         * modules/atan (configure.ac): Likewise.
56548         * modules/atan2 (configure.ac): Likewise.
56549         * modules/cbrt (configure.ac): Likewise.
56550         * modules/copysign (configure.ac): Likewise.
56551         * modules/cos (configure.ac): Likewise.
56552         * modules/cosh (configure.ac): Likewise.
56553         * modules/erf (configure.ac): Likewise.
56554         * modules/erfc (configure.ac): Likewise.
56555         * modules/exp (configure.ac): Likewise.
56556         * modules/fmod (configure.ac): Likewise.
56557         * modules/hypot (configure.ac): Likewise.
56558         * modules/j0 (configure.ac): Likewise.
56559         * modules/j1 (configure.ac): Likewise.
56560         * modules/jn (configure.ac): Likewise.
56561         * modules/lgamma (configure.ac): Likewise.
56562         * modules/log (configure.ac): Likewise.
56563         * modules/log10 (configure.ac): Likewise.
56564         * modules/log1p (configure.ac): Likewise.
56565         * modules/pow (configure.ac): Likewise.
56566         * modules/remainder (configure.ac): Likewise.
56567         * modules/sin (configure.ac): Likewise.
56568         * modules/sinh (configure.ac): Likewise.
56569         * modules/tan (configure.ac): Likewise.
56570         * modules/tanh (configure.ac): Likewise.
56571         * modules/y0 (configure.ac): Likewise.
56572         * modules/y1 (configure.ac): Likewise.
56573         * modules/yn (configure.ac): Likewise.
56574         Suggested by Paolo Bonzini.
56576 2010-01-31  Bruno Haible  <bruno@clisp.org>
56578         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56580 2010-01-31  Bruno Haible  <bruno@clisp.org>
56582         Work around getdelim() bug on FreeBSD 8.0.
56583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56584         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56585         not work.
56586         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56587         is 1.
56588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56589         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56590         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56591         a non-zero size.
56592         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56594 2010-01-31  Bruno Haible  <bruno@clisp.org>
56596         Work around getline() bug on FreeBSD 8.0.
56597         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56598         and a non-zero size.
56599         * tests/test-getline.c (main): Likewise.
56600         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56601         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56603 2010-01-28  Eric Blake  <ebb9@byu.net>
56605         regex: fix build failure
56606         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56607         platforms.
56609 2010-01-28  Jim Meyering  <meyering@redhat.com>
56611         regex: do not ignore memory allocation failure
56612         * lib/regex_internal.c (create_cd_newstate): Detect
56613         re_node_set_init_copy failure.   Extracted from glibc commit
56614         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56616         regex: sync more white-space changes from libc
56617         * lib/regex_internal.c: White-space only changes.
56618         * lib/regexec.c: Likewise.
56620         regex: add many uses of __attribute_warn_unused_result__
56621         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56622         * lib/regexec.c: Likewise.
56623         Extracted from a messy glibc commit.
56625         regcomp.c: spelling and merge-artifact from glibc
56626         * lib/regcomp.c: Merge remainder of glibc's
56627         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56629         regcomp.c: sync white-space changes from glibc
56630         * lib/regcomp.c: Merge to accommodate white space
56631         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56633         regcomp.c: do not ignore internal return values
56634         * lib/regcomp.c: Do not ignore internal return values.
56635         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56636         but without its white-space changes and spelling fixes.
56638         regex_internal.h: define __attribute_warn_unused_result__
56639         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56641         maint: add a syntax-check rule to check for vulnerable Makefile.in
56642         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56644 2010-01-27  Jim Meyering  <meyering@redhat.com>
56646         ncftpput-ftp: clean up spaces
56647         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56648         Remove trailing blanks.
56650 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56652         * build-aux/git-version-gen: Fix copyright statement.
56653         * build-aux/gnupload: Likewise.
56654         * tests/test-arcfour.c: Likewise.
56655         * tests/test-arctwo.c: Likewise.
56656         * tests/test-count-one-bits.c: Likewise.
56657         * tests/test-crc.c: Likewise.
56658         * tests/test-des.c: Likewise.
56659         * tests/test-gc-arcfour.c: Likewise.
56660         * tests/test-gc-arctwo.c: Likewise.
56661         * tests/test-gc-des.c: Likewise.
56662         * tests/test-gc-hmac-md5.c: Likewise.
56663         * tests/test-gc-hmac-sha1.c: Likewise.
56664         * tests/test-gc-md2.c: Likewise.
56665         * tests/test-gc-md4.c: Likewise.
56666         * tests/test-gc-md5.c: Likewise.
56667         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56668         * tests/test-gc-rijndael.c: Likewise.
56669         * tests/test-gc-sha1.c: Likewise.
56670         * tests/test-gc.c: Likewise.
56671         * tests/test-gethostname.c: Likewise.
56672         * tests/test-gettimeofday.c: Likewise.
56673         * tests/test-hash.c: Likewise.
56674         * tests/test-hmac-md5.c: Likewise.
56675         * tests/test-hmac-sha1.c: Likewise.
56676         * tests/test-md2.c: Likewise.
56677         * tests/test-md4.c: Likewise.
56678         * tests/test-md5.c: Likewise.
56679         * tests/test-memchr.c: Likewise.
56680         * tests/test-memchr2.c: Likewise.
56681         * tests/test-memcmp.c: Likewise.
56682         * tests/test-memmem.c: Likewise.
56683         * tests/test-memrchr.c: Likewise.
56684         * tests/test-rawmemchr.c: Likewise.
56685         * tests/test-read-file.c: Likewise.
56686         * tests/test-rijndael.c: Likewise.
56687         * tests/test-sockets.c: Likewise.
56688         * tests/test-strchrnul.c: Likewise.
56689         * tests/test-strstr.c: Likewise.
56690         * tests/test-strtod.c: Likewise.
56691         * build-aux/ncftpput-ftp: Likewise.
56693 2010-01-26  Eric Blake  <ebb9@byu.net>
56695         ignore-value: update recommended header name
56696         * modules/ignore-value (Include): Only use <> for headers that
56697         exist in glibc.
56699 2010-01-26  Jim Meyering  <meyering@redhat.com>
56701         test-userspec.c: avoid compiler warnings
56702         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56703         and "initialization discards qualifiers..." warnings.
56704         Put the first "uid" in its own scope, and make char* members "const".
56706 2010-01-25  Bruno Haible  <bruno@clisp.org>
56708         gnulib-tool: Make warning diagnostics consistent.
56709         * gnulib-tool (func_warning): New function.
56710         Use it everywhere where gnulib-tool produces output to stderr and it is
56711         not a fatal error.
56713 2010-01-25  Bruno Haible  <bruno@clisp.org>
56715         Fix test dependencies.
56716         * modules/xstrtol-tests (Depends-on): Add inttypes.
56717         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56719 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56721         syntax-check: detect incorrect boolean macro values in config.h
56722         * modules/maintainer-makefile (configure.ac): Parameterize the location
56723         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56724         The logic is from Eric Blake and the location indicated by Jim Meyering.
56725         Note the more natural CONFIG_HEADER name is prohibited by automake
56726         for backwards compatibility reasons.
56727         * top/maint.mk (sc_Wundef_boolean): New rule.
56729 2010-01-25  Jim Meyering  <meyering@redhat.com>
56731         bootstrap: detect MacOS 10.6's shasum, too
56732         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56733         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56735 2010-01-23  Jim Meyering  <meyering@redhat.com>
56737         xstrtoll: new module
56738         * modules/xstrtoll: New file.
56739         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56740         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56741         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56742         ./configure fails if you use this module and lack "long long".
56743         * modules/xstrtoll-tests: New module.
56744         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56745         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56746         new init.sh-based test framework.
56748 2010-01-24  Bruno Haible  <bruno@clisp.org>
56750         Tests for module 'yn'.
56751         * modules/yn-tests: New file.
56752         * tests/test-yn.c: New file.
56754         Tests for module 'y1'.
56755         * modules/y1-tests: New file.
56756         * tests/test-y1.c: New file.
56758         Tests for module 'y0'.
56759         * modules/y0-tests: New file.
56760         * tests/test-y0.c: New file.
56762         Tests for module 'tanh'.
56763         * modules/tanh-tests: New file.
56764         * tests/test-tanh.c: New file.
56766         Tests for module 'tan'.
56767         * modules/tan-tests: New file.
56768         * tests/test-tan.c: New file.
56770         Tests for module 'sqrt'.
56771         * modules/sqrt-tests: New file.
56772         * tests/test-sqrt.c: New file.
56774         Tests for module 'sinh'.
56775         * modules/sinh-tests: New file.
56776         * tests/test-sinh.c: New file.
56778         Tests for module 'sin'.
56779         * modules/sin-tests: New file.
56780         * tests/test-sin.c: New file.
56782         Tests for module 'rint'.
56783         * modules/rint-tests: New file.
56784         * tests/test-rint.c: New file.
56786         Tests for module 'remainder'.
56787         * modules/remainder-tests: New file.
56788         * tests/test-remainder.c: New file.
56790         Tests for module 'pow'.
56791         * modules/pow-tests: New file.
56792         * tests/test-pow.c: New file.
56794         Tests for module 'nextafter'.
56795         * modules/nextafter-tests: New file.
56796         * tests/test-nextafter.c: New file.
56798         Tests for module 'modf'.
56799         * modules/modf-tests: New file.
56800         * tests/test-modf.c: New file.
56802         Tests for module 'logb'.
56803         * modules/logb-tests: New file.
56804         * tests/test-logb.c: New file.
56806         Tests for module 'log1p'.
56807         * modules/log1p-tests: New file.
56808         * tests/test-log1p.c: New file.
56810         Tests for module 'log10'.
56811         * modules/log10-tests: New file.
56812         * tests/test-log10.c: New file.
56814         Tests for module 'log'.
56815         * modules/log-tests: New file.
56816         * tests/test-log.c: New file.
56818         Tests for module 'lgamma'.
56819         * modules/lgamma-tests: New file.
56820         * tests/test-lgamma.c: New file.
56822         Tests for module 'ldexp'.
56823         * modules/ldexp-tests: New file.
56824         * tests/test-ldexp.c: New file.
56826         Tests for module 'jn'.
56827         * modules/jn-tests: New file.
56828         * tests/test-jn.c: New file.
56830         Tests for module 'j1'.
56831         * modules/j1-tests: New file.
56832         * tests/test-j1.c: New file.
56834         Tests for module 'j0'.
56835         * modules/j0-tests: New file.
56836         * tests/test-j0.c: New file.
56838         Tests for module 'hypot'.
56839         * modules/hypot-tests: New file.
56840         * tests/test-hypot.c: New file.
56842         Tests for module 'fmod'.
56843         * modules/fmod-tests: New file.
56844         * tests/test-fmod.c: New file.
56846         Tests for module 'fabs'.
56847         * modules/fabs-tests: New file.
56848         * tests/test-fabs.c: New file.
56850         Tests for module 'exp'.
56851         * modules/exp-tests: New file.
56852         * tests/test-exp.c: New file.
56854         Tests for module 'erfc'.
56855         * modules/erfc-tests: New file.
56856         * tests/test-erfc.c: New file.
56858         Tests for module 'erf'.
56859         * modules/erf-tests: New file.
56860         * tests/test-erf.c: New file.
56862         Tests for module 'cosh'.
56863         * modules/cosh-tests: New file.
56864         * tests/test-cosh.c: New file.
56866         Tests for module 'cos'.
56867         * modules/cos-tests: New file.
56868         * tests/test-cos.c: New file.
56870         Tests for module 'copysign'.
56871         * modules/copysign-tests: New file.
56872         * tests/test-copysign.c: New file.
56874         Tests for module 'cbrt'.
56875         * modules/cbrt-tests: New file.
56876         * tests/test-cbrt.c: New file.
56878         Tests for module 'atan2'.
56879         * modules/atan2-tests: New file.
56880         * tests/test-atan2.c: New file.
56882         Tests for module 'atan'.
56883         * modules/atan-tests: New file.
56884         * tests/test-atan.c: New file.
56886         Tests for module 'asin'.
56887         * modules/asin-tests: New file.
56888         * tests/test-asin.c: New file.
56890         Tests for module 'acos'.
56891         * modules/acos-tests: New file.
56892         * tests/test-acos.c: New file.
56894 2010-01-24  Bruno Haible  <bruno@clisp.org>
56896         Fix tests for common <math.h> functions.
56897         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56898         code snippet that references the function pointer, rather than merely
56899         calling the function. Substitute the FUNC_LIBM variable.
56900         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56901         * modules/acos (configure.ac): Likewise.
56902         * modules/asin (configure.ac): Likewise.
56903         * modules/atan (configure.ac): Likewise.
56904         * modules/atan2 (configure.ac): Likewise.
56905         * modules/cbrt (configure.ac): Likewise.
56906         * modules/copysign (configure.ac): Likewise.
56907         * modules/cos (configure.ac): Likewise.
56908         * modules/cosh (configure.ac): Likewise.
56909         * modules/erf (configure.ac): Likewise.
56910         * modules/erfc (configure.ac): Likewise.
56911         * modules/exp (configure.ac): Likewise.
56912         * modules/fabs (configure.ac): Likewise.
56913         * modules/fmod (configure.ac): Likewise.
56914         * modules/hypot (configure.ac): Likewise.
56915         * modules/j0 (configure.ac): Likewise.
56916         * modules/j1 (configure.ac): Likewise.
56917         * modules/jn (configure.ac): Likewise.
56918         * modules/ldexp (configure.ac): Likewise.
56919         * modules/lgamma (configure.ac): Likewise.
56920         * modules/log (configure.ac): Likewise.
56921         * modules/log10 (configure.ac): Likewise.
56922         * modules/log1p (configure.ac): Likewise.
56923         * modules/logb (configure.ac): Likewise.
56924         * modules/modf (configure.ac): Likewise.
56925         * modules/nextafter (configure.ac): Likewise.
56926         * modules/pow (configure.ac): Likewise.
56927         * modules/remainder (configure.ac): Likewise.
56928         * modules/rint (configure.ac): Likewise.
56929         * modules/sin (configure.ac): Likewise.
56930         * modules/sinh (configure.ac): Likewise.
56931         * modules/tan (configure.ac): Likewise.
56932         * modules/tanh (configure.ac): Likewise.
56933         * modules/y0 (configure.ac): Likewise.
56934         * modules/y1 (configure.ac): Likewise.
56935         * modules/yn (configure.ac): Likewise.
56937 2010-01-24  Bruno Haible  <bruno@clisp.org>
56939         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56940         * tests/test-acosl.c (x): New variable.
56941         (main): Store argument in x and fetch it from x.
56942         * tests/test-asinl.c (x): New variable.
56943         (main): Store argument in x and fetch it from x.
56944         * tests/test-atanl.c (x): New variable.
56945         (main): Store argument in x and fetch it from x.
56946         * tests/test-cosl.c (x): New variable.
56947         (main): Store argument in x and fetch it from x.
56948         * tests/test-expl.c (x): New variable.
56949         (main): Store argument in x and fetch it from x.
56950         * tests/test-logl.c (x): New variable.
56951         (main): Store argument in x and fetch it from x.
56952         * tests/test-sinl.c (x): New variable.
56953         (main): Store argument in x and fetch it from x.
56954         * tests/test-sqrtl.c (x): New variable.
56955         (main): Store argument in x and fetch it from x.
56956         * tests/test-tanl.c (x): New variable.
56957         (main): Store argument in x and fetch it from x.
56959 2010-01-24  Bruno Haible  <bruno@clisp.org>
56961         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56962         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56963         assignments to the initial TESTS_ENVIRONMENT.
56964         * doc/gnulib.texi (Unit test modules): Document it.
56965         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56966         TESTS_ENVIRONMENT.
56967         * modules/btowc-tests (Makefile.am): Likewise.
56968         * modules/c-stack-tests (Makefile.am): Likewise.
56969         * modules/c-strcase-tests (Makefile.am): Likewise.
56970         * modules/copy-file-tests (Makefile.am): Likewise.
56971         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56972         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56973         * modules/mbrtowc-tests (Makefile.am): Likewise.
56974         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56975         * modules/mbscasestr-tests (Makefile.am): Likewise.
56976         * modules/mbschr-tests (Makefile.am): Likewise.
56977         * modules/mbscspn-tests (Makefile.am): Likewise.
56978         * modules/mbsinit-tests (Makefile.am): Likewise.
56979         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56980         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56981         * modules/mbspbrk-tests (Makefile.am): Likewise.
56982         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56983         * modules/mbsrchr-tests (Makefile.am): Likewise.
56984         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56985         * modules/mbsspn-tests (Makefile.am): Likewise.
56986         * modules/mbsstr-tests (Makefile.am): Likewise.
56987         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56988         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56989         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56990         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56991         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56992         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56993         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56994         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56995         * modules/wcrtomb-tests (Makefile.am): Likewise.
56996         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56997         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56998         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56999         assignments from TESTS_ENVIRONMENT.
57000         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
57001         augmentation.
57002         * modules/argp-version-etc-tests (Makefile.am): Likewise.
57003         * modules/atexit-tests (Makefile.am): Likewise.
57004         * modules/binary-io-tests (Makefile.am): Likewise.
57005         * modules/closein-tests (Makefile.am): Likewise.
57006         * modules/dprintf-posix-tests (Makefile.am): Likewise.
57007         * modules/exclude-tests (Makefile.am): Likewise.
57008         * modules/fflush-tests (Makefile.am): Likewise.
57009         * modules/fpending-tests (Makefile.am): Likewise.
57010         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57011         * modules/freadahead-tests (Makefile.am): Likewise.
57012         * modules/freadptr-tests (Makefile.am): Likewise.
57013         * modules/freadseek-tests (Makefile.am): Likewise.
57014         * modules/fseek-tests (Makefile.am): Likewise.
57015         * modules/fseeko-tests (Makefile.am): Likewise.
57016         * modules/ftell-tests (Makefile.am): Likewise.
57017         * modules/ftello-tests (Makefile.am): Likewise.
57018         * modules/idpriv-drop-tests (Makefile.am): Likewise.
57019         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
57020         * modules/lseek-tests (Makefile.am): Likewise.
57021         * modules/parse-duration-tests (Makefile.am): Likewise.
57022         * modules/perror-tests (Makefile.am): Likewise.
57023         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
57024         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
57025         * modules/pipe-tests (Makefile.am): Likewise.
57026         * modules/pread-tests (Makefile.am): Likewise.
57027         * modules/printf-posix-tests (Makefile.am): Likewise.
57028         * modules/select-tests (Makefile.am): Likewise.
57029         * modules/sigpipe-tests (Makefile.am): Likewise.
57030         * modules/tsearch-tests (Makefile.am): Likewise.
57031         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
57032         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
57033         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57034         * modules/uniwidth/width-tests (Makefile.am): Likewise.
57035         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
57036         * modules/version-etc-tests (Makefile.am): Likewise.
57037         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57038         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57039         * modules/xalloc-die-tests (Makefile.am): Likewise.
57040         * modules/xprintf-posix-tests (Makefile.am): Likewise.
57041         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57042         * modules/xstrtol-tests (Makefile.am): Likewise.
57043         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57044         * modules/yesno-tests (Makefile.am): Likewise.
57045         Suggested by Jim Meyering.
57047 2010-01-24  Bruno Haible  <bruno@clisp.org>
57049         More documentation.
57050         * doc/gnulib.texi (Writing modules): New chapter.
57051         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
57052         the new chapter.
57054 2010-01-24  Jim Meyering  <meyering@redhat.com>
57056         maint.mk: do not prepend "./" after filtering
57057         * top/maint.mk (_prepend_srcdir_prefix): New variable
57058         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
57059         "./" when $(srcdir) is ".".
57061         define STREQ(a,b) consistently, removing useless parentheses
57062         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
57063         since the only risk is that "a" or "b" contains an unparenthesized
57064         comma, but if either did that, STREQ would have 3 or more arguments.
57065         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
57066         * lib/fts.c (STREQ): Remove unnecessary parentheses.
57067         * lib/hash-triple.c (STREQ): Likewise.
57068         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
57069         * lib/getugroups.c (STREQ): Likewise.
57071 2010-01-23  Jim Meyering  <meyering@redhat.com>
57073         maint.mk: fix syntax-check in a non-srcdir build directory
57074         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
57075         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
57077 2010-01-22  Jim Meyering  <meyering@redhat.com>
57079         userspec: add unit tests
57080         * tests/test-userspec.c: New file.
57081         * modules/userspec-tests: Likewise.
57083 2010-01-21  Jim Meyering  <meyering@redhat.com>
57085         maint.mk: handle source file names containing "." robustly
57086         * top/maint.mk (_dot_escaped_srcdir): Define.
57087         (VC_LIST): Use it in LHS of sed substitution.
57089 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
57091         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
57092         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
57093         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
57094         from a non-srcdir build.
57096 2010-01-20  Eric Blake  <ebb9@byu.net>
57098         warn-on-use: use instead of link-warning
57099         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
57100         * modules/unistd (Depends-on, Makefile.am): Likewise.
57101         * modules/arpa_inet (Depends-on): Replace link-warning with
57102         warn-on-use.
57103         (Makefile.am): Update rules accordingly.
57104         * modules/ctype (Depends-on, Makefile.am): Likewise.
57105         * modules/dirent (Depends-on, Makefile.am): Likewise.
57106         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
57107         * modules/inttypes (Depends-on, Makefile.am): Likewise.
57108         * modules/langinfo (Depends-on, Makefile.am): Likewise.
57109         * modules/locale (Depends-on, Makefile.am): Likewise.
57110         * modules/math (Depends-on, Makefile.am): Likewise.
57111         * modules/search (Depends-on, Makefile.am): Likewise.
57112         * modules/signal (Depends-on, Makefile.am): Likewise.
57113         * modules/spawn (Depends-on, Makefile.am): Likewise.
57114         * modules/stdlib (Depends-on, Makefile.am): Likewise.
57115         * modules/string (Depends-on, Makefile.am): Likewise.
57116         * modules/strings (Depends-on, Makefile.am): Likewise.
57117         * modules/sys_file (Depends-on, Makefile.am): Likewise.
57118         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
57119         * modules/sys_select (Depends-on, Makefile.am): Likewise.
57120         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
57121         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
57122         * modules/sys_times (Depends-on, Makefile.am): Likewise.
57123         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
57124         * modules/wchar (Depends-on, Makefile.am): Likewise.
57125         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
57126         should be poisoned.
57127         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
57128         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
57129         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
57130         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57131         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
57132         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57133         * m4/math_h.m4 (gl_MATH_H): Likewise.
57134         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57135         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57136         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57137         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57138         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57139         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57140         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
57141         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
57142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
57143         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57145         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57146         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57147         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57149         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57150         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
57151         GL_LINK_WARNING.
57152         * lib/ctype.in.h: Likewise.
57153         * lib/dirent.in.h: Likewise.
57154         * lib/fcntl.in.h: Likewise.
57155         * lib/inttypes.in.h: Likewise.
57156         * lib/langinfo.in.h: Likewise.
57157         * lib/locale.in.h: Likewise.
57158         * lib/math.in.h: Likewise.
57159         * lib/search.in.h: Likewise.
57160         * lib/signal.in.h: Likewise.
57161         * lib/spawn.in.h: Likewise.
57162         * lib/stdio.in.h: Likewise.
57163         * lib/stdlib.in.h: Likewise.
57164         * lib/string.in.h: Likewise.
57165         * lib/strings.in.h: Likewise.
57166         * lib/sys_file.in.h: Likewise.
57167         * lib/sys_ioctl.in.h: Likewise.
57168         * lib/sys_select.in.h: Likewise.
57169         * lib/sys_socket.in.h: Likewise.
57170         * lib/sys_stat.in.h: Likewise.
57171         * lib/sys_times.in.h: Likewise.
57172         * lib/sys_utsname.in.h: Likewise.
57173         * lib/unistd.in.h: Likewise.
57174         * lib/wchar.in.h: Likewise.
57176 2010-01-20  Bruno Haible  <bruno@clisp.org>
57178         Avoid duplicate -lm.
57179         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
57180         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
57181         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
57182         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
57183         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
57184         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
57185         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
57186         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
57187         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
57188         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
57189         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
57190         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57191         Reported by Paolo Bonzini.
57193 2010-01-19  Bruno Haible  <bruno@clisp.org>
57195         langinfo, nl_langinfo: Relicense under LGPLv2+.
57196         * modules/langinfo (License): Change to LGPLv2+.
57197         * modules/nl_langinfo (License): Likewise.
57198         Patch by David Lutterkort <lutter@redhat.com>.
57200 2010-01-19  Bruno Haible  <bruno@clisp.org>
57202         Avoid compilation error with cc on OSF/1 5.1.
57203         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
57204         statement, not before.
57205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57207 2010-01-18  Bruno Haible  <bruno@clisp.org>
57209         Avoid a link error due to the __printf__ symbol.
57210         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
57211         and 2.6.x.
57212         (__format__, __printf__): Remove definitions.
57213         * lib/argp-fmtstream.h: Likewise.
57214         * lib/argp.h: Likewise.
57215         * lib/error.h: Likewise.
57216         * lib/vasnprintf.h: Likewise.
57217         * lib/xprintf.h: Likewise.
57218         * lib/xvasprintf.h: Likewise.
57219         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57221 2010-01-18  Bruno Haible  <bruno@clisp.org>
57223         Tests for module 'tanl'.
57224         * modules/tanl-tests: New file.
57225         * tests/test-tanl.c: New file.
57227         Tests for module 'sqrtl'.
57228         * modules/sqrtl-tests: New file.
57229         * tests/test-sqrtl.c: New file.
57231         Tests for module 'sinl'.
57232         * modules/sinl-tests: New file.
57233         * tests/test-sinl.c: New file.
57235         Tests for module 'logl'.
57236         * modules/logl-tests: New file.
57237         * tests/test-logl.c: New file.
57239         Tests for module 'expl'.
57240         * modules/expl-tests: New file.
57241         * tests/test-expl.c: New file.
57243         Tests for module 'cosl'.
57244         * modules/cosl-tests: New file.
57245         * tests/test-cosl.c: New file.
57247         Tests for module 'atanl'.
57248         * modules/atanl-tests: New file.
57249         * tests/test-atanl.c: New file.
57251         Tests for module 'asinl'.
57252         * modules/asinl-tests: New file.
57253         * tests/test-asinl.c: New file.
57255         Tests for module 'acosl'.
57256         * modules/acosl-tests: New file.
57257         * tests/test-acosl.c: New file.
57259         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57260         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
57261         tanl): Use the standard gnulib idiom.
57262         * lib/cosl.c: Don't include trigl.c and sincosl.c.
57263         * lib/sinl.c: Likewise.
57264         * lib/tanl.c: Don't include trigl.c.
57265         (kernel_tanl): Make static.
57266         * lib/sincosl.c: Include trigl.h first.
57267         * lib/trigl.c: Likewise.
57268         * m4/acosl.m4: New file.
57269         * m4/asinl.m4: New file.
57270         * m4/atanl.m4: New file.
57271         * m4/cosl.m4: New file.
57272         * m4/expl.m4: New file.
57273         * m4/logl.m4: New file.
57274         * m4/sinl.m4: New file.
57275         * m4/sqrtl.m4: New file.
57276         * m4/tanl.m4: New file.
57277         * m4/mathl.m4: Remove file.
57278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
57279         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57280         Don't initialize GNULIB_MATHL.
57281         * modules/acosl: New file.
57282         * modules/asinl: New file.
57283         * modules/atanl: New file.
57284         * modules/cosl: New file.
57285         * modules/expl: New file.
57286         * modules/logl: New file.
57287         * modules/sinl: New file.
57288         * modules/sqrtl: New file.
57289         * modules/tanl: New file.
57290         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
57291         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
57292         substitute GNULIB_MATHL.
57293         * modules/mathl: Rewritten.
57294         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
57295         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
57296         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
57297         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
57298         * doc/posix-functions/expl.texi: Mention the 'expl' module.
57299         * doc/posix-functions/logl.texi: Mention the 'logl' module.
57300         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
57301         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
57302         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
57304 2010-01-18  Bruno Haible  <bruno@clisp.org>
57306         sqrt: Make gl_FUNC_SQRT requirable.
57307         * m4/sqrt.m4: New file.
57308         * modules/sqrt (Files): Add it.
57309         (configure.ac): Invoke gl_FUNC_SQRT.
57311 2010-01-18  Bruno Haible  <bruno@clisp.org>
57313         New modules for common <math.h> functions.
57314         * m4/mathfunc.m4: New file.
57315         * modules/acos: New file.
57316         * modules/asin: New file.
57317         * modules/atan: New file.
57318         * modules/atan2: New file.
57319         * modules/cbrt: New file.
57320         * modules/copysign: New file.
57321         * modules/cos: New file.
57322         * modules/cosh: New file.
57323         * modules/erf: New file.
57324         * modules/erfc: New file.
57325         * modules/exp: New file.
57326         * modules/fabs: New file.
57327         * modules/fmod: New file.
57328         * modules/hypot: New file.
57329         * modules/j0: New file.
57330         * modules/j1: New file.
57331         * modules/jn: New file.
57332         * modules/ldexp: New file.
57333         * modules/lgamma: New file.
57334         * modules/log: New file.
57335         * modules/log10: New file.
57336         * modules/log1p: New file.
57337         * modules/logb: New file.
57338         * modules/modf: New file.
57339         * modules/nextafter: New file.
57340         * modules/pow: New file.
57341         * modules/remainder: New file.
57342         * modules/rint: New file.
57343         * modules/sin: New file.
57344         * modules/sinh: New file.
57345         * modules/sqrt: New file.
57346         * modules/tan: New file.
57347         * modules/tanh: New file.
57348         * modules/y0: New file.
57349         * modules/y1: New file.
57350         * modules/yn: New file.
57351         * doc/posix-functions/acos.texi: Mention the 'acos' module.
57352         * doc/posix-functions/asin.texi: Mention the 'asin' module.
57353         * doc/posix-functions/atan.texi: Mention the 'atan' module.
57354         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
57355         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
57356         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57357         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57358         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57359         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57360         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57361         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57362         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57363         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57364         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57365         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57366         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57367         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57368         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57369         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57370         * doc/posix-functions/log.texi: Mention the 'log' module.
57371         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57372         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57373         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57374         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57375         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57376         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57377         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57378         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57379         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57380         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57381         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57382         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57383         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57384         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57385         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57386         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57388 2010-01-18  Jim Meyering  <meyering@redhat.com>
57390         ignore-value: relax license to LGPLv2+
57391         * modules/ignore-value (License): Relax to LGPLv2+.
57393         getdate: don't leak when TZ contains two or more '"'s
57394         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57395         double quote in TZ after the first one.
57397         readtokens: do not leak internal token_lengths buffer
57398         * lib/readtokens.c (readtokens): Free the local, lengths,
57399         when the supplied "token_lengths" parameter is NULL.
57401 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57403         Fix a couple of missing LIBTHREAD link failures on AIX.
57404         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57405         $(LIBTHREAD).
57406         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57408         Link test-poll against INET_PTON_LIB.
57409         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57410         for inet_pton on Solaris 10.
57412 2010-01-17  Bruno Haible  <bruno@clisp.org>
57414         unistdio/*-sprintf: Fix typo in module description.
57415         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57416         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57417         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57418         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57419         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57420         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57421         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57422         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57424 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57426         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57427         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57428         variables in shell case patterns, for AIX and HP-UX ksh.
57430         Split large sed scripts, for HP-UX sed.
57431         * modules/stdio: Split sed scripts around 50 sed commands,
57432         to avoid HP-UX limit of 99 commands, in the near future.
57433         * modules/string: Likewise.
57434         * modules/unistd: Likewise.
57436         gnulib-tool: avoid writing in the current directory.
57437         * gnulib-tool (func_emit_lib_Makefile_am)
57438         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57439         not in the current directory, so concurrent gnulib-tool
57440         instances do not interfere.
57442 2010-01-16  Jim Meyering  <meyering@redhat.com>
57444         doc: update users.txt
57445         * users.txt: Add grep.
57446         (diffutils, gzip): Update URLs.
57448 2010-01-12  Bruno Haible  <bruno@clisp.org>
57450         posix_spawn: Avoid test failure on Cygwin.
57451         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57452         characters.
57453         Reported by Simon Josefsson.
57455 2010-01-12  Bruno Haible  <bruno@clisp.org>
57457         * tests/test-cond.c (main): When skipping the test, show the reason.
57459 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57461         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57463 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57465         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57466         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57468 2010-01-12  Eric Blake  <ebb9@byu.net>
57470         build: guarantee AS_VAR_IF
57471         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57472         (gl_AS_VAR_IF): Move...
57473         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57474         Reported by Simon Josefsson.
57476 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57478         * lib/stdio.in.h: Fix typo.
57480 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57482         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57483         libgpg-error.
57485 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57487         * tests/test-xalloc-die.sh: Use $EXEEXT.
57489 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57490             Bruno Haible  <bruno@clisp.org>
57492         getlogin, getlogin_r: Avoid test failure.
57493         * tests/test-getlogin.c: Include <stdio.h>.
57494         (main): Skip the test when the function fails because stdin is not a
57495         tty.
57496         * tests/test-getlogin_r.c: Include <stdio.h>.
57497         (main): Skip the test when the function fails because stdin is not a
57498         tty.
57500 2010-01-11  Eric Blake  <ebb9@byu.net>
57502         tests: avoid more large file warnings
57503         * tests/test-fflush.c: Avoid warning about ftell use.
57504         * tests/test-fseek.c: Avoid warning about fseek use.
57506 2010-01-10  Bruno Haible  <bruno@clisp.org>
57508         nproc: Work better on Linux when /proc and /sys are not mounted.
57509         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57510         as lower bound when, on glibc/Linux systems,
57511         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57512         Suggested by Pádraig Brady <P@draigbrady.com>.
57513         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57515         nproc: Refactor.
57516         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57517         extracted from num_processors.
57518         (num_processors): Call it.
57520 2010-01-11  Jim Meyering  <meyering@redhat.com>
57522         utimecmp: avoid new warning from upcoming gcc-4.5.0
57523         * lib/utimecmp.c (BILLION): Define using #define rather than an
57524         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57526 2010-01-11  Eric Blake  <ebb9@byu.net>
57528         math: add portability warnings for classification macros
57529         * modules/math (Depends-on): Add warn-on-use.
57530         (Makefile.am): Provide new substitutions.
57531         * m4/math_h.m4 (gl_MATH_H): Require inline.
57532         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57533         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57534         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57535         implement warnings.
57537         unistd: warn on use of environ without module
57538         * modules/unistd (Depends-on): Add warn-on-use.
57539         (Makefile.am): Provide new substitutions.
57540         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57541         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57543         stdio: warn on suspicious uses
57544         * modules/stdio (Depends-on): Add warn-on-use.
57545         (Makefile.am): Provide new substitutions.
57546         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57547         fseeko.
57548         * lib/stdio.in.h (gets): Always warn on use.
57549         (fseek, ftell): Adjust when warnings are issued, and honor
57550         _GL_NO_LARGE_FILES as a way to silence the warning.
57551         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57552         any warning about large file offsets.
57553         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57554         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57555         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57556         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57557         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57558         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57559         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57560         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57562         warn-on-use: new module
57563         * modules/warn-on-use: New file.
57564         * build-aux/warn-on-use.h: Likewise.
57565         * m4/warn-on-use.m4: Likewise.
57566         * MODULES.html.sh (Support for building): Mention it.
57568 2010-01-10  Bruno Haible  <bruno@clisp.org>
57570         Tests for module 'unistr/u32-strdup'.
57571         * modules/unistr/u32-strdup-tests: New file.
57572         * tests/unistr/test-u32-strdup.c: New file.
57574         Tests for module 'unistr/u16-strdup'.
57575         * modules/unistr/u16-strdup-tests: New file.
57576         * tests/unistr/test-u16-strdup.c: New file.
57578         Tests for module 'unistr/u8-strdup'.
57579         * modules/unistr/u8-strdup-tests: New file.
57580         * tests/unistr/test-u8-strdup.c: New file.
57581         * tests/unistr/test-strdup.h: New file.
57583         Tests for module 'unistr/u32-strncmp'.
57584         * modules/unistr/u32-strncmp-tests: New file.
57585         * tests/unistr/test-u32-strncmp.c: New file.
57587         Tests for module 'unistr/u16-strncmp'.
57588         * modules/unistr/u16-strncmp-tests: New file.
57589         * tests/unistr/test-u16-strncmp.c: New file.
57591         Tests for module 'unistr/u8-strncmp'.
57592         * modules/unistr/u8-strncmp-tests: New file.
57593         * tests/unistr/test-u8-strncmp.c: New file.
57594         * tests/unistr/test-strncmp.h: New file.
57596         Tests for module 'unistr/u32-strcoll'.
57597         * modules/unistr/u32-strcoll-tests: New file.
57598         * tests/unistr/test-u32-strcoll.c: New file.
57600         Tests for module 'unistr/u16-strcoll'.
57601         * modules/unistr/u16-strcoll-tests: New file.
57602         * tests/unistr/test-u16-strcoll.c: New file.
57604         Tests for module 'unistr/u8-strcoll'.
57605         * modules/unistr/u8-strcoll-tests: New file.
57606         * tests/unistr/test-u8-strcoll.c: New file.
57608         Tests for module 'unistr/u32-strcmp'.
57609         * modules/unistr/u32-strcmp-tests: New file.
57610         * tests/unistr/test-u32-strcmp.c: New file.
57611         * tests/unistr/test-u32-strcmp.h: New file.
57613         Tests for module 'unistr/u16-strcmp'.
57614         * modules/unistr/u16-strcmp-tests: New file.
57615         * tests/unistr/test-u16-strcmp.c: New file.
57616         * tests/unistr/test-u16-strcmp.h: New file.
57618         Tests for module 'unistr/u8-strcmp'.
57619         * modules/unistr/u8-strcmp-tests: New file.
57620         * tests/unistr/test-u8-strcmp.c: New file.
57621         * tests/unistr/test-u8-strcmp.h: New file.
57622         * tests/unistr/test-strcmp.h: New file.
57624         Tests for module 'unistr/u32-strncat'.
57625         * modules/unistr/u32-strncat-tests: New file.
57626         * tests/unistr/test-u32-strncat.c: New file.
57628         Tests for module 'unistr/u16-strncat'.
57629         * modules/unistr/u16-strncat-tests: New file.
57630         * tests/unistr/test-u16-strncat.c: New file.
57632         Tests for module 'unistr/u8-strncat'.
57633         * modules/unistr/u8-strncat-tests: New file.
57634         * tests/unistr/test-u8-strncat.c: New file.
57635         * tests/unistr/test-strncat.h: New file.
57637         Tests for module 'unistr/u32-strcat'.
57638         * modules/unistr/u32-strcat-tests: New file.
57639         * tests/unistr/test-u32-strcat.c: New file.
57641         Tests for module 'unistr/u16-strcat'.
57642         * modules/unistr/u16-strcat-tests: New file.
57643         * tests/unistr/test-u16-strcat.c: New file.
57645         Tests for module 'unistr/u8-strcat'.
57646         * modules/unistr/u8-strcat-tests: New file.
57647         * tests/unistr/test-u8-strcat.c: New file.
57648         * tests/unistr/test-strcat.h: New file.
57650         Tests for module 'unistr/u32-stpncpy'.
57651         * modules/unistr/u32-stpncpy-tests: New file.
57652         * tests/unistr/test-u32-stpncpy.c: New file.
57654         Tests for module 'unistr/u16-stpncpy'.
57655         * modules/unistr/u16-stpncpy-tests: New file.
57656         * tests/unistr/test-u16-stpncpy.c: New file.
57658         Tests for module 'unistr/u8-stpncpy'.
57659         * modules/unistr/u8-stpncpy-tests: New file.
57660         * tests/unistr/test-u8-stpncpy.c: New file.
57661         * tests/unistr/test-stpncpy.h: New file.
57663         Tests for module 'unistr/u32-strncpy'.
57664         * modules/unistr/u32-strncpy-tests: New file.
57665         * tests/unistr/test-u32-strncpy.c: New file.
57667         Tests for module 'unistr/u16-strncpy'.
57668         * modules/unistr/u16-strncpy-tests: New file.
57669         * tests/unistr/test-u16-strncpy.c: New file.
57671         Tests for module 'unistr/u8-strncpy'.
57672         * modules/unistr/u8-strncpy-tests: New file.
57673         * tests/unistr/test-u8-strncpy.c: New file.
57674         * tests/unistr/test-strncpy.h: New file.
57676         Tests for module 'unistr/u32-stpcpy'.
57677         * modules/unistr/u32-stpcpy-tests: New file.
57678         * tests/unistr/test-u32-stpcpy.c: New file.
57680         Tests for module 'unistr/u16-stpcpy'.
57681         * modules/unistr/u16-stpcpy-tests: New file.
57682         * tests/unistr/test-u16-stpcpy.c: New file.
57684         Tests for module 'unistr/u8-stpcpy'.
57685         * modules/unistr/u8-stpcpy-tests: New file.
57686         * tests/unistr/test-u8-stpcpy.c: New file.
57687         * tests/unistr/test-stpcpy.h: New file.
57689         Tests for module 'unistr/u32-strcpy'.
57690         * modules/unistr/u32-strcpy-tests: New file.
57691         * tests/unistr/test-u32-strcpy.c: New file.
57693         Tests for module 'unistr/u16-strcpy'.
57694         * modules/unistr/u16-strcpy-tests: New file.
57695         * tests/unistr/test-u16-strcpy.c: New file.
57697         Tests for module 'unistr/u8-strcpy'.
57698         * modules/unistr/u8-strcpy-tests: New file.
57699         * tests/unistr/test-u8-strcpy.c: New file.
57700         * tests/unistr/test-strcpy.h: New file.
57702         Tests for module 'unistr/u32-strnlen'.
57703         * modules/unistr/u32-strnlen-tests: New file.
57704         * tests/unistr/test-u32-strnlen.c: New file.
57706         Tests for module 'unistr/u16-strnlen'.
57707         * modules/unistr/u16-strnlen-tests: New file.
57708         * tests/unistr/test-u16-strnlen.c: New file.
57710         Tests for module 'unistr/u8-strnlen'.
57711         * modules/unistr/u8-strnlen-tests: New file.
57712         * tests/unistr/test-u8-strnlen.c: New file.
57713         * tests/unistr/test-strnlen.h: New file.
57715         Tests for module 'unistr/u32-strlen'.
57716         * modules/unistr/u32-strlen-tests: New file.
57717         * tests/unistr/test-u32-strlen.c: New file.
57719         Tests for module 'unistr/u16-strlen'.
57720         * modules/unistr/u16-strlen-tests: New file.
57721         * tests/unistr/test-u16-strlen.c: New file.
57723         Tests for module 'unistr/u8-strlen'.
57724         * modules/unistr/u8-strlen-tests: New file.
57725         * tests/unistr/test-u8-strlen.c: New file.
57727         Tests for module 'unistr/u32-prev'.
57728         * modules/unistr/u32-prev-tests: New file.
57729         * tests/unistr/test-u32-prev.c: New file.
57731         Tests for module 'unistr/u16-prev'.
57732         * modules/unistr/u16-prev-tests: New file.
57733         * tests/unistr/test-u16-prev.c: New file.
57735         Tests for module 'unistr/u8-prev'.
57736         * modules/unistr/u8-prev-tests: New file.
57737         * tests/unistr/test-u8-prev.c: New file.
57739         Tests for module 'unistr/u32-next'.
57740         * modules/unistr/u32-next-tests: New file.
57741         * tests/unistr/test-u32-next.c: New file.
57743         Tests for module 'unistr/u16-next'.
57744         * modules/unistr/u16-next-tests: New file.
57745         * tests/unistr/test-u16-next.c: New file.
57747         Tests for module 'unistr/u8-next'.
57748         * modules/unistr/u8-next-tests: New file.
57749         * tests/unistr/test-u8-next.c: New file.
57751         Tests for module 'unistr/u32-strmbtouc'.
57752         * modules/unistr/u32-strmbtouc-tests: New file.
57753         * tests/unistr/test-u32-strmbtouc.c: New file.
57755         Tests for module 'unistr/u16-strmbtouc'.
57756         * modules/unistr/u16-strmbtouc-tests: New file.
57757         * tests/unistr/test-u16-strmbtouc.c: New file.
57759         Tests for module 'unistr/u8-strmbtouc'.
57760         * modules/unistr/u8-strmbtouc-tests: New file.
57761         * tests/unistr/test-u8-strmbtouc.c: New file.
57763         Tests for module 'unistr/u32-strmblen'.
57764         * modules/unistr/u32-strmblen-tests: New file.
57765         * tests/unistr/test-u32-strmblen.c: New file.
57767         Tests for module 'unistr/u16-strmblen'.
57768         * modules/unistr/u16-strmblen-tests: New file.
57769         * tests/unistr/test-u16-strmblen.c: New file.
57771         Tests for module 'unistr/u8-strmblen'.
57772         * modules/unistr/u8-strmblen-tests: New file.
57773         * tests/unistr/test-u8-strmblen.c: New file.
57775         Tests for module 'unistr/u32-cpy-alloc'.
57776         * modules/unistr/u32-cpy-alloc-tests: New file.
57777         * tests/unistr/test-u32-cpy-alloc.c: New file.
57779         Tests for module 'unistr/u16-cpy-alloc'.
57780         * modules/unistr/u16-cpy-alloc-tests: New file.
57781         * tests/unistr/test-u16-cpy-alloc.c: New file.
57783         Tests for module 'unistr/u8-cpy-alloc'.
57784         * modules/unistr/u8-cpy-alloc-tests: New file.
57785         * tests/unistr/test-u8-cpy-alloc.c: New file.
57786         * tests/unistr/test-cpy-alloc.h: New file.
57788         Tests for module 'unistr/u32-mbsnlen'.
57789         * modules/unistr/u32-mbsnlen-tests: New file.
57790         * tests/unistr/test-u32-mbsnlen.c: New file.
57792         Tests for module 'unistr/u16-mbsnlen'.
57793         * modules/unistr/u16-mbsnlen-tests: New file.
57794         * tests/unistr/test-u16-mbsnlen.c: New file.
57796         Tests for module 'unistr/u8-mbsnlen'.
57797         * modules/unistr/u8-mbsnlen-tests: New file.
57798         * tests/unistr/test-u8-mbsnlen.c: New file.
57800         Tests for module 'unistr/u32-chr'.
57801         * modules/unistr/u32-chr-tests: New file.
57802         * tests/unistr/test-u32-chr.c: New file.
57804         Tests for module 'unistr/u16-chr'.
57805         * modules/unistr/u16-chr-tests: New file.
57806         * tests/unistr/test-u16-chr.c: New file.
57808         Tests for module 'unistr/u8-chr'.
57809         * modules/unistr/u8-chr-tests: New file.
57810         * tests/unistr/test-u8-chr.c: New file.
57811         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57813         Tests for module 'unistr/u32-cmp2'.
57814         * modules/unistr/u32-cmp2-tests: New file.
57815         * tests/unistr/test-u32-cmp2.c: New file.
57817         Tests for module 'unistr/u16-cmp2'.
57818         * modules/unistr/u16-cmp2-tests: New file.
57819         * tests/unistr/test-u16-cmp2.c: New file.
57821         Tests for module 'unistr/u8-cmp2'.
57822         * modules/unistr/u8-cmp2-tests: New file.
57823         * tests/unistr/test-u8-cmp2.c: New file.
57824         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57826         Tests for module 'unistr/u32-cmp'.
57827         * modules/unistr/u32-cmp-tests: New file.
57828         * tests/unistr/test-u32-cmp.c: New file.
57830         Tests for module 'unistr/u16-cmp'.
57831         * modules/unistr/u16-cmp-tests: New file.
57832         * tests/unistr/test-u16-cmp.c: New file.
57834         Tests for module 'unistr/u8-cmp'.
57835         * modules/unistr/u8-cmp-tests: New file.
57836         * tests/unistr/test-u8-cmp.c: New file.
57837         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57839         Tests for module 'unistr/u32-set'.
57840         * modules/unistr/u32-set-tests: New file.
57841         * tests/unistr/test-u32-set.c: New file.
57843         Tests for module 'unistr/u16-set'.
57844         * modules/unistr/u16-set-tests: New file.
57845         * tests/unistr/test-u16-set.c: New file.
57847         Tests for module 'unistr/u8-set'.
57848         * modules/unistr/u8-set-tests: New file.
57849         * tests/unistr/test-u8-set.c: New file.
57850         * tests/unistr/test-set.h: New file.
57852         Tests for module 'unistr/u32-move'.
57853         * modules/unistr/u32-move-tests: New file.
57854         * tests/unistr/test-u32-move.c: New file.
57856         Tests for module 'unistr/u16-move'.
57857         * modules/unistr/u16-move-tests: New file.
57858         * tests/unistr/test-u16-move.c: New file.
57860         Tests for module 'unistr/u8-move'.
57861         * modules/unistr/u8-move-tests: New file.
57862         * tests/unistr/test-u8-move.c: New file.
57863         * tests/unistr/test-move.h: New file.
57865         Tests for module 'unistr/u32-cpy'.
57866         * modules/unistr/u32-cpy-tests: New file.
57867         * tests/unistr/test-u32-cpy.c: New file.
57869         Tests for module 'unistr/u16-cpy'.
57870         * modules/unistr/u16-cpy-tests: New file.
57871         * tests/unistr/test-u16-cpy.c: New file.
57873         Tests for module 'unistr/u8-cpy'.
57874         * modules/unistr/u8-cpy-tests: New file.
57875         * tests/unistr/test-u8-cpy.c: New file.
57876         * tests/unistr/test-cpy.h: New file.
57878 2010-01-09  Bruno Haible  <bruno@clisp.org>
57880         Tests for module 'unistr/u32-uctomb'.
57881         * modules/unistr/u32-uctomb-tests: New file.
57882         * tests/unistr/test-u32-uctomb.c: New file.
57884         Tests for module 'unistr/u16-uctomb'.
57885         * modules/unistr/u16-uctomb-tests: New file.
57886         * tests/unistr/test-u16-uctomb.c: New file.
57888         Tests for module 'unistr/u8-uctomb'.
57889         * modules/unistr/u8-uctomb-tests: New file.
57890         * tests/unistr/test-u8-uctomb.c: New file.
57892         Tests for module 'unistr/u32-mbtoucr'.
57893         * modules/unistr/u32-mbtoucr-tests: New file.
57894         * tests/unistr/test-u32-mbtoucr.c: New file.
57896         Tests for module 'unistr/u16-mbtoucr'.
57897         * modules/unistr/u16-mbtoucr-tests: New file.
57898         * tests/unistr/test-u16-mbtoucr.c: New file.
57900         Tests for module 'unistr/u8-mbtoucr'.
57901         * modules/unistr/u8-mbtoucr-tests: New file.
57902         * tests/unistr/test-u8-mbtoucr.c: New file.
57904         Tests for module 'unistr/u32-mbtouc'.
57905         * modules/unistr/u32-mbtouc-tests: New file.
57906         * tests/unistr/test-u32-mbtouc.c: New file.
57908         Tests for module 'unistr/u16-mbtouc'.
57909         * modules/unistr/u16-mbtouc-tests: New file.
57910         * tests/unistr/test-u16-mbtouc.c: New file.
57912         Tests for module 'unistr/u8-mbtouc'.
57913         * modules/unistr/u8-mbtouc-tests: New file.
57914         * tests/unistr/test-u8-mbtouc.c: New file.
57916         Tests for module 'unistr/u32-mbtouc-unsafe'.
57917         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57918         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57919         * tests/unistr/test-u32-mbtouc.h: New file.
57921         Tests for module 'unistr/u16-mbtouc-unsafe'.
57922         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57923         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57924         * tests/unistr/test-u16-mbtouc.h: New file.
57926         Tests for module 'unistr/u8-mbtouc-unsafe'.
57927         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57928         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57929         * tests/unistr/test-u8-mbtouc.h: New file.
57931         Tests for module 'unistr/u32-mblen'.
57932         * modules/unistr/u32-mblen-tests: New file.
57933         * tests/unistr/test-u32-mblen.c: New file.
57935         Tests for module 'unistr/u16-mblen'.
57936         * modules/unistr/u16-mblen-tests: New file.
57937         * tests/unistr/test-u16-mblen.c: New file.
57939         Tests for module 'unistr/u8-mblen'.
57940         * modules/unistr/u8-mblen-tests: New file.
57941         * tests/unistr/test-u8-mblen.c: New file.
57943         Tests for module 'unistr/u32-to-u16'.
57944         * modules/unistr/u32-to-u16-tests: New file.
57945         * tests/unistr/test-u32-to-u16.c: New file.
57947         Tests for module 'unistr/u32-to-u8'.
57948         * modules/unistr/u32-to-u8-tests: New file.
57949         * tests/unistr/test-u32-to-u8.c: New file.
57951         Tests for module 'unistr/u16-to-u32'.
57952         * modules/unistr/u16-to-u32-tests: New file.
57953         * tests/unistr/test-u16-to-u32.c: New file.
57955         Tests for module 'unistr/u16-to-u8'.
57956         * modules/unistr/u16-to-u8-tests: New file.
57957         * tests/unistr/test-u16-to-u8.c: New file.
57959         Tests for module 'unistr/u8-to-u32'.
57960         * modules/unistr/u8-to-u32-tests: New file.
57961         * tests/unistr/test-u8-to-u32.c: New file.
57963         Tests for module 'unistr/u8-to-u16'.
57964         * modules/unistr/u8-to-u16-tests: New file.
57965         * tests/unistr/test-u8-to-u16.c: New file.
57967         Tests for module 'unistr/u32-check'.
57968         * modules/unistr/u32-check-tests: New file.
57969         * tests/unistr/test-u32-check.c: New file.
57971         Tests for module 'unistr/u16-check'.
57972         * modules/unistr/u16-check-tests: New file.
57973         * tests/unistr/test-u16-check.c: New file.
57975         Tests for module 'unistr/u8-check'.
57976         * modules/unistr/u8-check-tests: New file.
57977         * tests/unistr/test-u8-check.c: New file.
57979         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57980         (category_equals): New function.
57981         (main): Add more tests.
57982         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57984         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57986 2010-01-10  Bruno Haible  <bruno@clisp.org>
57988         unistr/u*-strcoll: Try harder to distinguish different strings.
57989         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57990         compare s1 and s2 to see if they are different.
57992 2010-01-10  Bruno Haible  <bruno@clisp.org>
57994         unistr/u*-stpncpy: Fix the return value.
57995         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57996         description of the return value consistent with stpncpy in glibc.
57997         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57998         written non-NUL unit.
58000 2010-01-10  Bruno Haible  <bruno@clisp.org>
58002         unistr/u*-next: Add missing dependencies.
58003         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
58004         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
58005         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
58007 2010-01-10  Bruno Haible  <bruno@clisp.org>
58009         unistr/u8-mbsnlen: Fix return value for incomplete character.
58010         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
58011         u8_mblen.
58012         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
58013         Remove unistr/u8-mblen.
58014         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
58015         u16_mblen.
58016         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
58017         Remove unistr/u16-mblen.
58019 2010-01-10  Bruno Haible  <bruno@clisp.org>
58021         wchar: Fix compilation error when <wchar.h> is used from coreutils.
58022         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
58023         Reported by Brian Gough <bjg@gnu.org> and
58024         Chris Clayton <chris2553@googlemail.com> via
58025         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
58027 2010-01-09  Bruno Haible  <bruno@clisp.org>
58029         unistr/u16-to-u32: Reject invalid input.
58030         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
58031         u16_mbtouc.
58032         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
58033         Remove unistr/u16-mbtouc.
58035         unistr/u16-to-u8: Reject invalid input.
58036         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
58037         u16_mbtouc.
58038         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
58039         Remove unistr/u16-mbtouc.
58041         unistr/u8-to-u32: Reject invalid input.
58042         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
58043         u8_mbtouc.
58044         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
58045         Remove unistr/u8-mbtouc.
58047         unistr/u8-to-u16: Reject invalid input.
58048         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
58049         u8_mbtouc.
58050         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
58051         Remove unistr/u8-mbtouc.
58053 2010-01-09  Bruno Haible  <bruno@clisp.org>
58055         Tests for module 'getlogin'.
58056         * modules/getlogin-tests: New file.
58057         * tests/test-getlogin.c: New file.
58059         New module 'getlogin'.
58060         * lib/unistd.in.h (getlogin): New declaration.
58061         * lib/getlogin.c: New file.
58062         * m4/getlogin.m4: New file.
58063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
58064         HAVE_GETLOGIN.
58065         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
58066         HAVE_GETLOGIN.
58067         * modules/getlogin: New file.
58068         * doc/posix-functions/getlogin.texi: Mention the new module.
58069         Reported by John W. Eaton <jwe@gnu.org>.
58071 2010-01-09  Bruno Haible  <bruno@clisp.org>
58073         getlogin_r: Support for native Windows.
58074         * lib/getlogin_r.c: Include <windows.h>
58075         (getlogin_r): Implement for native Windows.
58076         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
58077         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
58078         via John W. Eaton <jwe@gnu.org>.
58080 2010-01-09  Bruno Haible  <bruno@clisp.org>
58082         getlogin_r: Small fixes.
58083         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
58084         succeeds.
58085         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
58086         before testing whether getlogin_r is declared. No need to set
58087         HAVE_DECL_GETLOGIN_R to 1.
58088         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
58090 2010-01-09  Bruno Haible  <bruno@clisp.org>
58092         * lib/unistd.in.h (getlogin_r): Add comment.
58094 2010-01-09  Bruno Haible  <bruno@clisp.org>
58096         Tests for module 'getlogin_r'.
58097         * modules/getlogin_r-tests: New file.
58098         * tests/test-getlogin_r.c: New file.
58100 2010-01-09  Jim Meyering  <meyering@redhat.com>
58102         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
58103         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
58104         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
58106 2010-01-08  Simon Josefsson  <simon@josefsson.org>
58108         * lib/dup2.c (rpl_dup2): Improve comment.
58110 2010-01-08  Eric Blake  <ebb9@byu.net>
58112         maint.mk: allow packages to add makefile @@ exceptions
58113         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
58114         (sc_makefile_check): Rename...
58115         (sc_makefile_at_at_check): ...to this, and use hook.
58117         dup2: work around mingw bug
58118         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
58119         Reported by Simon Josefsson.
58121 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
58123         glob: Fix C++ compilation.
58124         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
58125         C++.
58127 2010-01-07  Bruno Haible  <bruno@clisp.org>
58129         Fix indentation of wctype.in.h, broken since 2007-01-06.
58130         * lib/wctype.in.h: Fix indentation of preprocessor directives.
58132 2010-01-07  Bruno Haible  <bruno@clisp.org>
58134         mbslen: Avoid collision with system function.
58135         * lib/string.in.h [MirBSD]: Include <wchar.h>.
58136         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
58137         * m4/mbslen.m4: New file.
58138         * modules/mbslen (Files): Add it.
58139         (configure.ac): Invoke gl_MBSLEN.
58140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
58141         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
58142         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
58143         via Ian Beckwith <ianb@erislabs.net>.
58145 2010-01-07  Bruno Haible  <bruno@clisp.org>
58147         dirent: Document the last fix.
58148         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
58150 2010-01-07  Bruno Haible  <bruno@clisp.org>
58152         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
58153         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
58154         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
58155         va_list are defined.
58156         * doc/posix-headers/stdio.texi: Document the bug of missing types.
58157         Reported by Eric Blake.
58159 2010-01-07  Bruno Haible  <bruno@clisp.org>
58161         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
58162         * modules/xlist (Depends-on): Add 'list',
58163         * modules/xoset (Depends-on): Add 'oset'.
58164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58166 2010-01-07  Bruno Haible  <bruno@clisp.org>
58168         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
58169         * doc/posix-functions/strncasecmp.texi: Likewise.
58171 2010-01-07  Bruno Haible  <bruno@clisp.org>
58173         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
58175 2010-01-07  John W. Eaton  <jwe@octave.org>
58177         wctype: allow C++ use
58178         * lib/wctype.in.h: Add extern "C" block for C++.
58180 2010-01-06  Eric Blake  <ebb9@byu.net>
58182         maint.mk: detect incorrect GFDL usage
58183         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
58185 2010-01-06  Jim Meyering  <meyering@redhat.com>
58186         and Eric Blake  <ebb9@byu.net>
58188         maint.mk: ignore multi-line copyright in NEWS
58189         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
58191 2010-01-06  Eric Blake  <ebb9@byu.net>
58193         select: add missing dependency
58194         * modules/select-tests (Depends-on): Move sockets dependency...
58195         * modules/select (Depends-on): ...here.
58196         Reported by Ian Beckwith.
58198         doc: regenerate INSTALL
58199         * doc/INSTALL: Reflect recent autoconf update.
58200         * doc/INSTALL.ISO: Likewise.
58201         * doc/INSTALL.UTF-8: Likewise.
58203         pread: fix compilation on glibc
58204         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
58205         Reported by Ralf Wildenhues.
58207         dirent: fix test failure
58208         * lib/dirent.in.h (includes): Guarantee ino_t.
58209         Reported by Ralf Wildenhues.
58211 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
58213         linkat, renameat: avoid bad free
58214         * lib/at-func2.c (at_func2): Fix typo.
58215         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
58217 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58219         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
58220         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
58221         to avoid failure of symlink test later.
58223 2010-01-06  Eric Blake  <ebb9@byu.net>
58225         stdio, unistd: guarantee ssize_t
58226         * lib/unistd.in.h (includes): Ensure that types required by POSIX
58227         2008 are exposed when needed.
58228         * lib/stdio.in.h (includes): Likewise.
58229         Reported by Ralf Wildenhues.
58231 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
58233         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
58234         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
58235         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
58237 2010-01-06  Jim Meyering  <meyering@redhat.com>
58239         readtokens: this module *does* require xalloc.h
58240         It uses only functions that were omitted by the old syntax-check rule.
58241         * lib/readtokens.c: Include "xalloc.h" once again.
58242         * modules/readtokens (Depends-on): Add xalloc.
58243         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
58245 2010-01-05  Eric Blake  <ebb9@byu.net>
58247         maint: support 'make announcement' from a VPATH build
58248         * top/maint.mk (announcement): Look for correct NEWS file.
58250 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
58252         utimens (fdutimens): ignore a negative FD, per contract
58253         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
58254         when we have a valid file descriptor.  Otherwise, using a brand
58255         new glibc (with just-patched futimens that now fails with EBADF)
58256         would cause this function to fail with ENOSYS.
58257         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
58258         See also http://bugzilla.redhat.com/552320.
58260 2010-01-05  Eric Blake  <ebb9@byu.net>
58262         strcase: document what it provides
58263         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
58264         gnulib module.
58265         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
58266         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
58268 2010-01-05  Jim Meyering  <meyering@redhat.com>
58270         maint: remove useless inclusions of "xalloc.h"
58271         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
58272         * lib/readtokens.c: Likewise.
58273         * lib/same.c: Likewise.
58274         * modules/getloadavg (Depends-on): Remove xalloc.
58275         * modules/readtokens: Likewise.
58276         * modules/same: Likewise.
58278         maint.mk: include 4 more function names in alloca.h-checking regexp
58279         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
58280         regexp.  Before, we would give a false-positive (saying alloca.h
58281         is included unnecessarily) when the only uses involved omitted symbols.
58283         xalloc.h: use consistent formatting
58284         * lib/xalloc.h: Move declarations to start in the first column.
58286 2010-01-05  Eric Blake  <ebb9@byu.net>
58288         mkdir: avoid xalloc
58289         * lib/mkdir.c (includes): Drop unused header.
58290         Reported by John W. Eaton.
58292 2010-01-04  Jim Meyering  <meyering@redhat.com>
58294         nl_langinfo: avoid configure-time syntax error
58295         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
58296         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
58297         the empty string.  Don't let that provoke a shell syntax error.
58299         regcomp, regexec, fnmatch: avoid array bounds read error
58300         * lib/regcomp.c (build_equiv_class): From glibc:
58301         Use only the low 24 bits of a findidx return value as an index
58302         into the weights array.  Patch by Ulrich Drepper:
58303         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
58304         * lib/regexec.c (check_node_accept_bytes): Likewise.
58305         * lib/fnmatch_loop.c (FCT): Likewise.
58307         regcomp: skip collseq lookup when there are no rules
58308         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
58309         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
58311         regcomp: recognize ill-formed { } expressions
58312         * lib/regcomp.c (parse_dup_op): From glibc:
58313         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
58315         regcomp: fix typo in comment
58316         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
58317         s/satisfy/satisfies/.
58319         regcomp: sync from glibc: remove dead store
58320         * lib/regcomp.c (duplicate_node_closure): Remove useless
58321         search_duplicated_node call and dead store.
58323         regcomp: sync from glibc; always use nl_langinfo
58324         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
58325         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
58326         * modules/regex (Depends-on): Add nl_langinfo.
58328 2010-01-04  Eric Blake  <ebb9@byu.net>
58330         fdopendir: fix configure test
58331         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
58333 2010-01-01  Bruno Haible  <bruno@clisp.org>
58335         wchar: Remove unused configure check.
58336         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
58338 2010-01-01  Eric Blake  <ebb9@byu.net>
58340         headers: make check of system header explicit
58341         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
58342         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
58343         ourselves.
58344         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58347         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
58348         internals.
58349         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
58350         missing.
58351         Suggested by Bruno Haible.
58353 2010-01-01  Jim Meyering  <meyering@redhat.com>
58355         ChangeLog: tweak to eliminate unnecessary copyright line
58356         * ChangeLog: Remove a copyright line that was mistakenly updated
58357         by today's update-copyright run.  Reported by Eric Blake.
58359         test-update-copyright: don't let envvar setting cause test failure
58360         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58362 2010-01-01  Bruno Haible  <bruno@clisp.org>
58364         localename: Avoid gcc warning.
58365         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58366         function if it is not used.
58368 2010-01-01  Jim Meyering  <meyering@redhat.com>
58370         update nearly all FSF copyright year lists to include 2010
58371         Use the same procedure as for 2009, outlined in
58372         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58374         version-etc: set COPYRIGHT_YEAR to 2010
58375         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58377 2009-12-31  Eric Blake  <ebb9@byu.net>
58379         doc: correct availability of cygwin 1.5.x getopt
58380         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58381         variables.
58382         * doc/posix-functions/opterr.texi (opterr): Likewise.
58383         * doc/posix-functions/optind.texi (optind): Likewise.
58384         * doc/posix-functions/optopt.texi (optopt): Likewise.
58385         * doc/posix-functions/tzname.texi (tzname): Likewise.
58387         openat: update maintainer
58388         * modules/openat (Maintainer): Add myself.
58390         utimens: avoid shadowing warning
58391         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58392         buffers into one, to avoid shadowing, as well as avoiding a
58393         redundant stat.
58394         Reported by Jim Meyering.
58396         test-dup2: avoid compiler warning
58397         * tests/test-dup2.c (is_inheritable): Only define if used.
58399 2010-01-01  Bruno Haible  <bruno@clisp.org>
58401         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58402         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58403         defined, use wctomb instead of wcrtomb.
58405 2010-01-01  Bruno Haible  <bruno@clisp.org>
58407         iconv: Reject native Solaris iconv.
58408         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58409         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58411 2009-12-31  Bruno Haible  <bruno@clisp.org>
58413         * tests/test-signal.c (main): Remove test of 'SIG'.
58415 2009-12-31  Bruno Haible  <bruno@clisp.org>
58417         spawn: Fix incomplete fix.
58418         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58419         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58420         warnings for GNULIB_POSIXCHECK again.
58421         Reported by Eric Blake.
58423 2009-12-31  Bruno Haible  <bruno@clisp.org>
58425         Avoid namespace pollution on glibc systems.
58426         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58427         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58428         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58429         glibc systems.
58431 2009-12-31  Bruno Haible  <bruno@clisp.org>
58433         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58434         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58435         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58436         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58437         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58438         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58439         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58441 2009-12-31  Bruno Haible  <bruno@clisp.org>
58443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58444         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58445         afterwards.
58447 2009-12-31  Bruno Haible  <bruno@clisp.org>
58449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58450         SYS_UTSNAME_H.
58452 2009-12-31  Bruno Haible  <bruno@clisp.org>
58454         spawn: Fix misapplied patch.
58455         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58456         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58457         warnings for GNULIB_POSIXCHECK.
58459 2009-12-31  Bruno Haible  <bruno@clisp.org>
58461         times: Update after sys_times changed.
58462         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58463         * modules/times (Files): Add it.
58464         (configure.ac): Invoke gl_FUNC_TIMES.
58466 2009-12-31  Bruno Haible  <bruno@clisp.org>
58468         Use AC_C_INLINE where necessary.
58469         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58470         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58472         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58473         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58474         * m4/mbiter.m4 (gl_MBITER): Likewise.
58475         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58476         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58477         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58478         * modules/u64 (configure.ac): Likewise.
58480 2009-12-31  Bruno Haible  <bruno@clisp.org>
58482         Use AC_C_INLINE instead of module 'inline' where possible.
58483         * modules/inline (Description): Clarify purpose.
58484         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58485         * modules/count-one-bits (Depends-on): Remove inline.
58486         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58487         * modules/openat (Depends-on): Remove inline.
58488         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58489         instead of depending on module 'inline'.
58490         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58491         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58492         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58493         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58494         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58495         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58496         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58497         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58498         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58499         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58500         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58501         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58502         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58503         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58504         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58505         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58506         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58507         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58508         Likewise.
58509         * modules/unictype/property-ascii-hex-digit (Depends-on,
58510         configure.ac): Likewise.
58511         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58512         configure.ac): Likewise.
58513         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58514         configure.ac): Likewise.
58515         * modules/unictype/property-bidi-block-separator (Depends-on,
58516         configure.ac): Likewise.
58517         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58518         configure.ac): Likewise.
58519         * modules/unictype/property-bidi-common-separator (Depends-on,
58520         configure.ac): Likewise.
58521         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58522         Likewise.
58523         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58524         configure.ac): Likewise.
58525         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58526         configure.ac): Likewise.
58527         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58528         configure.ac): Likewise.
58529         * modules/unictype/property-bidi-european-digit (Depends-on,
58530         configure.ac): Likewise.
58531         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58532         configure.ac): Likewise.
58533         * modules/unictype/property-bidi-left-to-right (Depends-on,
58534         configure.ac): Likewise.
58535         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58536         configure.ac): Likewise.
58537         * modules/unictype/property-bidi-other-neutral (Depends-on,
58538         configure.ac): Likewise.
58539         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58540         Likewise.
58541         * modules/unictype/property-bidi-segment-separator (Depends-on,
58542         configure.ac): Likewise.
58543         * modules/unictype/property-bidi-whitespace (Depends-on,
58544         configure.ac): Likewise.
58545         * modules/unictype/property-combining (Depends-on, configure.ac):
58546         Likewise.
58547         * modules/unictype/property-composite (Depends-on, configure.ac):
58548         Likewise.
58549         * modules/unictype/property-currency-symbol (Depends-on,
58550         configure.ac): Likewise.
58551         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58552         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58553         Likewise.
58554         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58555         configure.ac): Likewise.
58556         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58557         Likewise.
58558         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58559         Likewise.
58560         * modules/unictype/property-extender (Depends-on, configure.ac):
58561         Likewise.
58562         * modules/unictype/property-format-control (Depends-on, configure.ac):
58563         Likewise.
58564         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58565         Likewise.
58566         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58567         Likewise.
58568         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58569         Likewise.
58570         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58571         Likewise.
58572         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58573         Likewise.
58574         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58575         Likewise.
58576         * modules/unictype/property-id-start (Depends-on, configure.ac):
58577         Likewise.
58578         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58579         Likewise.
58580         * modules/unictype/property-ids-binary-operator (Depends-on,
58581         configure.ac): Likewise.
58582         * modules/unictype/property-ids-trinary-operator (Depends-on,
58583         configure.ac): Likewise.
58584         * modules/unictype/property-ignorable-control (Depends-on,
58585         configure.ac): Likewise.
58586         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58587         Likewise.
58588         * modules/unictype/property-join-control (Depends-on, configure.ac):
58589         Likewise.
58590         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58591         Likewise.
58592         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58593         Likewise.
58594         * modules/unictype/property-logical-order-exception (Depends-on,
58595         configure.ac): Likewise.
58596         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58597         Likewise.
58598         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58599         * modules/unictype/property-non-break (Depends-on, configure.ac):
58600         Likewise.
58601         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58602         Likewise.
58603         * modules/unictype/property-numeric (Depends-on, configure.ac):
58604         Likewise.
58605         * modules/unictype/property-other-alphabetic (Depends-on,
58606         configure.ac): Likewise.
58607         * modules/unictype/property-other-default-ignorable-code-point
58608         (Depends-on, configure.ac): Likewise.
58609         * modules/unictype/property-other-grapheme-extend (Depends-on,
58610         configure.ac): Likewise.
58611         * modules/unictype/property-other-id-continue (Depends-on,
58612         configure.ac): Likewise.
58613         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58614         Likewise.
58615         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58616         Likewise.
58617         * modules/unictype/property-other-math (Depends-on, configure.ac):
58618         Likewise.
58619         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58620         Likewise.
58621         * modules/unictype/property-paired-punctuation (Depends-on,
58622         configure.ac): Likewise.
58623         * modules/unictype/property-paragraph-separator (Depends-on,
58624         configure.ac): Likewise.
58625         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58626         Likewise.
58627         * modules/unictype/property-pattern-white-space (Depends-on,
58628         configure.ac): Likewise.
58629         * modules/unictype/property-private-use (Depends-on, configure.ac):
58630         Likewise.
58631         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58632         Likewise.
58633         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58634         Likewise.
58635         * modules/unictype/property-radical (Depends-on, configure.ac):
58636         Likewise.
58637         * modules/unictype/property-sentence-terminal (Depends-on,
58638         configure.ac): Likewise.
58639         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58640         Likewise.
58641         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58642         * modules/unictype/property-terminal-punctuation (Depends-on,
58643         configure.ac): Likewise.
58644         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58645         Likewise.
58646         * modules/unictype/property-unassigned-code-value (Depends-on,
58647         configure.ac): Likewise.
58648         * modules/unictype/property-unified-ideograph (Depends-on,
58649         configure.ac): Likewise.
58650         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58651         Likewise.
58652         * modules/unictype/property-variation-selector (Depends-on,
58653         configure.ac): Likewise.
58654         * modules/unictype/property-white-space (Depends-on, configure.ac):
58655         Likewise.
58656         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58657         Likewise.
58658         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58659         Likewise.
58660         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58661         Likewise.
58662         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58663         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58664         Likewise.
58666 2009-12-31  Bruno Haible  <bruno@clisp.org>
58668         Remove unnecessary AC_C_INLINE invocation.
58669         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58670         since 2009-08-21.
58672 2009-12-31  Jim Meyering  <meyering@redhat.com>
58674         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58675         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58676         With this change, we can all remove the gpg_key_ID = ... definition
58677         from our respective cfg.mk files.
58679         maint.mk: create announcement template in ~/, not in /tmp
58680         * top/maint.mk (emit_upload_commands): Adjust.
58681         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58682         Remove temporary file, .ci-msg.
58684 2009-12-31  Eric Blake  <ebb9@byu.net>
58686         link-warning: always build headers with link warnings
58687         * modules/arpa_inet (Makefile.am): Always build replacement
58688         header.
58689         * modules/ctype (Makefile.am): Likewise.
58690         * modules/dirent (Makefile.am): Likewise.
58691         * modules/inttypes (Makefile.am): Likewise.
58692         * modules/langinfo (Makefile.am): Likewise.
58693         * modules/locale (Makefile.am): Likewise.
58694         * modules/spawn (Makefile.am): Likewise.
58695         * modules/sys_file (Makefile.am): Likewise.
58696         * modules/sys_ioctl (Makefile.am): Likewise.
58697         * modules/sys_select (Makefile.am): Likewise.
58698         * modules/sys_socket (Makefile.am): Likewise.
58699         * modules/sys_times (Makefile.am): Likewise.
58700         * modules/sys_utsname (Makefile.am): Likewise.
58701         * modules/sys_wait (Makefile.am): Likewise.
58702         * modules/wchar (Makefile.am): Likewise.
58703         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58704         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58705         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58706         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58707         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58708         Likewise.
58709         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58710         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58711         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58712         Likewise.
58713         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58714         Likewise.
58715         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58716         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58717         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58719         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58720         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58721         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58722         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58723         (gl_WCHAR_H_DEFAULTS): Likewise.
58725 2009-12-31  Eric Blake  <ebb9@byu.net>
58727         signal, spawn: use link warnings
58728         * lib/signal.in.h (sigset_t): Make unconditional.
58729         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58730         (sigpending, sigprocmask, sigaction): Add link warnings.
58731         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58732         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58733         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58734         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58735         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58736         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58737         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58738         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58739         (posix_spawn_file_actions_destroy)
58740         (posix_spawn_file_actions_addopen)
58741         (posix_spawn_file_actions_addclose)
58742         (posix_spawn_file_actions_adddup2): Likewise.
58743         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58744         * tests/test-signal.c (main): Enhance test.
58746         spawn: improve wrapper support
58747         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58748         (gl_SPAWN_H_DEFAULTS): New defaults.
58749         * modules/spawn (Makefile.am): Substitute them.
58750         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58751         Only declare if missing or broken.
58753         sys_times, sys_utsname: use include_next
58754         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58755         header.
58756         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58757         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58758         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58759         * modules/sys_times (Depends-on): Add include_next.
58760         (Makefile.am): Substitute additional values.
58761         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58762         * lib/sys_times.in.h (includes): Include native header, if
58763         available.
58764         * lib/sys_utsname.in.h (includes): Likewise.
58765         * tests/test-sys_times.c (main): Enhance test.
58767         fdutimensat: revert prior patch
58768         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58769         utimens.h.
58770         Reported by Bruno Haible.
58772 2009-12-30  Eric Blake  <ebb9@byu.net>
58774         sys_wait: drop link-warning dependency
58775         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58776         link-warning efforts.
58777         * lib/sys_wait.in.h: Likewise.
58779         fdutimensat: remove bogus dependency
58780         * modules/fdutimensat (Depends-on): Drop inline.
58782         unistd: fix typo
58783         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58785 2009-12-30  Bruno Haible  <bruno@clisp.org>
58787         Fix compilation error with Solaris cc.
58788         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58789         * lib/unicase/u16-is-invariant.c: Likewise.
58790         * lib/unicase/u32-is-invariant.c: Likewise.
58791         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58793 2009-12-30  Bruno Haible  <bruno@clisp.org>
58795         Fix test crash.
58796         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58797         locales.
58798         Reported by Simon Josefsson <simon@josefsson.org>.
58800 2009-12-30  Bruno Haible  <bruno@clisp.org>
58802         Fix compilation error on most platforms.
58803         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58804         Reported by Simon Josefsson <simon@josefsson.org>
58805         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58807 2009-12-30  Eric Blake  <ebb9@byu.net>
58809         futimens, utimensat: work around ntfs-3g bug
58810         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58811         a ctime bug is present, and expand workaround to cover ntfs-3g.
58812         * lib/utimens.c (fdutimens, lutimens): Likewise.
58813         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58814         (validate_timespec): Adjust return value.
58815         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58816         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58817         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58819 2009-12-29  Eric Blake  <ebb9@byu.net>
58821         link-warning: make usage consistent
58822         * modules/ctype (Depends-on): Add link-warning.
58823         (Makefile.am): Update rules accordingly.
58824         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58825         * modules/locale (Depends-on, Makefile.am): Likewise.
58826         * modules/sys_file (Makefile.am): Likewise.
58827         * modules/getopt-posix (Makefile.am): Delete unused link warning
58828         efforts.
58829         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58830         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58831         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58832         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58834         stdio: remove unused variables
58835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58837         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58839         tests: test more substitute headers
58840         * modules/ctype-tests: New file.
58841         * modules/dirent-tests: Likewise.
58842         * modules/spawn-tests: Likewise.
58843         * modules/sys_file-tests: Likewise.
58844         * modules/sys_ioctl-tests: Likewise.
58845         * modules/sys_wait-tests: Likewise.
58846         * tests/test-ctype.c: Likewise.
58847         * tests/test-dirent.c: Likewise.
58848         * tests/test-spawn.c: Likewise.
58849         * tests/test-sys_file.c: Likewise.
58850         * tests/test-sys_ioctl.c: Likewise.
58851         * tests/test-sys_wait.c: Likewise.
58852         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58853         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58854         whether or not flock is in use.
58856         tests: remove License section from module
58857         * modules/arpa_inet-tests: Remove unneeded section.
58858         * modules/byteswap-tests: Likewise.
58859         * modules/ceilf-tests: Likewise.
58860         * modules/ceill-tests: Likewise.
58861         * modules/crypto/des-tests: Likewise.
58862         * modules/crypto/gc-arcfour-tests: Likewise.
58863         * modules/crypto/gc-arctwo-tests: Likewise.
58864         * modules/crypto/gc-des-tests: Likewise.
58865         * modules/crypto/gc-hmac-md5-tests: Likewise.
58866         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58867         * modules/crypto/gc-md2-tests: Likewise.
58868         * modules/crypto/gc-md4-tests: Likewise.
58869         * modules/crypto/gc-md5-tests: Likewise.
58870         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58871         * modules/crypto/gc-rijndael-tests: Likewise.
58872         * modules/crypto/gc-sha1-tests: Likewise.
58873         * modules/crypto/gc-tests: Likewise.
58874         * modules/crypto/md2-tests: Likewise.
58875         * modules/crypto/md4-tests: Likewise.
58876         * modules/fcntl-h-tests: Likewise.
58877         * modules/floorf-tests: Likewise.
58878         * modules/floorl-tests: Likewise.
58879         * modules/frexp-nolibm-tests: Likewise.
58880         * modules/frexp-tests: Likewise.
58881         * modules/frexpl-nolibm-tests: Likewise.
58882         * modules/frexpl-tests: Likewise.
58883         * modules/getaddrinfo-tests: Likewise.
58884         * modules/inttypes-tests: Likewise.
58885         * modules/isfinite-tests: Likewise.
58886         * modules/isinf-tests: Likewise.
58887         * modules/ldexpl-tests: Likewise.
58888         * modules/locale-tests: Likewise.
58889         * modules/math-tests: Likewise.
58890         * modules/netdb-tests: Likewise.
58891         * modules/netinet_in-tests: Likewise.
58892         * modules/printf-frexp-tests: Likewise.
58893         * modules/printf-frexpl-tests: Likewise.
58894         * modules/priv-set-tests: Likewise.
58895         * modules/random_r-tests: Likewise.
58896         * modules/round-tests: Likewise.
58897         * modules/roundf-tests: Likewise.
58898         * modules/roundl-tests: Likewise.
58899         * modules/search-tests: Likewise.
58900         * modules/select-tests: Likewise.
58901         * modules/signal-tests: Likewise.
58902         * modules/stdbool-tests: Likewise.
58903         * modules/stddef-tests: Likewise.
58904         * modules/stdint-tests: Likewise.
58905         * modules/stdio-tests: Likewise.
58906         * modules/stdlib-tests: Likewise.
58907         * modules/string-tests: Likewise.
58908         * modules/strings-tests: Likewise.
58909         * modules/sys_select-tests: Likewise.
58910         * modules/sys_socket-tests: Likewise.
58911         * modules/sys_stat-tests: Likewise.
58912         * modules/sys_time-tests: Likewise.
58913         * modules/sys_utsname-tests: Likewise.
58914         * modules/sysexits-tests: Likewise.
58915         * modules/time-tests: Likewise.
58916         * modules/trunc-tests: Likewise.
58917         * modules/truncf-tests: Likewise.
58918         * modules/truncl-tests: Likewise.
58919         * modules/tsearch-tests: Likewise.
58920         * modules/unistd-tests: Likewise.
58921         * modules/wchar-tests: Likewise.
58922         * modules/wctype-tests: Likewise.
58924         tests: fix license on several tests
58925         * tests/test-des.c: Update to GPLv3+.
58926         * tests/test-flock.c: Likewise.
58927         * tests/test-fsync.c: Likewise.
58928         * tests/test-futimens.h: Likewise.
58929         * tests/test-gc-arcfour.c: Likewise.
58930         * tests/test-gc-arctwo.c: Likewise.
58931         * tests/test-gc-des.c: Likewise.
58932         * tests/test-gc-hmac-md5.c: Likewise.
58933         * tests/test-gc-hmac-sha1.c: Likewise.
58934         * tests/test-gc-md2.c: Likewise.
58935         * tests/test-gc-md4.c: Likewise.
58936         * tests/test-gc-md5.c: Likewise.
58937         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58938         * tests/test-gc-rijndael.c: Likewise.
58939         * tests/test-gc-sha1.c: Likewise.
58940         * tests/test-gc.c: Likewise.
58941         * tests/test-getcwd.c: Likewise.
58942         * tests/test-link.c: Likewise.
58943         * tests/test-link.h: Likewise.
58944         * tests/test-lutimens.h: Likewise.
58945         * tests/test-md2.c: Likewise.
58946         * tests/test-md4.c: Likewise.
58947         * tests/test-mkdir.h: Likewise.
58948         * tests/test-rename.c: Likewise.
58949         * tests/test-rename.h: Likewise.
58950         * tests/test-safe-alloc.c: Likewise.
58951         * tests/test-utimens-common.h: Likewise.
58952         * tests/test-utimens.h: Likewise.
58954         maint: sync license texts
58955         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58956         * doc/gpl-3.0.texi: Revert copyright year update.
58957         * doc/lgpl-3.0.texi: Likewise.
58959 2009-12-29  Jim Meyering  <meyering@redhat.com>
58961         update nearly all FSF copyright year lists to include 2009
58962         The files named by the following are exempted:
58963             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58964               test -f "$dst" && { echo "$dst"; continue; }
58965               test -d "$dst" || continue
58966               echo "$dst"/$(basename "$src")
58967             done > exempt
58968             git ls-files tests/unictype >> exempt
58969         In the remaining files, convert to all-interval notation if
58970         - there is already at least one year interval like 2000-2003
58971         - the file is maintained by me
58972         - the file is in lib/uni*/, where that style already prevails
58973         Otherwise, use update-copyright's default.
58975 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58976         and Eric Blake  <ebb9@byu.net>
58978         tests: don't require debug system() to pass
58979         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58980         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58981         * tests/test-unlink.h (test_unlink_func): Likewise.
58982         * tests/test-fstatat.c (main): ...into callers.
58983         * tests/test-lstat.c (main): Likewise.
58984         * tests/test-rmdir.c (main): Likewise.
58985         * tests/test-unlink.c (main): Likewise.
58986         * tests/test-unlinkat.c (main): Likewise.
58987         * tests/test-areadlink-with-size.c (main): Don't require a
58988         debug-only system call to pass, aiding cross-testing to mingw.
58989         * tests/test-areadlink.c (main): Likewise.
58990         * tests/test-areadlinkat-with-size.c (main): Likewise.
58991         * tests/test-areadlinkat.c (main): Likewise.
58992         * tests/test-canonicalize-lgpl.c (main): Likewise.
58993         * tests/test-canonicalize.c (main): Likewise.
58994         * tests/test-chown.c (main): Likewise.
58995         * tests/test-fchownat.c (main): Likewise.
58996         * tests/test-lchown.c (main): Likewise.
58997         * tests/test-fdutimensat.c (main): Likewise.
58998         * tests/test-futimens.c (main): Likewise.
58999         * tests/test-link.c (main): Likewise.
59000         * tests/test-linkat.c (main): Likewise.
59001         * tests/test-mkdir.c (main): Likewise.
59002         * tests/test-mkdirat.c (main): Likewise.
59003         * tests/test-mkfifo.c (main): Likewise.
59004         * tests/test-mkfifoat.c (main): Likewise.
59005         * tests/test-mknod.c (main): Likewise.
59006         * tests/test-readlink.c (main): Likewise.
59007         * tests/test-remove.c (main): Likewise.
59008         * tests/test-rename.c (main): Likewise.
59009         * tests/test-renameat.c (main): Likewise.
59010         * tests/test-symlink.c (main): Likewise.
59011         * tests/test-symlinkat.c (main): Likewise.
59012         * tests/test-utimens.c (main): Likewise.
59013         * tests/test-utimensat.c (main): Likewise.
59015 2009-12-29  Simon Josefsson  <simon@josefsson.org>
59017         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
59018         on $(UNUSED_PARAMETER_H) to avoid build failure.
59020 2009-12-28  Jim Meyering  <meyering@redhat.com>
59022         update-copyright: you may specify a max. line length other than 72
59023         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
59025         maint: use consistent FSF copyright line syntax
59026         * lib/posixtm.c: Add missing comma in FSF copyright line.
59027         * lib/posixtm.h: Likewise.
59028         * lib/getugroups.c: Add missing ", Inc.".
59030         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
59031         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
59032         FSF copyright line.  Remove trailing blanks.
59034 2009-12-28  Eric Blake  <ebb9@byu.net>
59036         test-dup2: reduce dependencies
59037         * modules/cloexec (Configure.ac): Set witness.
59038         * modules/dup2-tests (Depends-on): Drop cloexec.
59039         * tests/test-dup2.c (main): Skip portion of test if cloexec module
59040         not present.
59041         Suggested by Bruno Haible.
59043 2009-12-26  Bruno Haible  <bruno@clisp.org>
59045         Remove an unneeded dependency.
59046         * modules/fseterr (Depends-on): Remove dup2.
59048 2009-12-26  Eric Blake  <ebb9@byu.net>
59050         tests: use macros.h in more places
59051         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
59052         (ASSERT_STREAM): Provide default of stderr.
59053         * tests/test-dirent-safer.c: Include macros.h, using alternate
59054         stream for assertions.
59055         * tests/test-dup-safer.c: Likewise.
59056         * tests/test-freopen-safer.c: Likewise.
59057         * tests/test-getopt.c: Likewise.
59058         * tests/test-openat-safer.c: Likewise.
59059         * tests/test-pipe.c: Likewise.
59060         * tests/test-popen-safer.c: Likewise.
59061         * modules/dirent-safer-tests (Files): Include macros.h.
59062         * modules/unistd-safer-tests (Files): Likewise.
59063         * modules/freopen-safer-tests (Files): Likewise.
59064         * modules/getopt-posix-tests (Files): Likewise.
59065         * modules/openat-safer-tests (Files): Likewise.
59066         * modules/pipe-tests (Files): Likewise.
59068 2009-12-26  Bruno Haible  <bruno@clisp.org>
59070         javacomp-script: Portability fix.
59071         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
59072         that it also works on Solaris.
59074 2009-12-26  Bruno Haible  <bruno@clisp.org>
59076         localename: Fix storage allocation of gl_locale_name_thread's result.
59077         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
59078         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
59079         all platforms that have 'uselocale'.
59080         (gl_locale_name_thread_unsafe): New function, extracted from
59081         gl_locale_name_thread.
59082         (gl_locale_name_thread): Call struniq on all platforms that have
59083         'uselocale'.
59084         * tests/test-localename.c (test_locale_name_thread): Check that the
59085         resulting strings are permanently allocated.
59086         * modules/localename-tests (Depends-on): Add strdup.
59088 2009-12-26  Bruno Haible  <bruno@clisp.org>
59090         * tests/test-localename.c (categories): Fill in the strings.
59092 2009-12-26  Jim Meyering  <meyering@redhat.com>
59094         isdir: complete the removal of m4/isdir.m4
59095         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
59097         isdir: clean up, since at least grep still uses it
59098         * lib/isdir.c: Include "isdir.h".
59099         (S_ISDIR): Remove now-unneeded definition.
59100         * modules/isdir (Files): Add lib/isdir.h.
59101         * lib/isdir.h: New file, with declaration.
59102         * m4/isdir.m4: Remove file -- unneeded.
59104 2009-12-25  Bruno Haible  <bruno@clisp.org>
59106         selinux-h: Make generated .h files standalone.
59107         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
59108         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
59109         * lib/se-selinux.in.h: Likewise.
59110         * modules/selinux-h (Depends-on): Add unused-parameter.
59111         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
59112         selinux/selinux.h and selinux/context.h.
59113         Suggested by Eric Blake.
59115 2009-12-25  Bruno Haible  <bruno@clisp.org>
59117         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
59118         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
59119         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
59120         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
59121         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
59123 2009-12-24  Bruno Haible  <bruno@clisp.org>
59125         openat: Fix warning.
59126         * lib/openat-proc.c: Include <unistd.h>.
59128 2009-12-24  Bruno Haible  <bruno@clisp.org>
59130         New module 'unused-parameter'.
59131         * build-aux/unused-parameter.h: New file, extracted from earlier
59132         gnulib-common.m4.
59133         * modules/unused-parameter: New file.
59134         * lib/unistr.h: Include unused-parameter.h.
59135         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
59136         _GL_UNUSED.
59137         * modules/unistr/base (Depends-on): Add unused-parameter.
59139 2009-12-24  Bruno Haible  <bruno@clisp.org>
59141         Add missing dependencies to 'extensions' module.
59142         * m4/extensions.m4: Add comment.
59143         * modules/accept4 (Depends-on): Add extensions.
59144         * modules/dup3 (Depends-on): Likewise.
59145         * modules/fcntl (Depends-on): Likewise.
59146         * modules/futimens (Depends-on): Likewise.
59147         * modules/mknod (Depends-on): Likewise.
59148         * modules/pipe2 (Depends-on): Likewise.
59149         * modules/stat-time (Depends-on): Likewise.
59150         * modules/strcasestr-simple (Depends-on): Likewise.
59151         * modules/strsignal (Depends-on): Likewise.
59152         * modules/utimensat (Depends-on): Likewise.
59153         * modules/localcharset (Depends-on): Likewise. Needed because of
59154         gl_FCNTL_O_FLAGS.
59155         * modules/wcrtomb (Depends-on): Likewise. Needed because of
59156         AC_TYPE_MBSTATE_T.
59157         * modules/wcsnrtombs (Depends-on): Likewise.
59158         * modules/wcsrtombs (Depends-on): Likewise.
59160 2009-12-24  Bruno Haible  <bruno@clisp.org>
59162         binary-io: Avoid gcc warning due to SET_BINARY.
59163         * lib/binary-io.h (SET_BINARY): Cast the result to void.
59164         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
59166 2009-12-24  Bruno Haible  <bruno@clisp.org>
59168         Avoid future namespace pollution on glibc systems.
59169         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
59170         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
59171         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
59172         glibc systems.
59174 2009-12-24  Bruno Haible  <bruno@clisp.org>
59176         Refactor common macros used in tests.
59177         * tests/macros.h: New file.
59178         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
59179         and/or <stdlib.h>, if appropriate.
59180         (ASSERT, SIZEOF): Remove macros.
59181         * tests/test-areadlink-with-size.c: Likewise.
59182         * tests/test-areadlinkat.c: Likewise.
59183         * tests/test-areadlinkat-with-size.c: Likewise.
59184         * tests/test-argmatch.c: Likewise.
59185         * tests/test-argv-iter.c: Likewise.
59186         * tests/test-array-mergesort.c: Likewise.
59187         * tests/test-array_list.c: Likewise.
59188         * tests/test-array_oset.c: Likewise.
59189         * tests/test-avltree_list.c: Likewise.
59190         * tests/test-avltree_oset.c: Likewise.
59191         * tests/test-avltreehash_list.c: Likewise.
59192         * tests/test-base64.c: Likewise.
59193         * tests/test-binary-io.c: Likewise.
59194         * tests/test-bitrotate.c: Likewise.
59195         * tests/test-btowc.c: Likewise.
59196         * tests/test-byteswap.c: Likewise.
59197         * tests/test-c-ctype.c: Likewise.
59198         * tests/test-c-stack.c: Likewise.
59199         * tests/test-c-strcasecmp.c: Likewise.
59200         * tests/test-c-strcasestr.c: Likewise.
59201         * tests/test-c-strncasecmp.c: Likewise.
59202         * tests/test-c-strstr.c: Likewise.
59203         * tests/test-canonicalize-lgpl.c: Likewise.
59204         * tests/test-canonicalize.c: Likewise.
59205         * tests/test-carray_list.c: Likewise.
59206         * tests/test-ceilf1.c: Likewise.
59207         * tests/test-ceilf2.c: Likewise.
59208         * tests/test-ceill.c: Likewise.
59209         * tests/test-chown.c: Likewise.
59210         * tests/test-cloexec.c: Likewise.
59211         * tests/test-copy-acl.c: Likewise.
59212         * tests/test-copy-file.c: Likewise.
59213         * tests/test-count-one-bits.c: Likewise.
59214         * tests/test-dprintf-posix.c: Likewise.
59215         * tests/test-dup2.c: Likewise.
59216         * tests/test-dup3.c: Likewise.
59217         * tests/test-duplocale.c: Likewise.
59218         * tests/test-fbufmode.c: Likewise.
59219         * tests/test-fchdir.c: Likewise.
59220         * tests/test-fchownat.c: Likewise.
59221         * tests/test-fcntl-safer.c: Likewise.
59222         * tests/test-fcntl.c: Likewise.
59223         * tests/test-fdopendir.c: Likewise.
59224         * tests/test-fdutimensat.c: Likewise.
59225         * tests/test-fflush2.c: Likewise.
59226         * tests/test-file-has-acl.c: Likewise.
59227         * tests/test-filevercmp.c: Likewise.
59228         * tests/test-flock.c: Likewise.
59229         * tests/test-floorf1.c: Likewise.
59230         * tests/test-floorf2.c: Likewise.
59231         * tests/test-floorl.c: Likewise.
59232         * tests/test-fnmatch.c: Likewise.
59233         * tests/test-fopen.h: Likewise.
59234         * tests/test-fpending.c: Likewise.
59235         * tests/test-fprintf-posix.c: Likewise.
59236         * tests/test-fpurge.c: Likewise.
59237         * tests/test-freadable.c: Likewise.
59238         * tests/test-freadahead.c: Likewise.
59239         * tests/test-freading.c: Likewise.
59240         * tests/test-freadptr.c: Likewise.
59241         * tests/test-freadptr2.c: Likewise.
59242         * tests/test-freadseek.c: Likewise.
59243         * tests/test-freopen.c: Likewise.
59244         * tests/test-frexp.c: Likewise.
59245         * tests/test-frexpl.c: Likewise.
59246         * tests/test-fseek.c: Likewise.
59247         * tests/test-fseeko.c: Likewise.
59248         * tests/test-fstatat.c: Likewise.
59249         * tests/test-fstrcmp.c: Likewise.
59250         * tests/test-fsync.c: Likewise.
59251         * tests/test-ftell.c: Likewise.
59252         * tests/test-ftello.c: Likewise.
59253         * tests/test-func.c: Likewise.
59254         * tests/test-futimens.c: Likewise.
59255         * tests/test-fwritable.c: Likewise.
59256         * tests/test-fwriting.c: Likewise.
59257         * tests/test-getcwd.c: Likewise.
59258         * tests/test-getdate.c: Likewise.
59259         * tests/test-getdelim.c: Likewise.
59260         * tests/test-getdtablesize.c: Likewise.
59261         * tests/test-getgroups.c: Likewise.
59262         * tests/test-getline.c: Likewise.
59263         * tests/test-getndelim2.c: Likewise.
59264         * tests/test-glob.c: Likewise.
59265         * tests/test-hash.c: Likewise.
59266         * tests/test-i-ring.c: Likewise.
59267         * tests/test-iconv-utf.c: Likewise.
59268         * tests/test-iconv.c: Likewise.
59269         * tests/test-idpriv-drop.c: Likewise.
59270         * tests/test-idpriv-droptemp.c: Likewise.
59271         * tests/test-inet_ntop.c: Likewise.
59272         * tests/test-inet_pton.c: Likewise.
59273         * tests/test-isblank.c: Likewise.
59274         * tests/test-isfinite.c: Likewise.
59275         * tests/test-isinf.c: Likewise.
59276         * tests/test-isnan.c: Likewise.
59277         * tests/test-isnand.h: Likewise.
59278         * tests/test-isnanf.h: Likewise.
59279         * tests/test-isnanl.h: Likewise.
59280         * tests/test-lchown.c: Likewise.
59281         * tests/test-ldexpl.c: Likewise.
59282         * tests/test-link.c: Likewise.
59283         * tests/test-linkat.c: Likewise.
59284         * tests/test-linked_list.c: Likewise.
59285         * tests/test-linkedhash_list.c: Likewise.
59286         * tests/test-localename.c: Likewise.
59287         * tests/test-lseek.c: Likewise.
59288         * tests/test-lstat.c: Likewise.
59289         * tests/test-mbmemcasecmp.c: Likewise.
59290         * tests/test-mbmemcasecoll.c: Likewise.
59291         * tests/test-mbrtowc.c: Likewise.
59292         * tests/test-mbscasecmp.c: Likewise.
59293         * tests/test-mbscasestr1.c: Likewise.
59294         * tests/test-mbscasestr2.c: Likewise.
59295         * tests/test-mbscasestr3.c: Likewise.
59296         * tests/test-mbscasestr4.c: Likewise.
59297         * tests/test-mbschr.c: Likewise.
59298         * tests/test-mbscspn.c: Likewise.
59299         * tests/test-mbsinit.c: Likewise.
59300         * tests/test-mbsncasecmp.c: Likewise.
59301         * tests/test-mbsnrtowcs.c: Likewise.
59302         * tests/test-mbspbrk.c: Likewise.
59303         * tests/test-mbspcasecmp.c: Likewise.
59304         * tests/test-mbsrchr.c: Likewise.
59305         * tests/test-mbsrtowcs.c: Likewise.
59306         * tests/test-mbsspn.c: Likewise.
59307         * tests/test-mbsstr1.c: Likewise.
59308         * tests/test-mbsstr2.c: Likewise.
59309         * tests/test-mbsstr3.c: Likewise.
59310         * tests/test-memchr.c: Likewise.
59311         * tests/test-memchr2.c: Likewise.
59312         * tests/test-memcmp.c: Likewise.
59313         * tests/test-memmem.c: Likewise.
59314         * tests/test-memrchr.c: Likewise.
59315         * tests/test-mkdir.c: Likewise.
59316         * tests/test-mkdirat.c: Likewise.
59317         * tests/test-mkfifo.c: Likewise.
59318         * tests/test-mkfifoat.c: Likewise.
59319         * tests/test-mknod.c: Likewise.
59320         * tests/test-nanosleep.c: Likewise.
59321         * tests/test-nl_langinfo.c: Likewise.
59322         * tests/test-obstack-printf.c: Likewise.
59323         * tests/test-open.c: Likewise.
59324         * tests/test-openat.c: Likewise.
59325         * tests/test-pipe-filter-gi1.c: Likewise.
59326         * tests/test-pipe-filter-gi2-main.c: Likewise.
59327         * tests/test-pipe-filter-ii1.c: Likewise.
59328         * tests/test-pipe-filter-ii2-main.c: Likewise.
59329         * tests/test-pipe2.c: Likewise.
59330         * tests/test-popen.h: Likewise.
59331         * tests/test-posixtm.c: Likewise.
59332         * tests/test-pread.c: Likewise.
59333         * tests/test-printf-frexp.c: Likewise.
59334         * tests/test-printf-frexpl.c: Likewise.
59335         * tests/test-printf-posix.c: Likewise.
59336         * tests/test-priv-set.c: Likewise.
59337         * tests/test-quotearg.c: Likewise.
59338         * tests/test-random_r.c: Likewise.
59339         * tests/test-rawmemchr.c: Likewise.
59340         * tests/test-rbtree_list.c: Likewise.
59341         * tests/test-rbtree_oset.c: Likewise.
59342         * tests/test-rbtreehash_list.c: Likewise.
59343         * tests/test-readlink.c: Likewise.
59344         * tests/test-remove.c: Likewise.
59345         * tests/test-rename.c: Likewise.
59346         * tests/test-renameat.c: Likewise.
59347         * tests/test-rmdir.c: Likewise.
59348         * tests/test-round1.c: Likewise.
59349         * tests/test-roundf1.c: Likewise.
59350         * tests/test-roundl.c: Likewise.
59351         * tests/test-safe-alloc.c: Likewise.
59352         * tests/test-sameacls.c: Likewise.
59353         * tests/test-set-mode-acl.c: Likewise.
59354         * tests/test-setenv.c: Likewise.
59355         * tests/test-sigaction.c: Likewise.
59356         * tests/test-signbit.c: Likewise.
59357         * tests/test-sleep.c: Likewise.
59358         * tests/test-snprintf-posix.c: Likewise.
59359         * tests/test-snprintf.c: Likewise.
59360         * tests/test-sprintf-posix.c: Likewise.
59361         * tests/test-stat-time.c: Likewise.
59362         * tests/test-stat.c: Likewise.
59363         * tests/test-strcasestr.c: Likewise.
59364         * tests/test-strchrnul.c: Likewise.
59365         * tests/test-strerror.c: Likewise.
59366         * tests/test-striconv.c: Likewise.
59367         * tests/test-striconveh.c: Likewise.
59368         * tests/test-striconveha.c: Likewise.
59369         * tests/test-strsignal.c: Likewise.
59370         * tests/test-strstr.c: Likewise.
59371         * tests/test-strtod.c: Likewise.
59372         * tests/test-strverscmp.c: Likewise.
59373         * tests/test-symlink.c: Likewise.
59374         * tests/test-symlinkat.c: Likewise.
59375         * tests/test-trunc1.c: Likewise.
59376         * tests/test-trunc2.c: Likewise.
59377         * tests/test-truncf1.c: Likewise.
59378         * tests/test-truncf2.c: Likewise.
59379         * tests/test-truncl.c: Likewise.
59380         * tests/test-uname.c: Likewise.
59381         * tests/test-unlink.c: Likewise.
59382         * tests/test-unlinkat.c: Likewise.
59383         * tests/test-unsetenv.c: Likewise.
59384         * tests/test-usleep.c: Likewise.
59385         * tests/test-utimens.c: Likewise.
59386         * tests/test-utimensat.c: Likewise.
59387         * tests/test-vasnprintf-posix.c: Likewise.
59388         * tests/test-vasnprintf-posix2.c: Likewise.
59389         * tests/test-vasnprintf.c: Likewise.
59390         * tests/test-vasprintf-posix.c: Likewise.
59391         * tests/test-vasprintf.c: Likewise.
59392         * tests/test-vdprintf-posix.c: Likewise.
59393         * tests/test-vfprintf-posix.c: Likewise.
59394         * tests/test-vprintf-posix.c: Likewise.
59395         * tests/test-vsnprintf-posix.c: Likewise.
59396         * tests/test-vsnprintf.c: Likewise.
59397         * tests/test-vsprintf-posix.c: Likewise.
59398         * tests/test-wcrtomb.c: Likewise.
59399         * tests/test-wcsnrtombs.c: Likewise.
59400         * tests/test-wcsrtombs.c: Likewise.
59401         * tests/test-wctype.c: Likewise.
59402         * tests/test-wcwidth.c: Likewise.
59403         * tests/test-xfprintf-posix.c: Likewise.
59404         * tests/test-xmemdup0.c: Likewise.
59405         * tests/test-xprintf-posix.c: Likewise.
59406         * tests/test-xvasprintf.c: Likewise.
59407         * tests/unicase/test-locale-language.c: Likewise.
59408         * tests/unicase/test-mapping-part1.h: Likewise.
59409         * tests/unicase/test-predicate-part1.h: Likewise.
59410         * tests/unicase/test-u8-casecmp.c: Likewise.
59411         * tests/unicase/test-u8-casecoll.c: Likewise.
59412         * tests/unicase/test-u8-casefold.c: Likewise.
59413         * tests/unicase/test-u8-is-cased.c: Likewise.
59414         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59415         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59416         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59417         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59418         * tests/unicase/test-u8-tolower.c: Likewise.
59419         * tests/unicase/test-u8-totitle.c: Likewise.
59420         * tests/unicase/test-u8-toupper.c: Likewise.
59421         * tests/unicase/test-u16-casecmp.c: Likewise.
59422         * tests/unicase/test-u16-casecoll.c: Likewise.
59423         * tests/unicase/test-u16-casefold.c: Likewise.
59424         * tests/unicase/test-u16-is-cased.c: Likewise.
59425         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59426         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59427         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59428         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59429         * tests/unicase/test-u16-tolower.c: Likewise.
59430         * tests/unicase/test-u16-totitle.c: Likewise.
59431         * tests/unicase/test-u16-toupper.c: Likewise.
59432         * tests/unicase/test-u32-casecmp.c: Likewise.
59433         * tests/unicase/test-u32-casecoll.c: Likewise.
59434         * tests/unicase/test-u32-casefold.c: Likewise.
59435         * tests/unicase/test-u32-is-cased.c: Likewise.
59436         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59437         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59438         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59439         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59440         * tests/unicase/test-u32-tolower.c: Likewise.
59441         * tests/unicase/test-u32-totitle.c: Likewise.
59442         * tests/unicase/test-u32-toupper.c: Likewise.
59443         * tests/unicase/test-ulc-casecmp.c: Likewise.
59444         * tests/unicase/test-ulc-casecoll.c: Likewise.
59445         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59446         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59447         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59448         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59449         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59450         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59451         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59452         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59453         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59454         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59455         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59456         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59457         * tests/unictype/test-bidi_byname.c: Likewise.
59458         * tests/unictype/test-bidi_name.c: Likewise.
59459         * tests/unictype/test-bidi_of.c: Likewise.
59460         * tests/unictype/test-bidi_test.c: Likewise.
59461         * tests/unictype/test-block_list.c: Likewise.
59462         * tests/unictype/test-block_of.c: Likewise.
59463         * tests/unictype/test-block_test.c: Likewise.
59464         * tests/unictype/test-categ_and.c: Likewise.
59465         * tests/unictype/test-categ_and_not.c: Likewise.
59466         * tests/unictype/test-categ_byname.c: Likewise.
59467         * tests/unictype/test-categ_name.c: Likewise.
59468         * tests/unictype/test-categ_none.c: Likewise.
59469         * tests/unictype/test-categ_of.c: Likewise.
59470         * tests/unictype/test-categ_or.c: Likewise.
59471         * tests/unictype/test-categ_test_withtable.c: Likewise.
59472         * tests/unictype/test-combining.c: Likewise.
59473         * tests/unictype/test-decdigit.c: Likewise.
59474         * tests/unictype/test-digit.c: Likewise.
59475         * tests/unictype/test-mirror.c: Likewise.
59476         * tests/unictype/test-numeric.c: Likewise.
59477         * tests/unictype/test-pr_byname.c: Likewise.
59478         * tests/unictype/test-pr_test.c: Likewise.
59479         * tests/unictype/test-predicate-part1.h: Likewise.
59480         * tests/unictype/test-scripts.c: Likewise.
59481         * tests/unictype/test-sy_c_ident.c: Likewise.
59482         * tests/unictype/test-sy_java_ident.c: Likewise.
59483         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59484         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59485         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59486         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59487         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59488         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59489         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59490         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59491         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59492         * tests/uninorm/test-compat-decomposition.c: Likewise.
59493         * tests/uninorm/test-composition.c: Likewise.
59494         * tests/uninorm/test-decomposing-form.c: Likewise.
59495         * tests/uninorm/test-decomposition.c: Likewise.
59496         * tests/uninorm/test-u8-nfc.c: Likewise.
59497         * tests/uninorm/test-u8-nfd.c: Likewise.
59498         * tests/uninorm/test-u8-nfkc.c: Likewise.
59499         * tests/uninorm/test-u8-nfkd.c: Likewise.
59500         * tests/uninorm/test-u8-normcmp.c: Likewise.
59501         * tests/uninorm/test-u8-normcoll.c: Likewise.
59502         * tests/uninorm/test-u16-nfc.c: Likewise.
59503         * tests/uninorm/test-u16-nfd.c: Likewise.
59504         * tests/uninorm/test-u16-nfkc.c: Likewise.
59505         * tests/uninorm/test-u16-nfkd.c: Likewise.
59506         * tests/uninorm/test-u16-normcmp.c: Likewise.
59507         * tests/uninorm/test-u16-normcoll.c: Likewise.
59508         * tests/uninorm/test-u32-nfc.c: Likewise.
59509         * tests/uninorm/test-u32-nfd.c: Likewise.
59510         * tests/uninorm/test-u32-nfkc.c: Likewise.
59511         * tests/uninorm/test-u32-nfkd.c: Likewise.
59512         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59513         * tests/uninorm/test-u32-normcmp.c: Likewise.
59514         * tests/uninorm/test-u32-normcoll.c: Likewise.
59515         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59516         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59517         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59518         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59519         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59520         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59521         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59522         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59523         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59524         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59525         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59526         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59527         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59528         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59529         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59530         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59531         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59532         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59533         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59534         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59535         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59536         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59537         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59538         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59539         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59540         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59541         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59542         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59543         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59544         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59545         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59546         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59547         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59548         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59549         * tests/uniwidth/test-u8-width.c: Likewise.
59550         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59551         * tests/uniwidth/test-u16-width.c: Likewise.
59552         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59553         * tests/uniwidth/test-u32-width.c: Likewise.
59554         * tests/uniwidth/test-uc_width.c: Likewise.
59555         * tests/uniwidth/test-uc_width2.c: Likewise.
59556         * modules/acl-tests (Files): Add tests/macros.h.
59557         * modules/areadlink-tests (Files): Likewise.
59558         * modules/areadlink-with-size-tests (Files): Likewise.
59559         * modules/areadlinkat-tests (Files): Likewise.
59560         * modules/areadlinkat-with-size-tests (Files): Likewise.
59561         * modules/argmatch-tests (Files): Likewise.
59562         * modules/argv-iter-tests (Files): Likewise.
59563         * modules/array-list-tests (Files): Likewise.
59564         * modules/array-mergesort-tests (Files): Likewise.
59565         * modules/array-oset-tests (Files): Likewise.
59566         * modules/avltree-list-tests (Files): Likewise.
59567         * modules/avltree-oset-tests (Files): Likewise.
59568         * modules/avltreehash-list-tests (Files): Likewise.
59569         * modules/base64-tests (Files): Likewise.
59570         * modules/binary-io-tests (Files): Likewise.
59571         * modules/bitrotate-tests (Files): Likewise.
59572         * modules/btowc-tests (Files): Likewise.
59573         * modules/byteswap-tests (Files): Likewise.
59574         * modules/c-ctype-tests (Files): Likewise.
59575         * modules/c-stack-tests (Files): Likewise.
59576         * modules/c-strcase-tests (Files): Likewise.
59577         * modules/c-strcasestr-tests (Files): Likewise.
59578         * modules/c-strstr-tests (Files): Likewise.
59579         * modules/canonicalize-lgpl-tests (Files): Likewise.
59580         * modules/canonicalize-tests (Files): Likewise.
59581         * modules/carray-list-tests (Files): Likewise.
59582         * modules/ceilf-tests (Files): Likewise.
59583         * modules/ceill-tests (Files): Likewise.
59584         * modules/chown-tests (Files): Likewise.
59585         * modules/cloexec-tests (Files): Likewise.
59586         * modules/copy-file-tests (Files): Likewise.
59587         * modules/count-one-bits-tests (Files): Likewise.
59588         * modules/dprintf-posix-tests (Files): Likewise.
59589         * modules/dup2-tests (Files): Likewise.
59590         * modules/dup3-tests (Files): Likewise.
59591         * modules/duplocale-tests (Files): Likewise.
59592         * modules/fbufmode-tests (Files): Likewise.
59593         * modules/fchdir-tests (Files): Likewise.
59594         * modules/fcntl-safer-tests (Files): Likewise.
59595         * modules/fcntl-tests (Files): Likewise.
59596         * modules/fdopendir-tests (Files): Likewise.
59597         * modules/fdutimensat-tests (Files): Likewise.
59598         * modules/fflush-tests (Files): Likewise.
59599         * modules/filevercmp-tests (Files): Likewise.
59600         * modules/flock-tests (Files): Likewise.
59601         * modules/floorf-tests (Files): Likewise.
59602         * modules/floorl-tests (Files): Likewise.
59603         * modules/fnmatch-tests (Files): Likewise.
59604         * modules/fopen-safer-tests (Files): Likewise.
59605         * modules/fopen-tests (Files): Likewise.
59606         * modules/fpending-tests (Files): Likewise.
59607         * modules/fprintf-posix-tests (Files): Likewise.
59608         * modules/fpurge-tests (Files): Likewise.
59609         * modules/freadable-tests (Files): Likewise.
59610         * modules/freadahead-tests (Files): Likewise.
59611         * modules/freading-tests (Files): Likewise.
59612         * modules/freadptr-tests (Files): Likewise.
59613         * modules/freadseek-tests (Files): Likewise.
59614         * modules/freopen-tests (Files): Likewise.
59615         * modules/frexp-nolibm-tests (Files): Likewise.
59616         * modules/frexp-tests (Files): Likewise.
59617         * modules/frexpl-nolibm-tests (Files): Likewise.
59618         * modules/frexpl-tests (Files): Likewise.
59619         * modules/fseek-tests (Files): Likewise.
59620         * modules/fseeko-tests (Files): Likewise.
59621         * modules/fstrcmp-tests (Files): Likewise.
59622         * modules/fsync-tests (Files): Likewise.
59623         * modules/ftell-tests (Files): Likewise.
59624         * modules/ftello-tests (Files): Likewise.
59625         * modules/func-tests (Files): Likewise.
59626         * modules/futimens-tests (Files): Likewise.
59627         * modules/fwritable-tests (Files): Likewise.
59628         * modules/fwriting-tests (Files): Likewise.
59629         * modules/getcwd-tests (Files): Likewise.
59630         * modules/getdate-tests (Files): Likewise.
59631         * modules/getdelim-tests (Files): Likewise.
59632         * modules/getdtablesize-tests (Files): Likewise.
59633         * modules/getgroups-tests (Files): Likewise.
59634         * modules/getline-tests (Files): Likewise.
59635         * modules/getndelim2-tests (Files): Likewise.
59636         * modules/glob-tests (Files): Likewise.
59637         * modules/hash-tests (Files): Likewise.
59638         * modules/i-ring-tests (Files): Likewise.
59639         * modules/iconv-tests (Files): Likewise.
59640         * modules/iconv_open-utf-tests (Files): Likewise.
59641         * modules/idpriv-drop-tests (Files): Likewise.
59642         * modules/idpriv-droptemp-tests (Files): Likewise.
59643         * modules/inet_ntop-tests (Files): Likewise.
59644         * modules/inet_pton-tests (Files): Likewise.
59645         * modules/isblank-tests (Files): Likewise.
59646         * modules/isfinite-tests (Files): Likewise.
59647         * modules/isinf-tests (Files): Likewise.
59648         * modules/isnan-tests (Files): Likewise.
59649         * modules/isnand-nolibm-tests (Files): Likewise.
59650         * modules/isnand-tests (Files): Likewise.
59651         * modules/isnanf-nolibm-tests (Files): Likewise.
59652         * modules/isnanf-tests (Files): Likewise.
59653         * modules/isnanl-nolibm-tests (Files): Likewise.
59654         * modules/isnanl-tests (Files): Likewise.
59655         * modules/lchown-tests (Files): Likewise.
59656         * modules/ldexpl-tests (Files): Likewise.
59657         * modules/link-tests (Files): Likewise.
59658         * modules/linkat-tests (Files): Likewise.
59659         * modules/linked-list-tests (Files): Likewise.
59660         * modules/linkedhash-list-tests (Files): Likewise.
59661         * modules/localename-tests (Files): Likewise.
59662         * modules/lseek-tests (Files): Likewise.
59663         * modules/lstat-tests (Files): Likewise.
59664         * modules/mbmemcasecmp-tests (Files): Likewise.
59665         * modules/mbmemcasecoll-tests (Files): Likewise.
59666         * modules/mbrtowc-tests (Files): Likewise.
59667         * modules/mbscasecmp-tests (Files): Likewise.
59668         * modules/mbscasestr-tests (Files): Likewise.
59669         * modules/mbschr-tests (Files): Likewise.
59670         * modules/mbscspn-tests (Files): Likewise.
59671         * modules/mbsinit-tests (Files): Likewise.
59672         * modules/mbsncasecmp-tests (Files): Likewise.
59673         * modules/mbsnrtowcs-tests (Files): Likewise.
59674         * modules/mbspbrk-tests (Files): Likewise.
59675         * modules/mbspcasecmp-tests (Files): Likewise.
59676         * modules/mbsrchr-tests (Files): Likewise.
59677         * modules/mbsrtowcs-tests (Files): Likewise.
59678         * modules/mbsspn-tests (Files): Likewise.
59679         * modules/mbsstr-tests (Files): Likewise.
59680         * modules/memchr-tests (Files): Likewise.
59681         * modules/memchr2-tests (Files): Likewise.
59682         * modules/memcmp-tests (Files): Likewise.
59683         * modules/memmem-tests (Files): Likewise.
59684         * modules/memrchr-tests (Files): Likewise.
59685         * modules/mkdir-tests (Files): Likewise.
59686         * modules/mkfifo-tests (Files): Likewise.
59687         * modules/mkfifoat-tests (Files): Likewise.
59688         * modules/mknod-tests (Files): Likewise.
59689         * modules/nanosleep-tests (Files): Likewise.
59690         * modules/nl_langinfo-tests (Files): Likewise.
59691         * modules/obstack-printf-tests (Files): Likewise.
59692         * modules/open-tests (Files): Likewise.
59693         * modules/openat-tests (Files): Likewise.
59694         * modules/pipe-filter-gi-tests (Files): Likewise.
59695         * modules/pipe-filter-ii-tests (Files): Likewise.
59696         * modules/pipe2-tests (Files): Likewise.
59697         * modules/popen-safer-tests (Files): Likewise.
59698         * modules/popen-tests (Files): Likewise.
59699         * modules/posixtm-tests (Files): Likewise.
59700         * modules/pread-tests (Files): Likewise.
59701         * modules/printf-frexp-tests (Files): Likewise.
59702         * modules/printf-frexpl-tests (Files): Likewise.
59703         * modules/printf-posix-tests (Files): Likewise.
59704         * modules/priv-set-tests (Files): Likewise.
59705         * modules/quotearg-tests (Files): Likewise.
59706         * modules/random_r-tests (Files): Likewise.
59707         * modules/rawmemchr-tests (Files): Likewise.
59708         * modules/rbtree-list-tests (Files): Likewise.
59709         * modules/rbtree-oset-tests (Files): Likewise.
59710         * modules/rbtreehash-list-tests (Files): Likewise.
59711         * modules/readlink-tests (Files): Likewise.
59712         * modules/remove-tests (Files): Likewise.
59713         * modules/rename-tests (Files): Likewise.
59714         * modules/renameat-tests (Files): Likewise.
59715         * modules/rmdir-tests (Files): Likewise.
59716         * modules/round-tests (Files): Likewise.
59717         * modules/roundf-tests (Files): Likewise.
59718         * modules/roundl-tests (Files): Likewise.
59719         * modules/safe-alloc-tests (Files): Likewise.
59720         * modules/setenv-tests (Files): Likewise.
59721         * modules/sigaction-tests (Files): Likewise.
59722         * modules/signbit-tests (Files): Likewise.
59723         * modules/sleep-tests (Files): Likewise.
59724         * modules/snprintf-posix-tests (Files): Likewise.
59725         * modules/snprintf-tests (Files): Likewise.
59726         * modules/sprintf-posix-tests (Files): Likewise.
59727         * modules/stat-tests (Files): Likewise.
59728         * modules/stat-time-tests (Files): Likewise.
59729         * modules/strcasestr-tests (Files): Likewise.
59730         * modules/strchrnul-tests (Files): Likewise.
59731         * modules/strerror-tests (Files): Likewise.
59732         * modules/striconv-tests (Files): Likewise.
59733         * modules/striconveh-tests (Files): Likewise.
59734         * modules/striconveha-tests (Files): Likewise.
59735         * modules/strsignal-tests (Files): Likewise.
59736         * modules/strstr-tests (Files): Likewise.
59737         * modules/strtod-tests (Files): Likewise.
59738         * modules/strverscmp-tests (Files): Likewise.
59739         * modules/symlink-tests (Files): Likewise.
59740         * modules/symlinkat-tests (Files): Likewise.
59741         * modules/trunc-tests (Files): Likewise.
59742         * modules/truncf-tests (Files): Likewise.
59743         * modules/truncl-tests (Files): Likewise.
59744         * modules/uname-tests (Files): Likewise.
59745         * modules/unicase/cased-tests (Files): Likewise.
59746         * modules/unicase/ignorable-tests (Files): Likewise.
59747         * modules/unicase/locale-language-tests (Files): Likewise.
59748         * modules/unicase/tolower-tests (Files): Likewise.
59749         * modules/unicase/totitle-tests (Files): Likewise.
59750         * modules/unicase/toupper-tests (Files): Likewise.
59751         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59752         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59753         * modules/unicase/u8-casefold-tests (Files): Likewise.
59754         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59755         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59756         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59757         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59758         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59759         * modules/unicase/u8-tolower-tests (Files): Likewise.
59760         * modules/unicase/u8-totitle-tests (Files): Likewise.
59761         * modules/unicase/u8-toupper-tests (Files): Likewise.
59762         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59763         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59764         * modules/unicase/u16-casefold-tests (Files): Likewise.
59765         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59766         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59767         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59768         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59769         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59770         * modules/unicase/u16-tolower-tests (Files): Likewise.
59771         * modules/unicase/u16-totitle-tests (Files): Likewise.
59772         * modules/unicase/u16-toupper-tests (Files): Likewise.
59773         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59774         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59775         * modules/unicase/u32-casefold-tests (Files): Likewise.
59776         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59777         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59778         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59779         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59780         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59781         * modules/unicase/u32-tolower-tests (Files): Likewise.
59782         * modules/unicase/u32-totitle-tests (Files): Likewise.
59783         * modules/unicase/u32-toupper-tests (Files): Likewise.
59784         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59785         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59786         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59787         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59788         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59789         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59790         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59791         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59792         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59793         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59794         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59795         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59796         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59797         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59798         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59799         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59800         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59801         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59802         * modules/unictype/block-list-tests (Files): Likewise.
59803         * modules/unictype/block-of-tests (Files): Likewise.
59804         * modules/unictype/block-test-tests (Files): Likewise.
59805         * modules/unictype/category-C-tests (Files): Likewise.
59806         * modules/unictype/category-Cc-tests (Files): Likewise.
59807         * modules/unictype/category-Cf-tests (Files): Likewise.
59808         * modules/unictype/category-Cn-tests (Files): Likewise.
59809         * modules/unictype/category-Co-tests (Files): Likewise.
59810         * modules/unictype/category-Cs-tests (Files): Likewise.
59811         * modules/unictype/category-L-tests (Files): Likewise.
59812         * modules/unictype/category-Ll-tests (Files): Likewise.
59813         * modules/unictype/category-Lm-tests (Files): Likewise.
59814         * modules/unictype/category-Lo-tests (Files): Likewise.
59815         * modules/unictype/category-Lt-tests (Files): Likewise.
59816         * modules/unictype/category-Lu-tests (Files): Likewise.
59817         * modules/unictype/category-M-tests (Files): Likewise.
59818         * modules/unictype/category-Mc-tests (Files): Likewise.
59819         * modules/unictype/category-Me-tests (Files): Likewise.
59820         * modules/unictype/category-Mn-tests (Files): Likewise.
59821         * modules/unictype/category-N-tests (Files): Likewise.
59822         * modules/unictype/category-Nd-tests (Files): Likewise.
59823         * modules/unictype/category-Nl-tests (Files): Likewise.
59824         * modules/unictype/category-No-tests (Files): Likewise.
59825         * modules/unictype/category-P-tests (Files): Likewise.
59826         * modules/unictype/category-Pc-tests (Files): Likewise.
59827         * modules/unictype/category-Pd-tests (Files): Likewise.
59828         * modules/unictype/category-Pe-tests (Files): Likewise.
59829         * modules/unictype/category-Pf-tests (Files): Likewise.
59830         * modules/unictype/category-Pi-tests (Files): Likewise.
59831         * modules/unictype/category-Po-tests (Files): Likewise.
59832         * modules/unictype/category-Ps-tests (Files): Likewise.
59833         * modules/unictype/category-S-tests (Files): Likewise.
59834         * modules/unictype/category-Sc-tests (Files): Likewise.
59835         * modules/unictype/category-Sk-tests (Files): Likewise.
59836         * modules/unictype/category-Sm-tests (Files): Likewise.
59837         * modules/unictype/category-So-tests (Files): Likewise.
59838         * modules/unictype/category-Z-tests (Files): Likewise.
59839         * modules/unictype/category-Zl-tests (Files): Likewise.
59840         * modules/unictype/category-Zp-tests (Files): Likewise.
59841         * modules/unictype/category-Zs-tests (Files): Likewise.
59842         * modules/unictype/category-and-not-tests (Files): Likewise.
59843         * modules/unictype/category-and-tests (Files): Likewise.
59844         * modules/unictype/category-byname-tests (Files): Likewise.
59845         * modules/unictype/category-name-tests (Files): Likewise.
59846         * modules/unictype/category-none-tests (Files): Likewise.
59847         * modules/unictype/category-of-tests (Files): Likewise.
59848         * modules/unictype/category-or-tests (Files): Likewise.
59849         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59850         * modules/unictype/combining-class-tests (Files): Likewise.
59851         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59852         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59853         * modules/unictype/ctype-blank-tests (Files): Likewise.
59854         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59855         * modules/unictype/ctype-digit-tests (Files): Likewise.
59856         * modules/unictype/ctype-graph-tests (Files): Likewise.
59857         * modules/unictype/ctype-lower-tests (Files): Likewise.
59858         * modules/unictype/ctype-print-tests (Files): Likewise.
59859         * modules/unictype/ctype-punct-tests (Files): Likewise.
59860         * modules/unictype/ctype-space-tests (Files): Likewise.
59861         * modules/unictype/ctype-upper-tests (Files): Likewise.
59862         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59863         * modules/unictype/decimal-digit-tests (Files): Likewise.
59864         * modules/unictype/digit-tests (Files): Likewise.
59865         * modules/unictype/mirror-tests (Files): Likewise.
59866         * modules/unictype/numeric-tests (Files): Likewise.
59867         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59868         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59869         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59870         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59871         Likewise.
59872         * modules/unictype/property-bidi-block-separator-tests (Files):
59873         Likewise.
59874         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59875         Likewise.
59876         * modules/unictype/property-bidi-common-separator-tests (Files):
59877         Likewise.
59878         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59879         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59880         Likewise.
59881         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59882         Likewise.
59883         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59884         Likewise.
59885         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59886         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59887         Likewise.
59888         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59889         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59890         Likewise.
59891         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59892         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59893         * modules/unictype/property-bidi-segment-separator-tests (Files):
59894         Likewise.
59895         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59896         * modules/unictype/property-byname-tests (Files): Likewise.
59897         * modules/unictype/property-combining-tests (Files): Likewise.
59898         * modules/unictype/property-composite-tests (Files): Likewise.
59899         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59900         * modules/unictype/property-dash-tests (Files): Likewise.
59901         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59902         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59903         Likewise.
59904         * modules/unictype/property-deprecated-tests (Files): Likewise.
59905         * modules/unictype/property-diacritic-tests (Files): Likewise.
59906         * modules/unictype/property-extender-tests (Files): Likewise.
59907         * modules/unictype/property-format-control-tests (Files): Likewise.
59908         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59909         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59910         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59911         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59912         * modules/unictype/property-hyphen-tests (Files): Likewise.
59913         * modules/unictype/property-id-continue-tests (Files): Likewise.
59914         * modules/unictype/property-id-start-tests (Files): Likewise.
59915         * modules/unictype/property-ideographic-tests (Files): Likewise.
59916         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59917         * modules/unictype/property-ids-trinary-operator-tests (Files):
59918         Likewise.
59919         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59920         * modules/unictype/property-iso-control-tests (Files): Likewise.
59921         * modules/unictype/property-join-control-tests (Files): Likewise.
59922         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59923         * modules/unictype/property-line-separator-tests (Files): Likewise.
59924         * modules/unictype/property-logical-order-exception-tests (Files):
59925         Likewise.
59926         * modules/unictype/property-lowercase-tests (Files): Likewise.
59927         * modules/unictype/property-math-tests (Files): Likewise.
59928         * modules/unictype/property-non-break-tests (Files): Likewise.
59929         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59930         * modules/unictype/property-numeric-tests (Files): Likewise.
59931         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59932         * modules/unictype/property-other-default-ignorable-code-point-tests
59933         (Files): Likewise.
59934         * modules/unictype/property-other-grapheme-extend-tests (Files):
59935         Likewise.
59936         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59937         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59938         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59939         * modules/unictype/property-other-math-tests (Files): Likewise.
59940         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59941         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59942         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59943         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59944         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59945         * modules/unictype/property-private-use-tests (Files): Likewise.
59946         * modules/unictype/property-punctuation-tests (Files): Likewise.
59947         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59948         * modules/unictype/property-radical-tests (Files): Likewise.
59949         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59950         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59951         * modules/unictype/property-space-tests (Files): Likewise.
59952         * modules/unictype/property-terminal-punctuation-tests (Files):
59953         Likewise.
59954         * modules/unictype/property-test-tests (Files): Likewise.
59955         * modules/unictype/property-titlecase-tests (Files): Likewise.
59956         * modules/unictype/property-unassigned-code-value-tests (Files):
59957         Likewise.
59958         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59959         * modules/unictype/property-uppercase-tests (Files): Likewise.
59960         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59961         * modules/unictype/property-white-space-tests (Files): Likewise.
59962         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59963         * modules/unictype/property-xid-start-tests (Files): Likewise.
59964         * modules/unictype/property-zero-width-tests (Files): Likewise.
59965         * modules/unictype/scripts-tests (Files): Likewise.
59966         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59967         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59968         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59969         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59970         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59971         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59972         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59973         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59974         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59975         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59976         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59977         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59978         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59979         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59980         * modules/uninorm/composition-tests (Files): Likewise.
59981         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59982         * modules/uninorm/decomposition-tests (Files): Likewise.
59983         * modules/uninorm/filter-tests (Files): Likewise.
59984         * modules/uninorm/nfc-tests (Files): Likewise.
59985         * modules/uninorm/nfd-tests (Files): Likewise.
59986         * modules/uninorm/nfkc-tests (Files): Likewise.
59987         * modules/uninorm/nfkd-tests (Files): Likewise.
59988         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59989         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59990         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59991         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59992         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59993         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59994         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59995         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59996         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59997         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59998         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59999         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
60000         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
60001         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
60002         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
60003         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
60004         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
60005         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
60006         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
60007         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
60008         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
60009         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
60010         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
60011         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
60012         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
60013         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
60014         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
60015         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
60016         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
60017         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
60018         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
60019         * modules/uniwidth/u8-width-tests (Files): Likewise.
60020         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
60021         * modules/uniwidth/u16-width-tests (Files): Likewise.
60022         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
60023         * modules/uniwidth/u32-width-tests (Files): Likewise.
60024         * modules/uniwidth/width-tests (Files): Likewise.
60025         * modules/unlink-tests (Files): Likewise.
60026         * modules/unsetenv-tests (Files): Likewise.
60027         * modules/usleep-tests (Files): Likewise.
60028         * modules/utimens-tests (Files): Likewise.
60029         * modules/utimensat-tests (Files): Likewise.
60030         * modules/vasnprintf-posix-tests (Files): Likewise.
60031         * modules/vasnprintf-tests (Files): Likewise.
60032         * modules/vasprintf-posix-tests (Files): Likewise.
60033         * modules/vasprintf-tests (Files): Likewise.
60034         * modules/vdprintf-posix-tests (Files): Likewise.
60035         * modules/vfprintf-posix-tests (Files): Likewise.
60036         * modules/vprintf-posix-tests (Files): Likewise.
60037         * modules/vsnprintf-posix-tests (Files): Likewise.
60038         * modules/vsnprintf-tests (Files): Likewise.
60039         * modules/vsprintf-posix-tests (Files): Likewise.
60040         * modules/wcrtomb-tests (Files): Likewise.
60041         * modules/wcsnrtombs-tests (Files): Likewise.
60042         * modules/wcsrtombs-tests (Files): Likewise.
60043         * modules/wctype-tests (Files): Likewise.
60044         * modules/wcwidth-tests (Files): Likewise.
60045         * modules/xmemdup0-tests (Files): Likewise.
60046         * modules/xprintf-posix-tests (Files): Likewise.
60047         * modules/xvasprintf-tests (Files): Likewise.
60049 2009-12-24  Eric Blake  <ebb9@byu.net>
60051         test-nanosleep: fix typo
60052         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
60053         patch.
60054         Reported by Bruno Haible.
60056 2009-12-24  Bruno Haible  <bruno@clisp.org>
60058         Reduce namespace pollution on glibc systems.
60059         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
60060         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
60061         systems.
60062         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
60063         <getopt.h> on glibc systems.
60064         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
60065         systems.
60066         * lib/fcntl.c: Include <unistd.h> here instead.
60068 2009-12-24  Bruno Haible  <bruno@clisp.org>
60070         * lib/stdlib.in.h (includes): Fix typo in today's commit.
60072 2009-12-24  Eric Blake  <ebb9@byu.net>
60074         tests: add signature checks
60075         * tests/signature.h (SIGNATURE_CHECK): New file.
60076         * modules/atexit-tests (Files): Use it.
60077         * modules/btowc-tests (Files): Likewise.
60078         * modules/canonicalize-lgpl-tests (Files): Likewise.
60079         * modules/ceilf-tests (Files): Likewise.
60080         * modules/ceill-tests (Files): Likewise.
60081         * modules/chown-tests (Files): Likewise.
60082         * modules/dprintf-posix-tests (Files): Likewise.
60083         * modules/dup2-tests (Files): Likewise.
60084         * modules/dup3-tests (Files): Likewise.
60085         * modules/duplocale-tests (Files): Likewise.
60086         * modules/fchdir-tests (Files): Likewise.
60087         * modules/fcntl-tests (Files): Likewise.
60088         * modules/fdopendir-tests (Files): Likewise.
60089         * modules/fflush-tests (Files): Likewise.
60090         * modules/flock-tests (Files): Likewise.
60091         * modules/floorf-tests (Files): Likewise.
60092         * modules/floorl-tests (Files): Likewise.
60093         * modules/fnmatch-tests (Files): Likewise.
60094         * modules/fopen-tests (Files): Likewise.
60095         * modules/fprintf-posix-tests (Files): Likewise.
60096         * modules/freopen-tests (Files): Likewise.
60097         * modules/frexp-nolibm-tests (Files): Likewise.
60098         * modules/frexp-tests (Files): Likewise.
60099         * modules/frexpl-nolibm-tests (Files): Likewise.
60100         * modules/frexpl-tests (Files): Likewise.
60101         * modules/fseek-tests (Files): Likewise.
60102         * modules/fseeko-tests (Files): Likewise.
60103         * modules/fsync-tests (Files): Likewise.
60104         * modules/ftell-tests (Files): Likewise.
60105         * modules/ftello-tests (Files): Likewise.
60106         * modules/futimens-tests (Files): Likewise.
60107         * modules/getaddrinfo-tests (Files): Likewise.
60108         * modules/getcwd-tests (Files): Likewise.
60109         * modules/getdelim-tests (Files): Likewise.
60110         * modules/getdtablesize-tests (Files): Likewise.
60111         * modules/getgroups-tests (Files): Likewise.
60112         * modules/gethostname-tests (Files): Likewise.
60113         * modules/getline-tests (Files): Likewise.
60114         * modules/getopt-posix-tests (Files): Likewise.
60115         * modules/gettimeofday-tests (Files): Likewise.
60116         * modules/glob-tests (Files): Likewise.
60117         * modules/iconv-tests (Files): Likewise.
60118         * modules/inet_ntop-tests (Files): Likewise.
60119         * modules/inet_pton-tests (Files): Likewise.
60120         * modules/isblank-tests (Files): Likewise.
60121         * modules/lchown-tests (Files): Likewise.
60122         * modules/ldexpl-tests (Files): Likewise.
60123         * modules/link-tests (Files): Likewise.
60124         * modules/linkat-tests (Files): Likewise.
60125         * modules/lseek-tests (Files): Likewise.
60126         * modules/lstat-tests (Files): Likewise.
60127         * modules/mbrtowc-tests (Files): Likewise.
60128         * modules/mbsinit-tests (Files): Likewise.
60129         * modules/mbsnrtowcs-tests (Files): Likewise.
60130         * modules/mbsrtowcs-tests (Files): Likewise.
60131         * modules/memchr-tests (Files): Likewise.
60132         * modules/memcmp-tests (Files): Likewise.
60133         * modules/memmem-tests (Files): Likewise.
60134         * modules/memrchr-tests (Files): Likewise.
60135         * modules/mkdir-tests (Files): Likewise.
60136         * modules/mkfifo-tests (Files): Likewise.
60137         * modules/mkfifoat-tests (Files): Likewise.
60138         * modules/mknod-tests (Files): Likewise.
60139         * modules/nanosleep-tests (Files): Likewise.
60140         * modules/nl_langinfo-tests (Files): Likewise.
60141         * modules/obstack-printf-tests (Files): Likewise.
60142         * modules/open-tests (Files): Likewise.
60143         * modules/openat-tests (Files): Likewise.
60144         * modules/perror-tests (Files): Likewise.
60145         * modules/pipe2-tests (Files): Likewise.
60146         * modules/poll-tests (Files): Likewise.
60147         * modules/popen-tests (Files): Likewise.
60148         * modules/posix_spawn-tests (Files): Likewise.
60149         * modules/posix_spawnp-tests (Files): Likewise.
60150         * modules/pread-tests (Files): Likewise.
60151         * modules/printf-posix-tests (Files): Likewise.
60152         * modules/pty-tests (Files): Likewise.
60153         * modules/random_r-tests (Files): Likewise.
60154         * modules/rawmemchr-tests (Files): Likewise.
60155         * modules/readlink-tests (Files): Likewise.
60156         * modules/remove-tests (Files): Likewise.
60157         * modules/rename-tests (Files): Likewise.
60158         * modules/renameat-tests (Files): Likewise.
60159         * modules/rmdir-tests (Files): Likewise.
60160         * modules/round-tests (Files): Likewise.
60161         * modules/roundf-tests (Files): Likewise.
60162         * modules/roundl-tests (Files): Likewise.
60163         * modules/select-tests (Files): Likewise.
60164         * modules/setenv-tests (Files): Likewise.
60165         * modules/sigaction-tests (Files): Likewise.
60166         * modules/sleep-tests (Files): Likewise.
60167         * modules/snprintf-posix-tests (Files): Likewise.
60168         * modules/snprintf-tests (Files): Likewise.
60169         * modules/sprintf-posix-tests (Files): Likewise.
60170         * modules/stat-tests (Files): Likewise.
60171         * modules/strcasestr-tests (Files): Likewise.
60172         * modules/strchrnul-tests (Files): Likewise.
60173         * modules/strerror-tests (Files): Likewise.
60174         * modules/strsignal-tests (Files): Likewise.
60175         * modules/strstr-tests (Files): Likewise.
60176         * modules/strtod-tests (Files): Likewise.
60177         * modules/strverscmp-tests (Files): Likewise.
60178         * modules/symlink-tests (Files): Likewise.
60179         * modules/symlinkat-tests (Files): Likewise.
60180         * modules/times-tests (Files): Likewise.
60181         * modules/trunc-tests (Files): Likewise.
60182         * modules/truncf-tests (Files): Likewise.
60183         * modules/truncl-tests (Files): Likewise.
60184         * modules/tsearch-tests (Files): Likewise.
60185         * modules/uname-tests (Files): Likewise.
60186         * modules/unlink-tests (Files): Likewise.
60187         * modules/unsetenv-tests (Files): Likewise.
60188         * modules/usleep-tests (Files): Likewise.
60189         * modules/utimensat-tests (Files): Likewise.
60190         * modules/vasprintf-tests (Files): Likewise.
60191         * modules/vdprintf-posix-tests (Files): Likewise.
60192         * modules/vfprintf-posix-tests (Files): Likewise.
60193         * modules/vprintf-posix-tests (Files): Likewise.
60194         * modules/vsnprintf-posix-tests (Files): Likewise.
60195         * modules/vsnprintf-tests (Files): Likewise.
60196         * modules/vsprintf-posix-tests (Files): Likewise.
60197         * modules/wcrtomb-tests (Files): Likewise.
60198         * modules/wcsnrtombs-tests (Files): Likewise.
60199         * modules/wcsrtombs-tests (Files): Likewise.
60200         * modules/wcwidth-tests (Files): Likewise.
60201         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
60202         * tests/test-isinf.c (isinf): Likewise.
60203         * tests/test-isnan.c (isnan): Likewise.
60204         * tests/test-signbit.c (signbit): Likewise.
60205         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
60206         declaration, either as macro or with correct signature.
60207         (select): Ensure function under test is declared with correct
60208         signature in correct header.
60209         * tests/test-atexit.c (atexit): Likewise.
60210         * tests/test-btowc.c (btowc): Likewise.
60211         * tests/test-canonicalize-lgpl.c (realpath)
60212         (canonicalize_file_name): Likewise.
60213         * tests/test-ceilf1.c (ceilf): Likewise.
60214         * tests/test-ceill.c (ceill): Likewise.
60215         * tests/test-chown.c (chown): Likewise.
60216         * tests/test-dprintf-posix.c (dprintf): Likewise.
60217         * tests/test-dup2.c (dup2): Likewise.
60218         * tests/test-dup3.c (dup3): Likewise.
60219         * tests/test-duplocale.c (duplocale): Likewise.
60220         * tests/test-fchdir.c (fchdir): Likewise.
60221         * tests/test-fchownat.c (fchownat): Likewise.
60222         * tests/test-fcntl.c (fcntl): Likewise.
60223         * tests/test-fdopendir.c (fdopendir): Likewise.
60224         * tests/test-fflush.c (fflush): Likewise.
60225         * tests/test-flock.c (flock): Likewise.
60226         * tests/test-floorf1.c (floorf): Likewise.
60227         * tests/test-floorl.c (floorl): Likewise.
60228         * tests/test-fnmatch.c (fnmatch): Likewise.
60229         * tests/test-fopen.c (fopen): Likewise.
60230         * tests/test-fprintf-posix.c (fprintf): Likewise.
60231         * tests/test-freopen.c (freopen): Likewise.
60232         * tests/test-frexp.c (frexp): Likewise.
60233         * tests/test-frexpl.c (frexpl): Likewise.
60234         * tests/test-fseek.c (fseek): Likewise.
60235         * tests/test-fseeko.c (fseeko): Likewise.
60236         * tests/test-fstatat.c (fstatat): Likewise.
60237         * tests/test-fsync.c (fsync): Likewise.
60238         * tests/test-ftell.c (ftell): Likewise.
60239         * tests/test-ftello.c (ftello): Likewise.
60240         * tests/test-futimens.c (futimens): Likewise.
60241         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
60242         (gai_strerror): Likewise.
60243         * tests/test-getcwd.c (getcwd): Likewise.
60244         * tests/test-getdelim.c (getdelim): Likewise.
60245         * tests/test-getdtablesize.c (getdtablesize): Likewise.
60246         * tests/test-getgroups.c (getgroups): Likewise.
60247         * tests/test-gethostname.c (gethostname): Likewise.
60248         * tests/test-getline.c (getline): Likewise.
60249         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
60250         Likewise.
60251         * tests/test-gettimeofday.c (gettimeofday): Likewise.
60252         * tests/test-glob.c (glob, globfree): Likewise.
60253         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
60254         * tests/test-inet_ntop.c (inet_ntop): Likewise.
60255         * tests/test-inet_pton.c (inet_pton): Likewise.
60256         * tests/test-isblank.c (isblank): Likewise.
60257         * tests/test-lchown.c (lchown): Likewise.
60258         * tests/test-ldexpl.c (ldexpl): Likewise.
60259         * tests/test-link.c (link): Likewise.
60260         * tests/test-linkat.c (linkat): Likewise.
60261         * tests/test-lseek.c (lseek): Likewise.
60262         * tests/test-lstat.c (lstat): Likewise.
60263         * tests/test-mbrtowc.c (mbrtowc): Likewise.
60264         * tests/test-mbsinit.c (mbsinit): Likewise.
60265         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
60266         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
60267         * tests/test-memchr.c (memchr): Likewise.
60268         * tests/test-memcmp.c (memcmp): Likewise.
60269         * tests/test-memmem.c (memmem): Likewise.
60270         * tests/test-memrchr.c (memrchr): Likewise.
60271         * tests/test-mkdir.c (mkdir): Likewise.
60272         * tests/test-mkdirat.c (mkdirat): Likewise.
60273         * tests/test-mkfifo.c (mkfifo): Likewise.
60274         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
60275         * tests/test-mknod.c (mknod): Likewise.
60276         * tests/test-nanosleep.c (nanosleep): Likewise.
60277         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
60278         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
60279         Likewise.
60280         * tests/test-open.c (open): Likewise.
60281         * tests/test-openat.c (openat): Likewise.
60282         * tests/test-perror.c (perror): Likewise.
60283         * tests/test-pipe2.c (pipe2): Likewise.
60284         * tests/test-poll.c (poll): Likewise.
60285         * tests/test-popen.c (popen, pclose): Likewise.
60286         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
60287         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
60288         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
60289         (posix_spawn_file_actions_destroy)
60290         (posix_spawn_file_actions_addclose)
60291         (posix_spawn_file_actions_addopen)
60292         (posix_spawn_file_actions_adddup2): Likewise.
60293         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
60294         * tests/test-pread.c (pread): Likewise.
60295         * tests/test-printf-posix.c (printf): Likewise.
60296         * tests/test-pty.c (openpty, forkpty): Likewise.
60297         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
60298         (random_r): Likewise.
60299         * tests/test-rawmemchr.c (rawmemchr): Likewise.
60300         * tests/test-readlink.c (readlink): Likewise.
60301         * tests/test-remove.c (remove): Likewise.
60302         * tests/test-rename.c (rename): Likewise.
60303         * tests/test-renameat.c (renameat): Likewise.
60304         * tests/test-rmdir.c (rmdir): Likewise.
60305         * tests/test-round1.c (round): Likewise.
60306         * tests/test-roundf1.c (roundf): Likewise.
60307         * tests/test-roundl.c (roundl): Likewise.
60308         * tests/test-setenv.c (setenv): Likewise.
60309         * tests/test-sigaction.c (sigaction): Likewise.
60310         * tests/test-sleep.c (sleep): Likewise.
60311         * tests/test-snprintf.c (snprintf): Likewise.
60312         * tests/test-sprintf-posix.c (sprintf): Likewise.
60313         * tests/test-stat.c (stat): Likewise.
60314         * tests/test-stpncpy.c (stpncpy): Likewise.
60315         * tests/test-strcasestr.c (strcasestr): Likewise.
60316         * tests/test-strchrnul.c (strchrnul): Likewise.
60317         * tests/test-strerror.c (strerror): Likewise.
60318         * tests/test-strsignal.c (strsignal): Likewise.
60319         * tests/test-strstr.c (strstr): Likewise.
60320         * tests/test-strtod.c (strtod): Likewise.
60321         * tests/test-strverscmp.c (strverscmp): Likewise.
60322         * tests/test-symlink.c (symlink): Likewise.
60323         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
60324         * tests/test-times.c (times): Likewise.
60325         * tests/test-trunc1.c (trunc): Likewise.
60326         * tests/test-truncf1.c (truncf): Likewise.
60327         * tests/test-truncl.c (truncl): Likewise.
60328         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
60329         Likewise.
60330         * tests/test-uname.c (uname): Likewise.
60331         * tests/test-unlink.c (unlink): Likewise.
60332         * tests/test-unlinkat.c (unlinkat): Likewise.
60333         * tests/test-unsetenv.c (unsetenv): Likewise.
60334         * tests/test-usleep.c (usleep): Likewise.
60335         * tests/test-utimensat.c (utimensat): Likewise.
60336         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
60337         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
60338         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
60339         * tests/test-vprintf-posix.c (vprintf): Likewise.
60340         * tests/test-vsnprintf.c (vsnprintf): Likewise.
60341         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
60342         * tests/test-wcrtomb.c (wcrtomb): Likewise.
60343         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
60344         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
60345         * tests/test-wcwidth.c (wcwidth): Likewise.
60347         build: pull in conditional headers during GNULIB_POSIXCHECK
60348         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
60349         definitions from any conditionally-included headers.
60350         * lib/stdlib.in.h (includes): Likewise.
60351         * lib/unistd.in.h (includes): Likewise.
60353 2009-12-24  Bruno Haible  <bruno@clisp.org>
60355         * tests/test-argv-iter.c: Include header file being tested immediately
60356         after config.h.
60357         * tests/test-base64.c: Likewise.
60358         * tests/test-flock.c: Likewise.
60359         * tests/test-fsync.c: Likewise.
60360         * tests/test-getdate.c: Likewise.
60361         * tests/test-getndelim2.c: Likewise.
60362         * tests/test-isfinite.c: Likewise.
60363         * tests/test-isinf.c: Likewise.
60364         * tests/test-strerror.c: Likewise.
60365         * tests/test-strsignal.c: Likewise.
60367 2009-12-23  Eric Blake  <ebb9@byu.net>
60369         unistd: work around cygwin bug
60370         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60371         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60372         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60374 2009-12-23  Bruno Haible  <bruno@clisp.org>
60376         localename: More tests.
60377         * tests/test-localename.c (SIZEOF): New macro.
60378         (categories): New variable.
60379         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60380         test_locale_name_default): Add test w.r.t. thread locale.
60381         (test_locale_name_thread): New function.
60382         (main): Invoke it.
60384         localename: Make aware of thread locale.
60385         * lib/localename.h (gl_locale_name_thread): New declaration.
60386         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60387         behaviour with respect to thread locale.
60388         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60389         <langinfo.h>, glthread/lock.h.
60390         (SIZE_BITS): New macro.
60391         (string_hash): New function.
60392         (struct hash_node): New type.
60393         (HASH_TABLE_SIZE): New macro.
60394         (struniq_hash_table, struniq_lock): New variables.
60395         (struniq): New function.
60396         (gl_locale_name_thread): New function.
60397         (gl_locale_name): Invoke it.
60398         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60399         * modules/localename (Depends-on): Add lock.
60400         Reported by Mike Gran <spk121@yahoo.com>.
60402 2009-12-23  Eric Blake  <ebb9@byu.net>
60404         va-args: new module
60405         * modules/va-args: New file.
60406         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60407         * MODULES.html.sh (Core language properties): Mention it.
60409         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60410         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60411         named alias for __attribute__((__unused__)).
60412         * lib/chown.c: Update client.
60413         * lib/fchmodat.c: Likewise.
60414         * lib/fts.c: Likewise.
60415         * lib/getdate.y: Likewise.
60416         * lib/getgroups.c: Likewise.
60417         * lib/getopt.c: Likewise.
60418         * lib/getugroups.c: Likewise.
60419         * lib/mkdir.c: Likewise.
60420         * lib/mkfifo.c: Likewise.
60421         * lib/mkfifoat.c: Likewise.
60422         * lib/mknod.c: Likewise.
60423         * lib/mknodat.c: Likewise.
60424         * lib/readlink.c: Likewise.
60425         * lib/se-context.in.h: Likewise.
60426         * lib/se-selinux.in.h: Likewise.
60427         * lib/sockets.c: Likewise.
60428         * lib/symlink.c: Likewise.
60429         * lib/symlinkat.c: Likewise.
60430         * lib/unicodeio.c: Likewise.
60431         * lib/unistr.h: Likewise.
60432         * tests/test-areadlink.c: Likewise.
60433         * tests/test-areadlinkat.c: Likewise.
60434         * tests/test-filenamecat.c: Likewise.
60435         * tests/test-fseeko.c: Likewise.
60436         * tests/test-ftello.c: Likewise.
60437         * tests/test-getdate.c: Likewise.
60438         * tests/test-getgroups.c: Likewise.
60439         * tests/test-gethostname.c: Likewise.
60440         * tests/test-quotearg.c: Likewise.
60441         * tests/test-version-etc.c: Likewise.
60442         * tests/test-xalloc-die.c: Likewise.
60443         * tests/test-xfprintf-posix.c: Likewise.
60444         * tests/test-xprintf-posix.c: Likewise.
60445         * tests/test-xvasprintf.c: Likewise.
60447         tests: avoid compiler warnings
60448         * tests/test-fcntl.c (main): Delete unused parameters.
60449         * tests/test-freopen-safer.c (main): Likewise.
60450         * tests/test-xalloc-die.c (main): Mark unused parameters.
60451         * tests/test-fseeko.c (main): Likewise.
60452         * tests/test-ftello.c (main): Likewise.
60453         * tests/test-nanosleep.c (main): Avoid declaration warning.
60454         * tests/test-sleep.c (main): Likewise.
60455         * tests/test-unsetenv.c (main): Silence warning about string
60456         literal.
60457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60459 2009-12-23  Bruno Haible  <bruno@clisp.org>
60461         * tests/test-localename.c (test_locale_name): New function, extracted
60462         from main. Also test mixed situations.
60463         (test_locale_name_posix, test_locale_name_environ,
60464         test_locale_name_default): New functions.
60465         (main): Invoke them all.
60466         * modules/localename-tests (configure.ac): Test for newlocale.
60468 2009-12-23  Bruno Haible  <bruno@clisp.org>
60470         unistd: Ensure getcwd gets declared before being overridden.
60471         * lib/unistd.in.h: Conditionally include <io.h>.
60473 2009-12-22  Bruno Haible  <bruno@clisp.org>
60475         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60476         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60477         (gl_WCHAR_H): Invoke it.
60478         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60479         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60480         Reported by Karl Berry <karl@freefriends.org>.
60482 2009-12-22  Eric Blake  <ebb9@byu.net>
60484         math, unistd: avoid redundant includes
60485         * lib/math.in.h (isnan): No need to re-include <math.h>.
60486         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60488         getsubopt: work around cygwin bug
60489         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60490         avoid conflicting with system getsubopt.
60491         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60492         bug.
60494         getopt: synchronize from glibc
60495         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60496         parameter order.  Adjust all callers.
60497         (_getopt_internal_r, main): Adjust quoting in error messages.
60498         Drop considerations for outdated POSIX 1003.2 error message.
60499         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60500         callers.
60501         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60503         test-getopt: test stderr behavior
60504         * modules/getopt-posix-tests (Depends-on): Add dup2.
60505         * tests/test-getopt.c (ASSERT): Avoid stderr.
60506         (main): Move stderr to a temporary file.
60507         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60508         Instead, add parameter to inform caller if output occurred.
60509         (test_getopt): Adjust all existing tests to expect silence, and
60510         add new tests of leading ":".
60511         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60512         glibc shortcomings with leading "-:" or "+:" in optstring.
60513         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60514         Likewise.
60515         * doc/posix-functions/getopt.texi (getopt): Likewise.
60517         test-getopt: enhance test
60518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60519         supports optind=0.
60520         * tests/test-getopt.c (OPTIND_MIN): Move...
60521         * tests/test-getopt.h (OPTIND_MIN): ...here.
60522         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60523         Require that optind=0 works, since modern BSD supports it in
60524         addition to optreset, and since coreutils expects it.
60525         (test_getopt_long_only): New test.
60526         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60527         glibc shortcomings with 'W;', and enforcement of optind=0.
60528         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60529         Likewise.
60531 2009-12-21  Bruno Haible  <bruno@clisp.org>
60533         localename: Improvements for MacOS X and Cygwin.
60534         * lib/localename.h (gl_locale_name_environ): New declaration.
60535         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60536         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60537         (gl_locale_name_posix): Invoke it.
60538         (gl_locale_name_default): Add comments. Use Windows native API also on
60539         Cygwin.
60541 2009-12-21  Bruno Haible  <bruno@clisp.org>
60543         Update list of Win32 locale ids.
60544         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60545         (LANG_SAMI): Renamed from LANG_SAAMI.
60546         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60547         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60548         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60549         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60550         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60551         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60552         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60553         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60554         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60555         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60556         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60557         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60558         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60559         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60560         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60561         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60562         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60563         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60564         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60565         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60566         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60567         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60568         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60569         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60570         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60571         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60572         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60573         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60574         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60575         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60576         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60577         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60578         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60579         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60580         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60581         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60582         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60583         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60584         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60585         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60586         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60587         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60588         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60589         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60590         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60591         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60592         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60593         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60594         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60595         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60596         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60597         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60598         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60599         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60600         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60601         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60602         Add more languages and countries for Sami, Sorbian. Add more countries
60603         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60604         for Pashto. Change country for Syriac, Tswana.
60606 2009-12-21  Eric Blake  <ebb9@byu.net>
60608         test-utimens: avoid spurious failure
60609         * tests/test-chown.h (nap): Factor...
60610         * tests/nap.h: ...into new file.
60611         * tests/test-lchown.h (nap): Avoid duplication.
60612         * tests/test-utimens-common.h (nap): Use shared implementation,
60613         necessary on file systems with 1-second resolution.
60614         * modules/chown-tests (Files): Include new file.
60615         * modules/fdutimensat-tests (Files): Likewise.
60616         * modules/futimens-tests (Files): Likewise.
60617         * modules/lchown-tests (Files): Likewise.
60618         * modules/openat-tests (Files): Likewise.
60619         * modules/utimens-tests (Files): Likewise.
60620         * modules/utimensat-tests (Files): Likewise.
60622 2009-12-19  Eric Blake  <ebb9@byu.net>
60624         futimens, utimensat: work around Linux bug
60625         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60626         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60627         * lib/utimensat.c (rpl_utimensat): Work around it.
60628         * lib/futimens.c (rpl_futimens): Adjust comment.
60630         utimens: work around Linux ctime bug
60631         * lib/utimens.c (detect_ctime_bug): New helper function.
60632         (update_timespec): Differentiate between workaround needed for
60633         this bug vs. what is needed for systems that lack utimensat.
60634         (fdutimens, lutimens): Work around bug.
60636         utimens: check for ctime update
60637         * tests/test-utimens-common.h (check_ctime): Define.
60638         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60639         * tests/test-futimens.h (test_futimens): Likewise.
60640         * tests/test-lutimens.h (test_lutimens): Likewise.
60641         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60642         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60644 2009-12-19  Bruno Haible  <bruno@clisp.org>
60646         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60647         * tests/test-dprintf-posix2.sh: New file.
60648         * tests/test-dprintf-posix2.c: New file.
60649         * modules/dprintf-posix-tests (Files): Add them.
60650         (configure.ac): Check for getrlimit and setrlimit.
60651         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60653 2009-12-19  Bruno Haible  <bruno@clisp.org>
60655         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60656         * tests/test-fprintf-posix3.sh: New file.
60657         * tests/test-fprintf-posix3.c: New file.
60658         * modules/fprintf-posix-tests (Files): Add them.
60659         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60661 2009-12-19  Eric Blake  <ebb9@byu.net>
60663         dirfd: fix prototype
60664         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60665         * lib/dirfd.c (dirfd): Likewise.
60667         canonicalize: reduce memory usage
60668         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60669         allocation to size.
60670         Reported by Solar Designer <solar@openwall.com>.
60672 2009-12-19  Bruno Haible  <bruno@clisp.org>
60674         New module attribute 'Applicability'.
60675         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60676         * gnulib-tool: New option --extract-applicability.
60677         (func_usage): Document it.
60678         (sed_extract_prog): Recognize it.
60679         (func_get_applicability): New function.
60680         (func_import): Generalize handling of 'link-warning' module.
60681         * modules/link-warning (Applicability): New section.
60682         * modules/arg-nonnull (Applicability): New section.
60683         Repoted by Simon Josefsson <simon@josefsson.org>.
60685 2009-12-19  Bruno Haible  <bruno@clisp.org>
60687         fflush: tweak
60688         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60689         * lib/fseeko.c (rpl_fseeko): Likewise.
60691 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60693         * lib/gl_list.h: Fix typo in comment.
60695 2009-12-16  Eric Blake  <ebb9@byu.net>
60697         fcntl: use to simplify other modules
60698         * modules/cloexec (Depends-on): Add fcntl.
60699         * modules/fchdir (Depends-on): Likewise.
60700         * modules/fd-safer-flag (Depends-on): Likewise.
60701         * modules/unistd-safer (Depends-on): Likewise.
60702         * modules/dup3 (configure.ac): Set module indicator.
60703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60704         missing.
60705         * lib/fchdir.c (_gl_register_dup): Fix comment.
60706         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60707         * lib/dup-safer.c (dup_safer): Likewise.
60708         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60709         * lib/dup3.c (dup3): Likewise.
60710         * tests/test-fchdir.c (main): Enhance test.
60711         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60713         fcntl: port portions of fcntl to mingw
60714         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60715         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60716         replacement for mingw.
60717         * modules/fcntl (Description): Update.
60718         (Depends-on): Add dup2.
60719         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60720         * modules/fcntl-h (Makefile.am): Substitute it.
60721         * lib/fcntl.in.h (fcntl): Update declaration.
60722         (F_DUPFD, F_GETFD): New macros, when needed.
60723         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60724         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60725         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60726         we now guarantee.
60728         fcntl: work around cygwin bug in F_DUPFD
60729         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60730         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60731         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60732         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60733         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60735         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60736         * modules/fcntl (Files): List new files.
60737         (configure.ac): Run a test.
60738         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60739         * lib/fcntl.c (rpl_fcntl): Likewise.
60740         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60741         (gl_FCNTL_H): Always replace fcntl.h.
60742         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60743         * lib/fcntl.in.h (fcntl): Declare replacement.
60744         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60745         needed, plus a witness.
60746         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60747         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60748         * tests/test-fcntl.c: New file.
60749         * modules/fcntl-tests: Likewise.
60751         binary-io: avoid potential compilation warning
60752         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60753         directives.
60755         fflush: avoid compilation error on NetBSD
60756         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60757         between off_t and fpos_t, since the latter is sometimes a struct.
60758         * lib/fseeko.c (rpl_fseeko): Likewise.
60759         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60761 2009-12-15  Eric Blake  <ebb9@byu.net>
60763         fcntl-h, stdio, sys_ioctl: fix declarations
60764         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60765         function must not take arguments.
60766         * lib/sys_ioctl.in.h (ioctl): Likewise.
60767         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60768         (open): Add a link warning.
60770 2009-12-15  Jim Meyering  <meyering@redhat.com>
60772         areadlink, areadlink-with-size: relax license to LGPLv2+
60773         * modules/areadlink (License): Relax to LGPLv2+.
60774         * modules/areadlink-with-size (License): Likewise.
60776 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60777             Bruno Haible  <bruno@clisp.org>
60779         *printf: Fix memory leak.
60780         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60781         * lib/vfprintf.c (vfprintf): Likewise.
60782         * lib/dprintf.c (dprintf): Likewise.
60783         * lib/vdprintf.c (vdprintf): Likewise.
60785 2009-12-14  Eric Blake  <ebb9@byu.net>
60787         accept4: adjust module dependencies
60788         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60790         utimens: one more try at avoiding compiler warning
60791         * lib/utimens.c (lutimens): Lower scope of result.
60793 2009-12-13  Bruno Haible  <bruno@clisp.org>
60795         Move the malloc checking from module 'list' to new module 'xlist'.
60796         * modules/xlist: New file.
60797         * lib/gl_xlist.h: New file.
60798         * lib/gl_xlist.c: New file.
60799         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60800         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60801         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60802         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60803         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60804         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60805         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60806         gl_sortedlist_nx_add): New declarations.
60807         (struct gl_list_implementation): Rename and change methods accordingly.
60808         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60809         (gl_list_nx_create): Renamed from gl_list_create.
60810         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60811         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60812         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60813         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60814         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60815         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60816         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60817         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60818         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60819         gl_list_create_empty.
60820         (gl_list_nx_create): Renamed from gl_list_create.
60821         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60822         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60823         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60824         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60825         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60826         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60827         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60828         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60829         * lib/gl_array_list.c: Don't include xalloc.h.
60830         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60831         NULL upon out-of-memory.
60832         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60833         out-of-memory.
60834         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60835         Change return type to 'int'.
60836         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60837         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60838         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60839         upon out-of-memory.
60840         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60841         upon out-of-memory.
60842         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60843         upon out-of-memory.
60844         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60845         upon out-of-memory.
60846         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60847         out-of-memory.
60848         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60849         Update.
60850         (gl_array_list_implementation): Update.
60851         * lib/gl_carray_list.c: Don't include xalloc.h.
60852         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60853         Return NULL upon out-of-memory.
60854         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60855         out-of-memory.
60856         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60857         Change return type to 'int'.
60858         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60859         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60860         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60861         upon out-of-memory.
60862         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60863         upon out-of-memory.
60864         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60865         out-of-memory.
60866         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60867         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60868         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60869         Update.
60870         (gl_carray_list_implementation): Update.
60871         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60872         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60873         gl_linked_create_empty. Return NULL upon out-of-memory.
60874         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60875         out-of-memory.
60876         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60877         Change return type to 'int'. Return -1 upon out-of-memory.
60878         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60879         out-of-memory.
60880         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60881         upon out-of-memory.
60882         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60883         upon out-of-memory.
60884         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60885         NULL upon out-of-memory.
60886         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60887         upon out-of-memory.
60888         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60889         out-of-memory.
60890         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60891         Update.
60892         * lib/gl_linked_list.c: Don't include xalloc.h.
60893         (gl_linked_list_implementation): Update.
60894         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60895         (add_to_bucket): Change return type to 'int'.
60896         (gl_linkedhash_list_implementation): Update.
60897         * lib/gl_anytree_list1.h (free_subtree): New function.
60898         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60899         gl_tree_create_empty. Return NULL upon out-of-memory.
60900         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60901         Change return type to 'int'. Return -1 upon out-of-memory.
60902         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60903         out-of-memory.
60904         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60905         (gl_tree_remove_node): New function, moved here from
60906         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60907         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60908         Update.
60909         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60910         malloc, not xmalloc. Return NULL upon out-of-memory.
60911         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60912         out-of-memory.
60913         (gl_tree_remove_node_from_tree): New function, extracted from
60914         gl_tree_remove_node.
60915         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60916         upon out-of-memory.
60917         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60918         out-of-memory.
60919         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60920         upon out-of-memory.
60921         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60922         upon out-of-memory.
60923         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60924         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60925         not xmalloc. Return NULL upon out-of-memory.
60926         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60927         out-of-memory.
60928         (gl_tree_remove_node_from_tree): New function, extracted from
60929         gl_tree_remove_node.
60930         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60931         upon out-of-memory.
60932         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60933         out-of-memory.
60934         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60935         upon out-of-memory.
60936         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60937         upon out-of-memory.
60938         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60939         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60940         gl_anytree_list1.h before gl_anyavltree_list2.h.
60941         (gl_avltree_list_implementation): Update.
60942         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60943         gl_anytree_list1.h before gl_anyavltree_list2.h.
60944         (gl_rbtree_list_implementation): Update.
60945         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60946         Change return type to 'int'. Return -1 upon out-of-memory. Use
60947         __builtin_expect.
60948         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60949         (gl_avltreehash_list_implementation): Update.
60950         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60951         (gl_rbtreehash_list_implementation): Update.
60952         * modules/array-list (Depends-on): Remove xalloc.
60953         * modules/carray-list (Depends-on): Likewise.
60954         * modules/linked-list (Depends-on): Likewise.
60955         * modules/linkedhash-list (Depends-on): Likewise.
60956         * modules/avltree-list (Depends-on): Likewise.
60957         * modules/rbtree-list (Depends-on): Likewise.
60958         * modules/avltreehash-list (Depends-on): Likewise.
60959         * modules/rbtreehash-list (Depends-on): Likewise.
60961         * modules/xsublist: New file.
60962         * lib/gl_xsublist.h: New file.
60963         * lib/gl_xsublist.c: New file.
60964         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60965         (gl_sublist_nx_create): New declaration.
60966         * lib/gl_sublist.c: Don't include xalloc.h.
60967         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60968         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60969         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60970         Change return type to 'int'. Return -1 upon out-of-memory.
60971         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60972         upon out-of-memory.
60973         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60974         NULL upon out-of-memory.
60975         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60976         upon out-of-memory.
60977         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60978         NULL upon out-of-memory.
60979         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60980         NULL upon out-of-memory.
60981         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60982         upon out-of-memory.
60983         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60984         (gl_sublist_list_implementation): Update.
60985         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60986         upon out-of-memory.
60987         * modules/sublist (Depends-on): Remove xalloc.
60989         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60990         * tests/test-carray_list.c: Likewise.
60991         * tests/test-linked_list.c: Likewise.
60992         * tests/test-linkedhash_list.c: Likewise.
60993         * tests/test-avltree_list.c: Likewise.
60994         * tests/test-rbtree_list.c: Likewise.
60995         * tests/test-avltreehash_list.c: Likewise.
60996         * tests/test-rbtreehash_list.c: Likewise.
60997         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60998         * modules/carray-list-tests (Makefile.am): Likewise.
60999         * modules/linked-list-tests (Makefile.am): Likewise.
61000         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61001         * modules/avltree-list-tests (Makefile.am): Likewise.
61002         * modules/rbtree-list-tests (Makefile.am): Likewise.
61003         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61004         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61006         * NEWS: Mention the changes.
61008         * lib/clean-temp.c: Include gl_xlist.h.
61009         * modules/clean-temp (Depends-on): Add xlist.
61011         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
61012         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
61014         * tests/test-array_oset.c: Include gl_xlist.h.
61015         * modules/array-oset-tests (Depends-on): Add xlist.
61017         Reported by José E. Marchesi <jemarch@gnu.org>.
61019 2009-12-13  Bruno Haible  <bruno@clisp.org>
61021         Move the malloc checking from module 'oset' to new module 'xoset'.
61022         * modules/xoset: New file.
61023         * lib/gl_xoset.h: New file.
61024         * lib/gl_xoset.c: New file.
61025         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
61026         declarations.
61027         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
61028         (struct gl_oset_implementation): Rename and change methods accordingly.
61029         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
61030         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
61031         'int'. Mark as __warn_unused_result__.
61032         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
61033         gl_oset_create_empty.
61034         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
61035         'int'.
61036         * lib/gl_array_oset.c: Don't include xalloc.h.
61037         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
61038         malloc, not xmalloc.
61039         (grow): Change return type to 'int'. Don't call xalloc_die.
61040         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
61041         to 'int'.
61042         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
61043         'int'.
61044         (gl_array_oset_implementation): Update.
61045         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
61046         gl_tree_create_empty.
61047         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
61048         'int'.
61049         * lib/gl_avltree_oset.c: Don't include xalloc.h.
61050         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
61051         xmalloc.
61052         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
61053         not xmalloc.
61054         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
61055         xmalloc.
61056         (gl_avltree_oset_implementation): Update.
61057         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
61058         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
61059         xmalloc.
61060         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
61061         not xmalloc.
61062         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
61063         xmalloc.
61064         (gl_rbtree_oset_implementation): Update.
61065         * modules/array-oset (Depends-on): Remove xalloc.
61066         * modules/avltree-oset (Depends-on): Likewise.
61067         * modules/rbtree-oset (Depends-on): Likewise.
61068         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
61069         * tests/test-avltree_oset.c: Likewise.
61070         * tests/test-rbtree_oset.c: Likewise.
61071         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61072         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
61073         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61074         * NEWS: Mention the change.
61076 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
61078         maint.mk: allow a project to override release-prep commands
61079         * top/maint.mk (alpha, beta, stable): Move release-preparatory
61080         commands into a new rule.
61081         (release-prep): New rule.
61082         (release-prep-hook): New overridable variable.
61084 2009-12-13  Bruno Haible  <bruno@clisp.org>
61086         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
61088 2009-12-13  Jim Meyering  <meyering@redhat.com>
61090         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
61091         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
61093 2009-12-12  Bruno Haible  <bruno@clisp.org>
61095         duplocale: Tweak.
61096         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
61098 2009-12-12  Karl Berry  <karl@gnu.org>
61100         * config/srclist.txt (strtoll.c): tab changes, no more sync.
61102 2009-12-12  Bruno Haible  <bruno@clisp.org>
61104         * m4/po.m4: Undo incorrect untabification.
61106 2009-12-12  Bruno Haible  <bruno@clisp.org>
61108         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
61109         * modules/c-strtod (Depends-on): Add locale.
61110         * modules/c-strtold (Depends-on): Likewise.
61112 2009-12-12  Bruno Haible  <bruno@clisp.org>
61114         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
61116 2009-12-11  Eric Blake  <ebb9@byu.net>
61118         setenv: relax requirement in light of POSIX ruling
61119         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
61120         not NULL.
61121         * tests/test-setenv.c (main): Relax test.
61122         * tests/test-unsetenv.c (main): Likewise.
61123         * doc/posix-functions/setenv.texi (setenv): Document this.
61124         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61126 2009-12-11  Bruno Haible  <bruno@clisp.org>
61128         New module 'fd-safer-flag'.
61129         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
61130         * lib/dup-safer.c (dup_safer_flag): Remove function.
61131         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
61132         * lib/fd-safer.c (fd_safer_flag): Remove function.
61133         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
61134         * modules/cloexec (configure.ac): Drop indicator macro.
61135         * modules/fd-safer-flag: New file.
61136         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
61137         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
61138         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
61140 2009-12-11  Bruno Haible  <bruno@clisp.org>
61142         Tests for module 'nl_langinfo'.
61143         * modules/nl_langinfo-tests: New file.
61144         * tests/test-nl_langinfo.sh: New file.
61145         * tests/test-nl_langinfo.c: New file.
61147         New module 'nl_langinfo'.
61148         * lib/nl_langinfo.c: New file.
61149         * m4/nl_langinfo.m4: New file.
61150         * modules/nl_langinfo: New file.
61151         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
61153 2009-12-11  Bruno Haible  <bruno@clisp.org>
61155         Tests for module 'langinfo'.
61156         * modules/langinfo-tests: New file.
61157         * tests/test-langinfo.c: New file.
61159         New module 'langinfo'.
61160         * lib/langinfo.in.h: New file.
61161         * m4/langinfo_h.m4: New file.
61162         * modules/langinfo: New file.
61163         * doc/posix-headers/langinfo.texi: Mention the new module.
61165 2009-12-11  Bruno Haible  <bruno@clisp.org>
61167         * lib/config.charset: Untabify.
61169 2009-12-11  Bruno Haible  <bruno@clisp.org>
61171         * modules/unistd-safer (configure.ac): Drop indicator macro.
61173 2009-12-11  Bruno Haible  <bruno@clisp.org>
61175         Move pipe2-safer code to its own file.
61176         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
61177         * lib/pipe-safer.c (pipe2_safer): Remove function.
61178         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
61179         (Makefile.am): Add it to lib_SOURCES.
61181 2009-12-10  Bruno Haible  <bruno@clisp.org>
61183         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
61185 2009-12-10  Bruno Haible  <bruno@clisp.org>
61187         Declare which arguments expect non-NULL values, for GCC and clang.
61188         * build-aux/arg-nonnull.h: New file.
61189         * modules/arg-nonnull: New file.
61190         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
61191         (inet_ntop, inet_pton): Use it.
61192         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
61193         (closedir, dirfd, opendir, scandir, alphasort): Use it.
61194         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
61195         (open, openat): Use it.
61196         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
61197         (fnmatch): Use it.
61198         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
61199         (getopt, getopt_long, getopt_long_only): Use it.
61200         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
61201         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
61202         Use it.
61203         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
61204         (iconv_open): Use it.
61205         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
61206         (strtoimax, strtoumax): Use it.
61207         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
61208         (duplocale): Use it.
61209         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
61210         (frexp, frexpl): Use it.
61211         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
61212         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
61213         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
61214         (tsearch, tfind, tdelete, twalk): Use it.
61215         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
61216         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
61217         sigpending): Use it.
61218         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
61219         (posix_spawn, posix_spawnp, posix_spawnattr_init,
61220         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
61221         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
61222         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
61223         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
61224         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
61225         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
61226         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
61227         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
61228         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
61229         Use it.
61230         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
61231         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
61232         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
61233         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
61234         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
61235         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
61236         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
61237         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
61238         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
61239         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
61240         strtoull, unsetenv): Use it.
61241         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
61242         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61243         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61244         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
61245         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
61246         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
61247         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
61248         (strcasecmp, strncasecmp): Use it.
61249         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
61250         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
61251         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
61252         rpl_setsockopt): Use it.
61253         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
61254         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
61255         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
61256         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
61257         (gettimeofday): Use it.
61258         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
61259         (times): Use it.
61260         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
61261         (uname): Use it.
61262         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
61263         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
61264         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
61265         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
61266         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
61267         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
61268         unlinkat, write): Use it.
61269         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
61270         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
61271         * lib/argv-iter.h: Include arg-nonnull.h.
61272         (_ATTRIBUTE_NONNULL_): Remove macro.
61273         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
61274         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
61275         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
61276         optimization.
61277         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
61278         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
61279         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
61280         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
61281         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
61282         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
61283         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
61284         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
61285         * modules/arpa_inet (Depends-on): Add arg-nonnull.
61286         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
61287         * modules/dirent (Depends-on): Add arg-nonnull.
61288         (Makefile.am): Insert arg-nonnull.h into dirent.h.
61289         * modules/fcntl-h (Depends-on): Add arg-nonnull.
61290         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
61291         * modules/fnmatch (Depends-on): Add arg-nonnull.
61292         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
61293         * modules/getopt-posix (Depends-on): Add arg-nonnull.
61294         (Makefile.am): Insert arg-nonnull.h into getopt.h.
61295         * modules/glob (Depends-on): Add arg-nonnull.
61296         (Makefile.am): Insert arg-nonnull.h into glob.h.
61297         * modules/iconv_open (Depends-on): Add arg-nonnull.
61298         (Makefile.am): Insert arg-nonnull.h into iconv.h.
61299         * modules/inttypes (Depends-on): Add arg-nonnull.
61300         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
61301         * modules/locale (Depends-on): Add arg-nonnull.
61302         (Makefile.am): Insert arg-nonnull.h into locale.h.
61303         * modules/math (Depends-on): Add arg-nonnull.
61304         (Makefile.am): Insert arg-nonnull.h into math.h.
61305         * modules/netdb (Depends-on): Add arg-nonnull.
61306         (Makefile.am): Insert arg-nonnull.h into netdb.h.
61307         * modules/search (Depends-on): Add arg-nonnull.
61308         (Makefile.am): Insert arg-nonnull.h into search.h.
61309         * modules/signal (Depends-on): Add arg-nonnull.
61310         (Makefile.am): Insert arg-nonnull.h into signal.h.
61311         * modules/spawn (Depends-on): Add arg-nonnull.
61312         (Makefile.am): Insert arg-nonnull.h into spawn.h.
61313         * modules/stdio (Depends-on): Add arg-nonnull.
61314         (Makefile.am): Insert arg-nonnull.h into stdio.h.
61315         * modules/stdlib (Depends-on): Add arg-nonnull.
61316         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
61317         * modules/string (Depends-on): Add arg-nonnull.
61318         (Makefile.am): Insert arg-nonnull.h into string.h.
61319         * modules/strings (Depends-on): Add arg-nonnull.
61320         (Makefile.am): Insert arg-nonnull.h into strings.h.
61321         * modules/sys_socket (Depends-on): Add arg-nonnull.
61322         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
61323         * modules/sys_stat (Depends-on): Add arg-nonnull.
61324         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
61325         * modules/sys_time (Depends-on): Add arg-nonnull.
61326         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
61327         * modules/sys_times (Depends-on): Add arg-nonnull.
61328         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
61329         * modules/sys_utsname (Depends-on): Add arg-nonnull.
61330         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
61331         * modules/time (Depends-on): Add arg-nonnull.
61332         (Makefile.am): Insert arg-nonnull.h into time.h.
61333         * modules/unistd (Depends-on): Add arg-nonnull.
61334         (Makefile.am): Insert arg-nonnull.h into unistd.h.
61335         * modules/wchar (Depends-on): Add arg-nonnull.
61336         (Makefile.am): Insert arg-nonnull.h into wchar.h.
61337         * modules/argv-iter (Depends-on): Add arg-nonnull.
61338         * tests/test-canonicalize.c (null_ptr): New function.
61339         (main): Use it.
61340         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
61341         (main): Use it.
61342         * tests/test-memmem.c (null_ptr): New function.
61343         (main): Use it.
61344         Reported by Jim Meyering.
61346 2009-12-10  Bruno Haible  <bruno@clisp.org>
61348         Use spaces for indentation, not tabs.
61349         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
61350         * m4/*.m4: Untabify.
61351         * build-aux/*.h: Untabify.
61352         * tests/**/*.[hc]: Untabify.
61353         * README: New section "Indent with spaces, not TABs", based on
61354         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
61355         * NEWS: Mention the change.
61357 2009-12-10  Bruno Haible  <bruno@clisp.org>
61359         pty test: Fix link error.
61360         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61361         test_pty_LDADD.
61363 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61365         * modules/pty: New file.
61366         * modules/pty-tests: New file.
61367         * m4/pty.m4: New file.
61368         * tests/test-pty.c: New file.
61369         * doc/glibc-headers/pty.texi: Modified.
61370         * doc/glibc-functions/forkpty.texi: Modified.
61371         * doc/glibc-functions/openpty.texi: Modified.
61373 2009-12-10  Bruno Haible  <bruno@clisp.org>
61375         Avoid syntax error in C++ mode.
61376         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61378 2009-12-10  Bruno Haible  <bruno@clisp.org>
61380         Use sed with option -e.
61381         * gnulib-tool (func_version, func_emit_copyright_notice,
61382         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61383         option -e to sed.
61384         * modules/link-warning (Makefile.am): Likewise.
61386 2009-12-10  Jim Meyering  <meyering@redhat.com>
61388         mgetgroups: do not write bytes beyond end of malloc'd buffer
61389         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61390         username, we call getgroups with a one-element-shorter buffer,
61391         but still told it the length was original, max_n_groups.
61393 2009-12-09  Eric Blake  <ebb9@byu.net>
61395         cloexec: relax license
61396         * modules/cloexec (Maintainer): Add myself.
61397         (License): Use LGPL, not GPL.
61399         link-warning: optimize generation
61400         * modules/link-warning (Makefile.am): Reduce process usage.
61402 2009-12-09  Bruno Haible  <bruno@clisp.org>
61404         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61405         workaround was added on 2009-11-17.
61407 2009-12-09  Jim Meyering  <meyering@redhat.com>
61408             Bruno Haible  <bruno@clisp.org>
61410         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61411         * modules/link-warning (Makefile.am): Make the comment-removing sed
61412         command more robust in the face of bootstrap-prepended comment lines.
61414 2009-12-09  Bruno Haible  <bruno@clisp.org>
61416         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61417         most one group.
61419 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61420             Bruno Haible  <bruno@clisp.org>
61422         * build-aux/link-warning.h: Add copyright notice.
61423         * modules/link-warning (Makefile.am): Generate link-warning.h from
61424         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61425         * NEWS: Mention change in link-warning module.
61426         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61427         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61428         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61429         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61430         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61431         * modules/math (Makefile.am): Add dependency to math.h.
61432         * modules/search (Makefile.am): Add dependency to search.h.
61433         * modules/signal (Makefile.am): Add dependency to signal.h.
61434         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61435         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61436         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61437         * modules/string (Makefile.am): Add dependency to string.h.
61438         * modules/strings (Makefile.am): Add dependency to strings.h.
61439         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61440         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61441         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61442         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61443         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61444         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61445         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61446         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61447         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61449 2009-12-09  Bruno Haible  <bruno@clisp.org>
61451         fchdir: Optimize away rpl_fstat when possible.
61452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61453         REPLACE_OPEN_DIRECTORY.
61454         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61456 2009-12-09  Bruno Haible  <bruno@clisp.org>
61458         * lib/fchdir.c: Update comment.
61460 2009-12-09  Bruno Haible  <bruno@clisp.org>
61462         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61464 2009-12-08  Eric Blake  <ebb9@byu.net>
61466         fchdir: avoid memory leak on re-registration.
61467         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61469 2009-12-08  Jim Meyering  <meyering@redhat.com>
61471         init.sh: avoid Solaris 10 /bin/sh portability problem
61472         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61473         sourced script:
61474           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61475           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61476           bar
61477         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61478         and two tests used that idiom.
61479         * tests/init.sh: Update suggested usage comments.
61480         (path_prepend_): New function, to be used in place
61481         of the --src-path=DIR option.
61482         (setup_): Move PATH-prepending code into path_prepend_.
61483         * tests/test-pread.sh: Adapt to new usage.
61484         * tests/test-xalloc-die.sh: Likewise.
61486 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61488         * doc/gnulib.texi (Glibc pty.h): Add.
61489         * doc/glibc-functions/forkpty.texi: Add.
61490         * doc/glibc-functions/openpty.texi: Add.
61491         Suggested by Bruno Haible.
61493 2009-12-08  Eric Blake  <ebb9@byu.net>
61495         fchdir: fix logic bugs
61496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61497         * tests/test-fchdir.c (main): Enhance test.
61498         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61499         is in use.
61501         dup2: fix logic bugs
61502         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61503         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61504         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61505         exists.
61506         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61508 2009-12-07  Eric Blake  <ebb9@byu.net>
61510         unlink: fix m4 detection
61511         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61513         unistd-safer: add unit test
61514         * modules/unistd-safer-tests: New file.
61515         * tests/test-dup-safer.c: Likewise.
61516         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61517         * tests/test-dup2.c (setmode): Likewise.
61518         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61520         cloexec: preserve text vs. binary across dup_cloexec
61521         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61522         mode.
61523         * modules/dup2-tests (Depends-on): Add binary-io.
61524         * modules/cloexec-tests (Depends-on): Likewise.
61525         * tests/test-dup2.c (setmode, is_mode): New helpers.
61526         (main): Add tests that translation mode is preserved.
61527         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61528         Reported by Bruno Haible.
61530         mgetgroups: reduce duplicate listings
61531         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61532         resulting array.
61533         * tests/test-chown.h (test_chown): Simplify client.
61534         * tests/test-lchown.h (test_lchown): Likewise.
61536 2009-12-06  Bruno Haible  <bruno@clisp.org>
61538         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61539         value.
61541 2009-12-06  Bruno Haible  <bruno@clisp.org>
61543         * lib/progname.c: Include stdio.h, stdlib.h.
61544         (set_program_name): Reject a NULL argument.
61546 2009-12-05  Eric Blake  <ebb9@byu.net>
61548         pipe2-safer: new module
61549         * modules/pipe2-safer: New file.
61550         * lib/unistd-safer.h (pipe2_safer): New prototype.
61551         * lib/unistd--.h (pipe2): New wrapper.
61552         * lib/pipe-safer.c (pipe2_safer): New function.
61553         * modules/pipe (Depends-on): Add pipe2-safer.
61554         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61556         stdlib-safer: preserve cloexec flag for mkostemp[s]
61557         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61558         fd_safer_flag.
61560         unistd-safer: allow preservation of cloexec status via flag
61561         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61562         prototypes.
61563         * lib/dup-safer.c (dup_safer_flag): New function.
61564         * lib/fd-safer.c (fd_safer_flag): Likewise.
61565         * modules/cloexec (configure.ac): Set witness.
61567         test-dup2: enhance test
61568         * modules/dup2-tests (Depends-on): Add cloexec.
61569         * tests/test-dup2.c (main): Enhance test.
61571         cloexec: add dup_cloexec
61572         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61573         header and comments.
61574         * lib/cloexec.c (set_cloexec_flag): Add comments.
61575         (dup_cloexec): New function, with mingw implementation borrowed
61576         from...
61577         * lib/w32spawn.h (dup_noinherit): ...here.
61578         * modules/execute (Depends-on): Add cloexec.
61579         * modules/pipe (Depends-on): Likewise.
61580         * modules/cloexec (Depends-on): Add dup2.
61581         * modules/cloexec-tests (Files): New file.
61582         * tests/test-cloexec.c: Likewise.
61584         test-xalloc-die: fix test for mingw
61585         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61586         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61587         directory and .exe suffix off argv[0] output.
61589         test-fseeko: fix test for mingw
61590         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61591         than undefining fseek, so test will pass on mingw.
61593 2009-12-05  Bruno Haible  <bruno@clisp.org>
61595         * lib/progname.h (set_program_name): Clarify specification.
61596         * lib/progname.c (set_program_name): Likewise.
61597         Reported by Jim Meyering.
61599 2009-12-05  Jim Meyering  <meyering@redhat.com>
61601         maint.mk: backslash-escape parens in default regexp
61602         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61603         backslash-escape the literal parentheses.
61605         maint.mk: news-date-check: use grep -E
61606         * top/maint.mk (today): Define a Make variable, not a...
61607         (news-date-check): ...shell variable.
61608         (news-date-regexp): Use the Make variable.
61609         Use grep's -E option.  Change the failing diagnostic to mention
61610         the variable, $(news-date-regexp).
61612 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61614         maintainer-makefile: allow customization of NEWS entry format
61615         * top/maint.mk (news-date-regexp): New overridable variable.
61616         (news-date-check): Use it.
61618 2009-12-04  Eric Blake  <ebb9@byu.net>
61620         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61621         * lib/mgetgroups.h (xgetgroups): New prototype.
61622         * lib/mgetgroups.c (xgetgroups): New wrapper.
61623         (mgetgroups): Handle ENOSYS.
61624         * modules/mgetgroups (Depends-on): Add realloc.
61625         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61627         mgetgroups: avoid argument promotion issues with -1
61628         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61629         for invalid gid_t.
61630         * tests/test-chown.h (getegid, test_chown): Likewise.
61631         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61633 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61635         exclude: Fix header file problems.
61636         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61638 2009-12-01  Jim Meyering  <meyering@redhat.com>
61640         fts: fts_open: do not let an empty string cause immediate failure
61641         This is required in support of GNU rm, for which the command
61642         "rm A '' B" must process and remove both A and B, in spite of
61643         the empty string argument.
61644         * lib/fts.c (fts_open): Do not let the presence of an empty string
61645         cause fts_open to fail immediately.  Most fts-using tools must be
61646         able to process all arguments, in order, and can be expected to
61647         diagnose such arguments themselves.
61649 2009-11-30  Eric Blake  <ebb9@byu.net>
61651         utimens: fix compilation error
61652         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61653         Declare variable at right scope.
61655 2009-11-29  Jim Meyering  <meyering@redhat.com>
61657         bootstrap: handle perl-5.11's changed --version output
61658         * build-aux/bootstrap (get_version): Handle perl separately,
61659         since perl-5.11's --version output is different.
61661 2009-11-28  Jim Meyering  <meyering@redhat.com>
61663         userspec: depend on the inttostr module, too
61664         * modules/userspec (Depends-on): Add inttostr.
61666         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61667         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61668         number of MAXUID when it evaluates to (uid_t) -1.
61669         Likewise for group ID.  Reported by Matt McCutchen in
61670         <http://savannah.gnu.org/bugs/?28113>
61672         userspec: reformat to use spaces, not TABs
61673         * lib/userspec.c: Expand TABs to spaces.
61674         Add Emacs' "indent-tabs-mode: nil" hint.
61676 2009-11-27  Eric Blake  <ebb9@byu.net>
61678         getopt-gnu: flush out another BSD bug
61679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61680         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61681         flush out BSD bug.
61682         * tests/test-getopt.h (test_getopt): End lists with NULL.
61683         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61684         (test_getopt_long_posix): Enhance test.
61685         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61686         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61687         getopt-gnu.
61688         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61689         Likewise.
61691 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61693         * modules/idpriv-droptemp-tests (Notice): Fix text.
61695 2009-11-27  Jim Meyering  <meyering@redhat.com>
61697         test-xalloc-die: avoid spurious failure due to libtool argv difference
61698         In a libtool-enabled project, this test would fail due to a difference
61699         in the emitted program name, e.g.,
61700         -test-xalloc-die: memory exhausted
61701         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61702         Use program to avoid that.
61703         * modules/xalloc-die-tests (Depends-on): Add progname.
61704         * tests/test-xalloc-die.c: Include progname.h".
61705         (program_name): Remove decl.
61706         (main): Call set_program_name.
61707         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61709 2009-11-26  Richard Jones  <rjones@redhat.com>
61711         w32sock: leave win32 error in place.
61712         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61714 2009-11-26  Eric Blake  <ebb9@byu.net>
61716         init.sh: suggest to use skip_ and fail_ functions in comments
61717         * tests/init.sh: Add a sentence.
61719 2009-11-25  Bruno Haible  <bruno@clisp.org>
61721         init.sh: add documentation in comments
61722         * tests/init.sh: Add some developer and user documentation.
61724 2009-11-26  Jim Meyering  <meyering@redhat.com>
61726         init.sh: accommodate even those who specify bogus srcdir manually
61727         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61728         configure-time tests to be sanitized, so that there is no need to
61729         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61730         (with no double quotes) suffices.  However, since tests may be
61731         invoked manually, and since you may explicitly set srcdir to the
61732         name of a directory containing spaces, do quote its uses here.
61733         * tests/test-pread.sh: Likewise.
61734         Suggested by Bruno Haible.
61736         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61737         * tests/test-pread.sh: Write no data into the pipe, because
61738         test-pread actually reads none.  This avoids a diagnostic,
61739         "bash: echo: write error: Broken pipe", that arises in the unusual
61740         event something is ignoring SIGPIPE, and might be interpreted
61741         as some sort of failure.  Reported by Bruno Haible.
61743 2009-11-25  Jim Meyering  <meyering@redhat.com>
61745         test-pread: cover failure with ESPIPE and EINVAL
61746         * tests/test-pread.c (main): Test for failure, too.
61747         * tests/test-pread.sh: Invoke with stdin on a pipe.
61748         Suggested by Eric Blake.
61750         pread: improvement and fix
61751         * modules/pread (Depends-on): Depend on lseek, for portability to
61752         e.g., mingw.  Suggested by Eric Blake.
61753         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61755         unistd.in.h: correct declaration of pread
61756         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61757         Reported by Richard W.M. Jones.
61759         test-pread.sh: distribute the test script
61760         * modules/pread-tests (Files): Include test-pread.sh.
61762         test-pread.sh: clean up
61763         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61764         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61765         That is unnecessary, since it's always ".".
61766         Suggestion from Eric Blake.
61768         test-pread.sh: make executable
61769         * tests/test-pread.sh: Set executable bit.
61770         Reported by Eric Blake.
61772         correct typo in test-pread.sh
61773         * tests/test-pread.sh: Add #! line.
61775         test pread
61776         * tests/test-pread.c: New file.
61777         * tests/test-pread.sh: Likewise.
61778         * modules/pread-tests: Likewise.
61780         pread: new module
61781         * modules/pread: New file.
61782         * lib/unistd.in.h (pread): Define/declare.
61783         * lib/pread.c (pread): New file.
61784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61785         * modules/unistd (Makefile.am): Substitute witnesses.
61786         * doc/posix-functions/pread.texi (pread): Update.
61787         * MODULES.html.sh: Add pread.
61789 2009-11-25  Jim Meyering  <meyering@redhat.com>
61791         tests/init.sh: new file to be used via most *.sh tests
61792         * tests/init.sh: New file.
61794 2009-11-25  Eric Blake  <ebb9@byu.net>
61796         utimens: work around older Linux failure with symlinks
61797         * lib/utimens.c (lutimensat_works_really): New variable.
61798         (fdutimens, lutimens): Use it to manage kernels that support
61799         nanosecond times on files, but not on symlinks.
61800         Reported by Ondřej Vašík.
61802         utimes: fix configure grammar
61803         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61805 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61807         regex: Fix fastmap for multibyte character ranges.
61808         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61809         characters when a multibyte character range is included.
61811 2009-11-22  Andy Wingo  <wingo@pobox.com>
61813         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61814         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61816 2009-11-24  Bruno Haible  <bruno@clisp.org>
61818         doc: Most *_l functions exist in MacOS X 10.5.
61819         * doc/posix-functions/duplocale.texi: Update platforms list.
61820         * doc/posix-functions/freelocale.texi: Likewise.
61821         * doc/posix-functions/newlocale.texi: Likewise.
61822         * doc/posix-functions/uselocale.texi: Likewise.
61823         * doc/posix-functions/isalnum_l.texi: Likewise.
61824         * doc/posix-functions/isalpha_l.texi: Likewise.
61825         * doc/posix-functions/isblank_l.texi: Likewise.
61826         * doc/posix-functions/iscntrl_l.texi: Likewise.
61827         * doc/posix-functions/isdigit_l.texi: Likewise.
61828         * doc/posix-functions/isgraph_l.texi: Likewise.
61829         * doc/posix-functions/islower_l.texi: Likewise.
61830         * doc/posix-functions/isprint_l.texi: Likewise.
61831         * doc/posix-functions/ispunct_l.texi: Likewise.
61832         * doc/posix-functions/isspace_l.texi: Likewise.
61833         * doc/posix-functions/isupper_l.texi: Likewise.
61834         * doc/posix-functions/iswalnum_l.texi: Likewise.
61835         * doc/posix-functions/iswalpha_l.texi: Likewise.
61836         * doc/posix-functions/iswblank_l.texi: Likewise.
61837         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61838         * doc/posix-functions/iswctype_l.texi: Likewise.
61839         * doc/posix-functions/iswdigit_l.texi: Likewise.
61840         * doc/posix-functions/iswgraph_l.texi: Likewise.
61841         * doc/posix-functions/iswlower_l.texi: Likewise.
61842         * doc/posix-functions/iswprint_l.texi: Likewise.
61843         * doc/posix-functions/iswpunct_l.texi: Likewise.
61844         * doc/posix-functions/iswspace_l.texi: Likewise.
61845         * doc/posix-functions/iswupper_l.texi: Likewise.
61846         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61847         * doc/posix-functions/isxdigit_l.texi: Likewise.
61848         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61849         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61850         * doc/posix-functions/strcoll_l.texi: Likewise.
61851         * doc/posix-functions/strfmon_l.texi: Likewise.
61852         * doc/posix-functions/strftime_l.texi: Likewise.
61853         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61854         * doc/posix-functions/strxfrm_l.texi: Likewise.
61855         * doc/posix-functions/tolower_l.texi: Likewise.
61856         * doc/posix-functions/toupper_l.texi: Likewise.
61857         * doc/posix-functions/towctrans_l.texi: Likewise.
61858         * doc/posix-functions/towlower_l.texi: Likewise.
61859         * doc/posix-functions/towupper_l.texi: Likewise.
61860         * doc/posix-functions/wcscoll_l.texi: Likewise.
61861         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61862         * doc/posix-functions/wctrans_l.texi: Likewise.
61863         * doc/posix-functions/wctype_l.texi: Likewise.
61864         * doc/glibc-functions/strptime_l.texi: Likewise.
61865         * doc/glibc-functions/strtod_l.texi: Likewise.
61866         * doc/glibc-functions/strtof_l.texi: Likewise.
61867         * doc/glibc-functions/strtol_l.texi: Likewise.
61868         * doc/glibc-functions/strtold_l.texi: Likewise.
61869         * doc/glibc-functions/strtoll_l.texi: Likewise.
61870         * doc/glibc-functions/strtoul_l.texi: Likewise.
61871         * doc/glibc-functions/strtoull_l.texi: Likewise.
61872         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61873         * doc/glibc-functions/wcstod_l.texi: Likewise.
61874         * doc/glibc-functions/wcstof_l.texi: Likewise.
61875         * doc/glibc-functions/wcstol_l.texi: Likewise.
61876         * doc/glibc-functions/wcstold_l.texi: Likewise.
61877         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61878         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61879         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61881 2009-11-24  Bruno Haible  <bruno@clisp.org>
61883         duplocale: Fix logic bug.
61884         * lib/duplocale.c: Don't include <langinfo.h>.
61885         (_NL_LOCALE_NAME): Remove macro.
61886         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61887         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61889 2009-11-23  Jim Meyering  <meyering@redhat.com>
61891         test-update-copyright: don't hard-code /usr/bin/perl
61892         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61893         perl to print the current year.  Gilles Espinasse reported that
61894         the replaced use of perl was hard-coded as /usr/bin/perl.
61896 2009-11-23  Bruno Haible  <bruno@clisp.org>
61898         duplocale: Add support for glibc 2.3.x.
61899         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61901 2009-11-22  Bruno Haible  <bruno@clisp.org>
61903         vasnprintf: Tiny optimization.
61904         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61905         MacOS X.
61907 2009-11-22  Bruno Haible  <bruno@clisp.org>
61909         Tests for module 'duplocale'.
61910         * modules/duplocale-tests: New file.
61911         * tests/test-duplocale.c: New file.
61913         New module 'duplocale'.
61914         * m4/duplocale.m4: New file.
61915         * lib/locale.in.h (duplocale): New declaration.
61916         * lib/duplocale.c: New file.
61917         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61918         gl_LOCALE_H_DEFAULTS): New macros.
61919         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61920         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61921         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61922         REPLACE_DUPLOCALE.
61923         * modules/duplocale: New file.
61924         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61926 2009-11-22  Bruno Haible  <bruno@clisp.org>
61928         * modules/locale-tests (configure.ac): Test for newlocale function.
61929         * tests/test-locale.c: When the system has extended locale functions,
61930         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61932         locale: Make locale_t available when possible.
61933         * lib/locale.in.h: Include <xlocale.h> when it exists.
61934         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61935         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61936         * modules/locale (Depends-on): Add extensions.
61937         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61938         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61940 2009-11-22  Bruno Haible  <bruno@clisp.org>
61942         Add comments.
61943         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61944         invocation.
61945         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61946         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61947         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61949 2009-11-22  Bruno Haible  <bruno@clisp.org>
61951         error: account for the possibility of freopen (stdout).
61952         * lib/error.c: Include <unistd.h>.
61953         (flush_stdout): New function, extracted from error and error_at_line.
61954         Determine stdout's fd dynamically.
61955         (error, error_at_line): Invoke flush_stdout.
61956         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61957         * modules/error (Depends-on): Add unistd.
61959 2009-11-22  Bruno Haible  <bruno@clisp.org>
61961         diffseq: Add comment.
61962         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61964 2009-11-22  Jim Meyering  <meyering@redhat.com>
61966         c-stack: avoid defining an unused static function
61967         * lib/c-stack.c (find_stack_direction): Do not define this function
61968         when it will not be used.
61970         diffseq: avoid spurious gcc warnings
61971         * lib/diffseq.h (IF_LINT2): Define.
61972         (compareseq): Use it to initialize two members of "part".
61973         This avoids two used-uninitialized warnings.
61975 2009-11-21  Jim Meyering  <meyering@redhat.com>
61977         c-stack: avoid "ignoring return value of `write'" warning
61978         * lib/c-stack.c: Include "ignore-value.h".
61979         (die): Explicitly ignore each write return value.
61980         * modules/c-stack (Depends-on): Add ignore-value.
61982 2009-11-21  Bruno Haible  <bruno@clisp.org>
61984         diffseq: reduce scope of variable 'best'.
61985         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61986         variable, earlier used for two different purposes.
61988 2009-11-21  Jim Meyering  <meyering@redhat.com>
61990         diffseq: remove useless assignment to "best"
61991         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61992         assignment.  At that point "best" is already guaranteed to be zero.
61994 2009-11-20  Eric Blake  <ebb9@byu.net>
61996         build: mention ftp redirector in release announcements
61997         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61998         values that used to come from cfg.mk; mention FTP redirect URL.
61999         * build-aux/announce-gen: Mention the mirror list.
62000         Suggested by Karl Berry.
62002         nanosleep: improve port to mingw
62003         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
62004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
62005         LIB_NANOSLEEP, but only when needed.
62006         * modules/select (Link): Document LIBSOCKET.
62007         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
62008         enough.
62010         nanosleep: work around cygwin bug
62011         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
62012         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
62013         bug.
62014         (getnow): Delete, not needed.
62015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
62016         LIB_CLOCK_GETTIME.
62017         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
62018         clock-time, gettime.
62019         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
62020         bug.
62021         * modules/nanosleep-tests: New test.
62022         * tests/test-nanosleep.c: New file.
62024         sleep: work around cygwin bug
62025         * lib/sleep.c (rpl_sleep): Work around the bug.
62026         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
62027         (gl_PREREQ_SLEEP): Delete unused macro.
62028         * modules/sleep (Depends-on): Add verify.
62029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62030         * modules/unistd (Makefile.am): Substitute witness.
62031         * lib/unistd.in.h (sleep): Update prototype.
62032         * doc/posix-functions/sleep.texi (sleep): Document the bug.
62033         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
62034         * modules/sleep-tests (Depends-on): Check for alarm.
62036 2009-11-20  Jim Meyering  <meyering@redhat.com>
62038         maint.mk: improve sc_prohibit_magic_number_exit
62039         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
62040         so it does not match uses like System.exit(1).
62041         Add comments showing how to correct all offenders.
62043 2009-11-19  Eric Blake  <ebb9@byu.net>
62045         xalloc-die-tests: add missing library
62046         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
62048         test-xvasprintf: silence compiler warnings
62049         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
62050         empty string from gcc.
62052 2009-11-19  Jim Meyering  <meyering@redhat.com>
62054         xfreopen: new module, from coreutils
62055         * modules/xfreopen: New module.
62056         * lib/xfreopen.c: New file.
62057         * lib/xfreopen.h: New file.
62058         * MODULES.html.sh (File stream based Input/Output"): Add it.
62060 2009-11-19  Eric Blake  <ebb9@byu.net>
62062         manywarnings: depend on warnings
62063         * modules/manywarnings (Depends-on): Add warnings.
62065         build: avoid compiler warnings
62066         * lib/select.c (rpl_select): Delete unused variable.
62067         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
62069 2009-11-18  Eric Blake  <ebb9@byu.net>
62071         tests: avoid false negative with --with-packager
62072         * tests/test-version-etc.sh: Discard packager information.
62073         * tests/test-argp-version-etc-1.sh: Likewise.
62074         Reported by Mike Frysinger.
62076         utimens: fix regression on Solaris
62077         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
62078         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
62079         can only change fd timestamps via futimesat.  Instead, use an
62080         additional witness macro to avoid BSD bug.
62081         Reported by Jim Meyering.
62083 2009-11-17  Eric Blake  <ebb9@byu.net>
62085         usleep: use it to simplify tests
62086         * modules/stat-time-tests (Depends-on): Add usleep.
62087         (configure.ac): Drop usleep check.
62088         * modules/chown-tests (Depends-on, configure.ac): Likewise.
62089         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
62090         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
62091         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
62092         * modules/openat-tests (Depends-on, configure.ac): Likewise.
62093         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
62094         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
62095         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
62096         Likewise.
62097         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
62098         * tests/test-lchown.h (nap): Likewise.
62099         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
62100         * tests/test-stat-time.c (nap): Likewise.
62101         * tests/test-utimens-common.h (nap): Update comments.
62103         usleep: new module
62104         * modules/usleep: New file.
62105         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
62106         * lib/usleep.c (usleep): Likewise.
62107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
62108         * modules/unistd (Makefile.am): Substitute witnesses.
62109         * lib/unistd.in.h (usleep): Add declaration.
62110         * doc/pastposix-functions/usleep.texi (usleep): Document this.
62111         * MODULES.html.sh (Date and time): Likewise.
62112         * modules/usleep-tests (Depends-on): New test.
62113         * tests/test-usleep.c: New file.
62115         chown: work around OpenBSD bug
62116         * lib/chown.c (rpl_chown): Work around the bug.
62117         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
62118         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
62119         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
62120         * modules/chown (Depends-on): Add stdbool.
62121         * modules/lchown (Depends-on): Likewise.
62122         * doc/posix-functions/chown.texi (chown): Document the bug.
62123         * doc/posix-functions/lchown.texi (lchown): Likewise.
62124         * tests/test-lchown.h (test_chown): Relax test.
62126         mkstemp: avoid conflict with C++ keyword template
62127         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
62128         * lib/mkostemp.c (mkostemp): Likewise.
62129         * lib/mkostemps.c (mkostemps): Likewise.
62130         * lib/mkstemp.c (mkstemp): Likewise.
62131         * lib/mkstemps.c (mkstemps): Likewise.
62133         xalloc-die-tests: optimize
62134         * tests/test-xalloc-die.sh: Reduce number of processes.
62136 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62138         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
62139         patch from ludo@gnu.org (Ludovic Courtès).
62141 2009-11-17  Jim Meyering  <meyering@redhat.com>
62143         version-etc: use proper license string
62144         * modules/version-etc (License): Use LGPL, not LGPLv3+.
62145         * modules/version-etc-fsf: Likewise.
62147 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62149         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
62150         printed to stdout.  Deal with EOL differences.
62152 2009-11-17  Eric Blake  <ebb9@byu.net>
62154         unsetenv: work around Solaris bug
62155         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
62156         * lib/unsetenv.c (rpl_unsetenv): Work around it.
62157         Reported by Jim Meyering.
62159         vasnprintf: avoid compiler warnings
62160         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
62161         variables.
62162         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
62164 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62166         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
62167         settings since xalloc-die is no longer the self test,
62168         xalloc-die.sh is.
62170 2009-11-17  Jim Meyering  <meyering@redhat.com>
62172         test-xalloc-die.sh: make the code agree with the commit log
62173         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
62174         at the end, just in case you happen to have a test-xalloc-die
62175         program in some other PATH directory.
62177         test-xalloc-die.sh: fix a portability bug
62178         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
62179         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
62180         Otherwise, argv[0] (as often seen in diagnostics) would be too
62181         system-dependent, sometimes with, and sometimes without the leading "./".
62183         version-etc-fsf: relax license to LGPLv3+
62184         * modules/version-etc-fsf (License): Relax license.
62186 2009-11-16  Eric Blake  <ebb9@byu.net>
62188         xalloc-die-tests: avoid printing null pointer
62189         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
62190         shell script.
62191         * tests/test-xalloc-die.c (program_name): Declare.
62192         * tests/test-xalloc-die.sh (tmpfiles): New file.
62194         setenv, unsetenv: work around various bugs
62195         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
62196         (setenv) [HAVE_SETENV]: Work around bugs.
62197         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
62198         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
62199         for bugs.
62200         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
62201         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
62202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
62203         * modules/stdlib (Makefile.am): Update substitutions.
62204         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
62205         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
62206         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
62207         * modules/setenv-tests: New test.
62208         * modules/unsetenv-tests: Likewise.
62209         * tests/test-setenv.c: New file.
62210         * tests/test-unsetenv.c: Likewise.
62212 2009-11-16  Jim Meyering  <meyering@redhat.com>
62214         version-etc: relax license to LGPLv3+
62215         * modules/version-etc (License): Relax license.
62217         better AC_REQUIRE expanded-before-required-warning avoidance
62218         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
62219         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
62220         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
62221         which is no longer needed.
62223 2009-11-16  Eric Blake  <ebb9@byu.net>
62225         test-freading: clean up temporary file
62226         * tests/test-freading.c (main): Remove file on success, and use
62227         ASSERT more liberally.
62228         Reported by Jim Meyering.
62230 2009-11-16  Jim Meyering  <meyering@redhat.com>
62232         avoid new AC_REQUIRE expanded-before-required warnings
62233         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
62234         merely using it.
62235         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
62236         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
62238 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62240         * tests/test-xalloc-die.c: New file.
62241         * modules/xalloc-die-tests: New file.
62242         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
62243         XFAIL_TESTS so it can be appended by modules.
62245 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62247         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
62248         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
62250 2009-11-14  Eric Blake  <ebb9@byu.net>
62252         fnmatch: avoid compiler warning
62253         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
62254         to silence compiler warning about mismatch signedness in ?:.
62255         Reported by Robert Millan.
62257         intprops: add double-inclusion guard
62258         * lib/intprops.h: Allow idempotent includes.
62259         Suggested by Bruce Korb.
62261         openat: detect Solaris fchownat bug
62262         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
62263         penalizing glibc chownat when only lchownat is broken.
62264         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
62265         trailing slash bugs.
62266         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
62267         * modules/openat-tests (Files): Include more files.
62268         (Depends-on): Add mgetgroups, sleep, stat-time.
62269         (configure.ac): Add additional checks.
62270         (Makefile.am): Build new test.
62271         * tests/test-fchownat.c: New file.
62273         lchown: detect Solaris and FreeBSD bug
62274         * lib/lchown.c (rpl_lchown): Work around bug.
62275         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
62276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62277         * modules/unistd (Makefile.am): Populate it.
62278         * lib/unistd.in.h (lchown): Update declaration.
62279         * doc/posix-functions/lchown.texi (lchown): Document the bug.
62280         * modules/lchown-tests: New file.
62281         * tests/test-lchown.h (test_lchown): Likewise.
62282         * tests/test-lchown.c (main): Likewise.
62284         chown: detect Solaris and FreeBSD bug
62285         * lib/chown.c (rpl_chown): Work around bug.
62286         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
62287         (gl_PREREQ_CHOWN): Delete.
62288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62289         * modules/unistd (Makefile.am): Populate it.
62290         * lib/unistd.in.h (chown): Update declaration.
62291         * lib/lchown.c (chown): Update client.
62292         * modules/lchown (Depends-on): Add lstat.
62293         * doc/posix-functions/chown.texi (chown): Document the bug.
62294         * doc/posix-functions/getgroups.texi (getgroups): Document
62295         getgroups pitfall.
62296         * modules/chown-tests: New file.
62297         * tests/test-chown.h (test_chown): Likewise.
62298         * tests/test-chown.c (main): Likewise.
62300 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
62302         gnulib-tool: correctly detect absence of m4 directories
62303         * gnulib-tool: Avoid extra newline on data passed to wc -l.
62305 2009-11-14  Jim Meyering  <meyering@redhat.com>
62307         maint.mk: Prohibit inclusion of "xalloc.h" without use.
62308         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62310 2009-11-14  John W. Eaton  <jwe@gnu.org>
62312         strftime.h: wrap function declaration in extern "C" block
62313         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
62315 2009-11-13  Eric Blake  <ebb9@byu.net>
62317         getgroups: avoid compiler warning
62318         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
62320         getgroups: work around FreeBSD bug
62321         * lib/getgroups.c (rpl_getgroups): Work around the bug.
62322         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
62323         * doc/posix-functions/getgroups.texi (getgroups): Document it.
62324         * tests/test-getgroups.c (main): Fix buffer overrun.
62326         getgroups: avoid compilation failure
62327         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
62328         * modules/getgroups (Depends-on): Add stdint.
62330 2009-11-13  Jim Meyering  <meyering@redhat.com>
62332         test-getgroups: avoid compilation failure
62333         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
62335 2009-11-13  Eric Blake  <ebb9@byu.net>
62337         mgetgroups: new module, taken from coreutils
62338         * modules/mgetgroups: New file.
62339         * lib/mgetgroups.h: Likewise.
62340         * lib/mgetgroups.c (mgetgroups): Likewise.
62341         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
62342         * MODULES.html.sh (Users and groups): Mention it.
62344         getgroups: don't expose GETGROUPS_T to user
62345         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
62346         an element at a time if GETGROUPS_T is wrong size.
62347         * lib/getugroups.h (getugroups): Change signature.
62348         * lib/unistd.in.h (getgroups): Likewise.
62349         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
62350         signature needs fixing.
62351         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
62352         AC_TYPE_GETGROUPS.
62353         * modules/group-member (Depends-on): Add getgroups.
62354         * lib/group-member.c (group_info, get_group_info): Use gid_t.
62355         (group_member): Rely on getgroups replacement.
62356         * lib/getugroups.c (getugroups): Use gid_t.
62357         * tests/test-getgroups.c (main): Likewise.
62358         * NEWS: Mention the signature change.
62359         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62360         problem with signature.
62361         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62362         GETGROUPS_T is still useful for setgroups.
62364         getgroups, getugroups: provide stubs for mingw
62365         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62366         * lib/getugroups.c (getugroups): Likewise.
62367         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62368         function.  Modernize replacement scheme.
62369         (gl_PREREQ_GETGROUPS): Delete.
62370         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62371         * modules/getgroups (configure.ac): Declare witness.
62372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62373         * modules/unistd (Depends-on): Substitute witness.
62374         * lib/unistd.in.h (getgroups): Declare replacement.
62376         getgroups: avoid calling exit
62377         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62378         drop xalloc.
62379         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62380         dependencies.
62381         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62382         exiting, in the rare case of malloc failure.
62384         getgroups: fix logic error
62385         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62386         has more than 20 groups.
62387         * modules/getgroups-tests: New test.
62388         * tests/test-getgroups.c: New file.
62390 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62392         * tests/test-base64.c: Improve.
62394 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62396         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62397         Blake <ebb9@byu.net>.
62399 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62401         * tests/test-xvasprintf.c: Add %s%s related checks.
62403 2009-11-12  Eric Blake  <ebb9@byu.net>
62405         version-etc: match standards.texi style
62406         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62407         and use <> only for URLs.
62409 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62411         fts: do not fail on a submount during traversal
62412         * lib/fts.c (fts_build): Read the stat info again after opening
62413         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62414         Original report at http://bugzilla.redhat.com/501848.
62416 2009-11-12  Jim Meyering  <meyering@redhat.com>
62418         bootstrap: sync from coreutils
62419         * build-aux/bootstrap (bootstrap_epilogue): New function.
62420         Use git_modules_config in one more place.  This make bootstrap's
62421         --gnulib-srcdir option more useful for testing.
62423         bootstrap: generalize autoheader check
62424         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62425         AC_CONFIG_HEADERS.
62427 2009-11-11  Eric Blake  <ebb9@byu.net>
62429         mkfifoat: use new modules for Solaris and BSD bugs
62430         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62431         * lib/mkfifoat.c (mknodat): Split...
62432         * lib/mknodat.c (mknodat): ...into new file.
62433         * modules/mkfifoat (Files): Ship new file.
62434         (Depends-on): Add mkfifo, mknod.
62435         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62436         (Depends-on): Add symlink.
62437         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62438         redundant with test_mkfifo.h.
62439         (do_mkfifoat, do_mknodat): New helpers.
62441         mknod: new module
62442         * modules/mknod: New file.
62443         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62444         * lib/mknod.c (mknod): Likewise.
62445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62446         defaults.
62447         * modules/sys_stat (Makefile.am): Substitute them.
62448         * lib/sys_stat.in.h (mknod): Declare replacement.
62449         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62450         Document it.
62451         * doc/posix-functions/mknod.texi (mknod): Likewise.
62452         * modules/mknod-tests: New test.
62453         * tests/test-mknod.c: Likewise.
62455         mkfifo: new module
62456         * modules/mkfifo: New file.
62457         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62458         * lib/mkfifo.c (mkfifo): Likewise.
62459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62460         defaults.
62461         * modules/sys_stat (Makefile.am): Substitute them.
62462         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62463         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62464         Document it.
62465         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62466         * modules/mkfifo-tests: New test.
62467         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62468         from test-mkfifoat.c.
62469         * tests/test-mkfifo.c: New file.
62471         readlink: detect FreeBSD bug
62472         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62473         slash on symlink.
62474         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62475         * tests/test-readlink.h (test_readlink): Enhance test.
62477         symlink: detect FreeBSD bug
62478         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62479         slash on symlink.
62480         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62481         * tests/test-symlink.h (test_symlink): Enhance test.
62483 2009-11-10  Eric Blake  <ebb9@byu.net>
62485         link: detect FreeBSD bug
62486         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62487         symlink.
62488         * doc/posix-functions/link.texi (link): Document the bug.
62489         * tests/test-link.h (test_link): Enhance test.
62490         * tests/test-linkat.c (main): Update caller.
62492         unlink, remove: detect FreeBSD bug
62493         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62494         slash on symlink.
62495         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62496         * doc/posix-functions/remove.texi (remove): Likewise.
62497         * tests/test-unlink.h (test_unlink): Enhance test.
62498         * tests/test-remove.c (main): Likewise.
62500 2009-11-09  Eric Blake  <ebb9@byu.net>
62502         rename: detect FreeBSD bug
62503         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62504         slash on symlink.
62505         * modules/renameat-tests (Depends-on): Add filenamecat.
62506         * tests/test-rename.h (test_rename): Allow one more errno.
62507         * tests/test-renameat.c (main): Likewise.
62508         * doc/posix-functions/rename.texi (rename): Document the bug.
62510         open: detect FreeBSD bug
62511         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62512         symlink.
62513         * doc/posix-functions/open.texi (open): Document the bug.
62514         * doc/posix-functions/utimes.texi (utimes): Likewise.
62515         * tests/test-open.h (test_open): Add parameters, and test symlink
62516         handling.
62517         * tests/test-open.c (main): Adjust caller.
62518         * tests/test-fcntl-safer.c (main): Likewise.
62519         * modules/open-tests (Depends-on): Add stdbool, symlink.
62520         * modules/fcntl-safer-tests (Depends-on): Likewise.
62521         * tests/test-openat.c (main): Add test-open tests.
62523         stat: detect FreeBSD bug
62524         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62525         symlink.
62526         * doc/posix-functions/stat.texi (stat): Document the bug.
62527         * tests/test-stat.h (test_stat_func): Add argument.
62528         * tests/test-stat.c (main): Adjust caller.
62529         * tests/test-fstatat.c (main): Likewise.
62530         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62531         Reported by Jim Meyering.
62533 2009-11-09  James Youngman  <jay@gnu.org>
62535         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62536         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62538 2009-11-08  Jim Meyering  <meyering@redhat.com>
62540         utimens: remove invalid futimesat call
62541         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62542         It used the file descriptor of the target file as the DIR_FD
62543         parameter and NULL as the file name.  That caused failure with
62544         errno == EFAULT on FreeBSD-8.0-rc2
62546 2009-11-07  Eric Blake  <ebb9@byu.net>
62548         fflush, freadseek: use fseeko, not fseek
62549         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62550         (clear_ungetc_buffer): Avoid potential problems on large files.
62551         * lib/freadseek.c (freadseek): Likewise.
62552         * modules/freadseek (Depends-on): Add fseeko.
62553         * modules/fseek (configure.ac): Set a witness.
62554         * tests/test-fflush.c (main): Use fseeko.
62555         * tests/test-fpurge.c (fseek): Disable link warning.
62556         * tests/test-freadable.c (fseek): Likewise.
62557         * tests/test-freading.c (fseek): Likewise.
62558         * tests/test-fseeko.c (fseek): Likewise.
62559         * tests/test-ftell.c (fseek): Likewise.
62560         * tests/test-ftello.c (fseek): Likewise.
62561         * tests/test-fwritable.c (fseek): Likewise.
62562         * tests/test-fwriting.c (fseek): Likewise.
62564 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62566         * modules/memchr (Depends-on): Drop getpagesize dependency.
62568 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62570         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62571         Reported by Ludovic Courtès.
62572         * build-aux/pmccabe2html: Improve example usage.
62573         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62575 2009-11-06  Jim Meyering  <meyering@redhat.com>
62577         do-release-commit-and-tag: New module.
62578         Automate the release-commit and tag process.
62579         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62580         * modules/do-release-commit-and-tag: New file.
62581         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62583 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62585         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62586         because test-select.c uses inet_pton.
62588 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62590         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62591         GETADDRINFO_LIB.  Bump serial number.
62592         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62593         Suggested by Eric Blake <ebb9@byu.net>.
62595 2009-11-05  Eric Blake  <ebb9@byu.net>
62597         strtod: detect darwin bug
62598         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62599         Reported by Leo Davis.
62601         freopen-safer: new module
62602         * modules/freopen-safer: New module.
62603         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62604         * lib/freopen-safer.c (freopen_safer): New file.
62605         * lib/stdio-safer.h (freopen_safer): New declaration.
62606         * lib/stdio--.h (freopen): New override.
62607         * MODULES.html.sh (File stream based Input/Output): Mention it.
62608         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62609         freopen-safer module.
62610         * doc/posix-functions/stderr.texi (stderr): Likewise.
62611         * doc/posix-functions/stdin.texi (stdin): Likewise.
62612         * doc/posix-functions/stdout.texi (stdout): Likewise.
62613         * modules/freopen-safer-tests: New test.
62614         * tests/test-reopen-safer.c: New file.
62616 2009-11-05  Jim Meyering  <meyering@redhat.com>
62618         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62619         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62621 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62623         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62625 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62627         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62629 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62631         Fix link error.
62632         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62633         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62635 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62637         * tests/test-func.c: Also test value of __func__.
62639 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62641         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62642         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62644 2009-11-05  Bruno Haible  <bruno@clisp.org>
62646         Fix link error.
62647         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62648         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62649         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62651 2009-11-05  Bruno Haible  <bruno@clisp.org>
62653         Tests for module 'inet_pton'.
62654         * modules/inet_pton-tests: New file.
62655         * tests/test-inet_pton.c: New file.
62657 2009-11-05  Bruno Haible  <bruno@clisp.org>
62659         Tests for module 'inet_ntop'.
62660         * modules/inet_ntop-tests: New file.
62661         * tests/test-inet_ntop.c: New file.
62663 2009-11-04  Eric Blake  <ebb9@byu.net>
62665         stdlib-safer: wrap all mkstemp variants
62666         * modules/mkostemp (configure.ac): Set witness.
62667         * modules/mkostemps (configure.ac): Likewise.
62668         * modules/mkstemps (configure.ac): Likewise.
62669         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62670         (mkstemps_safer): Wrap more functions.
62671         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62672         wrapping.
62673         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62674         (mkstemps_safer): Implement the wrappers.
62676         mkstemps, mkostemps: new modules
62677         * modules/mkostemps: New module.
62678         * modules/mkstemps: Likewise.
62679         * lib/mkostemps.c (mkostemps): New file.
62680         * lib/mkstemps.c (mkstemps): Likewise.
62681         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62682         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62684         * modules/stdlib (Makefile.am): Substitute them.
62685         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62686         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62687         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62688         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62689         * MODULES.html.sh (File system functions): Mention them.
62691         tempname: resync from glibc
62692         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62693         same values for __GT_FILE as glibc.  Abort even when assertions
62694         are disabled.
62695         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62696         match its value otherwise.  Allow idempotent inclusion.
62697         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62698         * lib/mkostemp.c (mkostemp): Likewise.
62699         * lib/mkstemp.c (mkstemp): Likewise.
62700         * lib/tmpfile.c (tmpfile): Likewise.
62701         * NEWS: Document this.
62703         utimens: fix use of futimens on older Linux
62704         * lib/utimens.c (fdutimens): Use updated, rather than original,
62705         timespec to avoid bug in older Linux kernel.
62706         Reported by Simon Josefsson.
62708 2009-11-04  Bruno Haible  <bruno@clisp.org>
62710         Make num_processors more flexible and consistent.
62711         * lib/nproc.h (enum nproc_query): New type.
62712         (num_processors): Add a 'query' argument.
62713         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62714         (num_processors): Add a 'query' argument. Test the value of the
62715         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62716         mingw, count the number of CPUs available for the current process.
62717         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62718         Check for sched_getaffinity and sched_getaffinity_np.
62719         * modules/nproc (Depends-on): Add c-ctype, extensions.
62720         * NEWS: Mention the change.
62722 2009-11-03  Bruno Haible  <bruno@clisp.org>
62724         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62726 2009-11-03  Jim Meyering  <meyering@redhat.com>
62728         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62729         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62730         if it is defined.
62732 2009-11-02  Eric Blake  <ebb9@byu.net>
62734         mktime, timegm: share common declaration
62735         * lib/mktime-internal.h: New file.
62736         * lib/mktime.c: Use it rather than open-coding a declaration.
62737         * lib/timegm.c: Likewise.
62738         * modules/mktime (Files): Ship it.
62739         * modules/timegm (Files): Likewise.
62740         Suggested by Bruno Haible.
62742         test-update-copyright: update test to match script changes
62743         * tests/test-update-copyright.sh: Avoid hard-coding perl
62744         location.  Don't update *.bak created by earlier runs.
62746 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62747             Simon Josefsson  <simon@josefsson.org>
62748             Bruno Haible  <bruno@clisp.org>
62750         Fix link error on Solaris 8.
62751         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62752         also in libnsl. Define also INET_PTON_LIB.
62753         * modules/inet_pton (Link): New section.
62755 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62756             Bruno Haible  <bruno@clisp.org>
62758         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62759         * modules/inet_ntop (Link): New section.
62760         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62762 2009-11-02  Eric Blake  <ebb9@byu.net>
62764         maint: avoid compiler warnings in m4 macros
62765         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62766         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62768 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62770         * m4/pmccabe2html.m4: Remove file.
62771         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62772         function.  Change maintainer.
62773         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62774         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62775         Courtès).
62777 2009-10-31  Eric Blake  <ebb9@byu.net>
62779         fseeko: fix m4 regression
62780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62781         regression from 2009-10-27.
62782         Reported by Ralf Wildenhues.
62784 2009-10-31  Jim Meyering  <meyering@redhat.com>
62786         inttostr: aesthetics and improved (compile-time) safety
62787         Define inttype_is_signed rather than inttype_is_unsigned,
62788         since the sole use is via "#if inttype_is_signed".
62789         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62790         inttype_is_unsigned.
62791         * lib/offtostr.c (inttype_is_signed): Likewise.
62792         * lib/uinttostr.c (inttype_is_signed): Likewise.
62793         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62794         * lib/inttostr.c (inttostr): Use verify to cross-check the
62795         inttype_is_signed value and the signedness of the actual type.
62796         * modules/inttostr (Depends-on): Add verify.
62798 2009-10-30  Eric Blake  <ebb9@byu.net>
62800         build: avoid compiler warnings
62801         * lib/fchmodat.c (lchmod): Mark unused variables.
62802         * lib/getopt.c (_getopt_initialize): Likewise.
62803         * lib/mktime.c (__mktime_internal): Provide prototype.
62804         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62805         older gcc that do not understand #pragma GCC diagnostic.
62806         * lib/uinttostr.c (inttype_is_unsigned): Define.
62807         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62809 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62811         stat: fix compilation on AIX
62812         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62813         only see struct stat64.
62815 2009-10-30  Eric Blake  <ebb9@byu.net>
62817         exclude: make more robust
62818         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62819         rather than masking a coding bug.
62820         Suggested by Bruno Haible.
62822 2009-10-30  Jim Meyering  <meyering@redhat.com>
62824         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62825         Rather than putting #!/usr/bin/perl on the first line,
62826         start with a variant of what's recommended by "man perlrun" that
62827         invokes the first "perl" program from your shell's search path.
62828         * build-aux/gitlog-to-changelog: Replace #!... as above.
62829         Add a "Local Variables" perl mode setting.
62830         Prompted by a patch from Ludovic Courtès.
62831         Improved by Eric Blake.
62832         * build-aux/useless-if-before-free: Likewise.
62833         * build-aux/announce-gen: Likewise.
62834         * build-aux/update-copyright: Likewise.
62836 2009-10-29  Eric Blake  <ebb9@byu.net>
62838         filenamecat-lgpl: adjust clients
62839         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62840         filenamecat.
62841         * modules/renameat (Depends-on): Likewise.
62843         filenamecat: split into filenamecat-lgpl
62844         * modules/filenamecat-lgpl: New module.
62845         * modules/filenamecat (Files): Move library-safe files into
62846         filenamecat-lgpl.
62847         (Depends-on): Add filenamecat-lgpl.
62848         (configure.ac): Declare witness.
62849         * lib/filenamecat.h (file_name_concat): Only declare when using
62850         GPL module.
62851         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62852         Move...
62853         * lib/filenamecat-lgpl.c: ...into new file.
62854         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62855         (gl_FILE_NAME_CONCAT): Use it.
62856         * MODULES.html.sh (File system functions): Mention new module.
62858         argp: avoid memory leak
62859         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62860         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62861         base_name, since the latter malloc()s and can call exit().
62862         Leak introduced 2006-07-03.
62864         dirname-lgpl: adjust clients that don't need full dirname
62865         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62866         * modules/filenamecat (Depends-on): Likewise.
62867         * modules/linkat (Depends-on): Likewise.
62868         * modules/mkancesdirs (Depends-on): Likewise.
62869         * modules/mkdir (Depends-on): Likewise.
62870         * modules/openat (Depends-on): Likewise.
62871         * modules/savewd (Depends-on): Likewise.
62872         * modules/rename (Depends-on): Likewise.
62873         (License): Relax license.
62874         * modules/mkdir-tests (Depends-on): Drop progname.
62875         (Makefile.am): Delete unneeded LDADD.
62876         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62878         dirname: split into dirname-lgpl
62879         * modules/dirname-lgpl: New module.
62880         * modules/dirname (Files): Move library-safe files into
62881         dirname-lgpl.
62882         (Depends-on): Add dirname-lgpl.
62883         (configure.ac): Declare witness.
62884         * modules/double-slash-root (License): Relax license.
62885         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62886         module.
62887         * lib/dirname.c (dir_len, mdir_name): Move...
62888         * lib/dirname-lgpl.c: ...into new file.
62889         * lib/basename.c (last_component, base_len): Move...
62890         * lib/basename-lgpl.c: ...into new file.
62891         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62892         (gl_DIRNAME): Use it.
62893         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62894         Mention new module.
62895         * modules/dirname-tests (Depends-on): Add progname.
62896         * tests/test-dirname.c (program_name): Delete.
62898         mkdir: make safe for libraries
62899         * modules/mkdir (Depends-on): Drop xalloc.
62900         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62901         exit.
62903         tests: avoid some compiler warnings
62904         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62905         literals.
62906         * tests/test-memchr.c (main): Avoid type mismatch.
62907         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62908         * tests/test-base64.c (main): Likewise.
62909         * tests/test-getdelim.c (main): Likewise.
62910         * tests/test-gethostname.c (main): Likewise.
62911         * tests/test-getline.c (main): Likewise.
62912         * tests/test-netinet_in.c (main): Likewise.
62913         * tests/test-select.c (open_server_socket, main): Likewise.
62914         * tests/test-select-stdin.c (main): Likewise.
62915         * tests/test-sockets.c (main): Likewise.
62916         * tests/test-strsignal.c (main): Likewise.
62917         * tests/test-sys_select.c (main): Likewise.
62918         * tests/test-sys_socket.c (main): Likewise.
62919         * tests/test-u64.c (main): Likewise.
62920         * tests/test-xfprintf-posix.c (main): Likewise.
62921         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62923         sockets: avoid compiler warning
62924         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62926         maint: detect usage(1) and other suspicious exits
62927         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62929 2009-10-29  Jim Meyering  <meyering@redhat.com>
62931         timespec: long-to-int truncation could make timespec_cmp malfunction
62932         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62933         a multiple of 2^32 nanoseconds as no difference.
62935 2009-10-28  Jim Meyering  <meyering@redhat.com>
62937         fprintftime: wrap macro code argument in "do {...} while(0)"
62938         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62939         cpy macro must be a statement that can be followed by a semicolon.
62940         Now that the else clause contains a comment and is hence longer
62941         than one line, I require curly braces.  That in turn requires
62942         that we wrap this code block in the standard do...while(0).
62944         fprintftime: remove stray semicolon from previous change
62945         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62947         fprintftime: avoid a warning about ignored fwrite return value
62948         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62949         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62950         that is unsafe.
62951         * modules/fprintftime (Depends-on): Add ignore-value.
62953         exclude: avoid an unwarranted warning
62954         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62956 2009-10-27  Eric Blake  <ebb9@byu.net>
62958         fseek: avoid compilation failure when fflush is replaced
62959         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62960         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62961         module is in use.
62962         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62963         module is not in use; since REPLACE_FSEEK worked otherwise.
62964         (GNULIB_FTELLO): Likewise for ftell.
62965         Reported by Ian Beckwith and others.
62967 2009-10-27  Bruno Haible  <bruno@clisp.org>
62969         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62970         Reported by Jim Meyering.
62972 2009-10-27  Jim Meyering  <jim@meyering.net>
62973             Bruno Haible  <bruno@clisp.org>
62975         Avoid warning despite dropping the return value of fwrite.
62976         * lib/unicodeio.c: Include ignore-value.h.
62977         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62978         * modules/unicodeio (Depends-on): Add ignore-value.
62980 2009-10-26  Eric Blake  <ebb9@byu.net>
62982         areadlinkat: fix fallback path
62983         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62984         pointer and zero.
62986 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62988         Use a better IO block size for modern systems
62989         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62990         * lib/md2.c: Likewise.
62991         * lib/md4.c: Likewise.
62992         * lib/md5.c: Likewise.
62993         * lib/sha1.c: Likewise.
62994         * lib/sha256.c: Likewise.
62995         * lib/sha512.c: Likewise.
62997 2009-10-22  Eric Blake  <ebb9@byu.net>
62999         tests: avoid several compiler warnings
63000         * tests/test-getcwd.c (main): Avoid buffer underflow.
63001         * tests/test-getdate.c (main): String literals are not safe with
63002         putenv, so use setenv.  Declare unused argument.
63003         * modules/getdate-tests (Depends-on): Add setenv.
63004         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
63005         problems with string literals in char *.
63006         * tests/test-hash.c (main): Avoid shadowing declaration.
63007         (insert_new): Treat string literals as char const *.
63008         * tests/test-getopt.h (test_getopt): Likewise.
63009         (getopt_loop): Alter types to minimize casting elsewhere.
63010         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
63011         (test_getopt_long_posix): Likewise.
63012         (do_getopt_long): Add wrapper to minimize casting.
63013         * tests/test-atexit.c (clear_temp_file): Use void.
63014         * tests/test-areadlink-with-size.c (main): Declare unused
63015         arguments.
63016         * tests/test-areadlink.c (main): Likewise.
63017         * tests/test-areadlinkat-with-size.c (main): Likewise.
63018         * tests/test-areadlinkat.c (main): Likewise.
63019         * tests/test-canonicalize-lgpl.c (main): Likewise.
63020         * tests/test-canonicalize.c (main): Likewise.
63021         * tests/test-dirent-safer.c (main): Likewise.
63022         * tests/test-dirname.c (main): Likewise.
63023         * tests/test-dup2.c (main): Likewise.
63024         * tests/test-fchdir.c (main): Likewise.
63025         * tests/test-fcntl-h.c (main): Likewise.
63026         * tests/test-fcntl-safer.c (main): Likewise.
63027         * tests/test-fdopendir.c (main): Likewise.
63028         * tests/test-fdutimensat.c (main): Likewise.
63029         * tests/test-fflush.c (main): Likewise.
63030         * tests/test-filenamecat.c (main): Likewise.
63031         * tests/test-filevercmp.c (main): Likewise.
63032         * tests/test-fopen-safer.c (main): Likewise.
63033         * tests/test-fopen.c (main): Likewise.
63034         * tests/test-fpending.c (main): Likewise.
63035         * tests/test-fpurge.c (main): Likewise.
63036         * tests/test-freading.c (main): Likewise.
63037         * tests/test-fstatat.c (main): Likewise.
63038         * tests/test-fsync.c (main): Likewise.
63039         * tests/test-futimens.c (main): Likewise.
63040         * tests/test-getndelim2.c (main): Likewise.
63041         * tests/test-gettimeofday.c (main): Likewise.
63042         * tests/test-getopt.c (main): Likewise.
63043         * tests/test-i-ring.c (main): Likewise.
63044         * tests/test-inttypes.c (main): Likewise.
63045         * tests/test-link.c (main): Likewise.
63046         * tests/test-lstat.c (main): Likewise.
63047         * tests/test-math.c (main): Likewise.
63048         * tests/test-md5.c (main): Likewise.
63049         * tests/test-memchr2.c (main): Likewise.
63050         * tests/test-memrchr.c (main): Likewise.
63051         * tests/test-mkdir.c (main): Likewise.
63052         * tests/test-mkdirat.c (main): Likewise.
63053         * tests/test-mkfifoat.c (main): Likewise.
63054         * tests/test-open.c (main): Likewise.
63055         * tests/test-openat-safer.c (main): Likewise.
63056         * tests/test-openat.c (main): Likewise.
63057         * tests/test-quotearg.c (main): Likewise.
63058         * tests/test-rawmemchr.c (main): Likewise.
63059         * tests/test-readlink.c (main): Likewise.
63060         * tests/test-remove.c (main): Likewise.
63061         * tests/test-rename.c (main): Likewise.
63062         * tests/test-renameat.c (main): Likewise.
63063         * tests/test-rmdir.c (main): Likewise.
63064         * tests/test-sha1.c (main): Likewise.
63065         * tests/test-signal.c (main): Likewise.
63066         * tests/test-sigaction.c (main): Likewise.
63067         * tests/test-stat.c (main): Likewise.
63068         * tests/test-stat-time.c (main): Likewise.
63069         * tests/test-stddef.c (main): Likewise.
63070         * tests/test-stdint.c (main): Likewise.
63071         * tests/test-stdio.c (main): Likewise.
63072         * tests/test-stdlib.c (main): Likewise.
63073         * tests/test-strchrnul.c (main): Likewise.
63074         * tests/test-strerror.c (main): Likewise.
63075         * tests/test-string.c (main): Likewise.
63076         * tests/test-strtod.c (main): Likewise.
63077         * tests/test-strverscmp.c (main): Likewise.
63078         * tests/test-symlink.c (main): Likewise.
63079         * tests/test-symlinkat.c (main): Likewise.
63080         * tests/test-sys_stat.c (main): Likewise.
63081         * tests/test-sys_time.c (main): Likewise.
63082         * tests/test-time.c (main): Likewise.
63083         * tests/test-unistd.c (main): Likewise.
63084         * tests/test-unlink.c (main): Likewise.
63085         * tests/test-unlinkat.c (main): Likewise.
63086         * tests/test-utimens.c (main): Likewise.
63087         * tests/test-utimensat.c (main): Likewise.
63088         * tests/test-version-etc.c (main): Likewise.
63089         * tests/test-wchar.c (main): Likewise.
63090         * tests/test-wctype.c (main): Likewise.
63091         * tests/test-xprintf-posix.c (main): Likewise.
63092         * tests/test-posixtm.c (main): Likewise.
63093         (STREQ): Delete unused macro.
63094         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
63095         shadowed variables.
63096         * tests/test-memchr.c (main): Likewise.
63098 2009-10-21  Eric Blake  <ebb9@byu.net>
63100         areadlinkat: avoid failure on older glibc
63101         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
63102         rather than mis-comparing 0 against FUNC_RESULT of char*.
63104 2009-10-21  Bruno Haible  <bruno@clisp.org>
63106         * modules/stpncpy (License): Relicense under LGPLv2+.
63107         Reported by David Lutterkort <lutter@redhat.com>.
63109 2009-10-20  Eric Blake  <ebb9@byu.net>
63111         utimensat: work around Solaris 9 bug
63112         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
63113         has trailing slash bugs.
63114         * tests/test-lutimens.h (test_lutimens): Enhance test.
63115         * tests/test-utimens.h (test_utimens): Likewise.
63116         * doc/posix-functions/utime.texi (utime): Enhance documentation.
63117         * doc/posix-functions/utimes.texi (utimes): Likewise.
63118         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63119         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
63120         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
63121         * doc/posix-functions/futimens.texi (futimens): Likewise.
63123         fdutimensat: new module
63124         * modules/fdutimensat: New file.
63125         * lib/fdutimensat.c (fdutimensat): Likewise.
63126         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
63127         * MODULES.html.sh (File system functions): Mention module.
63128         * modules/fdutimensat-tests: New test.
63129         * tests/test-fdutimensat.c: Likewise.
63131         doc: regenerate INSTALL
63132         * doc/INSTALL: Reflect recent autoconf update.
63133         * doc/INSTALL.ISO: Likewise.
63134         * doc/INSTALL.UTF-8: Likewise.
63136 2009-10-20  Pádraig Brady  <P@draigBrady.com>
63138         acl: warn if ACL support is not detected
63139         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
63141 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
63143         * lib/nproc.h: Add extern "C" block for C++.
63145 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
63146             Bruno Haible  <bruno@clisp.org>
63148         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
63149         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
63150         * doc/posix-functions/isalpha.texi: Likewise.
63151         * doc/posix-functions/isblank.texi: Likewise.
63152         * doc/posix-functions/iscntrl.texi: Likewise.
63153         * doc/posix-functions/isdigit.texi: Likewise.
63154         * doc/posix-functions/isgraph.texi: Likewise.
63155         * doc/posix-functions/islower.texi: Likewise.
63156         * doc/posix-functions/isprint.texi: Likewise.
63157         * doc/posix-functions/ispunct.texi: Likewise.
63158         * doc/posix-functions/isspace.texi: Likewise.
63159         * doc/posix-functions/isupper.texi: Likewise.
63160         * doc/posix-functions/isxdigit.texi: Likewise.
63162 2009-10-18  Bruno Haible  <bruno@clisp.org>
63164         Tests for module 'isblank'.
63165         * modules/isblank-tests: New file.
63166         * tests/test-isblank.c: New file.
63168         New module 'isblank'.
63169         * lib/isblank.c: New file.
63170         * m4/isblank.m4: New file.
63171         * modules/isblank: New file.
63172         * doc/posix-functions/isblank.texi: Mention the new module.
63174 2009-10-18  Bruno Haible  <bruno@clisp.org>
63176         New module 'ctype'.
63177         * lib/ctype.in.h: New file.
63178         * m4/ctype.m4: New file.
63179         * modules/ctype: New file.
63180         * doc/posix-headers/ctype.texi: Mention the new module.
63182 2009-10-18  Jim Meyering  <meyering@redhat.com>
63184         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
63185         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
63186         right after its initialization, rather than farther down.
63187         Keeping these in close proximity makes it easier to ensure
63188         that each such variable is initialized.  E.g.,
63190             LIB_CLOCK_GETTIME=
63191             AC_SUBST([LIB_CLOCK_GETTIME])
63193         This change also increments these serial numbers.
63194         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
63195         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63198 2009-10-18  Bruno Haible  <bruno@clisp.org>
63200         Don't let environment variables perturb build.
63201         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
63202         (gl_PREREQ_GETHRXTIME): ... not here.
63204 2009-10-18  Bruno Haible  <bruno@clisp.org>
63206         Avoid symlink attack in localcharset module.
63207         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
63208         (O_NOFOLLOW): Define fallback.
63209         (get_charset_aliases): Don't open the file if it is a symbolic link.
63210         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
63211         gl_FCNTL_H.
63212         (gl_FCNTL_H): Require it.
63213         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
63214         * modules/localcharset (Files): Add m4/fcntl_h.m4.
63215         Reported by Fergal Glynn <fglynn@veracode.com>.
63217 2009-10-18  Bruno Haible  <bruno@clisp.org>
63219         Implement nproc for mingw.
63220         * lib/nproc.c: Include <windows.h>
63221         (num_processors): On native Windows platforms, try GetSystemInfo.
63223 2009-10-18  Bruno Haible  <bruno@clisp.org>
63225         Implement nproc for IRIX.
63226         * lib/nproc.c: Include <sys/sysmp.h>.
63227         (num_processors): On IRIX systems, try sysmp.
63228         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
63230 2009-10-18  Bruno Haible  <bruno@clisp.org>
63232         Implement nproc for HP-UX.
63233         * lib/nproc.c: Include <sys/pstat.h>
63234         (num_processors): On HP-UX systems, try pstat_getdynamic.
63235         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
63236         pstat_getdynamic.
63238 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
63239             Bruno Haible  <bruno@clisp.org>
63241         Implement nproc for NetBSD, OpenBSD.
63242         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
63243         (ARRAY_SIZE): New macro.
63244         (num_processors): On BSD systems, try sysctl of HW_NCPU.
63245         * m4/nproc.m4: New file.
63246         * modules/nproc (Files): Add m4/nproc.m4.
63247         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
63248         (Makefile.am): Instead, augment lib_SOURCES.
63250 2009-10-18  Bruno Haible  <bruno@clisp.org>
63252         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
63253         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
63254         sys/param.h.
63256 2009-10-16  Eric Blake  <ebb9@byu.net>
63258         utimensat: new module
63259         * modules/utimensat: New file.
63260         * lib/utimensat.c (utimensat): Likewise.
63261         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63262         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
63263         so we can work around Linux bugs.
63264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63265         * modules/sys_stat (Makefile.am): Substitute them.
63266         * lib/sys_stat.in.h (utimensat): Declare it.
63267         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63268         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63269         * modules/utimensat-tests: New test.
63270         * tests/test-utimensat.c: Likewise.
63272         utimens: let lutimens work on non-symlinks
63273         * lib/utimens.c (lutimens): Fall back to utimens rather than
63274         failing with ENOSYS, when file is not a symlink.
63275         (utimens): Reduce redirection.
63276         * tests/test-lutimens.h (test_lutimens): Update test to cover
63277         non-symlinks.
63278         * tests/test-utimens.h (test_utimens): Update test to cover
63279         symlinks.
63280         * tests/test-utimens.c (main): Update caller.
63282         utimens: cache whether utimensat syscall works
63283         * lib/utimens.c (utimensat_works_really): New cache variable.
63284         (fdutimens, lutimens): Use it to avoid failing syscall.
63286         test-stat-time, test-utimens: improve portability
63287         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
63288         ext4 on alpha, and for cygwin.
63289         * tests/test-utimens-common.h: New file.
63290         (nap): Factor delays into single function.
63291         * tests/test-lutimens.h (test_lutimens): Use new header.
63292         * tests/test-futimens.h (test_futimens): Likewise.
63293         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
63294         timestamps to occur from same machine, as was done previously for
63295         test_utimens.
63296         * modules/utimens-tests (Files): Ship new file.
63297         * modules/futimens-tests (Files): Likewise.
63298         Reported in part by Jim Meyering.
63300         sys_stat: sort replacement declarations
63301         * lib/sys_stat.in.h: Sort declarations.
63302         * lib/futimens.c (futimens): Fix typo.
63304 2009-10-15  Jim Meyering  <meyering@redhat.com>
63306         don't let environment settings perturb build
63307         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
63308         could cause a configure-time and/or build-time malfunction.
63309         Typically, a configure-time function-in-library test is performed
63310         via code like this:
63312           LIB_VAR=
63313           AC_SUBST([LIB_VAR])
63314           prefix_saved_LIBS=$LIBS
63315             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
63316                        [test "$ac_cv_search_FUNC" = "none required" ||
63317                         LIB_VAR=$ac_cv_search_FUNC])
63318           LIBS=$prefix_saved_LIBS
63320         However, in each of the files affected by this change, the LIB_VAR=
63321         initialization was omitted.  Thus, when set in the environment, its
63322         value would propagate into generated Makefiles when FUNC is not found
63323         in LIB_NAME.
63324         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
63325         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63328 2009-10-14  Eric Blake  <ebb9@byu.net>
63330         fchdir: avoid infinite recursion in mingw
63331         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
63332         recursing.
63334         test-stat-time: port to mingw
63335         * tests/test-stat-time.c (force_unlink): Return a value.
63336         (test_ctime) [W32]: Fix compilation error.
63337         (nap): Don't call usleep with too large an argument.  Use
63338         force_unlink.
63339         * doc/pastposix-functions/usleep.texi (usleep): Document the
63340         portability issue.
63342 2009-10-13  Jim Meyering  <meyering@redhat.com>
63344         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
63345         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63346         * modules/pipe-filter-ii: Likewise.
63347         * modules/sys_socket-tests: Likewise.
63348         * modules/tsearch-tests: Likewise.
63349         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
63350         (check): Depend on it.
63352 2009-10-12  Eric Blake  <ebb9@byu.net>
63354         utimens-tests: port to NFS file systems
63355         * tests/test-utimens.h (test_utimens): Refactor utimecmp
63356         comparisons to avoid spurious failures from timestamp drift
63357         between NFS machines.
63359 2009-10-12  Eric Blake  <ebb9@byu.net>
63361         stat-time-tests: minor cleanups
63362         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63363         * tests/test-stat-time.c (nap): Separate assignment from call.
63364         Suggested by Paolo Bonzini and Bruno Haible.
63366         sys_stat: guarantee struct timespec
63367         * lib/sys_stat.in.h (includes): Always include <time.h>
63368         * modules/sys_stat (Depends-on): Add time.
63369         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63370         mode_t permission values.
63371         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63372         get at subsecond timestamps.
63374 2009-10-10  Eric Blake  <ebb9@byu.net>
63376         futimens: new module
63377         * modules/futimens: New file.
63378         * lib/futimens.c (futimens): Likewise.
63379         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63380         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63381         we can work around Linux bugs.
63382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63383         * modules/sys_stat (Makefile.am): Substitute them.
63384         * lib/sys_stat.in.h (futimens): Declare it.
63385         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63386         * doc/posix-functions/futimens.texi (futimens): Likewise.
63387         * modules/futimens-tests: New test.
63388         * tests/test-futimens.c: Likewise.
63390         utimens: introduce fdutimens
63391         * lib/utimens.h (fdutimens): New prototype.
63392         * lib/utimens.c (gl_futimens): Move guts...
63393         (fdutimens): ...to new interface.
63394         * tests/test-utimens.c (do_fdutimens): Use it.
63396         utimens: add UTIME_NOW and UTIME_OMIT support
63397         * lib/utimens.c (validate_timespec, update_timespec): New helper
63398         functions.
63399         (gl_futimens, lutimens): Use them.
63400         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63401         stdbool, sys_stat.
63402         (Link): Mention resulting library dependency.
63403         * modules/utimecmp (Link): Likewise.
63404         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63405         (Makefile.am): Pick up library dependency.
63406         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63407         definition.
63408         * tests/test-sys_stat.c: Test the definitions.
63409         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63410         * NEWS: Document library dependency.
63412         utimecmp: support symlink timestamps
63413         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63414         hashing when possible.  Use pathconf when available.
63415         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63416         * modules/utimecmp (Depends-on): Add lstat.
63418         utimens: add lutimens interface
63419         * lib/utimens.c (lutimens): New function.
63420         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63421         * lib/utimens.h (lutimens): Declare new interface.
63422         * tests/test-utimens.c (main): Enhance test.
63423         * tests/test-lutimens.h (test_lutimens): New file.
63424         * modules/utimens-tests (Files): Distribute it.
63425         (Depends-on): Add symlink.
63426         (configure.ac): Check for usleep.
63428         utimens: validate futimens usage
63429         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63430         fewer syscalls on failure later on.  Avoid compiler warning on
63431         mingw.
63432         * modules/utimens (Depends-on): Add dup2.
63434         utimens: add test
63435         * modules/utimens-tests: New test.
63436         * tests/test-utimens.h: New file.
63437         * tests/test-futimens.h: Likewise.
63438         * tests/test-utimens.c: Likewise.
63440         doc: mention timestamp portability issues
63441         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63442         instead.
63443         * doc/posix-functions/utime.texi (utime): Likewise.
63444         * doc/posix-functions/utimes.texi (utimes): Likewise.
63445         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63446         instead.
63447         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63448         module.
63449         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63450         Mention weakness with symlink timestamps.
63451         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63452         to utimensat/futimens instead.
63453         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63455         test-dup2: enhance test
63456         * tests/test-dup2.c (main): Also check AT_FDCWD.
63458         test-stat-time: avoid more spurious failures
63459         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63460         xfs; and avoid race if the two timestamps cross quantization edge.
63462         relocatable: prefer 'file system' over 'filesystem'
63463         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63464         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63465         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63466         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63467         * lib/relocatable.c (compute_curr_prefix): Likewise.
63469 2009-10-10  Jim Meyering  <meyering@redhat.com>
63471         stat-time-tests: check for the usleep function
63472         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63474 2009-10-10  Bruno Haible  <bruno@clisp.org>
63476         * modules/xnanosleep: Put the Link section after the Include section.
63478 2009-10-09  Eric Blake  <ebb9@byu.net>
63480         dup2: work around FreeBSD 6.1 bug
63481         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63482         * doc/posix-functions/dup2.texi (dup2): Document it.
63483         Reported by Nelson H. F. Beebe and Jim Meyering.
63485         test-stat-time: port to buggy NFS clients
63486         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63487         (test_ctime): Also skip test if mtime and ctime are skewed.
63489         maint: prefer 'file system' over 'filesystem'
63490         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63491         * doc/posix-functions/lstat.texi (lstat): Likewise.
63492         * lib/file-has-acl.c (file_has_acl): Likewise.
63493         * lib/fwriteerror.c [TEST]: Likewise.
63494         * tests/test-areadlink.h (test_areadlink): Likewise.
63495         * tests/test-areadlinkat-with-size.c (main): Likewise.
63496         * tests/test-areadlinkat.c (main): Likewise.
63497         * tests/test-canonicalize-lgpl.c (main): Likewise.
63498         * tests/test-canonicalize.c (main): Likewise.
63499         * tests/test-fstatat.c (main): Likewise.
63500         * tests/test-linkat.c (main): Likewise.
63501         * tests/test-lstat.h (test_lstat_func): Likewise.
63502         * tests/test-mkdir.h (test_mkdir): Likewise.
63503         * tests/test-readlink.h (test_readlink): Likewise.
63504         * tests/test-remove.c (main): Likewise.
63505         * tests/test-rename.h (test_rename): Likewise.
63506         * tests/test-renameat.c (main): Likewise.
63507         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63508         * tests/test-symlink.h (test_symlink): Likewise.
63509         * tests/test-symlinkat.c (main): Likewise.
63510         * tests/test-unlink.h (test_unlink_func): Likewise.
63511         * tests/test-unlinkat.c (main): Likewise.
63513         maint: make realtime library usage explicit
63514         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63515         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63516         * modules/settime (Link): Likewise.
63517         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63519         test-stat-time: speed up execution
63520         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63521         warning on mingw.
63522         (nap): New helper function.
63523         (prepare_test): Use it to reduce sleep time.
63524         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63525         execution.
63526         * modules/stat-time-tests (configure.ac): Check for usleep.
63528 2009-10-09  Jim Meyering  <meyering@redhat.com>
63530         selinux-h: always use getfilecon wrappers
63531         * lib/getfilecon.c: New file.
63532         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63533         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63534         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63535         (fgetfilecon): Provide a stub.
63536         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63537         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63538         file unconditionally.
63539         When <selinux/selinux.h> is found, arrange to use wrappers.
63540         * modules/selinux-h (Files): Add getfilecon.c.
63541         (Makefile.am): Substitute include-next-related bits
63542         into the now-always-generated selinux/selinux.h file.
63543         * doc/glibc-functions/lgetfilecon.texi: New file.
63544         * doc/glibc-functions/fgetfilecon.texi: New file.
63545         * doc/glibc-functions/getfilecon.texi: New file.
63546         * doc/glibc-functions/getfilecon-desc.texi: New file.
63547         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63548         which to pull in the new files.
63549         * MODULES.html.sh (Misc): Add selinux-h.
63551 2009-10-08  Jim Meyering  <meyering@redhat.com>
63553         unistd: fix comment typo
63554         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63556 2009-10-08  Eric Blake  <ebb9@byu.net>
63558         areadlink: use SIZE_MAX consistently
63559         * modules/areadlink (Depends-on): Add stdint.
63560         * modules/areadlink-with-size (Depends-on): Likewise.
63561         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63562         gives NULL; drop sys/types, since unistd gives size_t; and add
63563         stdint for SIZE_MAX.
63564         (SIZE_MAX): Rely on headers.
63565         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63566         and add stdint.
63567         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63568         (SIZE_MAX): Likewise.
63569         (INITIAL_BUF_SIZE): Turn into enum.
63570         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63572 2009-10-08  Jim Meyering  <meyering@redhat.com>
63574         areadlinkat: avoid compilation failure
63575         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63576         Fix typo in comment.
63578 2009-10-07  Eric Blake  <ebb9@byu.net>
63580         areadlinkat-with-size: new module
63581         * modules/areadlinkat-with-size: New module.
63582         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63583         * lib/areadlink.h (areadlinkat): Declare it.
63584         * MODULES.html.sh (File system functions): Mention it.
63585         * modules/areadlinkat-with-size-tests: New test.
63586         * tests/test-areadlinkat-with-size.c: New file.
63588         xreadlinkat: new module
63589         * modules/xreadlinkat: New module.
63590         * lib/xreadlinkat.c (xreadlinkat): New file.
63591         * lib/xreadlink.h (xreadlinkat): Declare it.
63592         * MODULES.html.sh (File system functions): Mention it.
63594         areadlinkat: new module
63595         * lib/at-func.c (FUNC_FAIL): New define.
63596         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63597         * modules/areadlinkat: New module.
63598         * lib/linkat.c (areadlinkat): Move...
63599         * lib/areadlinkat.c (areadlinkat): ...to new file.
63600         * lib/areadlink.h (areadlinkat): Declare it.
63601         * modules/linkat (Depends-on): Add areadlinkat.
63602         * MODULES.html.sh (File system functions): Mention it.
63603         * modules/areadlinkat-tests: New test.
63604         * tests/test-areadlinkat.c: New file.
63606         areadlink, areadlink-with-size: add tests
63607         * modules/areadlink-tests: New test.
63608         * modules/areadlink-with-size-tests: Likewise.
63609         * tests/test-areadlink.h: New file.
63610         * tests/test-areadlink.c: Likewise.
63611         * tests/test-areadlink-with-size.c: Likewise.
63613         maint: minor cleanups
63614         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63615         _UNUSED_PARAMETER_ instead.
63616         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63617         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63618         * modules/linkat-tests (Files): Distribute test-link.h.
63620         openat, utimens: whitespace cleanup
63621         * lib/openat.c: Prefer space throughout, rather than mix of 8
63622         spaces vs. tabs.
63623         * lib/at-func.c: Likewise.
63624         * lib/utimens.c: Likewise.
63626         openat: avoid using wrong fd
63627         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63628         working directory chooses same fd.
63629         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63631         mkdir, mkdirat: fix cygwin 1.5.x bug
63632         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63633         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63634         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63635         bug.
63636         (gl_PREREQ_MKDIR): Delete unused macro.
63637         * modules/mkdir (Files): Track file rename.
63638         (configure.ac): Update macro name.
63639         * modules/openat (Depends-on): Add mkdir.
63640         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63642         mkdir, mkdirat: add tests
63643         * modules/mkdir-tests: New test.
63644         * tests/test-mkdir.h: New file.
63645         * tests/test-mkdir.c: Likewise.
63646         * tests/test-mkdirat.c: Likewise.
63647         * modules/openat-tests (Files): Add new files.
63648         (Makefile.am): Run new test.
63650 2009-10-06  Eric Blake  <ebb9@byu.net>
63652         doc: tweak *at function documentation
63653         * doc/posix-functions/faccessat.texi (faccessat): Mention
63654         known issue with replacement.
63655         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63656         * doc/posix-functions/linkat.texi (linkat): Likewise.
63657         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63658         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63659         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63660         * doc/posix-functions/renameat.texi (renameat): Likewise.
63661         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63663         openat: fix GNU/Hurd bug in unlinkat
63664         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63665         broken.
63666         * doc/posix-functions/unlink.texi (unlink): Document this.
63667         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63669         fdopendir: fix GNU/Hurd bug
63670         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63671         allowing non-directory fds.
63672         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63674         * modules/dirent (Makefile.am): Substitute it.
63675         * lib/dirent.in.h (fdopendir): Declare replacement.
63676         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63677         * tests/test-fdopendir.c (main): Test something other than
63678         /dev/null, since on Hurd that behaves like a directory.
63680         test-symlink: port to GNU/Hurd
63681         * tests/test-symlink.h (test_symlink): Relax expected errno.
63683         doc: tweak more cygwin information
63684         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63685         now compatible with glibc.
63686         * doc/posix-functions/getopt.texi (getopt): Likewise.
63688         getopt-gnu: add another test
63689         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63690         guarantee behavior relied on by m4.
63691         * tests/test-getopt.c (main): Use it.
63692         * modules/getopt-posix-tests (Depends-on): Add setenv.
63693         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63695         getopt: fix compilation on darwin
63696         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63697         include.
63698         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63699         Reported by Ludovic Courtès.
63701 2009-10-06  Bruno Haible  <bruno@clisp.org>
63703         * modules/size_max (Description): Discourage its use.
63704         Reported by Simon Josefsson.
63706 2009-10-06  Jim Meyering  <meyering@redhat.com>
63708         linkat: avoid compilation failure
63709         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63711 2009-10-05  Eric Blake  <ebb9@byu.net>
63713         linkat: support Linux 2.6.17
63714         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63715         linkat on Linux, but allow cache variable override.
63716         * lib/linkat.c (rpl_linkat): Define override.
63717         * modules/linkat (Depends-on): Add symlinkat.
63718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63719         * modules/unistd (Makefile.am): Substitute it.
63720         * lib/unistd.in.h (linkat): Declare replacement.
63721         Reported by Pádraig Brady.
63723         quotearg: port test to systems with C.UTF-8 locale
63724         * tests/test-quotearg.c (struct result_strings): Add another
63725         member, differentiating between C.ASCII and C.UTF-8 handling.
63726         (compare_strings): Add parameter.
63727         (main): Adjust all callers.
63729         getopt: avoid clash with FreeBSD _getopt_internal
63730         * lib/getopt.in.h (_getopt_internal): Override the name.
63731         * lib/getopt_int.h (includes): Pick up any overrides.
63732         Reported by Reuben Thomas.
63734         hash: allow C89 compilation
63735         * lib/hash.c (check_tuning): Move declaration before statement.
63736         Reported by Reuben Thomas.
63738 2009-10-05  Karl Berry  <karl@gnu.org>
63740         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63742 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63743             Bruno Haible  <bruno@clisp.org>
63745         * lib/uname.c (uname): Use a table-driven algorithm to compute
63746         Windows NT versions.
63748 2009-10-04  Bruno Haible  <bruno@clisp.org>
63750         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63751         program_invocation_short_name.
63752         * modules/progname (configure.ac): Test for presence of
63753         program_invocation_short_name.
63754         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63756 2009-10-04  Bruno Haible  <bruno@clisp.org>
63758         * lib/progname.c (set_program_name): Fix comment.
63759         Reported by Jim Meyering.
63761 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63762             Bruno Haible  <bruno@clisp.org>
63764         * lib/uname.c: Include <string.h>.
63765         (uname): Do only one call to GetVersionEx in the common case.
63767 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63768             Bruno Haible  <bruno@clisp.org>
63770         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63771         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63772         (uname): Add support for Windows CE and various non-x86 CPU types.
63774 2009-10-03  Bruno Haible  <bruno@clisp.org>
63776         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63777         invocation to tests/configure.ac.
63778         Reported by Ian Beckwith <ianb@erislabs.net>.
63780 2009-10-02  Eric Blake  <ebb9@byu.net>
63782         fchdir: avoid compiler warning
63783         * lib/fchdir.c (canonicalize_file_name)
63784         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63786         test-open: support mingw errno values
63787         * tests/test-open.h (test_open): Relax test.
63788         * tests/test-fopen.h (test_fopen): Likewise.
63789         * tests/test-openat-safer.c (main): Likewise.
63791         open: fix opening directory on mingw
63792         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63794         test-open: on GNU/Hurd, /dev/null is a directory
63795         * tests/test-fopen.h (main): Rename...
63796         (test_fopen): ...to this.  Use a guaranteed non-directory when
63797         confirming open behavior on trailing slash.
63798         * tests/test-openat-safer.c (main): Likewise.
63799         * tests/test-open.h (main): Likewise....
63800         (test_open): ...to this.
63801         * tests/test-fopen.c (main): Adjust caller.
63802         * tests/test-fopen-safer.c (main): Likewise.
63803         * tests/test-open.c (main): Likewise.
63804         * tests/test-fcntl-safer.c (main): Likewise.
63805         Reported by Samuel Thibault.
63807         rename, fchdir: don't ignore chdir failure
63808         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63809         * lib/rename.c (rpl_rename) [W32]: Likewise.
63810         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63811         an empty destination directory if source cannot be renamed,
63812         although there is still possibility for failure.
63813         * doc/posix-functions/rename.texi (rename): Document the race.
63814         Reported by Jim Meyering.
63816         maint: cleanup whitespace in recent commits
63817         * lib/rename.c (rpl_rename): Remove tabs.
63818         * tests/test-link.h (test_link): Likewise.
63819         * lib/fchdir.c (get_name): Likewise.
63820         Reported by Jim Meyering.
63822 2009-10-02  Ben Pfaff  <blp@gnu.org>
63824         relocatable-prog-wrapper: Add missing dependency on
63825         double-slash-root.
63826         * modules/relocatable-prog-wrapper: Add dependency.
63827         Reported by Ian Beckwith <ianb@erislabs.net>.
63829 2009-10-02  Eric Blake  <ebb9@byu.net>
63831         renameat: fix Solaris bugs
63832         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63833         needed fixing.
63834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63835         * modules/stdio (Makefile.am): Substitute it.
63836         * lib/stdio.in.h (renameat): Declare replacement.
63837         * lib/renameat.c (rpl_renameat): Implement fix.
63839         renameat: new module
63840         * modules/renameat: New file.
63841         * lib/renameat.c (renameat): Likewise.
63842         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63844         * modules/stdio (Makefile.am): Substitute them.
63845         * lib/stdio.in.h (renameat): Declare it.
63846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63847         * doc/posix-functions/renameat.texi (renameat): Likewise.
63848         * modules/renameat-tests: New test.
63849         * tests/test-renameat.c: Likewise.
63851         rename: fix mingw bugs
63852         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63853         directory overwrite bugs.
63855         rename: fix another cygwin 1.5 bug
63856         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63857         checks.
63858         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63859         unnecessary cygwin workarounds.  Also work around bug with moving
63860         full directory onto an empty one.
63861         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63863         rename-dest-slash: merge into rename module
63864         * modules/rename-dest-slash (Status): Mark obsolete.
63865         (Depends-on): Add rename.
63866         (Files): Let rename do it all.
63867         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63868         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63869         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63870         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63871         * lib/rename.c (rpl_rename): Update comments.
63873         rename: fix cygwin 1.5.x bugs
63874         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63875         * lib/rename.c (rpl_rename): Work around them.
63876         * modules/rename (Depends-on): Add same-inode.
63878         rename: fix Solaris 10 bug
63879         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63880         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63881         was the only bug.
63883         rename: fix Solaris 9 bug
63884         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63885         on non-directory.  Avoid calling exit.
63886         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63887         strdup.
63888         * modules/rename-tests (Depends-on): Drop lstat.
63889         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63890         (gl_PREREQ_RENAME): Delete unused macro.
63892         rename-dest-slash: fix NetBSD bug
63893         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63894         links.
63895         * modules/rename-dest-slash (Depends-on): Add same-inode.
63897         rename-tests: new test, exposes several platform bugs
63898         * modules/rename-tests: New file.
63899         * tests/test-rename.h: Likewise.
63900         * tests/test-rename.c: Likewise.
63901         * doc/posix-functions/rename.texi (rename): Improve documentation,
63902         including bugs that will eventually be fixed in gnulib.
63904 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63906         * lib/uname.c: Include <stdlib.h>
63907         (uname): Assume version info is available.
63909 2009-10-02  Jim Meyering  <meyering@redhat.com>
63911         gnu-web-doc-update: correct --help output
63912         * build-aux/gnu-web-doc-update: Make --help output relevant.
63914         gnu-web-doc-update: add standard options
63915         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63917         gnu-web-doc-update: New module.
63918         Use this script to automatically update the on-line web documentation
63919         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63920         * modules/gnu-web-doc-update: New file, from coreutils.
63921         * build-aux/gnu-web-doc-update: New script.
63923 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63925         link: LoadLibrary is not needed.
63926         * lib/link.c: Use GetModuleHandle.
63928 2009-10-01  Eric Blake  <ebb9@byu.net>
63930         getopt: bump serial number
63931         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63932         change.
63934         tests: tighten link, rmdir, and remove tests
63935         * tests/test-link.h (includes): No need to use <config.h> here.
63936         Clean up if directory hard link was created, otherwise test for
63937         trailing '.'.
63938         * tests/test-linkat.c (main): Simplify.
63939         * tests/test-remove.c (main): Enhance test for trailing '.'.
63940         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63942 2009-10-01  Jim Meyering  <meyering@redhat.com>
63944         maint.mk: requiring "make major" was annoying, for a "minor" release.
63945         What is intended is "stable", to contrast with alpha and beta,
63946         so require "make stable", not "make major".
63947         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63948         (get_tool_versions): Likewise.
63949         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63951 2009-09-30  Ben Pfaff  <blp@gnu.org>
63953         Fix broken build of replacement for Windows tmpfile().
63954         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63955         flags argument added along with the 'mkostemp' module.
63957 2009-09-28  Bruno Haible  <bruno@clisp.org>
63959         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63960         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63961         to 'remove_elt'.
63962         (gl_list_remove): Update.
63963         * lib/gl_list.c (gl_list_remove): Update.
63964         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63965         to 'remove_elt'.
63966         (gl_oset_remove): Update.
63967         * lib/gl_list.c (gl_oset_remove): Update.
63968         Reported by Eric Blake.
63970 2009-09-28  Eric Blake  <ebb9@byu.net>
63972         doc: mention yet more cygwin 1.7 status
63973         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63974         cygwin.
63975         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63976         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63978         argp: fix test failure
63979         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63980         that are not upper-case.  Pass correct range to tolower.
63982 2009-09-27  Jim Meyering  <meyering@redhat.com>
63984         test-yesno: work around sparc-dash here-document infelicity
63985         Without this change, the literal \177 byte in a here document
63986         would make dash 0.5.5.1-3 access uninitialized memory.
63987         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63988         Instead, use a marker, "@", and filter through tr to create the desired
63989         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63991 2009-09-27  Bruno Haible  <bruno@clisp.org>
63993         Disable untested support for new flavours of ACLs on AIX.
63994         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63995         progress.
63996         * lib/set-mode-acl.c (qset_acl): Likewise.
63998 2008-12-07  Bruno Haible  <bruno@clisp.org>
64000         Add support for new flavours of ACLs on AIX. (Untested.)
64001         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
64002         (file_has_acl): Add support for newer AIX.
64003         * lib/set-mode-acl.c (qset_acl): Likewise.
64004         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
64005         Rainer Tammer <tammer@tammer.net>.
64007 2009-09-26  Eric Blake  <ebb9@byu.net>
64009         argp: fix compilation of getopt
64010         * lib/getopt.in.h (includes): Use different guard than glibc.
64011         Reported by Sergey Poznyakoff.
64013         doc: mention more cygwin 1.7 status
64014         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
64015         bug.
64016         * doc/posix-functions/execl.texi (execl): Likewise.
64017         * doc/posix-functions/execle.texi (execle): Likewise.
64018         * doc/posix-functions/execlp.texi (execlp): Likewise.
64019         * doc/posix-functions/execv.texi (execv): Likewise.
64020         * doc/posix-functions/execve.texi (execve): Likewise.
64021         * doc/posix-functions/execvp.texi (execvp): Likewise.
64022         * doc/glibc-functions/canonicalize_file_name.texi
64023         (canonicalize_file_name): Cygwin 1.7 now provides this.
64024         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
64025         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
64026         on AT_SYMLINK_NOFOLLOW.
64028 2009-09-24  Eric Blake  <ebb9@byu.net>
64030         test-linkat: make test more robust
64031         * tests/test-linkat.c (main): Avoid collision with EEXIST.
64033         getopt: fix inclusion guards for cygwin
64034         * modules/getopt-posix (Depends-on): Add include-next.
64035         (Makefile.am): Substitute more items in replacement header.
64036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
64037         <getopt.h>.
64038         * lib/getopt.in.h (includes): Use split inclusion guard, and
64039         prefer <getopt.h> over include <unistd.h> when one is present.
64040         (option): Also override name of 'struct option'.
64042         same-inode: revert prior change; it is not yet ready
64043         * NEWS: Undo mention of this change.
64044         * lib/same-inode.h (same-inode.h): Undo tri-state change.
64045         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
64046         * lib/cycle-check.c (cycle_check): Likewise.
64047         * lib/same.c (same_name): Likewise.
64048         * lib/at-func2.c (at_func2): Likewise.
64050 2009-09-23  Eric Blake  <ebb9@byu.net>
64052         linkat: new module
64053         * modules/linkat: New file.
64054         * lib/at-func2.c (at_func2): Likewise.
64055         * lib/linkat.c (linkat): Likewise.
64056         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
64057         * lib/openat-priv.h (at_func2): Add declaration.
64058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64059         * modules/unistd (Makefile.am): Substitute them.
64060         * lib/unistd.in.h (linkat): Declare it.
64061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64062         * doc/posix-functions/linkat.texi (linkat): Likewise.
64063         * doc/posix-functions/link.texi (link): Tweak wording.
64064         * tests/test-link.c (main): Move guts...
64065         * tests/test-link.h (test_link): ...into new file.
64066         * modules/linkat-tests: New test.
64067         * tests/test-linkat.c: Likewise.
64068         * modules/link-tests (Files): Ship new file.
64069         (Depends-on): Add stdbool.
64071         dirname: add library-safe mdir_name
64072         * lib/dirname.h (mdir_name): New prototype.
64073         * lib/dirname.c (dir_name): Move guts...
64074         (mdir_name): ...to new function that avoids xalloc_die.
64076         fchdir: another mingw fix
64077         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
64078         * lib/fchdir.c (get_name): New helper method; skips canonicalize
64079         on mingw (where it has not yet been ported), and make it optional
64080         elsewhere.
64081         (_gl_register_fd): Use it.
64083         same-inode: make SAME_INODE tri-state, to port to mingw
64084         * NEWS: Mention this change.
64085         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
64086         st_ino always being 0.
64087         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
64088         * lib/cycle-check.c (cycle_check): Likewise.
64089         * lib/same.c (same_name): Likewise.
64091         lstat: avoid mingw compilation error
64092         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
64093         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
64094         lstat ourselves.
64095         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
64096         was adequate.
64097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
64098         the checks for lstat.
64099         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
64101         link: fix test failure on Solaris 9
64102         * lib/link.c (rpl_link): Don't assume link will catch bogus
64103         trailing slash on source.
64105         test-symlinkat: enhance test
64106         * tests/test-readlink.c (main): Move guts...
64107         * tests/test-readlink.h (test_readlink): ...into new file.
64108         * tests/test-symlink.c (main): Move guts...
64109         * tests/test-symlink.h (test_symlink): ...into new file.
64110         * tests/test-symlinkat.c (main): Use new files for further
64111         coverage.
64112         (do_symlink, do_readlink): New helper functions.
64113         * modules/symlink-tests (Files): Ship new file.
64114         (Depends-on): Add stdbool.
64115         * modules/readlink-tests (Files): Ship new file.
64116         (Depends-on): Add stdbool.
64117         * modules/symlinkat-tests (Files): Use new files.
64119 2009-09-23  Eric Blake  <ebb9@byu.net>
64121         readlink: document portability issue with symlink length
64122         * doc/posix-functions/lstat.texi (lstat): Mention that some file
64123         systems have bogus st_size on symlinks, and mention the
64124         areadlink-with-size module.
64125         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
64126         * doc/posix-functions/readlink.texi (readlink): Mention the
64127         areadlink module, and ERANGE failure.
64128         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64129         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
64131         readlink: fix Solaris 9 bug with trailing slash
64132         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
64133         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
64134         * doc/posix-functions/readlink.texi (readlink): Document this.
64135         * modules/readlink-tests: New test.
64136         * tests/test-readlink.c: Likewise.
64138         readlink: fix cygwin 1.5.x bug with return type
64139         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
64140         * lib/unistd.in.h (readlink): Use ssize_t.
64141         * lib/readlink.c (readlink): Likewise.
64142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64143         * modules/unistd (Makefile.am): Substitute it.
64144         * lib/unistd.in.h (readlink): Declare replacement.
64145         * doc/posix-functions/readlink.texi (readlink): Document this.
64147         symlink: use throughout gnulib
64148         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
64149         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
64150         symlink is not used.
64151         * modules/symlinkat (Depends-on): Add symlink.
64152         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64153         * modules/canonicalize-tests (Depends-on): Likewise.
64154         * modules/lstat-tests (Depends-on): Likewise.
64155         * modules/openat-tests (Depends-on): Likewise.
64156         * modules/remove-tests (Depends-on): Likewise.
64157         * modules/rmdir-tests (Depends-on): Likewise.
64158         * modules/unlink-tests (Depends-on): Likewise.
64159         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
64160         * tests/test-canonicalize.c (symlink): Likewise.
64161         * tests/test-fstatat.c (symlink): Likewise.
64162         * tests/test-lstat.c (symlink): Likewise.
64163         * tests/test-remove.c (symlink): Likewise.
64164         * tests/test-rmdir.c (symlink): Likewise.
64165         * tests/test-unlink.c (symlink): Likewise.
64166         * tests/test-unlinkat.c (symlink): Likewise.
64168         symlink: new module, for Solaris 9 bug
64169         * modules/symlink: New file.
64170         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
64171         * lib/symlink.c: Likewise.
64172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
64173         * modules/unistd (Makefile.am): Substitute them.
64174         * lib/unistd.in.h (symlink): Declare replacement.
64175         * MODULES.html.sh (File system functions): Mention it.
64176         * doc/posix-functions/symlink.texi (symlink): Likewise.
64177         * modules/symlink-tests: New test.
64178         * tests/test-symlink.c: Likewise.
64180 2009-09-23  Bruno Haible  <bruno@clisp.org>
64182         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
64183         when needed.
64184         Test case: gnulib-tool --import --with-tests atexit inttypes.
64185         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
64187 2009-09-23  Bruno Haible  <bruno@clisp.org>
64189         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
64190         subcommand, not in a subshell.
64192 2009-09-22  Eric Blake  <ebb9@byu.net>
64194         unistd: sort replacement declarations
64195         * lib/unistd.in.h: Sort declarations.
64197         open, openat: minor optimization
64198         * lib/open.c (open): If open succeeded, len is non-zero.
64199         * lib/openat.c (rpl_openat): Likewise.
64201         link-follow: ensure correct result
64202         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
64203         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
64204         distinguish between possible failures.
64206 2009-09-21  Eric Blake  <ebb9@byu.net>
64208         fts: avoid compiler warning
64209         * lib/fts.c (dirent_inode_sort_may_be_useful)
64210         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
64212 2009-09-19  Bruno Haible  <bruno@clisp.org>
64214         * lib/progreloc.c (canonicalize_file_name): New declaration.
64216 2009-09-19  Eric Blake  <ebb9@byu.net>
64218         link: fix quoting
64219         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
64221         openat: fix openat bugs on Solaris 9
64222         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
64223         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
64224         * modules/openat (Depends-on): Add open.
64225         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
64226         * modules/fcntl-h (Makefile.am): Substitute it.
64227         * lib/fcntl.in.h (openat): Declare replacement.
64228         * doc/posix-functions/openat.texi (openat): Document this.
64230         openat: move fstatat and unlinkat into correct files
64231         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
64232         compiled.
64233         * lib/openat.c (fstatat, unlinkat): Move...
64234         * lib/fstatat.c (fstatat): ...into correct files.
64235         * lib/unlinkat.c (unlinkat): Likewise.
64237         openat: fix unlinkat bugs on Solaris 9
64238         * lib/unlinkat.c (unlinkat): New file.
64239         * modules/openat (Depends-on): Add unlink.
64240         (Files): Distribute it.
64241         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
64242         trailing slash behavior is broken.
64243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64244         * modules/unistd (Makefile.am): Substitute it.
64245         * lib/unistd.in.h (unlinkat): Declare replacement.
64246         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
64248         openat: fix fstatat bugs on Solaris 9
64249         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
64250         stat.
64251         * doc/posix-functions/fstatat.texi (fstatat): Document this.
64253         test-unlinkat: enhance test, to expose Solaris 9 bug
64254         * tests/test-unlink.c (main): Factor guts...
64255         * tests/test-unlink.h (test_rmdir_func): ...into new file.
64256         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
64257         * tests/test-rmdir.c (main): Adjust caller.
64258         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
64259         (unlinker): New helper function.
64260         (rmdirat): Enhance check.
64261         * modules/rmdir-tests (Depends-on): Add stdbool.
64262         * modules/unlink-tests (Depends-on): Likewise.
64263         (Files): Add test-unlink.h.
64264         * modules/openat-tests (Files): Likewise.
64265         (Depends-on): Add unlinkdir.
64267         test-fstatat: new test, to expose Solaris 9 bugs
64268         * tests/test-stat.c (main): Factor guts...
64269         * tests/test-stat.h (test_stat_func): ...into new file.
64270         * tests/test-lstat.c (main): Factor guts...
64271         * tests/test-lstat.h (test_lstat_func): ...into new file.
64272         * tests/test-fstatat.c: New file.
64273         * modules/stat-tests (Files): Add test-stat.h.
64274         * modules/lstat-tests (Files): Add test-lstat.h.
64275         (Depends-on): Add stdbool.
64276         * modules/openat-tests (Depends-on): Add pathmax.
64277         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
64278         (Makefile.am): Run new test.
64280         remove: new module, for mingw and Solaris 9 bugs
64281         * modules/remove: New file.
64282         * lib/remove.c: Likewise.
64283         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
64284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
64285         * modules/stdio (Makefile.am): Use them.
64286         * lib/stdio.in.h (remove): Declare replacement.
64287         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64288         * doc/posix-functions/remove.texi (remove): Likewise.
64289         * modules/remove-tests: New test.
64290         * tests/test-remove.c: Likewise.
64292         unlink: new module, for Solaris 9 bug
64293         * modules/unlink: New file.
64294         * lib/unlink.c: Likewise.
64295         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
64296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64297         * modules/unistd (Makefile.am): Use them.
64298         * lib/unistd.in.h (stat): Declare replacement.
64299         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64300         * doc/posix-functions/unlink.texi (unlink): Likewise.
64301         * modules/unlink-tests: New test.
64302         * tests/test-unlink.c: Likewise.
64304         lstat: fix Solaris 9 bug
64305         * lib/lstat.c (lstat): Also check for trailing slash on
64306         non-symlink, non-directories.  Use stat module to simplify logic.
64307         * doc/posix-functions/lstat.texi (lstat): Document it.
64308         * modules/lstat-tests (Depends-on): Add errno, same-inode.
64309         (configure.ac): Check for symlink.
64310         * tests/test-lstat.c (main): Add more tests.
64312         stat: add as dependency to other modules
64313         * modules/chown (Depends-on): Add stat.
64314         * modules/euidaccess (Depends-on): Likewise.
64315         * modules/fchdir (Depends-on): Likewise.
64316         * modules/isdir (Depends-on): Likewise.
64317         * modules/link (Depends-on): Likewise.
64318         * modules/lstat (Depends-on): Likewise.
64319         * modules/mkdir-p (Depends-on): Likewise.
64320         * modules/modechange (Depends-on): Likewise.
64321         * modules/open (Depends-on): Likewise.
64322         * modules/readlink (Depends-on): Likewise.
64323         * modules/same (Depends-on): Likewise.
64325         stat: fix Solaris 9 bug
64326         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
64327         slash.
64328         * lib/stat.c (rpl_stat): Work around it.
64329         * doc/posix-functions/stat.texi (stat): Update documentation.
64331         stat: new module, for mingw bug
64332         * modules/stat: New file.
64333         * lib/stat.c: Likewise.
64334         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64336         * modules/sys_stat (Makefile.am): Use them.
64337         * lib/sys_stat.in.h (stat): Declare replacement.
64338         * lib/openat.c (fstatat): Deal with lstat and stat being function
64339         macros.
64340         * modules/openat (Depends-on): Add inline.
64341         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64342         * doc/posix-functions/stat.texi (stat): Likewise.
64343         * modules/stat-tests: New test.
64344         * tests/test-stat.c: Likewise.
64346 2009-09-19  Jim Meyering  <meyering@redhat.com>
64348         syntax-check: detect unnecessary inclusion of canonicalize.h
64349         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
64351 2009-09-19  Eric Blake  <ebb9@byu.net>
64353         canonicalize-lgpl: adjust clients to use correct header
64354         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64355         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
64356         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64357         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64358         * lib/progreloc.c (includes): Likewise.
64360 2009-09-19  Jim Meyering  <meyering@redhat.com>
64362         test-posixtm.c: correct a comment
64363         * tests/test-posixtm.c: Correct first-line comment.
64364         Spotted by Eric Blake.
64366 2009-09-16  Jim Meyering  <meyering@redhat.com>
64368         posixtm-tests: make T const-correct; add a test case
64369         * tests/test-posixtm.c (T): Declare const.
64370         Add a test for -(2^31+1).
64371         Remove useless can-succeed-only-in-2002 test.
64373         posixtm-tests: adjust the sole failing test
64374         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64375         expected output matches what mktime now produces.  Cross-checked via
64376         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64378         posixtm: move #ifdef'd tests into a new module
64379         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64380         * tests/test-posixtm.c: ... this new file.
64381         * modules/posixtm-tests: New module.
64383 2009-09-19  Eric Blake  <ebb9@byu.net>
64385         openat: simplify use of at-func.c
64386         * lib/at-func.c (includes): Include prerequisites here, to
64387         simplify requirements on client files.
64388         * lib/openat-priv.h: Add double-inclusion guard.
64389         * lib/faccessat.c (includes): Simplify.
64390         * lib/fchmodat.c (includes): Likewise.
64391         * lib/fchownat.c (includes): Likewise.
64392         * lib/mkdirat.c (includes): Likewise.
64393         * lib/mkfifoat.c (includes): Likewise.
64394         * lib/symlinkat.c (includes): Likewise.
64396         openat: allow return of fd 0
64397         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64398         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64399         unistd-safer.
64400         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64401         <fcntl.h>; this module does not leak fds.
64402         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64403         must be allowed to return 0, leaving openat_safer to add the
64404         safety.
64405         (openat_permissive): Avoid writing to just-opened fd 2 if
64406         restoring the current directory fails.
64407         * lib/openat-die.c (openat_restore_fail): Add comment.
64408         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64409         (save_cwd): Guarantee safe fd, but without use of open_safer.
64410         * tests/test-openat.c: New test.
64411         * modules/openat-tests (Files, Makefile.am): Distribute and build
64412         new file.
64414         relocatable-prog-wrapper: fix build
64415         * modules/relocatable-prog-wrapper (Files): Update name of
64416         canonicalize m4 file, broken on 2009-09-17.
64417         Reported by emad hajjar <aleppos@hotmail.com>.
64419 2009-09-19  Bruno Haible  <bruno@clisp.org>
64421         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64422         * lib/safe-alloc.c: Likewise.
64423         Reported by Ian Beckwith <ianb@erislabs.net>.
64425 2009-09-18  Bruno Haible  <bruno@clisp.org>
64427         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64428         Reported by <erobles@sensacd.com.mx>.
64430 2009-09-17  Eric Blake  <ebb9@byu.net>
64432         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64433         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64434         slashes when checking if last component is missing.
64435         * tests/test-canonicalize.c (main): Test this.
64437         canonicalize, canonicalize-lgpl: honor // if distinct from /
64438         * modules/canonicalize (Files): Add double-slash-root.m4.
64439         * modules/canonicalize-lgpl (Files): Likewise.
64440         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64441         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64442         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64443         fallback definition.
64444         (canonicalize_filename_mode): Use it to protect //.
64445         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64446         (__realpath): Likewise.
64447         * tests/test-canonicalize.c (main): Test this.
64448         * tests/test-canonicalize-lgpl.c (main): Likewise.
64449         * modules/canonicalize-tests (Depends-on): Add same-inode.
64450         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64452         canonicalize-lgpl: fix glibc bug with trailing slash
64453         * m4/canonicalize-lgpl.m4: Move contents...
64454         * m4/canonicalize.m4: ...here.
64455         (gl_CANONICALIZE_LGPL): Factor realpath check...
64456         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64457         glibc 2.3.5 bug, fixed 2005-04-27.
64458         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64459         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64460         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64461         * modules/canonicalize-lgpl (Files): Manage file rename.
64462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64463         * modules/stdlib (Makefile.am): Substitute witness.
64464         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64465         is needed.
64466         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64467         replacement is required.
64468         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64469         * doc/glibc-functions/canonicalize_file_name.texi
64470         (canonicalize_file_name): Document this.
64471         * doc/posix-functions/realpath.texi (realpath): Likewise.
64473         canonicalize-lgpl: reject non-directory with trailing slash
64474         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64475         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64476         catches failures in glibc 2.3.5.
64477         * tests/test-canonicalize.c (main): Likewise.
64479         canonicalize-lgpl: use native realpath if it works
64480         * lib/canonicalize-lgpl.c (realpath): Guard with
64481         FUNC_REALPATH_WORKS.
64482         * lib/stdlib.in.h (realpath): Make declaration optional based on
64483         HAVE_REALPATH.
64484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64485         native realpath works.
64486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64487         * modules/stdlib (Makefile.am): Substitute witness.
64489         canonicalize, canonicalize-lgpl: use <stdlib.h>
64490         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64491         (Include): Mention <stdlib.h>.
64492         (configure.ac): Mention functions we provide.
64493         * modules/canonicalize (configure.ac): Likewise.
64494         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64495         realpath if canonicalize_file_name is missing.
64496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64497         * modules/stdlib (Makefile.am): Substitute witnesses.
64498         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64499         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64500         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64501         * NEWS: Document this.
64502         * doc/glibc-functions/canonicalize_file_name.texi
64503         (canonicalize_file_name): Likewise.
64504         * doc/posix-functions/realpath.texi (realpath): Likewise.
64505         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64507         test-canonicalize: consolidate into single C program
64508         * tests/test-canonicalize.sh: Delete; move setup into...
64509         * tests/test-canonicalize.c (main): ...the program, making it
64510         easier to run in debugger.  Add some tests.
64511         * modules/canonicalize-tests (Files): Remove unused file.
64512         (Depends-on): Add progname.
64513         (configure.ac, Makefile.am): Simplify.
64515         test-canonicalize-lgpl: consolidate into single C program
64516         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64517         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64518         easier to run in debugger.  Add some tests.
64519         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64520         (configure.ac, Makefile.am): Simplify.
64522         canonicalize: avoid resolvepath
64523         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64524         unnecessary checks.
64525         * lib/canonicalize.c (includes): Simplify.
64526         (canonicalize_file_name): Drop resolvepath implementation.
64527         * modules/canonicalize (Depends-on): Drop filenamecat.
64529         canonicalize: don't lose errno
64530         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64531         over calls to free.
64533         canonicalize: simplify errno handling
64534         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64535         assignment.
64537         canonicalize, canonicalize-lgpl: update module dependencies
64538         * modules/canonicalize (Depends-on): Add extensions, lstat,
64539         pathmax, stdlib.
64540         (Files): Drop pathmax.h.
64541         (configure.ac): Adjust macro name.
64542         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64543         lstat, stdlib, sys_stat.
64544         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64545         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64546         extensions.
64547         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64548         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64549         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64550         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64551         declaration, if available.
64552         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64553         we can rely on the readlink module.
64554         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64555         (includes): Use <unistd.h> unconditionally.
64557 2009-09-17  Eric Blake  <ebb9@byu.net>
64559         maint: make Include sections of modules consistent
64560         * modules/alloca: Use only header name; no need to list #include.
64561         * modules/alloca-opt: Likewise.
64562         * modules/arpa_inet: Likewise.
64563         * modules/canon-host: Likewise.
64564         * modules/configmake: Likewise.
64565         * modules/dirent: Likewise.
64566         * modules/eealloc: Likewise.
64567         * modules/environ: Likewise.
64568         * modules/fchdir: Likewise.
64569         * modules/fcntl: Likewise.
64570         * modules/fcntl-h: Likewise.
64571         * modules/gethrxtime: Likewise.
64572         * modules/gettime: Likewise.
64573         * modules/ignore-value: Likewise.
64574         * modules/inet_ntop: Likewise.
64575         * modules/inet_pton: Likewise.
64576         * modules/inttypes: Likewise.
64577         * modules/isnand-nolibm: Likewise.
64578         * modules/isnanf-nolibm: Likewise.
64579         * modules/mbchar: Likewise.
64580         * modules/mbfile: Likewise.
64581         * modules/mbiter: Likewise.
64582         * modules/mbuiter: Likewise.
64583         * modules/netdb: Likewise.
64584         * modules/netinet_in: Likewise.
64585         * modules/nproc: Likewise.
64586         * modules/pagealign_alloc: Likewise.
64587         * modules/poll: Likewise.
64588         * modules/printf-frexp: Likewise.
64589         * modules/pthread: Likewise.
64590         * modules/putenv: Likewise.
64591         * modules/random_r: Likewise.
64592         * modules/relocatable-prog: Likewise.
64593         * modules/search: Likewise.
64594         * modules/select: Likewise.
64595         * modules/selinux-h: Likewise.
64596         * modules/settime: Likewise.
64597         * modules/signal: Likewise.
64598         * modules/size_max: Likewise.
64599         * modules/socklen: Likewise.
64600         * modules/ssize_t: Likewise.
64601         * modules/stdarg: Likewise.
64602         * modules/stdbool: Likewise.
64603         * modules/stddef: Likewise.
64604         * modules/stdint: Likewise.
64605         * modules/stdio: Likewise.
64606         * modules/stdlib: Likewise.
64607         * modules/string: Likewise.
64608         * modules/strings: Likewise.
64609         * modules/sys_file: Likewise.
64610         * modules/sys_ioctl: Likewise.
64611         * modules/sys_select: Likewise.
64612         * modules/sys_socket: Likewise.
64613         * modules/sys_stat: Likewise.
64614         * modules/sys_time: Likewise.
64615         * modules/sys_times: Likewise.
64616         * modules/sys_utsname: Likewise.
64617         * modules/sys_wait: Likewise.
64618         * modules/sysexits: Likewise.
64619         * modules/time: Likewise.
64620         * modules/times: Likewise.
64621         * modules/tmpfile: Likewise.
64622         * modules/trim: Likewise.
64623         * modules/unistd: Likewise.
64624         * modules/wchar: Likewise.
64625         * modules/wctype: Likewise.
64627 2009-09-17  Bruno Haible  <bruno@clisp.org>
64629         Make getdate.y compile on QNX and NetBSD 5 / i386.
64630         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64631         TIME_T_FITS_IN_LONG_INT.
64632         * lib/getdate.y (long_time_t): New type.
64633         (relative_time): Change type of 'seconds' field to long_time_t.
64634         (get_date): Update types of local variables. Check against overflow
64635         during conversion from long_time_t to time_t.
64636         Reported by Matt Kraai <kraai@ftbfs.org>
64637         and Hasso Tepper <hasso@netbsd.org>.
64639 2009-09-17  Bruno Haible  <bruno@clisp.org>
64641         * modules/COPYING: Update copyright years.
64642         * modules/README: Likeiwse.
64643         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64644         Reported by Ian Beckwith <ianb@erislabs.net>.
64646 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64648         * users.txt: Update references for gnuit package.
64650 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64652         * m4/getdelim.m4: Fix typo in copyright line.
64654 2009-09-17  Bruno Haible  <bruno@clisp.org>
64656         * lib/atoll.c: Use the standard header with GPL copyright.
64657         * lib/argz.in.h: Likewise.
64658         * lib/glob.c: Likewise.
64659         * lib/glob-libc.h: Likewise.
64660         * lib/random_r.c: Likewise.
64661         * lib/siglist.h: Likewise.
64662         * lib/strsignal.c: Likewise.
64663         Reported by Ian Beckwith <ianb@erislabs.net>.
64665 2009-09-17  Eric Blake  <ebb9@byu.net>
64667         rmdir: ensure correct dependency order
64668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64670 2009-09-17  Bruno Haible  <bruno@clisp.org>
64672         Disable assertion that fails on NetBSD 5 / i386.
64673         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64674         Reported by Sam Steingold <sds@gnu.org>
64675         and Hasso Tepper <hasso@netbsd.org>.
64677 2009-09-16  Eric Blake  <ebb9@byu.net>
64679         unlinkdir: port to mingw
64680         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64681         on which no one can unlink a directory.
64683         stdlib: sort witness names
64684         * modules/stdlib (Makefile.am): Sort replacements.
64685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64686         * lib/stdlib.in.h: Likewise.
64688         parse-duration-tests: avoid link failure
64689         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64690         LIBINTL.
64691         Reported by Tom G. Christensen.
64693         openat-tests: ensure unlinkat behaves like rmdir
64694         * tests/test-rmdir.c (main): Factor guts...
64695         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64696         * modules/rmdir-tests (Files): Ship new file.
64697         * modules/openat-tests: New test.
64698         * tests/test-unlinkat.c: Likewise.
64700         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64701         * modules/rmdir-errno (Status, Notice): Now obsolete.
64703         rmdir: work around cygwin 1.5.x and mingw bugs
64704         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64705         * lib/rmdir.c (rmdir): Work around it.
64706         * modules/rmdir (Status, Notice): No longer obsolete.
64707         (Files): Add dos.m4.
64708         (Depends-on): Add unistd.
64709         (configure.ac): Set witnesses.
64710         (License): Relax to LGPLv2+.
64711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64712         * modules/unistd (Makefile.am): Substitute witnesses.
64713         * lib/unistd.in.h (rmdir): Declare replacement.
64714         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64715         * modules/rmdir-tests: New tests.
64716         * tests/test-rmdir.c: Likewise.
64718 2009-09-15  Eric Blake  <ebb9@byu.net>
64720         fchdir: improve use of replacement functions
64721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64723         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64724         REPLACE_CLOSEDIR.
64725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64726         * modules/sys_stat (Makefile.am): Substitute correct witness.
64727         * modules/dirent (Makefile.am): Likewise.
64728         * modules/unistd (Makefile.am): Likewise.
64729         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64730         * lib/unistd.in.h (dup): Likewise.
64731         * lib/sys_stat.in.h (fstat): Likewise.
64733         maint: ignore gnulib-tool temp files
64734         * .gitignore: Ignore files created during gnulib-tool --test.
64736 2009-09-13  Jim Meyering  <meyering@redhat.com>
64738         posixtm: don't reject a time that specify "60" as the number of seconds
64739         * lib/posixtm.c (posixtime): The code to reject invalid dates
64740         would also reject a time specified with the .60 suffix.
64741         But POSIX allows that, in order to accommodate leap seconds.
64742         So don't reject it.
64743         (main): Adjust tests accordingly.
64744         * modules/posixtm (Depends-on): Add stpcpy.
64746 2009-09-11  Jim Meyering  <meyering@redhat.com>
64748         announce-gen: include [$release_type] in emitted Subject:
64749         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64750         e.g., [stable] in the emitted Subject: line.
64752 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64754         Remove obsolete macros from several modules.
64755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64756         obsolete Autoconf macros with their modern counterparts.
64757         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64758         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64760         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64761         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64762         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64764         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64765         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64766         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64767         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64769         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64770         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64771         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64772         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64773         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64774         * m4/time_r.m4 (gl_TIME_R): Likewise.
64775         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64776         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64777         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64779         Fix copyright header in build-aux scripts.
64780         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64781         recommendation.
64782         * build-aux/ncftpput-ftp: Likewise.
64783         * build-aux/update-copyright: Likewise.
64785 2009-09-09  Eric Blake  <ebb9@byu.net>
64787         test-link: allow Linux choice of errno
64788         * tests/test-link.c (main): Relax test for alternate error.
64790         strndup: fix improper m4 caching
64791         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64792         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64793         (gl_PREREQ_STRNDUP): Delete.
64794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64795         * modules/string (Makefile.am): Substitute it.
64796         * lib/string.in.h (strndup): Modernize prototype.
64798         getcwd: port to mingw
64799         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64800         different from the POSIX assumptions made throughout the getcwd
64801         module; fortunately, the mingw getcwd does not need replacement.
64802         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64803         * modules/getcwd-tests: New test.
64804         * tests/test-getcwd.c: Likewise.
64806         link: fix platform bugs
64807         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64808         * lib/link.c (link): Work around them.  Fix related mingw bug.
64809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64810         * modules/unistd (Makefile.am): Substitute it.
64811         * lib/unistd.in.h (link): Declare replacement.
64812         * doc/posix-functions/link.texi (link): Document this.
64813         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64815         test-link: consolidate into single C program, test more cases
64816         * tests/test-link.sh: Delete.
64817         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64818         at least Cygwin and Solaris.
64819         * modules/link-tests (Files): Remove unused file.
64820         (Depends-on): Add errno, sys_stat.
64821         (Makefile.am): Simplify.
64823 2009-09-08  Bruno Haible  <bruno@clisp.org>
64825         Work around towlower, towupper bug on mingw.
64826         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64827         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64828         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64829         * doc/posix-functions/towupper.texi: Likewise.
64830         Reported by Eric Blake.
64832 2009-09-08  Jim Meyering  <meyering@redhat.com>
64834         build: don't try to run autoheader if we don't use it
64835         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64836         is not used in configure.ac.
64838 2009-09-08  Eric Blake  <ebb9@byu.net>
64840         euidaccess: fix compilation error
64841         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64843         rawmemchr: relax license
64844         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64845         okay.
64846         Reported by Jim Meyering.
64848         mkfifoat: new module
64849         * modules/mkfifoat: New file.
64850         * lib/mkfifoat.c: Likewise.
64851         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64852         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64853         * modules/sys_stat (Makefile.am): Use them.
64854         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64855         * MODULES.html.sh (File system functions): Mention module.
64856         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64857         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64858         * modules/mkfifoat-tests: New test.
64859         * tests/test-mkfifoat.c: Likewise.
64861         strchrnul: relax license
64862         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64863         okay.
64864         Reported by Jim Meyering.
64866 2009-09-08  Eric Blake  <ebb9@byu.net>
64868         fstatat: fix compilation on Solaris
64869         * lib/fstatat.c (includes): Add fcntl.h.
64870         Reported by Pádraig Brady.
64872 2009-09-07  Eric Blake  <ebb9@byu.net>
64874         rename: modernize replacement
64875         * modules/rename (Depends-on): Add stdio.
64876         (configure.ac): Declare witness.
64877         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64878         stdio take care of replacement.
64879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64880         * modules/stdio (Makefile.am): Substitute them.
64881         * lib/stdio.in.h (rename): Declare replacement.
64882         * lib/rename.c (includes): Allow cross-compilation to non-windows
64883         machines.
64884         * doc/posix-functions/rename.texi (rename): Improve
64885         documentation.
64887         stdio: sort witness names
64888         * modules/stdio (Makefile.am): Sort replacements.
64889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64890         * lib/stdio.in.h: Likewise.
64892         getcwd: minor cleanups
64893         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64894         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64896         openat: provide more convenience names
64897         * modules/faccessat (configure.ac): Add C witness.
64898         * lib/unistd.in.h (readlinkat): Fix typo.
64899         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64900         convenience wrappers.
64901         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64902         wrappers in syntax checks.
64904 2009-09-06  Eric Blake  <ebb9@byu.net>
64906         doc: fix comments in recent patches
64907         * lib/faccessat.c: Mention correct function.
64908         * lib/fchmodat.c: Likewise.
64909         * lib/fchownat.c: Likewise.
64910         * lib/symlinkat.c: Likewise.
64911         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64912         constants.
64914         faccessat, symlinkat: continue cleanup of previous patch
64915         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64916         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64917         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64919         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64920         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64921         set.
64923 2009-09-06  Bruno Haible  <bruno@clisp.org>
64925         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64926         (fstatat): Declare if GNULIB_FSTATAT is set.
64927         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64928         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64929         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64930         * modules/fcntl-h (Files): Remove m4/openat.m4.
64931         * modules/sys_stat (Files): Remove m4/openat.m4.
64932         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64933         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64934         * modules/unistd (Files): Remove m4/openat.m4.
64935         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64936         GNULIB_OPENAT.
64937         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64938         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64939         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64940         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64941         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64942         gl_OPENAT_DEFAULTS.
64943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64944         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64945         Don't require gl_OPENAT_DEFAULTS.
64946         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64947         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64948         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64949         (gl_OPENAT_DEFAULTS): Remove macro.
64951 2009-09-06  Bruno Haible  <bruno@clisp.org>
64953         * modules/openat (configure.ac): Remove unneeded witness.
64955 2009-09-06  Bruno Haible  <bruno@clisp.org>
64957         Set errno to ENOSYS when a function is entirely unsupported.
64958         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64959         EOPNOTSUPP.
64960         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64961         * modules/chown (Depends-on): Remove errno.
64963 2009-09-06  Bruno Haible  <bruno@clisp.org>
64965         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64967 2009-09-06  Bruno Haible  <bruno@clisp.org>
64969         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64971 2009-09-06  Ben Pfaff  <blp@gnu.org>
64972             Bruno Haible  <bruno@clisp.org>
64974         Work around a glibc bug in strtok_r.
64975         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64976         Undefine if UNDEFINE_STRTOK_R is set.
64977         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64979         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64980         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64981         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64982         UNDEFINE_STRTOK_R.
64983         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64985 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64987         exclude: minor fix
64988         * lib/exclude.c: Include wctype.h
64990 2009-09-06  Akim Demaille  <demaille@gostai.com>
64992         bootstrap: improve error message
64993         * build-aux/bootstrap (find_tool): Upon failure, report the list
64994         of candidates.
64995         Honor the initial value of the envvar.
64997 2009-09-05  Eric Blake  <ebb9@byu.net>
64999         symlinkat: new module
65000         * modules/symlinkat: New file.
65001         * lib/symlinkat.c: Likewise.
65002         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
65003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
65004         * modules/unistd (Makefile.am): Use them.
65005         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
65006         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
65007         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
65008         * MODULES.html.sh (File system functions): Mention module.
65009         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
65010         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65011         * modules/symlinkat-tests: New test.
65012         * tests/test-symlinkat.c: Likewise.
65014         test-openat-safer: add more checks
65015         * tests/test-openat-safer.c (main): Check more code paths.
65017 2009-09-05  Jim Meyering  <meyering@redhat.com>
65019         syntax-check: detect unnecessary inclusion of openat.h
65020         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
65022 2009-09-05  Bruno Haible  <bruno@clisp.org>
65024         Support towlower, towupper.
65025         * doc/posix-functions/towlower.texi: Mention module wctype.
65026         * doc/posix-functions/towupper.texi: Likewise.
65027         * lib/wctype.in.h (towlower, towupper): New functions.
65028         * tests/test-wctype.c: Include stdio.h, stdlib.h.
65029         (ASSERT): New macro.
65030         (e): New variable.
65031         (main): Test also towlower, towupper. Test WEOF argument.
65032         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65034 2009-09-05  Bruno Haible  <bruno@clisp.org>
65036         Fix conversion behaviour when the input is invalid.
65037         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
65038         mark occurring in first pass of indirect conversion.
65039         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
65040         input.
65041         Found by clang's static analyzer.
65043 2009-09-05  Bruno Haible  <bruno@clisp.org>
65045         * tests/test-striconveh.c (main): Test indirect conversion on platforms
65046         where direct conversion is possible.
65048 2009-09-04  Eric Blake  <ebb9@byu.net>
65050         openat: fail with ENOENT on empty name
65051         * lib/openat-proc.c (openat_proc_name): Special-case the empty
65052         buffer.
65054         link-follow: fix logic bug in prior patch
65055         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
65056         reversed sense of yes and no in prior patch.  Avoid confusing
65057         compilation failure with desired semantics.
65059         link-follow: accommodate mingw and cross-compilation
65060         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
65061         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
65062         cross-compilation results to -1, to make linkat easier to
65063         implement when cross-compiling.  Trivially support mingw.
65064         * modules/link-follow (configure.ac): Call new name.
65065         * NEWS: Mention this.
65067 2009-09-03  Eric Blake  <ebb9@byu.net>
65069         faccessat: compile replacement
65070         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
65071         needed.
65073         fts: fix compilation error
65074         * lib/fts.c (includes): Re-add "openat.h", for
65075         openat_needs_fchdir.
65077         faccessat: new module
65078         * modules/faccessat: New file.
65079         * lib/faccessat.c: Likewise.
65080         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
65081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
65082         * modules/unistd (Makefile.am): Use it.
65083         * lib/unistd.in.h (faccessat): Declare it.
65084         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
65085         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
65086         * MODULES.html.sh (File system functions): Mention it.
65087         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
65088         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
65090         euidaccess: prefer POSIX over non-standard implementation
65091         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
65092         * lib/euidaccess.c (euidaccess): Use it if available.
65094         openat: make template easier to use
65095         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
65096         AT_FUNC_F2 to be undefined.
65097         (VALIDATE_FLAG): New macro; use it to reject bad flags.
65098         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
65099         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
65100         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
65101         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
65102         Likewise.
65103         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
65104         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
65105         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
65106         Likewise.
65108         openat: declare in POSIX headers
65109         * NEWS: Mention this.
65110         * modules/openat (configure.ac): Declare witnesses.
65111         (Depends-on): Add fcntl-h, sys_stat, unistd.
65112         (Include): Mention correct headers.
65113         * modules/fcntl-h (Depends-on): Add link-warning.
65114         (Files): Add openat.m4.
65115         (Makefile.am): Substitute witnesses.
65116         * modules/sys_stat (Files, Makefile.am): Likewise.
65117         * modules/unistd (Files, Makefile.am): Likewise.
65118         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
65119         (gl_OPENAT_DEFAULTS): New macro.
65120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
65121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
65122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
65123         (SYS_STAT_H): Remove unused variable.
65124         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
65125         * lib/fcntl--.h (includes): Remove unneeded header.
65126         * lib/openat-safer.c (includes): Likewise.
65127         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
65128         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
65129         appropriate headers.
65130         (__OPENAT_PREFIX): Delete.
65131         * lib/fcntl.in.h (openat): Provide declaration.
65132         (AT_FDCWD): Fix Solaris bug.
65133         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
65134         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
65135         * lib/fchmodat.c (includes):  Adjust to find declaration.
65136         * lib/fchownat.c (includes): Likewise.
65137         * lib/mkdirat.c (includes): Likewise.
65138         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
65139         still visible.
65141 2009-09-02  Eric Blake  <ebb9@byu.net>
65143         errno: use consistently
65144         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
65145         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
65146         * lib/canonicalize.c (ELOOP): Likewise.
65147         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
65148         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
65149         * lib/lchown.c (EOPNOTSUPP): Likewise.
65150         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
65151         * lib/savewd.c (ESTALE): Likewise.
65152         * lib/settime.c (ENOSYS): Likewise.
65153         * lib/utimens.c (ENOSYS): Likewise.
65154         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
65155         * lib/chdir-safer.c (ELOOP): Likewise.
65156         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
65157         * modules/c-stack (Depends-on): Add errno.
65158         * modules/canonicalize (Depends-on): Likewise.
65159         * modules/chdir-safer (Depends-on): Likewise.
65160         * modules/fdopendir (Depends-on): Likewise.
65161         * modules/inet_ntop (Depends-on): Likewise.
65162         * modules/inet_pton (Depends-on): Likewise.
65163         * modules/lchown (Depends-on): Likewise.
65164         * modules/openat (Depends-on): Likewise.
65165         * modules/savewd (Depends-on): Likewise.
65166         * modules/settime (Depends-on): Likewise.
65167         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
65169         fts: avoid leaking fds
65170         * modules/fts (Depends-on): Add cloexec.
65171         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
65172         flag.
65174         fts: make directory fds more robust
65175         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
65176         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
65178         backupfile, chdir-long, fts, savedir: make safer
65179         * lib/backupfile.c (includes): Use "dirent--.h", since
65180         numbered_backup can write to stderr during readdir.
65181         * lib/savedir.c (includes): Likewise.
65182         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
65183         emulation can write to stderr on failure.
65184         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
65185         * lib/getcwd.c: Document why opendir_safer is unused.
65186         * lib/glob.c: Likewise.
65187         * lib/scandir.c: Likewise.
65188         * lib/openat-proc.c: Likewise, for open_safer.
65189         * modules/backupfile (Depends-on): Add dirent-safer.
65190         * modules/savedir (Depends-on): Likewise.
65191         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
65192         * modules/chdir-long (Depends-on): Add openat-safer.
65194         openat-safer: new module
65195         * modules/openat-safer: New file.
65196         * lib/openat-safer.c: Likewise.
65197         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
65198         * lib/fcntl-safer.h (openat_safer): Declare.
65199         * lib/fcntl--.h (openat): Override.
65200         * MODULES.html.sh (File descriptor based I/O): Mention it.
65201         * lib/openat.h: Add double-inclusion guards.
65202         * lib/openat.c (includes): Only include "fcntl-safer.h", not
65203         "fcntl--.h", so we can implement openat.
65204         * modules/openat-safer-tests: New test.
65205         * tests/test-openat-safer.c: New file.
65207         dirent-safer: new module
65208         * modules/dirent-safer: New file.
65209         * lib/dirent--.h: Likewise.
65210         * lib/dirent-safer.h: Likewise.
65211         * lib/opendir-safer.c: Likewise.
65212         * m4/dirent-safer.m4: Likewise.
65213         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
65214         * modules/dirent-safer-tests: New test.
65215         * tests/test-dirent-safer.c: New file.
65216         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
65218         fdopendir: optimize on mingw
65219         * lib/unistd.in.h (_gl_directory_name): New prototype.
65220         * lib/fchdir.c (_gl_directory_name): Implement it.
65221         (fchdir): Use it to simplify implementation.
65222         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
65223         fchdir, when available, to avoid calling [f]chdir().
65225         fdopendir: split into its own module
65226         * lib/openat.c (fdopendir): Move...
65227         * lib/fdopendir.c: ...into new file.
65228         * modules/fdopendir: New module.
65229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
65230         * modules/openat (Depends-on): Add fdopendir.
65231         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
65232         fdopendir here.
65233         * modules/savedir (Depends-on): Only need fdopendir, not full
65234         openat.
65235         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
65236         * lib/openat.h (fdopendir): Drop prototype.
65237         * lib/dirent.in.h (fdopendir): Provide prototype.
65238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
65239         * modules/dirent (Makefile.am): Substitute them.
65240         * MODULES.html.sh (File system functions): Mention it.
65241         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
65242         * modules/fdopendir-tests: New file.
65243         * tests/test-fdopendir.c: Likewise.
65245         fchdir: use more consistent macro convention
65246         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
65247         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
65248         REPLACE_FCHDIR, rather than relying on config.h macros.
65249         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
65250         inside a single make-time REPLACE_FCHDIR block, rather than using
65251         the config.h FCHDIR_REPLACEMENT.
65252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
65253         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
65254         Manage fstat replacement.
65255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65256         REPLACE_FCHDIR.
65257         * modules/sys_stat (Files): Add m4/unistd_h.m4.
65258         (Makefile.am): Substitute REPLACE_FCHDIR.
65259         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
65260         FCHDIR_REPLACEMENT.
65261         * lib/dup-safer.c (dup_safer): Likewise.
65262         * lib/dup2.c (rpl_dup2): Likewise.
65263         * lib/dup3.c (rpl_dup3): Likewise.
65264         * lib/open.c (rpl_open): Likewise.
65266         fchdir: simplify error handling, and support dup3
65267         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
65268         stdbool, malloc-posix, realloc-posix.
65269         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
65270         (ensure_dirs_slot): Return false on allocation failure.
65271         (rpl_dup2): Delete.
65272         (_gl_register_dup): New function.
65273         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
65274         (_gl_register_fd): Close fd on allocation failure.
65275         * lib/fcntl.in.h (_gl_register_fd): Update signature.
65276         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
65277         prototype.
65278         (rpl_dup2_fchdir): Delete prototype.
65279         * lib/open.c (open): Update caller.
65280         * lib/dup2.c (dup2): Track fchdir metadata.
65281         * lib/dup3.c (dup3): Likewise.
65282         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
65283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
65285 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65287         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
65288         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
65289         don't pass arguments to AC_OUTPUT.
65291 2009-09-02  Bruno Haible  <bruno@clisp.org>
65293         * modules/mkdtemp (License): Relicense under LGPLv2+.
65294         Reported by Paolo Bonzini.
65296 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65298         Replace uses of obsolete autoconf macros in Jim's modules.
65299         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
65300         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
65301         can evoke a warning from autoconf when run with -Wobsolete
65302         enabled.  They were declared obsolete for good reasons (see
65303         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
65304         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
65305         should not continue using the deprecated macros.
65306         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
65307         obsolete Autoconf macros with modern counterparts.
65308         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65309         * m4/dos.m4 (gl_AC_DOS): Likewise.
65310         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
65311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
65312         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
65313         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
65314         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
65315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
65316         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
65317         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
65318         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65319         Likewise.
65320         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
65321         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65322         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
65323         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
65324         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65325         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65327 2009-09-01  Eric Blake  <ebb9@byu.net>
65329         fchdir: fix off-by-one bug in previous patch
65330         * lib/fchdir.c (rpl_fstat): Use correct bounds.
65331         (_gl_unregister_fd): Delete useless if.
65333 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
65335         maint.mk: sort the list of syntax-check rules
65336         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
65337         easier to get a sense of progress when the rules are run sequentially
65338         and take a long time.
65340 2009-09-01  Simon Josefsson  <simon@josefsson.org>
65342         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
65343         * modules/netinet_in: Likewise.
65344         * modules/sys_file: Likewise.
65345         * modules/sys_ioctl: Likewise.
65346         * modules/sys_select: Likewise.
65347         * modules/sys_socket: Likewise.
65348         * modules/sys_stat: Likewise.
65349         * modules/sys_time: Likewise.
65350         * modules/sys_times: Likewise.
65351         * modules/sys_utsname: Likewise.
65352         * modules/sys_wait: Likewise.
65354 2009-09-01  Jim Meyering  <meyering@redhat.com>
65356         fts: help ensure that return values are not ignored
65357         * lib/fts_.h (__GNUC_PREREQ): Define.
65358         (__attribute_warn_unused_result__): Define.
65359         (fts_children, fts_close, fts_open, fts_read): Declare with
65360         __attribute_warn_unused_result__.
65362         fts: fts_close now fails also when closing a dir file descriptor fails
65363         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65364         and propagate to caller, along with errno.
65366         announce-gen: correct formatting in --help output
65367         * build-aux/announce-gen (usage): Move the one-line description in
65368         --help output "up", to where it belongs, just after Usage:.
65370 2009-08-31  Eric Blake  <ebb9@byu.net>
65372         fchdir: port to mingw
65373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65374         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65375         opened, then use a substitute.
65376         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65377         replacement.
65378         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65379         (_gl_register_fd): No need to check stat if open already filters
65380         all directories.
65381         (fchdir): Fix error condition to match POSIX.
65382         * modules/fchdir (Depends-on): Add sys_stat.
65383         * doc/posix-functions/open.texi (open): Document the limitation.
65384         * modules/fchdir-tests: New file.
65385         * tests/test-fchdir.c: Likewise.
65387         canonicalize: allow cross-testing from cygwin to mingw
65388         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65389         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65390         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65391         Likewise.
65392         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65393         target does not support symlinks.
65394         * tests/test-canonicalize-lgpl.sh: Likewise.
65396         chown: avoid compilation warning on mingw
65397         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65398         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65399         mingw.
65400         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65401         * modules/chown (Depends-on): Add errno.
65403 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65405         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65406         command.
65408 2009-08-31  Jim Meyering  <meyering@redhat.com>
65410         canonicalize: remove useless initialization
65411         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65412         initialization of local, "end".
65414 2009-08-30  Bruno Haible  <bruno@clisp.org>
65416         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65417         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65418         ENOSYS.
65420 2009-08-30  Bruno Haible  <bruno@clisp.org>
65422         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65423         /usr/xpg4/bin/tr when it exists.
65424         * tests/test-pipe-filter-gi1.sh: Likewise.
65426 2009-08-30  Bruno Haible  <bruno@clisp.org>
65428         Work around deficient /usr/bin/id program on Solaris.
65429         * tests/test-file-has-acl.sh (ID): New variable.
65430         * tests/test-set-mode-acl.sh (ID): Likewise.
65431         * tests/test-copy-acl.sh (ID): Likewise.
65432         * tests/test-copy-file.sh (ID): Likewise.
65434 2009-08-30  Bruno Haible  <bruno@clisp.org>
65436         New module 'xstriconveh'.
65437         * lib/xstriconveh.h: New file.
65438         * lib/xstriconveh.c: New file.
65439         * modules/xstriconveh: New file.
65441 2009-08-30  Bruno Haible  <bruno@clisp.org>
65443         Make it easier to use mem_cd_iconveh.
65444         * lib/striconveh.h (iconveh_t): New type.
65445         (iconveh_open, iconveh_close): New declarations.
65446         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65447         with a single 'const iconveh_t *' argument.
65448         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65449         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65450         with a single 'const iconveh_t *' argument.
65451         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65452         * tests/test-striconveh.c (main): Update.
65453         * NEWS: Mention the change.
65455 2009-08-30  Bruno Haible  <bruno@clisp.org>
65457         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65458         problem.
65460 2009-08-30  Bruno Haible  <bruno@clisp.org>
65462         Work around iconv_open problem on Solaris.
65463         * lib/iconv_open-solaris.gperf: New file.
65464         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65465         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65466         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65467         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65468         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65469         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65471 2009-08-29  Jim Meyering  <meyering@redhat.com>
65473         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65474         * top/maint.mk (cvs-check): Remove target; it was just an alias
65475         to the better-named vc-diff-check.
65476         (maintainer-distcheck): Remove rule.  It was used only from
65477         the (alpha/beta/major) target, and all of its commands but one
65478         were coreutils-specific.
65479         (vc-dist): Remove rule.
65480         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65481         Run vc-diff-check, not vc-dist.
65482         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65484 2009-08-27  Bruno Haible  <bruno@clisp.org>
65486         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65487         of 0.
65489 2009-08-27  Bruno Haible  <bruno@clisp.org>
65491         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65492         compilers.
65493         * doc/func.texi: Document the SunPRO C bug.
65495 2009-08-27  Bruno Haible  <bruno@clisp.org>
65497         Fix link error on Solaris.
65498         * tests/test-parse-duration.c (xstrdup): Remove function.
65500 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65502         ignore-value: handle pointer types, too
65503         * lib/ignore-value.h (__attribute__): Remove definition.
65504         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65505         of a more concise and more-often effective "(void) i" statement.
65506         (ignore_ptr): New function to suppress warnings from functions that
65507         return pointers, and to make it explicit that one function doesn't
65508         handle all cases.
65510 2009-08-25  Bruno Haible  <bruno@clisp.org>
65512         dup2: work around a Linux bug.
65513         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65514         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65515         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65516         Reported by Simon Josefsson.
65518 2009-08-25  Jim Meyering  <meyering@redhat.com>
65520         libguestfs uses gnulib
65521         * users.txt: Add libguestfs.
65523 2009-08-24  Eric Blake  <ebb9@byu.net>
65525         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65526         * lib/pipe2.c (includes): Add binary-io.h.
65527         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65529 2009-08-24  Bruno Haible  <bruno@clisp.org>
65531         Tolerate declared but missing accept4 syscall.
65532         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65533         available.
65534         * lib/sys_socket.in.h (accept4): If the function is already present,
65535         override it.
65536         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65537         * modules/accept4 (Makefile.am): Compile accept4.c always.
65538         Reported by Paolo Bonzini and Eric Blake.
65540 2009-08-23  Bruno Haible  <bruno@clisp.org>
65542         New module 'accept4'.
65543         * lib/sys_socket.in.h (accept4): New declaration.
65544         * lib/accept4.c: New file.
65545         * m4/accept4.m4: New file.
65546         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65547         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65548         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65549         HAVE_ACCEPT4.
65550         * modules/accept4: New file.
65551         * doc/glibc-functions/accept4.texi: Mention the new module.
65553 2009-08-24  Jim Meyering  <meyering@redhat.com>
65555         progname: also set global program_invocation_name, when possible
65556         Before this change, a libtool-enabled program that calls glibc's
65557         error function would report the program name as
65558         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65559         * modules/progname (configure.ac): Check for a declaration of
65560         program_invocation_name.
65561         * lib/progname.c:  Include <errno.h>.
65562         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65563         Set program_invocation_name.
65565 2009-08-23  Bruno Haible  <bruno@clisp.org>
65567         * lib/dup3.c: Include <string.h>.
65569 2009-08-23  Bruno Haible  <bruno@clisp.org>
65571         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65572         * lib/pipe2.c (pipe2): Likewise.
65573         Suggested by Eric Blake.
65575 2009-08-23  Bruno Haible  <bruno@clisp.org>
65577         Tolerate declared but missing dup3 syscall.
65578         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65579         * lib/unistd.in.h (dup3): If the function is already present,
65580         override it.
65581         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65582         * modules/dup3 (Makefile.am): Compile dup3.c always.
65583         Reported by Paolo Bonzini.
65585 2009-08-23  Bruno Haible  <bruno@clisp.org>
65587         Tolerate declared but missing pipe2 syscall.
65588         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65589         available.
65590         * lib/unistd.in.h (pipe2): If the function is already present,
65591         override it.
65592         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65593         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65594         Reported by Paolo Bonzini.
65596 2009-08-23  Bruno Haible  <bruno@clisp.org>
65598         * lib/pipe2.c (pipe2): Move #ifs inside function.
65600 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65602         quotearg: document limitations of quote_these_too
65603         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65604         those limitations are created.
65605         * lib/quotearg.h (set_char_quoting): Document that digits and
65606         letters that are special after backslash are not permitted.
65607         (quotearg_char): Cross-reference set_char_quoting documentation.
65609 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65611         quotearg: implement custom_quoting_style
65612         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65613         right_quote fields.
65614         (set_custom_quoting): New public function.
65615         (quotearg_buffer_restyled): Add left_quote and right_quote
65616         arguments, handle them very much like locale quoting, and update
65617         all uses.
65618         (quotearg_n_custom): New public function.
65619         (quotearg_n_custom_mem): New public function.
65620         (quotearg_custom): New public function.
65621         (quotearg_custom_mem): New public function.
65622         * lib/quotearg.h: Prototype and document new public functions.
65623         (enum quoting_style): For escape_quoting_style and
65624         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65625         ignored even though they're otherwise like c_quoting_style.
65626         Add custom_quoting_style member and document with comparison to
65627         clocale_quoting_style.
65628         * tests/test-quotearg.c (custom_quotes): New array.
65629         (custom_results): New array.
65630         (main): Extend to test custom quoting.
65632 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65634         quotearg: fix right quote escaping when it's in quote_these_too
65635         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65636         quote, be sure to prepend only one backslash.
65637         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65638         (main): Test it.
65640 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65642         quotearg-tests: test escaping of embedded locale quotes
65643         * tests/test-quotearg.c (struct result_strings): Add member for
65644         new input.
65645         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65646         (inputs): Add new input.
65647         (results_g): Add expected results.
65648         (flag_results): Likewise.
65649         (locale_results): Likewise.
65650         (compare_strings): Check those.
65652 2009-08-23  Bruno Haible  <bruno@clisp.org>
65654         Tests for module 'dup3'.
65655         * modules/dup3-tests: New file.
65656         * tests/test-dup3.c: New file.
65658         New module 'dup3'.
65659         * lib/unistd.in.h (dup3): New declaration.
65660         * lib/dup3.c: New file.
65661         * m4/dup3.m4: New file.
65662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65663         HAVE_DUP3.
65664         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65665         * modules/dup3: New file.
65666         * doc/glibc-functions/dup3.texi: Mention the new module.
65668 2009-08-23  Bruno Haible  <bruno@clisp.org>
65670         Tweak the dup2 test.
65671         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65672         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65673         the test file is still empty. Fix argument order of lseek.
65675 2009-08-23  Bruno Haible  <bruno@clisp.org>
65677         Avoid test link errors when the modules getopt-gnu, gettext are used.
65678         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65679         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65681 2009-08-23  Bruno Haible  <bruno@clisp.org>
65683         Fix getdtablesize() on mingw.
65684         * lib/getdtablesize.c (getdtablesize): Implement differently.
65685         * lib/unistd.in.h (getdtablesize): Improve comment.
65687 2009-08-23  Bruno Haible  <bruno@clisp.org>
65689         New module 'mkostemp'.
65690         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65691         * lib/stdlib.in.h (mksotemp): New declaration.
65692         * lib/mkostemp.c: New file, from glibc with modifications.
65693         * lib/tempname.h (GT_FILE): Remove outdated comment.
65694         (gen_tempname): Add flags argument.
65695         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65696         (__GT_FILE): Map to 1.
65697         (small_open, large_open): Remove macros.
65698         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65699         * lib/mkstemp.c (mkstemp): Update.
65700         * lib/mkdtemp.c (mkdtemp): Likewise.
65701         * m4/mkostemp.m4: New file.
65702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65703         HAVE_MKOSTEMP.
65704         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65705         HAVE_MKOSTEMP.
65706         * modules/mkostemp: New file, based on modules/mkstemp.
65707         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65708         * NEWS: Mention the change.
65710 2009-08-23  Bruno Haible  <bruno@clisp.org>
65712         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65713         Reported by Eric Blake.
65715 2009-08-23  Bruno Haible  <bruno@clisp.org>
65717         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65718         Reported by Eric Blake.
65720 2009-08-23  Bruno Haible  <bruno@clisp.org>
65722         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65723         * modules/pipe2 (Depends-on): Likewise.
65725 2009-08-23  Eric Blake  <ebb9@byu.net>
65727         fcntl-h: add O_TTY_INIT support
65728         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65729         * tests/test-fcntl-h.c (o): Test it.
65730         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65732         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65733         * modules/fcntl: Move <fcntl.h> header replacement...
65734         * modules/fcntl-h: ...to new name, so as not to collide with
65735         like-named function.
65736         * tests/test-fcntl.c: Rename...
65737         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65738         * modules/fcntl-tests: Rename...
65739         * modules/fcntl-h-tests: ...to this.  Update test file name.
65740         * modules/chdir-long (Depends-on): Update clients.
65741         * modules/chdir-safer (Depends-on): Likewise.
65742         * modules/fcntl-safer (Depends-on): Likewise.
65743         * modules/fts (Depends-on): Likewise.
65744         * modules/mkancesdirs (Depends-on): Likewise.
65745         * modules/mkdir-p (Depends-on): Likewise.
65746         * modules/open (Depends-on): Likewise.
65747         * modules/savewd (Depends-on): Likewise.
65748         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65749         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65751 2009-08-22  Bruno Haible  <bruno@clisp.org>
65753         * modules/binary-io (License): Relicense under LGPL.
65754         * modules/pipe2 (License): Likewise.
65756 2009-08-22  Bruno Haible  <bruno@clisp.org>
65758         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65759         return value.
65760         * lib/pipe-filter-gi.c (filter_init): Likewise.
65761         Reported by Eric Blake.
65763 2009-08-22  Bruno Haible  <bruno@clisp.org>
65765         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65766         * modules/pipe (Depends-on): Add pipe2.
65768 2009-08-22  Bruno Haible  <bruno@clisp.org>
65770         Tests for module 'pipe2'.
65771         * modules/pipe2-tests: New file.
65772         * tests/test-pipe2.c: New file.
65774         New module 'pipe2'.
65775         * lib/unistd.in.h (pipe2): New declaration.
65776         * lib/pipe2.c: New file.
65777         * m4/pipe2.m4: New file.
65778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65779         HAVE_PIPE2.
65780         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65781         * modules/pipe2: New file.
65782         * doc/glibc-functions/pipe2.texi: Mention the new module.
65784 2009-08-22  Bruno Haible  <bruno@clisp.org>
65786         Reference some new glibc functions.
65787         * doc/glibc-functions/accept4.texi: New file.
65788         * doc/glibc-functions/dup3.texi: New file.
65789         * doc/glibc-functions/mkostemp.texi: New file.
65790         * doc/glibc-functions/pipe2.texi: New file.
65791         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65792         (Glibc sys/socket.h): Refer to accept4.
65793         (Glibc unistd.h): Refer to dup3, pipe2.
65794         Reported by Eric Blake.
65796 2009-08-22  Jim Meyering  <meyering@redhat.com>
65797             Bruno Haible  <bruno@clisp.org>
65799         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65800         This makes it so packages using automake-1.11's silent-rules option
65801         can print e.g., a single "GEN    configmake.h" line, rather than
65802         the 30+ statements that perform the job.  If you want to see the
65803         actual commands, you can still run "make V=1".
65804         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65805         so that make output is abbreviated when those variables are defined
65806         appropriately.
65807         * modules/argz: Likewise.
65808         * modules/arpa_inet: Likewise.
65809         * modules/byteswap: Likewise.
65810         * modules/configmake: Likewise.
65811         * modules/dirent: Likewise.
65812         * modules/errno: Likewise.
65813         * modules/fcntl: Likewise.
65814         * modules/float: Likewise.
65815         * modules/fnmatch: Likewise.
65816         * modules/getopt-posix: Likewise.
65817         * modules/glob: Likewise.
65818         * modules/iconv_open: Likewise.
65819         * modules/inttypes: Likewise.
65820         * modules/localcharset: Likewise.
65821         * modules/locale: Likewise.
65822         * modules/math: Likewise.
65823         * modules/netdb: Likewise.
65824         * modules/netinet_in: Likewise.
65825         * modules/poll: Likewise.
65826         * modules/posix_spawnp-tests: Likewise.
65827         * modules/sched: Likewise.
65828         * modules/search: Likewise.
65829         * modules/selinux-h: Likewise.
65830         * modules/signal: Likewise.
65831         * modules/spawn: Likewise.
65832         * modules/stdarg: Likewise.
65833         * modules/stdbool: Likewise.
65834         * modules/stddef: Likewise.
65835         * modules/stdint: Likewise.
65836         * modules/stdio: Likewise.
65837         * modules/stdlib: Likewise.
65838         * modules/string: Likewise.
65839         * modules/strings: Likewise.
65840         * modules/sys_file: Likewise.
65841         * modules/sys_ioctl: Likewise.
65842         * modules/sys_select: Likewise.
65843         * modules/sys_socket: Likewise.
65844         * modules/sys_stat: Likewise.
65845         * modules/sys_time: Likewise.
65846         * modules/sys_times: Likewise.
65847         * modules/sys_utsname: Likewise.
65848         * modules/sys_wait: Likewise.
65849         * modules/sysexits: Likewise.
65850         * modules/time: Likewise.
65851         * modules/unistd: Likewise.
65852         * modules/wchar: Likewise.
65853         * modules/wctype: Likewise.
65855 2009-08-22  Jim Meyering  <meyering@redhat.com>
65857         announce-gen: detect write failure
65858         * build-aux/announce-gen: Add Coda at end.
65859         Remove equivalent-but-more-verbose block at top.
65861 2009-08-19  Akim Demaille  <demaille@gostai.com>
65863         bootstrap: --help to stdout.
65864         * bootstrap (usage): Don't send --help to stderr.
65865         Use a here doc instead of a long string.
65867 2009-08-21  Eric Blake  <ebb9@byu.net>
65869         test-popen-safer: split from test-popen
65870         * tests/test-popen.c (main): Move...
65871         * tests/test-popen.h: ...into new file.
65872         * tests/test-popen-safer2.c: New file.
65873         * modules/popen-tests (Files): Add test-popen.h.
65874         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65875         Suggested by Bruno Haible.
65877         test-fcntl-safer: split from test-open
65878         * tests/test-open.c (main): Move...
65879         * tests/test-open.h: ...into new file.
65880         * tests/test-fcntl-safer.c: New file.
65881         * modules/open-tests (Files): Add test-open.h.
65882         * modules/fcntl-safer-tests: New file.
65883         Suggested by Bruno Haible.
65885         test-fopen-safer: split from test-fopen
65886         * tests/test-fopen.c (main): Move...
65887         * tests/test-fopen.h: ...into new file.
65888         * tests/test-fopen-safer.c: New file.
65889         * modules/fopen-tests (Files): Add test-fopen.h.
65890         * modules/fopen-safer-tests: New file.
65891         Suggested by Bruno Haible.
65893 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65895         popen-safer: test O_CLOEXEC at run-time.
65896         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65898 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65900         fcntl: move more flags to the header
65901         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65902         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65903         * lib/fcntl.in.h: Do both things here.
65905 2009-08-21  Jim Meyering  <meyering@redhat.com>
65907         consistently remove $@-t before redirecting to it
65908         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65909         * modules/alloca-opt: Likewise.
65910         * modules/byteswap: Likewise.
65911         * modules/fnmatch: Likewise.
65912         * modules/getopt-posix: Likewise.
65913         * modules/glob: Likewise.
65914         * modules/poll: Likewise.
65915         * modules/posix_spawnp-tests: Likewise.
65916         * modules/sys_socket: Likewise.
65917         * modules/sysexits: Likewise.
65919 2009-08-21  Eric Blake  <ebb9@byu.net>
65921         popen: simplify access to original popen
65922         * lib/popen.c (rpl_popen): No need to worry about popen being a
65923         macro.
65924         Reported by Bruno Haible.
65926 2009-08-20  Eric Blake  <ebb9@byu.net>
65928         build: avoid some compiler warnings
65929         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65930         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65931         type.
65932         (new_exclude_segment, excluded_file_pattern_p)
65933         (excluded_file_name_p): Reduce scope.
65934         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65935         old-style declaration.
65937 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65939         * tests/test-exclude1.sh: Handle Windows EOL.
65940         * tests/test-exclude2.sh: Likewise.
65941         * tests/test-exclude3.sh: Likewise.
65942         * tests/test-exclude4.sh: Likewise.
65943         * tests/test-exclude5.sh: Likewise.
65944         * tests/test-exclude6.sh: Likewise.
65945         * tests/test-exclude7.sh: Likewise.
65947 2009-08-19  Akim Demaille  <demaille@gostai.com>
65949         bootstrap: find sha1sum when named gsha1sum.
65950         * bootstrap (find_tool): New.
65951         ($SHA1SUM): New.
65952         Use it.
65954 2009-08-20  Jim Meyering  <meyering@redhat.com>
65956         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65957         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65958         expression that converts "." in a file name to "\." in the resulting
65959         regexp.  Start with a dummy statement, so that prior shell variable
65960         definitions are expanded portably.  Reported by Simon Josefsson.
65962 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65964         Fix polling for writeability of a screen buffer.
65965         * lib/poll.c: Distinguish input and screen buffers for the
65966         Win32 implementation.
65967         * lib/select.c: Likewise.
65969 2009-08-19  Eric Blake  <ebb9@byu.net>
65971         popen-safer: prevent popen from clobbering std descriptors
65972         * modules/popen-safer: New file.
65973         * lib/popen-safer.c: Likewise.
65974         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65975         * lib/stdio--.h (popen): Provide override.
65976         * lib/stdio-safer.h (popen_safer): Provide declaration.
65977         * tests/test-popen.c (includes): Partially test this.
65978         * modules/popen-safer-tests: New file, for more tests.
65979         * tests/test-popen-safer.c: Likewise.
65980         * MODULES.html.sh (file stream based Input/Output): Mention it.
65982         tests: test some of the *-safer modules
65983         * modules/fopen-safer (Depends-on): Add fopen.
65984         * modules/fcntl-safer (Depends-on): Add fcntl.
65985         * modules/stdlib-safer (Depends-on): Add stdlib.
65986         (configure.ac): Set indicator.
65987         * modules/unistd-safer (configure.ac): Likewise.
65988         * modules/tmpfile-safer (configure.ac): Likewise.
65989         (Depends-on): Add tmpfile.
65990         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65991         active.
65992         * tests/test-fopen.c (includes): Test safer versions when they are
65993         in use.
65994         * tests/test-open.c (includes): Likewise.
65996         popen: fix cygwin 1.5 bug when stdin closed
65997         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65998         * modules/popen: New file.
65999         * modules/popen-tests: Likewise.
66000         * tests/test-popen.c: Likewise.
66001         * m4/popen.m4: Likewise.
66002         * lib/popen.c: Likewise.
66003         * lib/stdio.in.h (popen): New declaration.
66004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
66005         * modules/stdio (Makefile.am): Likewise.
66006         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
66008 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
66010         maint.mk: give full control over update-copyright exclusions
66011         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
66012         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
66013         (update-copyright): Don't force inclusion of top-level
66014         ChangeLog.  Don't force exclusion of all COPYING files, but make
66015         them the default exclusion instead.
66017 2009-08-16  Bruno Haible  <bruno@clisp.org>
66019         Fix test failures on Solaris 10.
66020         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
66021         tests when Solaris iconv() is used.
66022         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66023         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66024         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66025         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66026         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66028 2009-08-16  Bruno Haible  <bruno@clisp.org>
66030         Fix test failures on Solaris 10.
66031         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
66032         'tr' program and pass it as first argument.
66033         * tests/test-pipe-filter-gi1.sh: Likewise.
66034         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
66035         program as first argument.
66036         * tests/test-pipe-filter-gi1.c (main): Likewise.
66038 2009-08-16  Eric Blake  <ebb9@byu.net>
66040         fpurge: fix previous commits
66041         * modules/fpurge (Makefile.am): Make replacement conditional,
66042         partially reverting 2007-04-29 change; missed in previous
66043         attempt.
66044         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
66045         is missing.
66047 2009-08-16  Bruno Haible  <bruno@clisp.org>
66049         Clarify fpurge's effect on the file position.
66050         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
66051         * tests/test-fpurge.c (main): Make a second pass for checking the file
66052         position.
66054 2009-08-16  Bruno Haible  <bruno@clisp.org>
66056         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
66057         declaration of fpurge is missing.
66058         * tests/test-fpurge.c (main): Check that the file has not more contents
66059         than expected. Close the file before removing it.
66061 2009-08-15  Eric Blake  <ebb9@byu.net>
66063         fpurge: don't wrap working cygwin implementation
66064         * lib/fpurge.c (fpurge): Fix comment typo.
66065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
66066         1.7 to avoid replacement.
66067         * tests/test-fpurge.c (main): Enhance test.
66069 2009-08-15  Eric Blake  <ebb9@byu.net>
66070         and Jim Meyering  <meyering@redhat.com>
66072         test-update-copyright: skip if perl is insufficient
66073         * tests/test-update-copyright.sh: Failure to run maintainer tool
66074         should not cause testsuite failure on cygwin 1.5.
66076 2009-08-14  Eric Blake  <ebb9@byu.net>
66078         doc: mention more functions added in cygwin 1.7.0
66079         * doc/posix-headers/limits.texi (limits.h): Update for recent
66080         cygwin additions.
66081         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
66082         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
66083         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
66084         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
66085         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
66087 2009-08-14  Eric Blake  <ebb9@byu.net>
66089         maint.mk: simplify update-copyright rule
66090         * top/maint.mk (update-copyright-local): Delete, and document how
66091         to do it in cfg.mk instead.
66092         (update-copyright-exclude-regexp): Delete, and document how to do
66093         it in .x-update-copyright instead.
66094         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
66095         exclude ChangeLog.
66097 2009-08-14  Bruno Haible  <bruno@clisp.org>
66099         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
66101 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66103         maint.mk: support update-copyright-env
66104         * top/maint.mk (update-copyright-env): Define place-holder.
66105         (update-copyright): Expand $(update-copyright-env) before
66106         invoking update-copyright.
66108 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66110         update-copyright: implement forced reformatting
66111         * build-aux/update-copyright: Implement and document
66112         UPDATE_COPYRIGHT_FORCE.
66113         * tests/test-update-copyright.sh: Test it.
66115 2009-08-14  Eric Blake  <ebb9@byu.net>
66116         and Bruno Haible  <bruno@clisp.org>
66118         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
66119         * tests/test-locale.c: Revert previous patch related to NULL.
66120         * tests/test-stdio.c: Likewise.
66121         * tests/test-stdlib.c: Likewise.
66122         * tests/test-string.c: Likewise.
66123         * tests/test-unistd.c: Likewise.
66124         * modules/time-tests (Depends-on): Add verify.
66125         * modules/wchar-tests (Depends-on): Likewise.
66126         * tests/test-time.c: Test for NULL compliance.
66127         * tests/test-wchar.c: Likewise.
66128         * modules/locale (Depends-on): Add stddef.
66129         * modules/stdio (Depends-on): Likewise.
66130         * modules/stdlib (Depends-on): Likewise.
66131         * modules/string (Depends-on): Likewise.
66132         * modules/time (Depends-on): Likewise.
66133         * modules/unistd (Depends-on): Likewise.
66134         * modules/wchar (Depends-on): Likewise.
66135         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
66136         * lib/stdlib.in.h (includes): Likewise.
66137         * lib/string.in.h (includes): Likewise.
66138         * lib/time.in.h (includes): Likewise.
66139         * lib/unistd.in.h (includes): Likewise.
66140         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
66141         replaced.
66142         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66143         * m4/stddef_h.m4: New file.
66144         * modules/stddef: Likewise.
66145         * lib/stddef.in.h: Likewise.
66146         * modules/stddef-tests: Likewise.
66147         * tests/test-stddef.c: Likewise.
66148         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
66149         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
66150         * doc/posix-headers/locale.texi (locale.h): Likewise.
66151         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
66152         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
66153         * doc/posix-headers/string.texi (string.h): Likewise.
66154         * doc/posix-headers/time.texi (time.h): Likewise.
66155         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
66156         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
66158 2009-08-14  Eric Blake  <ebb9@byu.net>
66160         doc: improve git diff of texinfo files
66161         * .gitattributes: Add rule for *.texi files, with hint on how to
66162         use it.
66163         Copied from m4, and based on a report by Bruno Haible.
66165 2009-08-14  Bruno Haible  <bruno@clisp.org>
66167         Disable multithread support by default on Cygwin 1.5.x for real.
66168         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
66170 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66172         update-copyright: much ado about intervals
66173         * build-aux/update-copyright: Implement and document
66174         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
66175         of copyright year intervals.
66176         Also, document UPDATE_COPYRIGHT_YEAR.
66177         * tests/test-update-copyright.sh: Test it.
66179         update-copyright: convert 2-digit to 4-digit years
66180         * build-aux/update-copyright: Implement and document.
66181         * tests/test-update-copyright.sh: Update.
66183 2009-08-14  Jim Meyering  <meyering@redhat.com>
66185         test-exclude: avoid coreutils "make check" failure
66186         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
66187         just as in test-argmatch.c.
66189 2009-08-13  Eric Blake  <ebb9@byu.net>
66191         test-dup2: fix bad assumption
66192         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
66193         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
66195         test-version-etc: fix CRLF portability issue
66196         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
66197         recognize \r.
66198         * tests/test-argp-version-etc-1.sh: Likewise.
66200         getopt: update client modules
66201         * modules/argp (Depends-on): Use getopt-gnu.
66202         * modules/git-merge-changelog (Depends-on): Likewise.
66203         * modules/long-options (Depends-on): Likewise.
66204         * modules/xstrtol (Depends-on): Likewise.
66206 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66208         * tests/test-version-etc.sh: Don't fail on different
66209         project/version.  Don't fail on CRLF differences.  Rewrite to use
66210         multiple -e instead of multiple sed forks, suggested by Eric Blake
66211         <ebb9@byu.net>.
66212         * tests/test-argp-version-etc-1.sh: Likewise.
66214 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66216         * tests/test-version-etc.sh: Don't fail on different
66217         project/version.
66219 2009-08-12  Bruno Haible  <bruno@clisp.org>
66221         Tests for modules 'getopt-posix', 'getopt-gnu'.
66222         * modules/getopt-posix-tests: New file.
66223         * tests/test-getopt.c: New file.
66224         * tests/test-getopt.h: New file.
66225         * tests/test-getopt_long.h: New file.
66227         New modules 'getopt-posix', 'getopt-gnu'.
66228         * modules/getopt-gnu: New file, renamed from modules/getopt.
66229         * modules/getopt-posix: New file.
66230         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
66231         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
66232         (gl_GETOPT): Remove macro.
66233         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
66234         Disable the test against BSD systems that declare optreset. Test
66235         against mingw bug. Test against lack of support of optional arguments
66236         on many platforms.
66237         * doc/glibc-headers/getopt.texi: Update module name and list of
66238         relevant platforms.
66239         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
66240         'getopt-gnu' and more portability problems.
66241         * NEWS: Mention the changes.
66243 2009-08-12  Bruno Haible  <bruno@clisp.org>
66245         Ensure that optarg etc. get declared by <unistd.h>.
66246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
66247         AC_USE_SYSTEM_EXTENSIONS.
66248         * modules/getopt (Depends-on): Add 'extensions'.
66250 2009-08-12  Bruno Haible  <bruno@clisp.org>
66252         Avoid test link errors.
66253         * modules/pipe-filter-ii-tests (Makefile.am): Define
66254         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
66255         * modules/pipe-filter-gi-tests (Makefile.am): Define
66256         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
66257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66259 2009-08-12  Bruno Haible  <bruno@clisp.org>
66261         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
66262         gl_GETOPT_SUBSTITUTE before.
66263         (gl_GETOPT): Use it.
66264         * m4/argp.m4 (gl_ARGP): Update.
66265         Reported by Sergey Poznyakoff.
66267         * m4/getopt.m4: Reorder macros.
66268         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
66269         (gl_GETOPT_SUBSTITUTE): Remove macro.
66271 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66273         Minor improvement in gitlog-to-changelog
66275         * build-aux/gitlog-to-changelog: New option `--format' makes
66276         output format string configurable.
66278 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66280         Optimize exclude: use hash tables for non-wildcard patterns.
66282         * lib/exclude.c: Include hash.h and mbuiter.h
66283         (struct exclude_pattern, exclude_segment): New data types.
66284         (struct exclude): Rewrite.
66285         (fnmatch_pattern_has_wildcards): New function.
66286         (new_exclude_segment, free_exclude_segment): New functions.
66287         (excluded_file_pattern_p, excluded_file_name_p): New functions.
66288         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
66289         * lib/exclude.h (is_fnmatch_pattern): New prototype.
66290         * modules/exclude: Depend on hash and mbuiter.
66292         * modules/exclude-tests: New file.
66293         * tests/test-exclude.c: New file.
66294         * tests/test-exclude1.sh: New file.
66295         * tests/test-exclude2.sh: New file.
66296         * tests/test-exclude3.sh: New file.
66297         * tests/test-exclude4.sh: New file.
66298         * tests/test-exclude5.sh: New file.
66299         * tests/test-exclude6.sh: New file.
66300         * tests/test-exclude7.sh: New file.
66302 2009-08-12  Bruno Haible  <bruno@clisp.org>
66304         Ensure that getopt() gets declared by <unistd.h>.
66305         * lib/unistd.in.h: Conditionally include getopt.h.
66306         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
66307         Set GNULIB_UNISTD_H_GETOPT.
66308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66309         GNULIB_UNISTD_H_GETOPT.
66310         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
66312 2009-08-12  Bruno Haible  <bruno@clisp.org>
66314         Clarify logic.
66315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
66316         gl_replace_getopt instead of GETOPT_H.
66318 2009-08-12  Bruno Haible  <bruno@clisp.org>
66320         * m4/getopt.m4: Add comments.
66322 2009-08-12  Bruno Haible  <bruno@clisp.org>
66324         Disable multithread support by default on Cygwin 1.5.x.
66325         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
66326         set gl_use_threads=no if not specified otherwise.
66328 2009-08-11  Bruno Haible  <bruno@clisp.org>
66330         Avoid compilation error on NetBSD 5.0.
66331         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
66332         * tests/test-stdio.c: Likewise.
66333         * tests/test-stdlib.c: Likewise.
66334         * tests/test-string.c: Likewise.
66335         * tests/test-unistd.c: Likewise.
66336         Reported by Greg Troxel <gdt@ir.bbn.com>
66337         at <https://savannah.gnu.org/support/?106973>.
66339 2009-08-11  Bruno Haible  <bruno@clisp.org>
66341         * modules/dup2-tests (Depends-on): Remove close.
66343         Undo 2009-07-19 commit.
66344         * modules/acl-tests (Depends-on): Remove close.
66345         * modules/binary-io-tests (Depends-on): Likewise.
66346         * modules/closein-tests (Depends-on): Likewise.
66347         * modules/flock-tests (Depends-on): Likewise.
66348         * modules/fsync-tests (Depends-on): Likewise.
66349         * modules/lseek-tests (Depends-on): Likewise.
66350         * modules/pipe-tests (Depends-on): Likewise.
66351         * modules/posix_spawn-tests (Depends-on): Likewise.
66352         * modules/posix_spawnp-tests (Depends-on): Likewise.
66353         * modules/stat-time-tests (Depends-on): Likewise.
66354         * modules/yesno-tests (Depends-on): Likewise.
66356 2009-08-10  Bruno Haible  <bruno@clisp.org>
66358         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66360 2009-08-10  Bruno Haible  <bruno@clisp.org>
66362         Fix a gcc warning.
66363         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66365 2009-08-10  Bruno Haible  <bruno@clisp.org>
66367         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66368         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66369         not only the first time.
66370         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66371         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66372         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66373         is 1, not only the first time.
66375 2009-08-10  Bruno Haible  <bruno@clisp.org>
66377         Make it possible to use module 'gethostname' without module 'close'.
66378         * lib/unistd.in.h (close): Evoke a link error only if
66379         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66381         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66382         * modules/unistd (Makefile.am): Substitute
66383         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66384         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66385         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66387         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66388         * modules/sys_ioctl (Makefile.am): Substitute
66389         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66390         * modules/socket (configure.ac): On native Windows, set
66391         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66392         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66393         Reported by Sam Steingold <sds@gnu.org>.
66395 2009-08-10  Bruno Haible  <bruno@clisp.org>
66397         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66398         * modules/ioctl (configure.ac): Likewise.
66400 2009-08-10  Bruno Haible  <bruno@clisp.org>
66402         Avoid collision between gnulib wrapper and libintl wrapper.
66403         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66404         already defined in intl/printf.c.
66405         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66406         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66408 2009-08-09  Bruno Haible  <bruno@clisp.org>
66410         Make <sys/select.h> really self-contained, also on Solaris 10.
66411         * lib/sys_select.in.h: Include <string.h>.
66412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66413         Solaris 10 problem.
66414         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66415         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66416         Reported by Jim Meyering.
66418 2009-08-09  Bruno Haible  <bruno@clisp.org>
66420         Avoid warnings from 'aclocal' that are due to a use of macro name
66421         AM_XGETTEXT_OPTION that is not defined in automake.
66422         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66423         automake.
66424         * modules/error (configure.ac): Likewise.
66425         * modules/propername (configure.ac): Likewise.
66426         * modules/vasprintf (configure.ac): Likewise.
66427         * modules/verror (configure.ac): Likewise.
66428         * modules/xprintf (configure.ac): Likewise.
66429         * modules/xvasprintf (configure.ac): Likewise.
66431 2009-08-08  Bruno Haible  <bruno@clisp.org>
66433         Avoid compilation error in C++ mode.
66434         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66435         Reported by Sam Steingold <sds@gnu.org>.
66437 2009-08-08  Bruno Haible  <bruno@clisp.org>
66439         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66440         for the various Unix platforms.
66441         * doc/posix-headers/limits.texi: Update platforms list regarding
66442         HOST_NAME_MAX.
66443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66445 2009-08-07  Jim Meyering  <meyering@redhat.com>
66447         selinux-at: fix typo in a comment
66448         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66449         Spotted by Paolo Bonzini.
66451         selinux-at: remove redundant m4 code, add documentation
66452         * modules/selinux-at (configure.ac): Remove redundant code.
66453         LIB_SELINUX is already set via the dependent module, selinux-h.
66454         (Include): Add quotes around selinux-at.h.
66455         * lib/selinux-at.h: Add documentation.
66456         Reported by Bruno Haible in
66457         http://marc.info/?l=gnulib-bug&m=124958988300749
66459 2009-08-07  Bruno Haible  <bruno@clisp.org>
66461         Avoid link error on MacOS X 10.3 and 10.4.
66462         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66463         on non-ELF systems.
66464         * lib/argp-pv.c (argp_program_version): Likewise.
66465         Reported by Simon Josefsson.
66467 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66469         * tests/test-version-etc.sh: Use $EXEEXT.
66471 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66473         update-copyright: update documentation to point to maint.mk
66474         * build-aux/update-copyright: Here.
66476 2009-08-06  Jim Meyering  <meyering@redhat.com>
66478         maint.mk: support update-copyright-local
66479         * top/maint.mk (update-copyright-local): Define place-holder.
66480         (update-copyright): Depend on $(update-copyright-local).
66482 2009-08-06  Jim Meyering  <meyering@redhat.com>
66484         selinux-at: new module
66485         Initially written for coreutils, this module will soon be
66486         used by findutils, too.
66487         * MODULES.html.sh [Misc]: Add selinux-at.
66488         * lib/selinux-at.h: New file, from coreutils.
66489         * lib/selinux-at.c: Likewise.
66490         * modules/selinux-at: Likewise.
66491         (License): Change from LGPL to GPL, since it depends
66492         on the GPL'd openat module.
66494         doc: update README
66495         * README: Remove references to cogito.
66496         Remove cvs-repo-updating instructions from 2007.
66497         Don't imply that CVS is better if you have limited disk space.
66499 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66501         update-copyright: support C-style comments
66502         * build-aux/update-copyright: Implement and document.
66503         * tests/test-update-copyright.sh: Test.
66505 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66507         update-copyright: support omitted "(C)"
66508         * build-aux/update-copyright: Implement and document.  Also,
66509         allow variable whitespace before "(C)".
66510         * tests/test-update-copyright.sh: Test.
66512 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66514         update-copyright: don't trip on non-FSF copyright statements
66515         * build-aux/update-copyright: Fix so that the first correctly
66516         formatted FSF copyright statement is recognized no matter what
66517         appears before it.  Update documentation.
66518         * tests/test-update-copyright.sh: Test that.
66520 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66522         update-copyright: clean up code a little
66523         * build-aux/update-copyright: Append "_re" to the name of any
66524         variable holding a regular expression.
66525         Replace "old" and "new" with "stmt" in variable names.
66526         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66527         handled correctly.
66528         Format code more consistently.
66530 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66532         update-copyright-tests: improve portability
66533         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66534         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66536 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66538         update-copyright: support @copyright{} and &copy;
66539         * build-aux/update-copyright: Implement and document.
66540         * tests/test-update-copyright.sh: Test.
66542 2009-08-04  Jim Meyering  <meyering@redhat.com>
66544         update-copyright-tests: correctly test EOL=\r\n handling
66545         * tests/test-update-copyright.sh: Put \r at the end of some lines
66546         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66548         maint.mk: make update-copyright exclusion list more configurable
66549         * top/maint.mk (update-copyright): Default to excluding COPYING,
66550         but allow an override, in case someone does want to update that file.
66552         maint.mk: don't update copyright date in COPYING
66553         * top/maint.mk (update-copyright): Exclude COPYING.
66555         maint.mk: add a copyright-updating rule
66556         * top/maint.mk (update-copyright): New rule.
66557         Derived from coreutils/Makefile.am.
66559         update-copyright: rename some variables
66560         * build-aux/update-copyright: Rename a few variables for clarity.
66561         Tweak syntax.  List Joel E. Denny as coauthor.
66563 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66565         update-copyright: fix bug for 2-digit last year and add tests
66566         * build-aux/update-copyright: Fix bug.
66567         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66568         specified.
66569         * modules/update-copyright-tests: New
66570         * tests/test-update-copyright.sh: New.
66572 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66574         update-copyright: handle leading tabs in line prefix
66575         * build-aux/update-copyright: Count leading tabs as 8 spaces
66576         when computing margin.  This helps with the formatting of
66577         ChangeLogs, for example.
66578         Fix documentation a little.
66580 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66582         update-copyright: support EOL=\r\n
66583         * build-aux/update-copyright: Implement that.
66585 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66587         update-copyright: automatically format copyright statements
66588         * build-aux/update-copyright: Implement that.
66589         Also, be a little more predictable and safer by always failing
66590         when the full copyright format is not perfectly recognized as an
66591         unbroken whole.  Discussed at
66592         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66593         Rewrite documentation.
66595 2009-08-03  Bruno Haible  <bruno@clisp.org>
66597         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66599 2009-08-02  Bruno Haible  <bruno@clisp.org>
66601         Tests for module 'uname'.
66602         * modules/uname-tests: New file.
66603         * tests/test-uname.c: New file.
66605         New module 'uname'.
66606         * lib/uname.c: New file.
66607         * m4/uname.m4: New file.
66608         * modules/uname: New file.
66609         * doc/posix-functions/uname.texi: Mention the new module.
66611 2009-08-02  Bruno Haible  <bruno@clisp.org>
66613         Tests for module 'sys_utsname'.
66614         * modules/sys_utsname-tests: New file.
66615         * tests/test-sys_utsname.c: New file.
66617         New module 'sys_utsname'.
66618         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66619         * m4/sys_utsname_h.m4: New file.
66620         * modules/sys_utsname: New file.
66621         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66623 2009-08-02  Bruno Haible  <bruno@clisp.org>
66625         Implicitly initialize the sockets library.
66626         * lib/gethostname.c: Include sockets.h.
66627         (rpl_gethostname): Invoke gl_sockets_startup.
66628         * lib/socket.c: Include sockets.h.
66629         (rpl_socket): Invoke gl_sockets_startup.
66630         * modules/gethostname (Depends-on): Add sockets.
66631         * modules/socket (Depends-on): Likewise.
66632         * tests/test-poll.c: Don't include sockets.h.
66633         (main): Don't invoke gl_sockets_startup.
66634         * tests/test-select.c: Don't include sockets.h.
66635         (main): Don't invoke gl_sockets_startup.
66637 2009-08-02  Bruno Haible  <bruno@clisp.org>
66639         Allow multiple calls to gl_sockets_startup.
66640         * lib/sockets.c (initialized_sockets_version): New variable.
66641         (gl_sockets_startup): Do nothing if already called for this or a higher
66642         version.
66643         (gl_sockets_cleanup): Reset initialized_sockets_version.
66645 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66647         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66648         different project/version.
66650 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66651             Bruno Haible  <bruno@clisp.org>
66653         Tests for module 'pipe-filter-gi'.
66654         * modules/pipe-filter-gi-tests: New file.
66655         * tests/test-pipe-filter-gi1.sh: New file.
66656         * tests/test-pipe-filter-gi1.c: New file.
66657         * tests/test-pipe-filter-gi2.sh: New file.
66658         * tests/test-pipe-filter-gi2-main.c: New file.
66659         * tests/test-pipe-filter-gi2-child.c: New file.
66661         New module 'pipe-filter-gi'.
66662         * lib/pipe-filter-gi.c: New file.
66663         * modules/pipe-filter-gi: New file.
66665 2009-08-02  Bruno Haible  <bruno@clisp.org>
66666             Paolo Bonzini  <bonzini@gnu.org>
66668         Tests for module 'pipe-filter-ii'.
66669         * modules/pipe-filter-ii-tests: New file.
66670         * tests/test-pipe-filter-ii1.sh: New file.
66671         * tests/test-pipe-filter-ii1.c: New file.
66672         * tests/test-pipe-filter-ii2.sh: New file.
66673         * tests/test-pipe-filter-ii2-main.c: New file.
66674         * tests/test-pipe-filter-ii2-child.c: New file.
66676         New module 'pipe-filter-ii'.
66677         * lib/pipe-filter.h: New file.
66678         * lib/pipe-filter-ii.c: New file.
66679         * lib/pipe-filter-aux.h: New file.
66680         * modules/pipe-filter-ii: New file.
66682 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66684         * lib/gc-libgcrypt.c: Change copyright to FSF.
66685         * lib/gc-gnulib.c: Likewise.
66687 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66689         * lib/gethostname.c: Include limits.h.
66691 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66692             Bruno Haible  <bruno@clisp.org>
66694         Ensure HOST_NAME_MAX as part of the gethostname module.
66695         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66696         define also HOST_NAME_MAX.
66697         * tests/test-gethostname.c: Include <limits.h>.
66698         (main): Check also HOST_NAME_MAX.
66699         * doc/posix-headers/limits.texi: Document the mingw problem.
66701 2009-08-02  Bruno Haible  <bruno@clisp.org>
66703         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66704         Add comments.
66706 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66708         * lib/gethostname.c: Add Windows wrapper.
66709         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66710         * modules/gethostname: Depend on sys_socket & errno, for also
66711         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66712         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66714 2009-07-31  Jim Meyering  <meyering@redhat.com>
66716         getloadavg: fix symbol name in comment
66717         * lib/getloadavg.c: Correct a typo I introduced when adding
66718         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66719         Matt Kraai spotted the problem.
66721 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66723         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66724         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66725         code also if ! defined N_NAME_POINTER.
66726         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66727         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66728         but the n_name member is a 12-byte array.
66730 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66732         update-copyright: generalize comment handling
66733         * build-aux/update-copyright: Handle copyright statements
66734         within more comment styles.
66735         Document usage.
66736         Report any file with an external copyright holder or parse failure.
66738 2009-07-29  Jim Meyering  <meyering@redhat.com>
66740         mktime: correct setting of REPLACE_MKTIME
66741         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66743         update-copyright: new module
66744         * modules/update-copyright: New file.
66745         * build-aux/update-copyright: New file.
66746         * MODULES.html.sh (maint+release support): Add update-copyright.
66748 2009-07-27  Bruno Haible  <bruno@clisp.org>
66750         Fix compilation error when <ctime> is used and mktime is replaced.
66751         * lib/time.in.h (mktime): New declaration.
66752         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66753         REPLACE_MKTIME instead of defining mktime in config.h.
66754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66755         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66756         Reported by Ross McFarland <rwmcfa1@neces.com>.
66758 2009-07-27  Bruno Haible  <bruno@clisp.org>
66760         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66761         Reported by Matt Kraai <mkraai@beckman.com>.
66763 2009-07-25  Jim Meyering  <meyering@redhat.com>
66765         maint.mk: avoid warnings about missing files
66766         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66767         diagnostic when .prev-version does not exist.
66768         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66769         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66770         nonexistent cfg.mk.
66771         Suggestions from Simon Josefsson.
66773 2009-07-25  Bruno Haible  <bruno@clisp.org>
66775         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66776         defined as macros. Needed on QNX 6.4.1.
66777         Reported by Matt Kraai <mkraai@beckman.com>.
66779 2009-07-23  Jim Meyering  <meyering@redhat.com>
66781         maint.mk: invoke "make dist" with a working value of XZ_OPT
66782         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66784 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66786         Make fseeko.c compile on QNX.
66787         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66789 2009-07-22  Peter Simons  <simons@cryp.to>
66791         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66792         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66793         * lib/md4.h: Likewise.
66794         * lib/md5.h: Likewise.
66795         * lib/sha1.h: Likewise.
66796         * lib/sha256.h: Likewise.
66797         * lib/sha512.h: Likewise.
66799         tests-sha1: don't assign literal string to 'char *' variable
66800         * tests/test-sha1.c (main): Declare locals with "const" to match
66801         attributes of the right hand side.
66803 2009-07-21  Eric Blake  <ebb9@byu.net>
66805         dup2: fix more mingw problems
66806         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66807         fd to itself.
66808         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66809         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66810         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66811         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66812         care of mingw bugs.
66814 2009-07-21  Jim Meyering  <meyering@redhat.com>
66816         vc-list-files: avoid failure when /bin/sh is dash
66817         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66818         On some Debian based systems, /bin/sh is a symlink to dash, and running
66819         this command would omit the "/" following each 'tests' prefix:
66820           dash -x build-aux/vc-list-files -C . tests
66821         That is because bash and dash work differently:
66822           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66823           bash ok
66824           dash odd
66826 2009-07-21  Eric Blake  <ebb9@byu.net>
66828         dup2-tests: test previous patch
66829         * modules/dup2-tests: New file.
66830         * tests/test-dup2.c: Likewise.
66831         * tests/test-open.c (main): Avoid unspecified behavior.
66832         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66833         test.
66835         dup2: work around mingw and cygwin 1.5 bug
66836         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66838         * modules/unistd (Makefile.am): Substitute it.
66839         * lib/unistd.in.h (dup2): Declare the replacement.
66840         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66841         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66842         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66843         * modules/execute (Depends-on): Add dup2.
66844         * modules/fseterr (Depends-on): Likewise.
66845         * modules/pipe (Depends-on): Likewise.
66846         * modules/posix_spawn-internal (Depends-on): Likewise.
66848 2009-07-21  Bruno Haible  <bruno@clisp.org>
66850         * modules/.gitattributes: New file.
66852 2009-07-20  Bruno Haible  <bruno@clisp.org>
66854         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66855         (main): Use it.
66857 2009-07-20  Eric Blake  <ebb9@byu.net>
66859         test-pipe: make a bit more robust.
66860         * tests/test-pipe.c (myerr): Allow error messages regardless of
66861         what we do to stderr.
66862         (test_pipe): Rearrange to avoid deadlock.
66863         (child_main): Try a larger read, to ensure we avoided deadlock.
66864         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66865         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66866         if misused.
66868 2009-07-19  Jim Meyering  <meyering@redhat.com>
66870         fts: avoid false-positive cycle-detection
66871         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66872         for each new command line argument.
66874 2009-07-19  Bruno Haible  <bruno@clisp.org>
66876         Fix build error on mingw with the modules sys_select and unistd.
66877         * modules/acl-tests (Depends-on): Add close.
66878         * modules/binary-io-tests (Depends-on): Likewise.
66879         * modules/closein-tests (Depends-on): Likewise.
66880         * modules/flock-tests (Depends-on): Likewise.
66881         * modules/fsync-tests (Depends-on): Likewise.
66882         * modules/lseek-tests (Depends-on): Likewise.
66883         * modules/pipe-tests (Depends-on): Likewise.
66884         * modules/posix_spawn-tests (Depends-on): Likewise.
66885         * modules/posix_spawnp-tests (Depends-on): Likewise.
66886         * modules/stat-time-tests (Depends-on): Likewise.
66887         * modules/yesno-tests (Depends-on): Likewise.
66889 2009-07-19  Bruno Haible  <bruno@clisp.org>
66891         Unify conditionals.
66892         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66893         macros, not at the compiler macros.
66894         * lib/pipe.c: Likewise.
66895         * lib/execute.c: Likewise.
66896         * lib/spawni.c: Likewise.
66898 2009-07-19  Bruno Haible  <bruno@clisp.org>
66900         Fix handling of closed stdin/stdout/stderr on mingw.
66901         * lib/w32spawn.h: Include unistd.h.
66902         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66903         file descriptor with O_NOINHERIT flag.
66904         (fd_safer_noinherit): New function, based on fd-safer.c.
66905         (dup_safer_noinherit): New function, based on dup-safer.c.
66906         (undup_safer_noinherit): New function.
66907         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66908         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66909         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66910         instead of fd_safer.
66911         * tests/test-pipe.c: Include <windows.h>.
66912         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66913         result.
66915         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66916         from main.
66917         (test_pipe): Pass an extra argument for disambiguation.
66918         (main): Invoke parent_main or child_main.
66920         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66921         consistently.
66923 2009-07-18  Eric Blake  <ebb9@byu.net>
66925         test-pipe: fix mingw build
66926         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66928 2009-07-18  Bruno Haible  <bruno@clisp.org>
66930         * modules/pipe-tests (Makefile.am): Fix typo.
66932 2009-07-18  Eric Blake  <ebb9@byu.net>
66934         error: fix mingw build
66935         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66936         Reported by Bruno Haible.
66938         error: avoid undefined use of stdout
66939         * lib/error.c (error, error_at_line): Check that fd 1 is open
66940         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66941         is handling faults and the close_stdout module wants to report the
66942         detection of closed stdout as an error.
66944 2009-07-17  Eric Blake  <ebb9@byu.net>
66946         pipe: be robust in face of closed fds
66947         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66948         should cause child to misbehave.
66949         * modules/pipe-tests: New module.
66950         * tests/test-pipe.c: New file.
66951         * tests/test-pipe.sh: New file.
66952         Reported by Akim Demaille.
66954 2009-07-14  Bruno Haible  <bruno@clisp.org>
66956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66957         Reported by anonymous kc.
66959 2009-07-07  Jim Meyering  <meyering@redhat.com>
66961         maint.mk: don't look for translatable strings in *.m4 or *.mk
66962         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66963         when searching for translatable strings.
66965 2009-07-05  Jim Meyering  <meyering@redhat.com>
66967         remove superfluous parentheses in STREQ definition
66968         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66969         * lib/getugroups.c (STREQ): Likewise.
66970         * lib/fnmatch.c (STREQ): Likewise.
66971         Spotted by Bruno Haible.
66973 2009-07-04  Jim Meyering  <meyering@redhat.com>
66975         argv-iter: new module
66976         * MODULES.html.sh: Add argv-iter.
66977         * lib/argv-iter.c, lib/argv-iter.h: New files.
66978         * modules/argv-iter: New file.
66979         * modules/argv-iter-tests: New file.
66980         * tests/test-argv-iter.c: Test it.
66982 2009-07-04  Bruno Haible  <bruno@clisp.org>
66984         Fix assertion.
66985         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66986         contains more exact copies of a given entry than file2, leave the extra
66987         copies unpaired rather than aborting.
66988         Reported by Eric Blake.
66990 2009-07-02  Bruno Haible  <bruno@clisp.org>
66992         Speedup git-merge-changelog for git cherry-pick.
66993         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66994         (entries_mapping_get): New function, extracted from compute_mapping.
66995         (entries_mapping_reverse_get): New function.
66996         (compute_mapping): Add a 'full' argument. Return the result in a
66997         'struct entries_mapping'.
66998         (main): Update. Access the mappings through entries_mapping_get.
66999         Reported by Eric Blake.
67001 2009-07-02  Bruno Haible  <bruno@clisp.org>
67003         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
67004         best_i.
67006 2009-07-02  Bruno Haible  <bruno@clisp.org>
67008         Speed up approximate search for matching ChangeLog entries.
67009         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
67010         argument. Call fstrcmp_bounded instead of fstrcmp.
67011         (compute_mapping, try_split_merged_entry, main): Update callers.
67013 2009-07-02  Bruno Haible  <bruno@clisp.org>
67015         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
67017 2009-06-30  Bruno Haible  <bruno@clisp.org>
67019         Reduce the number of uc_is_cased calls.
67020         * lib/unicase.h (casing_suffix_context_t): Add
67021         'first_char_except_ignorable' field.
67022         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
67023         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
67024         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
67025         Update initializer.
67026         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
67027         case-ignorable characters.
67028         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
67029         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
67030         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
67031         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
67032         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
67034 2009-06-30  Bruno Haible  <bruno@clisp.org>
67036         Tests for module 'unicase/ignorable'.
67037         * modules/unicase/ignorable-tests: New file.
67038         * tests/unicase/test-ignorable.c: New file, generated by
67039         gen-uni-tables.
67041         Tests for module 'unicase/cased'.
67042         * modules/unicase/cased-tests: New file.
67043         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
67044         * tests/unicase/test-predicate-part1.h: New file, derived from
67045         tests/unictype/test-predicate-part1.h.
67046         * tests/unicase/test-predicate-part2.h: New file, same as
67047         tests/unictype/test-predicate-part2.h.
67049         Fix evaluation of "Before C" condition of FINAL_SIGMA.
67050         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
67051         (output_casing_properties): New function.
67052         (main): Call it.
67053         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
67054         * lib/unicase/cased.c: Include unictype/bitmap.h.
67055         (uc_is_cased): Define through a bitmap lookup.
67056         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
67057         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
67058         (uc_is_case_ignorable): Define through a bitmap lookup.
67059         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
67060         lib/unictype/bitmap.h.
67061         (Depends-on): Add inline. Clean up.
67062         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
67063         lib/unictype/bitmap.h.
67064         (Depends-on): Add inline. Clean up.
67065         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
67066         recognition.
67067         * tests/unicase/test-u16-tolower.c (main): Likewise.
67068         * tests/unicase/test-u32-tolower.c (main): Likewise.
67070 2009-06-30  Bruno Haible  <bruno@clisp.org>
67072         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
67073         * lib/unicase/u16-casemap.c: Likewise.
67074         * lib/unicase/u32-casemap.c: Likewise.
67076 2009-06-29  Bruno Haible  <bruno@clisp.org>
67078         Define u32_casefold as a wrapper around u32_ct_casefold.
67079         * lib/unicase/u32-casefold.c: Update.
67080         * modules/unicase/u32-casefold (Depends-on): Add
67081         unicase/u32-ct-casefold, unicase/empty-prefix-context,
67082         unicase/empty-suffix-context. Clean up.
67084         Define u16_casefold as a wrapper around u16_ct_casefold.
67085         * lib/unicase/u16-casefold.c: Update.
67086         * modules/unicase/u16-casefold (Depends-on): Add
67087         unicase/u16-ct-casefold, unicase/empty-prefix-context,
67088         unicase/empty-suffix-context. Clean up.
67090         Define u8_casefold as a wrapper around u8_ct_casefold.
67091         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
67092         * lib/unicase/u8-casefold.c: Update.
67093         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
67094         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67096         Define u32_totitle as a wrapper around u32_ct_totitle.
67097         * lib/unicase/u32-totitle.c: Update.
67098         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
67099         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67101         Define u16_totitle as a wrapper around u16_ct_totitle.
67102         * lib/unicase/u16-totitle.c: Update.
67103         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
67104         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67106         Define u8_totitle as a wrapper around u8_ct_totitle.
67107         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
67108         functions.
67109         (FUNC): Delegate to U_CT_TOTITLE.
67110         * lib/unicase/u8-totitle.c: Update.
67111         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
67112         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67114         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
67115         invocation.
67116         * modules/unicase/u32-tolower (Depends-on): Add
67117         unicase/empty-prefix-context, unicase/empty-suffix-context.
67119         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
67120         invocation.
67121         * modules/unicase/u16-tolower (Depends-on): Add
67122         unicase/empty-prefix-context, unicase/empty-suffix-context.
67124         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
67125         * modules/unicase/u8-tolower (Depends-on): Add
67126         unicase/empty-prefix-context, unicase/empty-suffix-context.
67128         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
67129         invocation.
67130         * modules/unicase/u32-toupper (Depends-on): Add
67131         unicase/empty-prefix-context, unicase/empty-suffix-context.
67133         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
67134         invocation.
67135         * modules/unicase/u16-toupper (Depends-on): Add
67136         unicase/empty-prefix-context, unicase/empty-suffix-context.
67138         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
67139         * modules/unicase/u8-toupper (Depends-on): Add
67140         unicase/empty-prefix-context, unicase/empty-suffix-context.
67142         New module 'unicase/u32-ct-casefold'.
67143         * lib/unicase/u32-ct-casefold.c: New file.
67144         * modules/unicase/u32-ct-casefold: New file.
67146         New module 'unicase/u16-ct-casefold'.
67147         * lib/unicase/u16-ct-casefold.c: New file.
67148         * modules/unicase/u16-ct-casefold: New file.
67150         New module 'unicase/u8-ct-casefold'.
67151         * lib/unicase/u8-ct-casefold.c: New file.
67152         * lib/unicase/u-ct-casefold.h: New file, derived from
67153         lib/unicase/u-casefold.h.
67154         * modules/unicase/u8-ct-casefold: New file.
67156         New module 'unicase/u32-ct-totitle'.
67157         * lib/unicase/u32-ct-totitle.c: New file.
67158         * modules/unicase/u32-ct-totitle: New file.
67160         New module 'unicase/u16-ct-totitle'.
67161         * lib/unicase/u16-ct-totitle.c: New file.
67162         * modules/unicase/u16-ct-totitle: New file.
67164         New module 'unicase/u8-ct-totitle'.
67165         * lib/unicase/u8-ct-totitle.c: New file.
67166         * lib/unicase/u-ct-totitle.h: New file, derived from
67167         lib/unicase/u-totitle.h.
67168         * modules/unicase/u8-ct-totitle: New file.
67170         New module 'unicase/u32-ct-tolower'.
67171         * lib/unicase/u32-ct-tolower.c: New file.
67172         * modules/unicase/u32-ct-tolower: New file.
67174         New module 'unicase/u16-ct-tolower'.
67175         * lib/unicase/u16-ct-tolower.c: New file.
67176         * modules/unicase/u16-ct-tolower: New file.
67178         New module 'unicase/u8-ct-tolower'.
67179         * lib/unicase/u8-ct-tolower.c: New file.
67180         * modules/unicase/u8-ct-tolower: New file.
67182         New module 'unicase/u32-ct-toupper'.
67183         * lib/unicase/u32-ct-toupper.c: New file.
67184         * modules/unicase/u32-ct-toupper: New file.
67186         New module 'unicase/u16-ct-toupper'.
67187         * lib/unicase/u16-ct-toupper.c: New file.
67188         * modules/unicase/u16-ct-toupper: New file.
67190         New module 'unicase/u8-ct-toupper'.
67191         * lib/unicase/u8-ct-toupper.c: New file.
67192         * modules/unicase/u8-ct-toupper: New file.
67194         Add context arguments to u*_casemap functions.
67195         * lib/unicase/unicasemap.h: Include unicase.h.
67196         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
67197         suffix_context arguments.
67198         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
67199         functions.
67200         (FUNC): Add prefix_context and suffix_context arguments. Use
67201         uc_is_cased and uc_is_case_ignorable.
67202         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
67203         * lib/unicase/u16-casemap.c: Likewise.
67204         * lib/unicase/u32-casemap.c: Likewise.
67205         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
67206         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67207         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
67208         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67209         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
67210         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67212         New module 'unicase/u32-suffix-context'.
67213         * lib/unicase/u32-suffix-context.c: New file.
67214         * modules/unicase/u32-suffix-context: New file.
67216         New module 'unicase/u16-suffix-context'.
67217         * lib/unicase/u16-suffix-context.c: New file.
67218         * modules/unicase/u16-suffix-context: New file.
67220         New module 'unicase/u8-suffix-context'.
67221         * lib/unicase/u8-suffix-context.c: New file.
67222         * lib/unicase/u-suffix-context.h: New file.
67223         * modules/unicase/u8-suffix-context: New file.
67225         New module 'unicase/empty-suffix-context'.
67226         * lib/unicase/empty-suffix-context.c: New file.
67227         * modules/unicase/empty-suffix-context: New file.
67229         New module 'unicase/u32-prefix-context'.
67230         * lib/unicase/u32-prefix-context.c: New file.
67231         * modules/unicase/u32-prefix-context: New file.
67233         New module 'unicase/u16-prefix-context'.
67234         * lib/unicase/u16-prefix-context.c: New file.
67235         * modules/unicase/u16-prefix-context: New file.
67237         New module 'unicase/u8-prefix-context'.
67238         * lib/unicase/u8-prefix-context.c: New file.
67239         * lib/unicase/u-prefix-context.h: New file.
67240         * lib/unicase/context.h: New file.
67241         * modules/unicase/u8-prefix-context: New file.
67243         New module 'unicase/empty-prefix-context'.
67244         * lib/unicase/empty-prefix-context.c: New file.
67245         * modules/unicase/empty-prefix-context: New file.
67247         New module 'unicase/ignorable'.
67248         * lib/unicase/ignorable.c: New file.
67249         * modules/unicase/ignorable: New file.
67251         New module 'unicase/cased'.
67252         * lib/unicase/caseprop.h: New file.
67253         * lib/unicase/cased.c: New file.
67254         * modules/unicase/cased: New file.
67256         New functions for case mapping of substrings.
67257         * lib/unicase.h (casing_prefix_context_t): New type.
67258         (unicase_empty_prefix_context): New variable.
67259         (u8_casing_prefix_context, u16_casing_prefix_context,
67260         u32_casing_prefix_context, u8_casing_prefixes_context,
67261         u16_casing_prefixes_context, u32_casing_prefixes_context): New
67262         declarations.
67263         (casing_suffix_context_t): New type.
67264         (unicase_empty_suffix_context): New variable.
67265         (u8_casing_suffix_context, u16_casing_suffix_context,
67266         u32_casing_suffix_context, u8_casing_suffixes_context,
67267         u16_casing_suffixes_context, u32_casing_suffixes_context,
67268         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
67269         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
67270         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
67271         declarations.
67273 2009-06-28  Jim Meyering  <meyering@redhat.com>
67275         boostrap: indent only with spaces
67276         * build-aux/bootstrap: Indent only with spaces, never TABs.
67278         bootstrap: split long lines
67279         * build-aux/bootstrap: Keep line length < 80.
67281         bootstrap: sync from coreutils
67282         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
67283         just as autoreconf does.  Verify a list of prerequisite
67284         package-name,version-number pairs if defined in bootstrap.conf.
67285         Refer to README-prereq, if prerequisites are not satisfied.
67287 2009-06-27  Eric Blake  <ebb9@byu.net>
67289         tests: add test for bogus NULL definition
67290         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
67291         * tests/test-stdlib.c: Likewise.
67292         * tests/test-string.c: Likewise.
67293         * tests/test-locale.c: Likewise.
67294         * tests/test-unistd.c: Likewise.
67295         * modules/stdio-tests (Depends-on): Add verify.
67296         * modules/stdlib-tests (Depends-on): Likewise.
67297         * modules/string-tests (Depends-on): Likewise.
67298         * modules/locale-tests (Depends-on): Likewise.
67299         * modules/unistd-tests (Depends-on): Likewise.
67301 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
67303         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
67304         self-explaining comment.
67305         * m4/selinux-selinux-h: Update serial.
67306         (gl_LIBSELINUX): New macro, adding a warning for missing development
67307         packages to code extracted from...
67308         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
67309         Add warning for missing development packages here, too.
67311 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
67313         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
67315 2009-06-25  Eric Blake  <ebb9@byu.net>
67317         version-etc: fix regression
67318         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
67319         gcc.
67320         (version_etc): Use it, to catch bugs with trailing NULL.
67321         * lib/version-etc.c (version_etc_arn): Delete unused argument.
67322         (version_etc_va): Fix logic bug.
67323         * modules/version-etc-tests: Add test.
67324         * tests/test-version-etc.c: New file.
67325         * tests/test-version-etc.sh: Likewise.
67327 2009-06-25  Sam Steingold  <sds@gnu.org>
67329         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
67330         mbtowc declaration.
67332 2009-06-25  Eric Blake  <ebb9@byu.net>
67334         fpurge: migrate into <stdio.h>
67335         * lib/fpurge.h: Delete...
67336         * lib/stdio.in.h (fpurge): ...and declare here, instead.
67337         * lib/fpurge.c (fpurge): Change declaring header.
67338         * modules/fpurge (Files): Drop deleted file.
67339         (Depends-on): Add stdio.
67340         (configure.ac): Set witness.
67341         * modules/stdio (Makefile.am): Support fpurge macros.
67342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
67344         * lib/fflush.c: Update client.
67345         * tests/test-fpurge.c: Likewise.
67346         * NEWS: Mention the change.
67348 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67350         * lib/argp-version-etc.c (program_authors): Add const
67351         qualifier.
67352         * lib/version-etc.c: Fix typos in the comments.
67353         * modules/argp-version-etc: Depends on version-etc.
67355 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67357         argp-version-etc: new module.
67359         * lib/argp-version-etc.c: New file.
67360         * lib/argp-version-etc.h: New file.
67361         * modules/argp-version-etc: New file.
67362         * modules/argp-version-etc-tests: New file.
67363         * tests/test-argp-version-etc.c: New test.
67364         * tests/test-argp-version-etc-1.sh: New test.
67366 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67368         Provide additional interfaces and documentation for version-etc
67369         module.
67371         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67372         interfaces.
67373         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67374         prototypes.
67376 2009-06-24  Bruno Haible  <bruno@clisp.org>
67378         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67379         HAVE_LIB${NAME} macro.
67380         Reported by Sam Steingold <sds@gnu.org>.
67382 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67384         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67385         needed.
67387 2009-06-21  Bruno Haible  <bruno@clisp.org>
67389         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67390         work.
67391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67392         together with LIB${NAME}, LTLIB${NAME}.
67393         Reported by Sam Steingold <sds@gnu.org>.
67395 2009-06-20  Jim Meyering  <meyering@redhat.com>
67397         tests: make sc_require_test_exit_idiom more generic
67398         * top/maint.mk (Exit_witness_file): New overridable variable.
67399         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67400         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67402 2009-06-19  Jim Meyering  <meyering@redhat.com>
67404         hash: reverse order of src/dst parameters in an internal interface
67405         * lib/hash.c (transfer_entries): Reverse order of parameters to
67406         put DST before SRC.  Adjust callers.
67408         tests: test-hash: avoid wholesale duplication
67409         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67410         Instead, use a loop and add a single conditional.
67412         tests: test-hash: allow seed selection via a command line argument
67413         * tests/test-hash.c (get_seed): New function.
67414         (main): Use it.
67416 2009-06-19  Eric Blake  <ebb9@byu.net>
67418         hash: avoid memory leak on allocation failure
67419         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67420         failure.  Factor repeated algorithm...
67421         (transfer_entries): ...into new helper routine.
67422         (hash_delete): React to hash_rehash return value.
67424         hash: reduce memory pressure in hash_rehash no-op case
67425         * lib/hash.c (next_prime): Avoid overflow.
67426         (hash_initialize): Factor bucket size computation...
67427         (compute_bucket_size): ...into new helper function.
67428         (hash_rehash): Use new function and open coding to reduce memory
67429         pressure, and avoid a memory leak in USE_OBSTACK code.
67430         Reported by Jim Meyering.
67432 2009-06-18  Eric Blake  <ebb9@byu.net>
67434         hash: make rotation more obvious
67435         * modules/hash (Depends-on): Add bitrotate and stdint.
67436         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67437         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67438         (SIZE_MAX): Rely on headers for definition.
67439         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67440         (raw_hasher): Use rotr_sz.
67441         Suggested by Jim Meyering.
67443         hash: fix memory leak in last patch
67444         * lib/hash.c (hash_rehash): Avoid memory leak.
67446         hash: avoid no-op rehashing
67447         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67449         hash: provide default callback functions
67450         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67451         (hash_initialize): Use them as defaults.
67452         * tests/test-hash.c (main): Test this.
67454         hash: minor optimization
67455         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67456         when possible.
67457         (hash_initialize): Document this promise.
67458         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67459         * tests/test-hash.c (hash_compare_strings): Test this.
67461 2009-06-18  Bruno Haible  <bruno@clisp.org>
67463         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67464         going to be replaced anyway.
67466 2009-06-18  Bruno Haible  <bruno@clisp.org>
67468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67469         in one place.
67470         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67471         be replaced anyway.
67473 2009-06-18  Eric Blake  <ebb9@byu.net>
67475         hash: check for resize before insertion
67476         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67477         threshold before insertion, so that a pathological hash_rehash
67478         that fills every bucket can still trigger another rehash.
67480 2009-06-18  Jim Meyering  <meyering@redhat.com>
67482         hash-tests: add a loop around the small tests
67483         * tests/test-hash.c (main): Repeat small tests with selected
67484         small initial table sizes.
67486 2009-06-17  Eric Blake  <ebb9@byu.net>
67488         hash: minor cleanups
67489         * lib/hash.h (hash_entry): Make opaque, by moving...
67490         * lib/hash.c (hash_entry): ...here.
67491         (hash_insert): Clarify restrictions on what can be inserted.
67492         (hash_get_next): Clarify when it is safe to remove an element
67493         during traversal.
67494         (check_tuning): Skip verification when tuning is known safe.
67495         (hash_initialize): Clarify restrictions on tuning.
67497 2009-06-17  Jim Meyering  <jim@meyering.net>
67498         and Eric Blake  <ebb9@byu.net>
67500         hash-tests: new module
67501         * modules/hash-tests: New file.
67502         * tests/test-hash.c: New file.
67504 2009-06-17  Eric Blake  <ebb9@byu.net>
67506         strstr-simple: document new module
67507         * MODULES.html.sh: Document new module.
67509         strstr, strcasestr: replace on platforms with broken memchr
67510         * modules/strstr: Split into...
67511         * modules/strstr-simple: ...new module that does not care about
67512         performance, but does care about glibc bug.
67513         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67514         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67515         if platform memchr is broken, per Debian bug 521737.
67516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67517         memchr.
67518         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67519         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67520         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67521         * modules/mountlist (Depends-on): Add strstr-simple.
67522         * modules/gen-uni-tables (Depends-on): Likewise.
67523         * modules/argz (Depends-on): Add strstr.
67525 2009-06-17  Bruno Haible  <bruno@clisp.org>
67527         * modules/posix_spawn-internal (Depends-on): Add errno.
67529 2009-06-17  Bruno Haible  <bruno@clisp.org>
67531         Define missing ESTALE on Interix 3.5.
67532         * lib/errno.in.h (ESTALE): Assign a value if missing.
67533         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67534         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67535         missing.
67536         * doc/posix-headers/errno.texi: Mention the Interix bug.
67537         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67539 2009-06-15  Eric Blake  <ebb9@byu.net>
67541         memchr, memchr2: add valgrind exception
67542         * lib/memchr.valgrind: New file.
67543         * lib/memchr2.valgrind: New file.
67544         * modules/memchr (Files): Distribute valgrind file.
67545         * modules/memchr2 (Files): Likewise.
67547         docs: memchr is no longer obsolete
67548         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67549         * lib/string.in.h (memchr): Simplify logic.
67551 2009-06-14  Jim Meyering  <meyering@redhat.com>
67553         link-follow: fix the "checking..." message to not mention trailing slash
67554         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67555         never considered trailing slashes.
67557 2009-06-14  Bruno Haible  <bruno@clisp.org>
67559         * m4/memchr.m4: Mention also the bug on IA-64.
67560         * doc/posix-functions/memchr.texi: Likewise.
67562 2009-06-12  Eric Blake  <ebb9@byu.net>
67564         memchr: detect broken x86_64 and alpha implementations
67565         * modules/memchr-tests (Depends-on): Move mmap detection...
67566         * modules/memchr (Depends-on): ...here.
67567         (configure.ac): Set indicator.
67568         * lib/string.in.h (memchr): Declare replacement.
67569         * modules/string (Makefile.am): Trigger replacement.
67570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67571         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67572         bugs.
67573         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67574         * modules/getpagesize (License): Relax license.
67576 2009-06-11  Bruno Haible  <bruno@clisp.org>
67578         * lib/idpriv.h: Add more references.
67580 2009-06-08  Bruno Haible  <bruno@clisp.org>
67582         Tests for module 'idpriv-droptemp'.
67583         * modules/idpriv-droptemp-tests: New file.
67584         * tests/test-idpriv-droptemp.sh: New file.
67585         * tests/test-idpriv-droptemp.su.sh: New file.
67586         * tests/test-idpriv-droptemp.c: New file.
67588         New module 'idpriv-droptemp'.
67589         * lib/idpriv-droptemp.c: New file.
67590         * modules/idpriv-droptemp: New file.
67592 2009-06-08  Bruno Haible  <bruno@clisp.org>
67594         Tests for module 'idpriv-drop'.
67595         * modules/idpriv-drop-tests: New file.
67596         * tests/test-idpriv-drop.sh: New file.
67597         * tests/test-idpriv-drop.su.sh: New file.
67598         * tests/test-idpriv-drop.c: New file.
67600         New module 'idpriv-drop'.
67601         * lib/idpriv.h: New file.
67602         * lib-idpriv-drop.c: New file.
67603         * m4/idpriv.m4: New file.
67604         * modules/idpriv-drop: New file.
67606 2009-06-08  Bruno Haible  <bruno@clisp.org>
67608         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67609         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67610         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67611         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67612         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67613         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67614         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67616 2009-06-08  Eric Blake  <ebb9@byu.net>
67618         test-strstr: use memory fence, when possible
67619         * tests/test-strstr.c (main): Use memory fence, in order to be
67620         more likely to trigger Debian bug 521737.
67621         * modules/strstr-tests (Files): Pull in additional files.
67623         memchr: no longer obsolete, for wider field testing
67624         * modules/memchr (Status, Notice): Delete, this module is no
67625         longer obsolete.
67626         * modules/vasnprintf (Depends-on): Add memchr.
67628 2009-06-07  Jim Meyering  <meyering@redhat.com>
67630         hash: declare some functions with the warn_unused_result attribute
67631         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67633 2009-06-07  Bruno Haible  <bruno@clisp.org>
67635         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67636         Reported by Eric Blake.
67638 2009-06-06  Eric Blake  <ebb9@byu.net>
67640         test-alignof: fix typo with long double
67641         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67642         compiler error.
67644 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67646         Escape non-texinfo { and }s.
67647         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67648         markup error.
67650 2009-06-04  Jim Meyering  <meyering@redhat.com>
67652         gitlog-to-changelog: don't infloop on an empty commit log
67653         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67654         Reported by Boris Petersen <transacid@centerim.org>.
67656 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67658         version-etc: extend for packagers
67659         Add three new configure options, intended for packagers:
67660           --with-packager="packager name"
67661           --with-packager-version="packager-specific version"
67662           --with-packager-bug-reports="packager bug reporting"
67663         An example with coreutils:
67664           $ ./configure \
67665             --with-packager=Gentoo \
67666             --with-packager-bug-report=http://bugs.gentoo.org/ \
67667             --with-packager-version="patchset 1.6"
67668           $ ./src/ls --version | head -n2
67669           ls (GNU coreutils) 7.1-dirty
67670           Packaged by Gentoo (patchset 1.6)
67671         Note that the bug reporting info via --help doesn't show up because
67672         coreutils uses its own custom emit_bug_reporting_address() implementation
67673         in src/system.h.  If it didn't, it'd look like:
67674           $ ./src/ls --help | tail -n4
67675           Report bugs to <bug-coreutils@gnu.org>.
67676           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67677           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67678           General help using GNU software: <http://www.gnu.org/gethelp/>.
67679         * lib/version-etc.c: Print new information, if provided.
67680         * m4/version-etc.m4: New file.
67681         * modules/version-etc (Files): Add m4/version-etc.m4.
67682         (configure.ac): Add gl_VERSION_ETC.
67684 2009-05-31  Bruno Haible  <bruno@clisp.org>
67686         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67687         and 'int64_t'.
67688         * modules/alignof-tests (Dependencies): Add stdint.
67689         Reported by Eric Blake.
67691 2009-05-31  Bruno Haible  <bruno@clisp.org>
67693         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67694         restriction due to compiler bugs.
67695         Reported by Eric Blake.
67697 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67698             Bruno Haible  <bruno@clisp.org>
67700         Fix test-alignof failure.
67701         * lib/alignof.h (alignof_slot): New macro.
67702         (alignof_type): New macro, with the same semantics as the previous
67703         'alignof'.
67704         (alignof): Alias to alignof_slot.
67705         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67706         check that the results are usable as constant expressions.
67708 2009-05-31  Bruno Haible  <bruno@clisp.org>
67710         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67711         * tests/test-memchr.c (main): Check that memchr does not read past the
67712         first occurrence of the byte.
67713         * tests/test-strstr.c (main): Update comment.
67714         Suggested by Eric Blake.
67716 2009-05-30  Bruno Haible  <bruno@clisp.org>
67718         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67719         detail how to use dumpbin.
67720         Reported by David Byron <dbyron@dbyron.com>.
67722 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67724         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67726 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67728         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67730 2009-05-28  Bruno Haible  <bruno@clisp.org>
67732         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67733         build-aux/ files.
67735 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67737         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67739 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67741         * gnulib-tool (sed_transform_main_lib_file)
67742         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67743         regexps.
67745 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67747         * tests/test-strstr.c: Add another self-test.
67748         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67749         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67751 2009-05-23  Bruno Haible  <bruno@clisp.org>
67753         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67754         change.
67756 2009-05-21  Bruno Haible  <bruno@clisp.org>
67758         Simplify use of mode_t varargs.
67759         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67760         uses 'mode_t' or 'int'.
67761         * lib/openat.c (openat): Likewise.
67762         * lib/open-safer.c (open_safer): Likewise.
67763         * m4/mode_t.m4: New file.
67764         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67765         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67766         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67767         * modules/open (Files): Add m4/mode_t.m4.
67768         * modules/openat (Files): Likewise.
67769         * modules/fcntl-safer (Files): Likewise.
67770         Suggested by Eric Blake.
67772 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67774         * doc/glibc-functions/fallocate.texi: New file.
67775         * doc/gnulib.texi: Include it.
67777 2009-05-21  Eric Blake  <ebb9@byu.net>
67778             Bruno Haible  <bruno@clisp.org>
67780         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67781         invocations.
67782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67784 2009-05-21  Eric Blake  <ebb9@byu.net>
67785             Bruno Haible  <bruno@clisp.org>
67787         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67788         include_next. Fix of 2008-11-20 commit.
67789         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67790         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67791         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67792         NEXT_MATH_H.
67793         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67794         instead of NEXT_MATH_H.
67796 2009-05-21  Bruno Haible  <bruno@clisp.org>
67798         Avoid redefinition warnings for SIZE_MAX.
67799         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67800         Reported by Simon Josefsson.
67802 2009-05-21  Bruno Haible  <bruno@clisp.org>
67804         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67805         AC_CACHE_VAL.
67807 2009-05-20  Bruno Haible  <bruno@clisp.org>
67809         Make zeroptr.h work on mingw.
67810         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67811         mprotect.
67812         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67813         * modules/memchr2-tests (configure.ac): Likewise.
67814         * modules/memcmp-tests (configure.ac): Likewise.
67815         * modules/memmem-tests (configure.ac): Likewise.
67816         * modules/memrchr-tests (configure.ac): Likewise.
67817         Reported by Simon Josefsson.
67819 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67821         * tests/test-glob.c: Include string.h for strcmp prototype.
67823 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67825         * modules/getdelim (Depends-on): Add explicit stdint, although it
67826         was implicitly already pulled in via realloc-posix.
67827         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67829 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67831         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67832         G. Christensen" <tgc@jupiterrise.com>.
67833         * m4/sys_socket_h.m4: Check for sa_family_t.
67834         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67835         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67836         * tests/test-sys_socket.c: Check that sa_family_t works.
67838 2009-05-18  Eric Blake  <ebb9@byu.net>
67840         maint.mk: allow gnulib_dir in VPATH build
67841         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67843 2009-05-15  Jim Meyering  <meyering@redhat.com>
67845         maint.mk: Give gnulib_dir a default definition.
67846         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67847         Thus, most packages no longer need to specify this variable in cfg.mk
67849 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67851         rename.m4: fix typos that would make non-mingw cross-configure fail
67852         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67854 2009-05-13  Eric Blake  <ebb9@byu.net>
67856         mmap-anon: avoid out-of-order autoconf expansion
67857         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67858         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67859         * modules/memchr-tests (Depends-on): Add extensions.
67860         * modules/memchr2-tests (Depends-on): Add extensions.
67861         * modules/memcmp-tests (Depends-on): Add extensions.
67862         * modules/memmem-tests (Depends-on): Add extensions.
67863         * modules/memrchr-tests (Depends-on): Add extensions.
67865 2009-05-13  Bruno Haible  <bruno@clisp.org>
67867         Make some tests ISO C 99 compliant.
67868         * tests/zerosize-ptr.h: New file.
67869         * tests/test-memchr.c: Include zerosize-ptr.h.
67870         (main): Use a zero-size object pointer instead of NULL.
67871         * tests/test-memchr2.c: Include zerosize-ptr.h.
67872         (main): Use a zero-size object pointer instead of NULL.
67873         * tests/test-memcmp.c: Include zerosize-ptr.h.
67874         (main): Use a zero-size object pointer instead of NULL.
67875         * tests/test-memmem.c: Include zerosize-ptr.h.
67876         (main): Use a zero-size object pointer instead of NULL.
67877         * tests/test-memrchr.c: Include zerosize-ptr.h.
67878         (main): Use a zero-size object pointer instead of NULL.
67879         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67880         m4/mmap-anon.m4.
67881         (Depends-on): Add getpagesize.
67882         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67883         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67884         m4/mmap-anon.m4.
67885         (Depends-on): Add getpagesize.
67886         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67887         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67888         m4/mmap-anon.m4.
67889         (Depends-on): Add getpagesize.
67890         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67891         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67892         m4/mmap-anon.m4.
67893         (Depends-on): Add getpagesize.
67894         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67895         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67896         m4/mmap-anon.m4.
67897         (Depends-on): Add getpagesize.
67898         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67900 2009-05-12  Bruno Haible  <bruno@clisp.org>
67902         Tests for module 'alignof'.
67903         * modules/alignof-tests: New file.
67904         * tests/test-alignof.c: New file.
67906 2009-05-12  Bruno Haible  <bruno@clisp.org>
67908         Fix alignof macro.
67909         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67910         vendor compilers that are always correct.
67912 2009-05-12  Bruno Haible  <bruno@clisp.org>
67914         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67915         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67916         not whether its fully works.
67918 2009-05-12  Bruno Haible  <bruno@clisp.org>
67920         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67922 2009-05-12  Jim Meyering  <meyering@redhat.com>
67924         * top/maint.mk: Adjust backslash alignment.
67926 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67928         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67930 2009-05-11  Eric Blake  <ebb9@byu.net>
67932         argp: avoid undefined behavior
67933         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67934         macros.
67936 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67938         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67939         user.name to prevent git commit from complaining.
67941 2009-05-10  Bruno Haible  <bruno@clisp.org>
67943         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67944         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67945         it rewrites every file name only once.
67946         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67948 2009-05-08  Bruno Haible  <bruno@clisp.org>
67950         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67951         instead of 'max'.
67953 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67955         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67956         sockaddr_storage test.
67958 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67960         * modules/sys_socket (Makefile.am): Substitute
67961         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67962         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67963         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67964         * tests/test-sys_socket.c: Check sockaddr_storage.
67966 2009-05-08  Bruno Haible  <bruno@clisp.org>
67968         New module 'alignof'.
67969         * lib/alignof.h: New file.
67970         * modules/alignof: New file.
67972 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67973             Bruno Haible  <bruno@clisp.org>
67975         Fix test-file-has-acl on FreeBSD.
67976         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67977         mask is implicitly added.
67978         * tests/test-file-has-acl.c: Include <signal.h>.
67979         (main): Terminate the test after 5 seconds.
67980         * modules/acl-tests (configure.ac): Check for alarm function.
67982 2009-05-04  Bruno Haible  <bruno@clisp.org>
67984         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67985         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67986         * modules/errno (configure.ac): Drop AC_REQUIRE.
67987         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67988         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67990 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67992         * modules/glob-tests: New module.
67993         * tests/test-glob.c: Add.
67995 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67997         * modules/fnmatch-tests: New module.
67998         * tests/test-fnmatch.c: Add.
68000 2009-05-04  Eric Blake  <ebb9@byu.net>
68002         maint: make the new no-submodule-changes rule VPATH-safe
68003         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
68005 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68006             Bruno Haible  <bruno@clisp.org>
68008         acl: Fix infinite loop on FreeBSD.
68009         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
68010         of return value from acl_get_entry.
68011         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
68012         Likewise.
68014 2009-05-03  Bruno Haible  <bruno@clisp.org>
68016         * lib/acl-internal.h (acl_entries): Clarify return value.
68017         * lib/acl_entries.c (acl_entries): Likewise.
68019 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68021         Bug fix in acl module.
68022         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
68024 2009-05-03  Bruno Haible  <bruno@clisp.org>
68026         Create gperf-generated file in the source dir, not in the build dir.
68027         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
68028         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
68029         * modules/unicase/locale-language (unicase/locale-languages.h):
68030         Likewise.
68031         * modules/unicase/special-casing (unicase/special-casing-table.h):
68032         Likewise.
68033         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
68034         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
68035         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
68036         Reported by Ralf Wildenhues.
68038 2009-05-03  Bruno Haible  <bruno@clisp.org>
68040         * modules/fnmatch (Description, configure.ac): Taken from
68041         fnmatch-posix.
68042         * modules/fnmatch-posix: Turn into a symbolic reference to the
68043         'fnmatch' module, and deprecate.
68044         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
68046 2009-05-03  Bruno Haible  <bruno@clisp.org>
68048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
68049         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
68050         Reported by Ralf Wildenhues.
68052 2009-05-04  Simon Josefsson  <simon@josefsson.org>
68054         * m4/fnmatch.m4: Fix fnmatch re-define.
68056 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68058         priv-set: new module and tests; adapt write-any-file
68059         * lib/priv-set.c: New file.
68060         * lib/priv-set.h: New file.
68061         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
68062         * lib/write-any-file.c: Simplify by using priv-set module.
68063         * m4/priv-set.m4: New file.
68064         * modules/priv-set: New file.
68065         * modules/unlinkdir: Add dependency on priv-set module.
68066         * modules/write-any-file: Likewise.
68068         Tests for module 'priv-set'.
68069         * modules/priv-set-tests: New file.
68070         * tests/test-priv-set.c: New file.
68072 2009-05-03  Jim Meyering  <meyering@redhat.com>
68073             Bruno Haible  <bruno@clisp.org>
68075         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
68076         use the converted UTF-8 variant of the name instead.
68078 2009-05-03  Jim Meyering  <meyering@redhat.com>
68080         tests: tighten some getdate tests
68081         * tests/test-getdate.c (main): Tighten tests: require equality,
68082         not just greater than.  Set TZ envvar to UTC0.
68084 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68086         getdate: correctly interpret "next monday" when run on a Monday
68087         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
68088         that e.g., "next tues" (when run on a tuesday) results in a date
68089         that is one week in the future, and not today's date.
68090         I.e., add a week when the wday is the same as the current one.
68091         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
68092         and earlier by Martin Bernreuther and Jan Minář.
68093         * tests/test-getdate.c (main): Check that "next DAY" is always in
68094         the future and that "last DAY" is always in the past.
68096 2009-05-02  Jim Meyering  <meyering@redhat.com>
68098         build: ensure that a release build fails when a submodule is unclean
68099         * top/maint.mk (no-submodule-changes): New rule.
68100         (alpha beta major): Depend on it.
68102 2009-05-02  Bruno Haible  <bruno@clisp.org>
68104         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
68105         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
68106         shell variable gl_fnmatch_required to detect which variant is
68107         requested.
68108         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
68109         gl_FUNC_FNMATCH_POSIX.
68110         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
68111         exclude fnmatch-posix.
68113 2009-05-02  Bruno Haible  <bruno@clisp.org>
68115         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
68116         * modules/mbsrtowcs (License): Change to LGPLv2+.
68117         * modules/strnlen1 (License): Likewise.
68118         Reported by Simon Josefsson.
68120 2009-05-02  Bruno Haible  <bruno@clisp.org>
68122         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
68123         "cross".
68124         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
68125         gnulib-tool was called with option --source-base=lib.
68127 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68129         Use automake *-local hooks without commands, for extensibility.
68130         * modules/localcharset (Makefile.am): Rename install-exec-local
68131         rule to install-exec-localcharset, and make it a prerequisite of
68132         install-exec-local.  Likewise, rename the uninstall-local rule to
68133         uninstall-localcharset, and make it a prerequisite of the former.
68135 2009-05-01  Bruno Haible  <bruno@clisp.org>
68137         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
68138         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68139         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
68140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
68141         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
68142         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68143         m4/locale-zh.m4, m4/codeset.m4.
68145         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68146         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
68147         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68148         m4/locale-zh.m4.
68150         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
68151         REPLACE_WCRTOMB if mbstate_t must be replaced.
68152         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
68153         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
68155 2009-05-01  Bruno Haible  <bruno@clisp.org>
68157         Avoid compiler warnings when redefining macros defined by <libintl.h>.
68158         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
68159         dngettext, dcngettext, textdomain, bindtextdomain,
68160         bind_textdomain_codeset): Undefine before redefining.
68162 2009-04-30  Bruno Haible  <bruno@clisp.org>
68164         Fix bug introduced on 2009-04-25.
68165         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
68166         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
68167         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
68168         is defined.
68169         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
68170         is defined.
68171         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
68172         is defined.
68173         Reported by Elbert_Pol <elbert.pol@gmail.com>.
68175 2009-04-28  Bruno Haible  <bruno@clisp.org>
68177         Comment tweaks.
68178         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
68179         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
68180         * lib/unicase.h (u*_casexfrm): Likewise.
68181         Reported by Paolo Bonzini.
68183 2009-04-28  Bruno Haible  <bruno@clisp.org>
68185         Fix a compilation error.
68186         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
68187         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68188         Reported by Jim Meyering.
68190 2009-04-27  Bruno Haible  <bruno@clisp.org>
68192         New module 'libunistring'.
68193         * modules/libunistring: New file.
68194         * m4/libunistring.m4: New file.
68195         * MODULES.html.sh (Unicode string functions): Add it.
68197 2009-04-27  Eric Blake  <ebb9@byu.net>
68199         maint.mk: allow package-specific header to provide <config.h>
68200         * top/maint.mk (sc_require_config_h): New variable.
68201         (sc_require_config_h, sc_require_config_h_first): Use it.
68203 2009-04-27  Simon Josefsson  <simon@josefsson.org>
68205         * top/maint.mk (sc_avoid_if_before_free): Except
68206         useless-if-before-free script.
68208 2009-04-27  Eric Blake  <ebb9@byu.net>
68210         maintainer-makefile: depend on all required helper scripts
68211         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
68212         useless-if-before-free.
68213         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
68214         version, rather than assuming gnulib checkout is available.
68215         Reported by Simen Josefsson.
68217 2009-04-26  Bruno Haible  <bruno@clisp.org>
68219         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
68220         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
68221         "../" or "..".
68223 2009-04-26  Bruno Haible  <bruno@clisp.org>
68225         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
68226         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
68227         AC_LIB_HAVE_LINKFLAGS.
68229 2009-04-26  Bruno Haible  <bruno@clisp.org>
68231         Simplify calling convention of u*_conv_from_encoding.
68232         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
68233         u32_conv_from_encoding): Expect a resultbuf argument and return the
68234         result directly as a pointer.
68235         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
68236         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
68237         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
68238         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
68239         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
68240         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68241         Update.
68242         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
68243         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
68244         * lib/vasnprintf.c (VASNPRINTF): Update.
68245         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
68246         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
68247         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
68248         * NEWS: Mention the change.
68250 2009-04-26  Bruno Haible  <bruno@clisp.org>
68252         Simplify calling convention of u*_conv_to_encoding.
68253         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68254         u32_conv_to_encoding): Expect a resultbuf argument and return the
68255         result directly as a pointer.
68256         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68257         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
68258         freeing scaled_offsets if mem_iconveha failed.
68259         * lib/unicase/u-casexfrm.h (FUNC): Update.
68260         * lib/uninorm/u-normxfrm.h (FUNC): Update.
68261         * lib/vasnprintf.c (VASNPRINTF): Update.
68262         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
68263         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
68264         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
68265         * NEWS: Mention the change.
68267 2009-04-26  Bruno Haible  <bruno@clisp.org>
68269         Avoid test failures on AIX and OSF/1.
68270         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
68271         malloc(0).
68272         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68273         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68274         Likewise.
68275         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
68276         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
68277         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
68278         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
68279         * doc/posix-functions/malloc.texi: Document the portability problem
68280         related to malloc(0).
68282 2009-04-26  Bruno Haible  <bruno@clisp.org>
68284         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
68285         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
68286         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
68288 2009-04-25  Bruno Haible  <bruno@clisp.org>
68290         Avoid link error when creating a namespace clean library.
68291         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
68292         as macro with arguments if already defined as an alias.
68293         * lib/signbitf.c (gl_signbitf): Don't undefine.
68294         * lib/signbitd.c (gl_signbitd): Don't undefine.
68295         * lib/signbitl.c (gl_signbitl): Don't undefine.
68297 2009-04-25  Jim Meyering  <meyering@redhat.com>
68299         vc-list-files: fix another quoting bug
68300         * build-aux/vc-list-files: Avoid sed backslash expansion
68301         of pathological directory names.
68303 2009-04-25  Eric Blake  <ebb9@byu.net>
68305         vc-list-files: fix shell quoting error
68306         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
68307         timestamp.
68309 2009-04-25  Jim Meyering  <meyering@redhat.com>
68311         vc-list-files: restore lost functionality with subdir argument
68312         * build-aux/vc-list-files: When given a non-"." sub-directory
68313         argument, substitute the $dir/ prefix back onto each resulting name.
68314         Otherwise, coreutils' root_tests check would fail.
68316 2009-04-24  Eric Blake  <ebb9@byu.net>
68318         vc-list-files: ignore git symlinks
68319         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
68320         than ls-files, to ignore git symlinks.
68322         maint.mk: import improvements from m4
68323         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
68324         (move_if_change): Delete unused macro.
68325         (news-date-check, vc-diff-check): Support VPATH builds.
68326         (announcement): Likewise.  Split --bootstrap-tools list...
68327         (boostrap-tools): ...into separate list, which can be overridden
68328         in cfg.mk.
68329         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
68330         requiring dependency on useless-if-before-free module.
68331         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
68332         Support VPATH builds.
68334 2009-04-24  Jim Meyering  <meyering@redhat.com>
68336         maint.mk: remove coreutils-specific rules and variables
68337         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
68338         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
68339         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
68341         maint.mk: remove obsolete rule
68342         * top/maint.mk (rel-check): Remove rule.
68343         (WGET, WGETFLAGS): Remove now-unused variables.
68345 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68347         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
68348         consistency.
68350         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
68351         '$(PATH_SEPARATOR)' instead of ':'.
68353 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68355         * lib/getopt1.c (main): Use 'const' for static array.
68357 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68359         * top/maint.mk: Sync with coreutils.
68360         * NEWS: Explain incompatibilities.
68362 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68363             Bruno Haible  <bruno@clisp.org>
68365         Fix cross-compilation results.
68366         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68367         statement, as third argument of AC_TRY_RUN.
68368         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68369         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68370         Likewise.
68371         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68372         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68373         Likewise.
68374         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68375         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68376         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68378 2009-04-20  Bruno Haible  <bruno@clisp.org>
68380         Avoid test failure on mingw.
68381         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68383 2009-04-20  Bruno Haible  <bruno@clisp.org>
68385         Avoid compilation error on mingw.
68386         * modules/localename-tests (Depends-on): Add locale.
68388 2009-04-19  Bruno Haible  <bruno@clisp.org>
68390         Support for building a shared library on Windows platforms.
68391         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68392         (main): Test the presence of UNINORM_NFC here.
68393         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68394         (main): Test the presence of UNINORM_NFD here.
68395         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68396         (main): Test the presence of UNINORM_NFKC here.
68397         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68398         (main): Test the presence of UNINORM_NFKD here.
68400 2009-04-19  Bruno Haible  <bruno@clisp.org>
68402         Avoid a compiler warning.
68403         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68404         Change type of variable 'sequence'.
68406 2009-04-19  Bruno Haible  <bruno@clisp.org>
68408         * modules/configmake (Makefile.am): When the contents of configmake.h
68409         does not change, arrange to preserve its modification time.
68411 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68413         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68414         gettext domain.
68416 2009-04-16  Jim Meyering  <meyering@redhat.com>
68418         useless-if-before-free: improve conversion code
68419         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68420         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68422 2009-04-14  Bruno Haible  <bruno@clisp.org>
68424         * modules/fcntl (Depends-on): Add extensions.
68425         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68427 2009-04-12  Ben Pfaff  <blp@gnu.org>
68429         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68430         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68432 2009-03-20  Ben Pfaff  <blp@gnu.org>
68434         Make rename replace existing destinations on Windows.
68435         * m4/rename.m4: Add test for Mingw.
68436         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68437         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68438         * doc/posix-functions/rename.texi: Document.
68440 2009-04-10  Bruno Haible  <bruno@clisp.org>
68442         New include file "iconveh.h".
68443         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68444         * lib/striconveh.h: Include it.
68445         (enum iconv_ilseq_handler): Remove definition.
68446         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68447         striconveh.h.
68448         * lib/striconveha.c: Include striconveh.h.
68449         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68450         * modules/striconveh (Files): Add lib/iconveh.h.
68451         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68452         lib/striconveh.h.
68454 2009-04-10  Bruno Haible  <bruno@clisp.org>
68456         * lib/uniconv.h: Update comment.
68458 2009-04-10  Bruno Haible  <bruno@clisp.org>
68460         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68461         always.
68462         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68463         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68464         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68465         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68466         "unistring-notinline.h", so that the function gets defined always.
68467         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68468         * lib/unistr/u8-uctomb.c: Likewise.
68469         * lib/unistr/u16-mbtouc.c: Likewise.
68470         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68471         * lib/unistr/u16-uctomb.c: Likewise.
68472         * lib/unistr/u32-mbtouc.c: Likewise.
68473         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68474         * lib/unistr/u32-uctomb.c: Likewise.
68476 2009-04-10  Bruno Haible  <bruno@clisp.org>
68478         Mark 'utime' obsolete.
68479         * modules/utime (Status, Notice): New sections.
68480         Suggested by Jim Meyering.
68482         Fix cross-compile guess for utime test.
68483         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68484         autoconf.
68485         * doc/posix-functions/utime.texi: Give more precisions.
68486         Reported by Jan <ipif@ymail.com>.
68488 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68490         filevercmp: correct today's change
68491         * lib/filevercmp.c: Also handle coreutils' test inputs.
68492         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68494         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68495         for reporting it.
68496         * lib/filevercmp.c: Special handle for "", "." and "..".
68497         * tests/test-filevercmp.c: Enlarge the set suite.
68499 2009-04-07  Jim Meyering  <meyering@redhat.com>
68501         useless-if-before-free: show how to remove braced useless free, too
68502         * build-aux/useless-if-before-free: still only in a comment, though.
68504 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68506         maint.mk: import changes to syntax-check macros from coreutils
68507         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68508         Use them in the relevant macros.
68510 2009-04-06  Bruno Haible  <bruno@clisp.org>
68512         Fix unportable use of bit-fields.
68513         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68514         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68515         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68517 2009-04-06  Bruno Haible  <bruno@clisp.org>
68519         Avoid test failures on AIX and OSF/1.
68520         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68521         that malloc(0) = NULL.
68522         * tests/unicase/test-u8-tolower.c (check): Likewise.
68523         * tests/unicase/test-u8-totitle.c (check): Likewise.
68524         * tests/unicase/test-u8-toupper.c (check): Likewise.
68525         * tests/unicase/test-u16-casefold.c (check): Likewise.
68526         * tests/unicase/test-u16-tolower.c (check): Likewise.
68527         * tests/unicase/test-u16-totitle.c (check): Likewise.
68528         * tests/unicase/test-u16-toupper.c (check): Likewise.
68529         * tests/unicase/test-u32-casefold.c (check): Likewise.
68530         * tests/unicase/test-u32-tolower.c (check): Likewise.
68531         * tests/unicase/test-u32-totitle.c (check): Likewise.
68532         * tests/unicase/test-u32-toupper.c (check): Likewise.
68533         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68534         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68535         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68536         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68537         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68538         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68539         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68540         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68541         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68542         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68543         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68544         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68546 2009-04-05  Bruno Haible  <bruno@clisp.org>
68548         Work around an autoconf limitation.
68549         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68550         comment line if it would be longer than 3 KB.
68552 2009-04-05  Bruno Haible  <bruno@clisp.org>
68554         Avoid test failure with libiconv-1.13.
68555         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68556         of the expected test results.
68558 2009-04-05  Bruno Haible  <bruno@clisp.org>
68560         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68561         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68562         that it should be installed.
68564 2009-04-05  Bruno Haible  <bruno@clisp.org>
68566         * gnulib-tool: New option --copy-file.
68567         (func_usage): Document it.
68568         (func_dest_tmpfilename): Moved out of func_import.
68569         (func_add_file, func_update_file): New functions, extracted from
68570         func_import.
68571         (func_import): Update.
68573 2009-04-05  Karl Berry  <karl@gnu.org>
68575         * README: prominently mention gnulib-tool.
68576         Rearrange sections so getting the code is near the top.
68578 2009-04-05  Bruno Haible  <bruno@clisp.org>
68580         * lib/unicase.h: Mention u*_cmp2.
68581         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68582         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68583         * lib/unicase/ulc-casecmp.c: Likewise.
68584         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68585         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68586         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68587         unistr/u8-cmp.
68588         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68589         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68590         unistr/u16-cmp.
68591         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68592         unistr/u32-cmp.
68594         * lib/uninorm.h: Mention u*_cmp2.
68595         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68596         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68597         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68598         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68599         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68600         unistr/u8-cmp.
68601         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68602         unistr/u16-cmp.
68603         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68604         unistr/u32-cmp.
68606         New module 'unistr/u32-cmp2'.
68607         * lib/unistr/u32-cmp2.c: New file.
68608         * modules/unistr/u32-cmp2: New file.
68610         New module 'unistr/u16-cmp2'.
68611         * lib/unistr/u16-cmp2.c: New file.
68612         * modules/unistr/u16-cmp2: New file.
68614         New module 'unistr/u8-cmp2'.
68615         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68616         * lib/unistr/u8-cmp2.c: New file.
68617         * lib/unistr/u-cmp2.h: New file.
68618         * modules/unistr/u8-cmp2: New file.
68620 2009-04-05  Bruno Haible  <bruno@clisp.org>
68622         * lib/unictype.h (uc_property_is_valid): New macro.
68623         * tests/unictype/test-pr_byname.c (main): Use it.
68625         * lib/unistr.h: Doc fixes.
68626         * lib/uniconv.h: Doc fixes.
68627         * lib/unictype.h: Doc fixes.
68629 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68631         Port coreutils 7.2 to Solaris 8.
68633         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68634         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68635         for Solaris 8.  This is a bit of a hack, as it means it's the
68636         caller's responsibility to add -lnsl if needed, but most likely it
68637         won't be needed since only getaddrinfo uses this and getaddrinfo
68638         isn't needed on Solaris 8.
68640         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68641         problem to Solaris 8 encountered with coreutils 7.2, which
68642         resulted in a message "fnmatch.c:292: warning: passing argument 4
68643         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68644         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68646 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68648         * m4/ld-version-script.m4: Add FIXME comment.
68650 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68652         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68653         SOVERSION variable.
68655 2009-04-02  Bruno Haible  <bruno@clisp.org>
68657         * Makefile (info, html, dvi, pdf): Combine the rules.
68658         Suggested by Jim Meyering.
68660 2009-04-01  Bruno Haible  <bruno@clisp.org>
68662         * Makefile (info, html, dvi, pdf): New targets.
68663         Reported by Reuben Thomas <rrt@sc3d.org>.
68665 2009-04-01  Bruno Haible  <bruno@clisp.org>
68667         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68668         can be put into PATH.
68669         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68671 2009-04-01  Bruno Haible  <bruno@clisp.org>
68673         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68675 2009-04-01  Bruno Haible  <bruno@clisp.org>
68677         Rename module 'visibility'.
68678         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68679         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68680         * doc/gnulib.texi: Update.
68681         * MODULES.html.sh (Misc): Update.
68682         * NEWS: Mention the change.
68684 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68686         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68687         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68688         Eric Blake <ebb9@byu.net> for review.
68689         * MODULES.html.sh: Add lib-msvc-compat.
68690         * doc/gnulib.texi: Link to new section.
68691         * m4/ld-output-def.m4: New file.
68692         * doc/ld-output-def.texi: New file.
68694 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68696         Rename ld-version-script to lib-symbol-versions.  Suggested by
68697         Bruno Haible <bruno@clisp.org>.
68698         * modules/ld-version-script: Renamed to lib-symbol-versions.
68699         * doc/ld-version-script.texi: Fix module name.
68700         * MODULES.html.sh: Add lib-symbol-versions.
68702 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68704         * modules/u64-tests: New file.
68705         * tests/test-u64.c: New file.
68707 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68709         * MODULES.html.sh: Mention u64.
68710         * modules/u64: New module.
68711         * modules/crypto/sha512: Depend on u64 module instead of providing
68712         u64.h.
68714 2009-03-27  Eric Blake  <ebb9@byu.net>
68716         test-strerror: make debugging EAI_SYSTEM easier
68717         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68718         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68719         failure was EAI_SYSTEM.
68721 2009-03-25  Bruno Haible  <bruno@clisp.org>
68723         Fix a problem with --enable-relocatable on Solaris 7.
68724         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68725         since 2008-02-24.
68727 2009-03-25  Eric Blake  <ebb9@byu.net>
68729         test-sockets: avoid gcc warning
68730         * tests/test-sockets.c (main): Silence compiler warning.
68732 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68734         New modules nproc, pthread, contributed by Glen Lenker.
68736         * MODULES.html.sh: Add pthread, nproc.
68737         * lib/nproc.c: New file.
68738         * lib/nproc.h: New file.
68739         * lib/pthread.in.h: New file.
68740         * m4/pthread.m4: New file.
68741         * modules/nproc: New file.
68742         * modules/pthread: New file.
68744 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68746         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68747         New variable.
68749 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68751         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68752         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68753         * tests/test-filevercmp.c: Add tests for backup suffixes.
68755 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68757         * modules/stdlib (Depends-on): Add stdint, needed when defining
68758         struct random_data on, for example, HP-UX 10.20.  Reported by
68759         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68761 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68763         * lib/readline.c (readline): Call fflush on stdout after printing
68764         prompt.
68766 2009-03-20  Bruno Haible  <bruno@clisp.org>
68768         Remove dependency from 'close' module to -lws2_32 on native Windows.
68769         * lib/close-hook.h: New file.
68770         * lib/close-hook.c: New file.
68771         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68772         w32sock.h.
68773         (_gl_close_fd_maybe_socket): Remove function.
68774         (rpl_close): Invoke execute_all_close_hooks instead of
68775         _gl_close_fd_maybe_socket.
68776         * lib/sockets.c: Include close-hook.h, w32sock.h.
68777         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68778         (close_sockets_hook): New variable.
68779         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68780         (gl_sockets_cleanup): Unregister it.
68781         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68782         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68783         * modules/close-hook: New file.
68784         * modules/close (Files): Remove lib/w32sock.h.
68785         (Depends-on): Add close-hook.
68786         (Link): Remove section.
68787         * modules/sockets (Files): Add lib/w32sock.h.
68788         (Depends-on): Add close-hook.
68789         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68790         invocation.
68791         * NEWS: Mention that LIB_CLOSE is gone.
68793 2009-03-23  Eric Blake  <ebb9@byu.net>
68795         signal-tests: test previous patch
68796         * tests/test-signal.c: New file.
68797         * modules/signal-tests: Likewise.
68799         signal.h: always support 'volatile sig_atomic_t'
68800         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68801         (gl_SIGNAL_H_DEFAULTS): Add a default.
68802         * modules/signal (Makefile.am): Substitute if needed.
68803         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68804         users can blindly add volatile.
68805         * doc/posix-headers/signal.texi (signal.h): Document it.
68806         Reported by Matthew Woehlke.
68808 2009-03-23  Jim Meyering  <meyering@redhat.com>
68810         pathmax: PATH_MAX: use pathconf only when available
68811         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68812         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68813         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68814         This avoids a link failure in a PSP cross-compilation environment
68815         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68817         * lib/vasnprintf.c (divide): Fix typo in comment.
68819 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68821         * gnulib-tool (func_filter_filelist): Fix comment.
68823 2009-03-20  Bruno Haible  <bruno@clisp.org>
68825         Make sockets.h self-contained.
68826         * lib/sockets.c: Include sockets.h first.
68827         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68829 2009-03-19  Eric Blake  <ebb9@byu.net>
68831         doc: mention more functions added in cygwin 1.7.0
68832         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68833         addition.
68834         * doc/posix-functions/log2f.texi: Likewise.
68836 2009-03-19  Jim Meyering  <meyering@redhat.com>
68838         fsusage: avoid syntax error due to statement-before-declaration
68839         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68840         after all declarations.  Reported by Matthew Woehlke in
68841         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68843 2009-03-18  Eric Blake  <ebb9@byu.net>
68845         build-aux/compile: sync from automake
68846         * build-aux/compile: New file, from automake.
68847         * config/srclist.txt: Mention build-aux/compile.
68849 2009-03-17  Bruno Haible  <bruno@clisp.org>
68851         * lib/git-merge-changelog.c: Fix typo in comment.
68852         Reported by Reuben Thomas <rrt@sc3d.org>.
68854 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68856         * m4/regex.m4: update and improve help for
68857         --without-included-regex.
68859 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68861         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68862         failure on missing include files.
68864 2009-03-17  Eric Blake  <ebb9@byu.net>
68866         doc: mention more functions added in cygwin 1.7.0
68867         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68868         addition.
68869         * doc/posix-functions/fwscanf.texi: Likewise.
68870         * doc/posix-functions/swprintf.texi: Likewise.
68871         * doc/posix-functions/swscanf.texi: Likewise.
68872         * doc/posix-functions/vfwprintf.texi: Likewise.
68873         * doc/posix-functions/vfwscanf.texi: Likewise.
68874         * doc/posix-functions/vswprintf.texi: Likewise.
68875         * doc/posix-functions/vswscanf.texi: Likewise.
68876         * doc/posix-functions/vwprintf.texi: Likewise.
68877         * doc/posix-functions/vwscanf.texi: Likewise.
68878         * doc/posix-functions/wcscasecmp.texi: Likewise.
68879         * doc/posix-functions/wcsdup.texi: Likewise.
68880         * doc/posix-functions/wcsftime.texi: Likewise.
68881         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68882         * doc/posix-functions/wprintf.texi: Likewise.
68883         * doc/posix-functions/wscanf.texi: Likewise.
68884         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68886 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68888         maint.mk: really add $(AM_MAKEFLAGS)
68889         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68890         was inadvertently omitted in the last commit.
68891         Spotted by Bruno Haible.
68893         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68894         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68895         $(AM_MAKEFLAGS)' rather than plain `make'.
68897         gnulib-tool: execute $MAKE not make
68898         * gnulib-tool: Default $MAKE to 'make'.
68899         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68900         than make.  Initialize $MAKE in the do-autobuild script.
68902         gnulib-tool: use $MAKE not make in generated files
68903         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68904         make, in generated files.  Initialize $MAKE in the do-autobuild
68905         script.
68907         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68909         GNUmakefile: disable parallelism only for multiple, recursive targets
68910         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68911         additions in the Makefile.
68912         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68913         by Automake.
68914         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68915         are listed on the command line and at least one of them is
68916         listed in $(ALL_RECURSIVE_TARGETS).
68918 2009-03-14  Bruno Haible  <bruno@clisp.org>
68920         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68921         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68922         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68923         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68924         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68925         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68926         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68927         unistr/u8-uctomb.
68928         * modules/unistr/u8-strchr (Depends-on): Likewise.
68929         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68930         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68931         unistr/u16-uctomb.
68932         * modules/unistr/u16-strchr (Depends-on): Likewise.
68933         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68935 2009-03-12  Bruno Haible  <bruno@clisp.org>
68937         Work around select() bug on Interix 3.5.
68938         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68939         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68940         * m4/select.m4: New file.
68941         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68942         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68943         * modules/select (Files): Add m4/select.m4.
68944         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68945         * modules/nanosleep (Depends-on): Add select.
68946         * modules/poll (Depends-on): Likewise.
68947         * doc/posix-functions/select.texi: Mention the Interix bug.
68948         Reported by Markus Duft <mduft@gentoo.org>.
68950         * lib/select.c: Renamed from lib/winsock-select.c.
68951         * modules/select (Files): Add lib/select.c, remove
68952         lib/winsock-select.c.
68953         (configure.ac): Update.
68955 2009-03-12  Jim Meyering  <meyering@redhat.com>
68957         avoid gcc warnings about unused macro definitions
68958         * lib/readtokens.c (STREQ): Remove unused definition.
68959         * lib/xmalloc.c (SIZE_MAX): Likewise.
68960         * lib/openat-die.c (N_): Likewise.
68961         * lib/mountlist.c (SIZE_MAX): Remove definition.
68962         Instead, include <stdint.h>.
68963         * lib/readutmp.c: Likewise.
68964         * modules/readutmp (Depends-on): Add stdint.
68965         * modules/mountlist (Depends-on): Add stdint.
68966         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68968 2009-03-10  Bruno Haible  <bruno@clisp.org>
68970         Tests for module 'mbmemcasecoll'.
68971         * modules/mbmemcasecoll-tests: New file.
68972         * tests/test-mbmemcasecoll1.sh: New file.
68973         * tests/test-mbmemcasecoll2.sh: New file.
68974         * tests/test-mbmemcasecoll3.sh: New file.
68975         * tests/test-mbmemcasecoll.c: New file.
68977         New module 'mbmemcasecoll'.
68978         * lib/mbmemcasecoll.h: New file.
68979         * lib/mbmemcasecoll.c: New file.
68980         * modules/mbmemcasecoll: New file.
68982         * tests/test-mbmemcasecmp.h: New file, extracted from
68983         tests/test-mbmemcasecmp.c.
68984         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68985         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68986         (main): Update.
68987         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68989 2009-03-09  Bruno Haible  <bruno@clisp.org>
68991         Tests for module 'mbmemcasecmp'.
68992         * modules/mbmemcasecmp-tests: New file.
68993         * tests/test-mbmemcasecmp1.sh: New file.
68994         * tests/test-mbmemcasecmp2.sh: New file.
68995         * tests/test-mbmemcasecmp3.sh: New file.
68996         * tests/test-mbmemcasecmp.c: New file.
68998         New module 'mbmemcasecmp'.
68999         * lib/mbmemcasecmp.h: New file.
69000         * lib/mbmemcasecmp.c: New file.
69001         * modules/mbmemcasecmp: New file.
69003 2009-03-09  Bruno Haible  <bruno@clisp.org>
69005         Tests for module 'unicase/ulc-casecoll'.
69006         * modules/unicase/ulc-casecoll-tests: New file.
69007         * tests/unicase/test-ulc-casecoll1.sh: New file.
69008         * tests/unicase/test-ulc-casecoll2.sh: New file.
69009         * tests/unicase/test-ulc-casecoll.c: New file.
69011         New module 'unicase/ulc-casecoll'.
69012         * lib/unicase.h (ulc_casecoll): New declaration.
69013         * lib/unicase/ulc-casecoll.c: New file.
69014         * modules/unicase/ulc-casecoll: New file.
69016         New module 'unicase/ulc-casexfrm'.
69017         * lib/unicase.h (ulc_casexfrm): New declaration.
69018         * lib/unicase/ulc-casexfrm.c: New file.
69019         * modules/unicase/ulc-casexfrm: New file.
69021 2009-03-09  Bruno Haible  <bruno@clisp.org>
69023         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
69024         invocations.
69026         * m4/mbscasecmp.m4: Remove file.
69027         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
69028         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
69030         * m4/mbscasestr.m4: Remove file.
69031         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
69032         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
69034         * m4/mbschr.m4: Remove file.
69035         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
69036         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
69038         * m4/mbscspn.m4: Remove file.
69039         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
69040         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
69042         * m4/mbslen.m4: Remove file.
69043         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
69044         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
69046         * m4/mbsncasecmp.m4: Remove file.
69047         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
69048         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
69050         * m4/mbsnlen.m4: Remove file.
69051         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
69052         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
69054         * m4/mbspbrk.m4: Remove file.
69055         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
69056         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
69058         * m4/mbspcasecmp.m4: Remove file.
69059         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
69060         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
69062         * m4/mbsrchr.m4: Remove file.
69063         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
69064         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
69066         * m4/mbssep.m4: Remove file.
69067         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
69068         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
69070         * m4/mbsspn.m4: Remove file.
69071         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
69072         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
69074         * m4/mbsstr.m4: Remove file.
69075         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
69076         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
69078         * m4/mbstok_r.m4: Remove file.
69079         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
69080         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
69082         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
69084         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
69085         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
69087         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
69089 2009-03-08  Bruno Haible  <bruno@clisp.org>
69091         Tests for module 'unicase/ulc-casecmp'.
69092         * modules/unicase/ulc-casecmp-tests: New file.
69093         * tests/unicase/test-ulc-casecmp1.sh: New file.
69094         * tests/unicase/test-ulc-casecmp2.sh: New file.
69095         * tests/unicase/test-ulc-casecmp.c: New file.
69097         New module 'unicase/ulc-casecmp'.
69098         * lib/unicase.h (ulc_casecmp): New declaration.
69099         * lib/unicase/ulc-casecmp.c: New file.
69100         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
69101         'const SRC_UNIT *'.
69102         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
69103         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
69104         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
69105         * modules/unicase/ulc-casecmp: New file.
69107         Tests for module 'unicase/u32-is-cased'.
69108         * modules/unicase/u32-is-cased-tests: New file.
69109         * tests/unicase/test-u32-is-cased.c: New file.
69111         Tests for module 'unicase/u16-is-cased'.
69112         * modules/unicase/u16-is-cased-tests: New file.
69113         * tests/unicase/test-u16-is-cased.c: New file.
69115         Tests for module 'unicase/u8-is-cased'.
69116         * modules/unicase/u8-is-cased-tests: New file.
69117         * tests/unicase/test-u8-is-cased.c: New file.
69118         * tests/unicase/test-is-cased.h: New file.
69120         New module 'unicase/u32-is-cased'.
69121         * lib/unicase/u32-is-cased.c: New file.
69122         * modules/unicase/u32-is-cased: New file.
69124         New module 'unicase/u16-is-cased'.
69125         * lib/unicase/u16-is-cased.c: New file.
69126         * modules/unicase/u16-is-cased: New file.
69128         New module 'unicase/u8-is-cased'.
69129         * lib/unicase/u8-is-cased.c: New file.
69130         * lib/unicase/u-is-cased.h: New file.
69131         * modules/unicase/u8-is-cased: New file.
69133         Tests for module 'unicase/u32-is-casefolded'.
69134         * modules/unicase/u32-is-casefolded-tests: New file.
69135         * tests/unicase/test-u32-is-casefolded.c: New file.
69137         Tests for module 'unicase/u16-is-casefolded'.
69138         * modules/unicase/u16-is-casefolded-tests: New file.
69139         * tests/unicase/test-u16-is-casefolded.c: New file.
69141         Tests for module 'unicase/u8-is-casefolded'.
69142         * modules/unicase/u8-is-casefolded-tests: New file.
69143         * tests/unicase/test-u8-is-casefolded.c: New file.
69144         * tests/unicase/test-is-casefolded.h: New file.
69146         New module 'unicase/u32-is-casefolded'.
69147         * lib/unicase/u32-is-casefolded.c: New file.
69148         * modules/unicase/u32-is-casefolded: New file.
69150         New module 'unicase/u16-is-casefolded'.
69151         * lib/unicase/u16-is-casefolded.c: New file.
69152         * modules/unicase/u16-is-casefolded: New file.
69154         New module 'unicase/u8-is-casefolded'.
69155         * lib/unicase/u8-is-casefolded.c: New file.
69156         * modules/unicase/u8-is-casefolded: New file.
69158         Tests for module 'unicase/u32-is-titlecase'.
69159         * modules/unicase/u32-is-titlecase-tests: New file.
69160         * tests/unicase/test-u32-is-titlecase.c: New file.
69162         Tests for module 'unicase/u16-is-titlecase'.
69163         * modules/unicase/u16-is-titlecase-tests: New file.
69164         * tests/unicase/test-u16-is-titlecase.c: New file.
69166         Tests for module 'unicase/u8-is-titlecase'.
69167         * modules/unicase/u8-is-titlecase-tests: New file.
69168         * tests/unicase/test-u8-is-titlecase.c: New file.
69169         * tests/unicase/test-is-titlecase.h: New file.
69171         New module 'unicase/u32-is-titlecase'.
69172         * lib/unicase/u32-is-titlecase.c: New file.
69173         * modules/unicase/u32-is-titlecase: New file.
69175         New module 'unicase/u16-is-titlecase'.
69176         * lib/unicase/u16-is-titlecase.c: New file.
69177         * modules/unicase/u16-is-titlecase: New file.
69179         New module 'unicase/u8-is-titlecase'.
69180         * lib/unicase/u8-is-titlecase.c: New file.
69181         * modules/unicase/u8-is-titlecase: New file.
69183         Tests for module 'unicase/u32-is-lowercase'.
69184         * modules/unicase/u32-is-lowercase-tests: New file.
69185         * tests/unicase/test-u32-is-lowercase.c: New file.
69187         Tests for module 'unicase/u16-is-lowercase'.
69188         * modules/unicase/u16-is-lowercase-tests: New file.
69189         * tests/unicase/test-u16-is-lowercase.c: New file.
69191         Tests for module 'unicase/u8-is-lowercase'.
69192         * modules/unicase/u8-is-lowercase-tests: New file.
69193         * tests/unicase/test-u8-is-lowercase.c: New file.
69194         * tests/unicase/test-is-lowercase.h: New file.
69196         New module 'unicase/u32-is-lowercase'.
69197         * lib/unicase/u32-is-lowercase.c: New file.
69198         * modules/unicase/u32-is-lowercase: New file.
69200         New module 'unicase/u16-is-lowercase'.
69201         * lib/unicase/u16-is-lowercase.c: New file.
69202         * modules/unicase/u16-is-lowercase: New file.
69204         New module 'unicase/u8-is-lowercase'.
69205         * lib/unicase/u8-is-lowercase.c: New file.
69206         * modules/unicase/u8-is-lowercase: New file.
69208         Tests for module 'unicase/u32-is-uppercase'.
69209         * modules/unicase/u32-is-uppercase-tests: New file.
69210         * tests/unicase/test-u32-is-uppercase.c: New file.
69212         Tests for module 'unicase/u16-is-uppercase'.
69213         * modules/unicase/u16-is-uppercase-tests: New file.
69214         * tests/unicase/test-u16-is-uppercase.c: New file.
69216         Tests for module 'unicase/u8-is-uppercase'.
69217         * modules/unicase/u8-is-uppercase-tests: New file.
69218         * tests/unicase/test-u8-is-uppercase.c: New file.
69219         * tests/unicase/test-is-uppercase.h: New file.
69221         New module 'unicase/u32-is-uppercase'.
69222         * lib/unicase/u32-is-uppercase.c: New file.
69223         * modules/unicase/u32-is-uppercase: New file.
69225         New module 'unicase/u16-is-uppercase'.
69226         * lib/unicase/u16-is-uppercase.c: New file.
69227         * modules/unicase/u16-is-uppercase: New file.
69229         New module 'unicase/u8-is-uppercase'.
69230         * lib/unicase/u8-is-uppercase.c: New file.
69231         * modules/unicase/u8-is-uppercase: New file.
69233         New module 'unicase/u32-is-invariant'.
69234         * lib/unicase/u32-is-invariant.c: New file.
69235         * modules/unicase/u32-is-invariant: New file.
69237         New module 'unicase/u16-is-invariant'.
69238         * lib/unicase/u16-is-invariant.c: New file.
69239         * modules/unicase/u16-is-invariant: New file.
69241         New module 'unicase/u8-is-invariant'.
69242         * lib/unicase/u8-is-invariant.c: New file.
69243         * lib/unicase/invariant.h: New file.
69244         * lib/unicase/u-is-invariant.h: New file.
69245         * modules/unicase/u8-is-invariant: New file.
69247         Tests for module 'unicase/u32-casecoll'.
69248         * modules/unicase/u32-casecoll-tests: New file.
69249         * tests/unicase/test-u32-casecoll.c: New file.
69251         Tests for module 'unicase/u16-casecoll'.
69252         * modules/unicase/u16-casecoll-tests: New file.
69253         * tests/unicase/test-u16-casecoll.c: New file.
69255         Tests for module 'unicase/u8-casecoll'.
69256         * modules/unicase/u8-casecoll-tests: New file.
69257         * tests/unicase/test-u8-casecoll.c: New file.
69259         New module 'unicase/u32-casecoll'.
69260         * lib/unicase/u32-casecoll.c: New file.
69261         * modules/unicase/u32-casecoll: New file.
69263         New module 'unicase/u16-casecoll'.
69264         * lib/unicase/u16-casecoll.c: New file.
69265         * modules/unicase/u16-casecoll: New file.
69267         New module 'unicase/u8-casecoll'.
69268         * lib/unicase/u8-casecoll.c: New file.
69269         * lib/unicase/u-casecoll.h: New file.
69270         * modules/unicase/u8-casecoll: New file.
69272         New module 'unicase/u32-casexfrm'.
69273         * lib/unicase/u32-casexfrm.c: New file.
69274         * modules/unicase/u32-casexfrm: New file.
69276         New module 'unicase/u16-casexfrm'.
69277         * lib/unicase/u16-casexfrm.c: New file.
69278         * modules/unicase/u16-casexfrm: New file.
69280         New module 'unicase/u8-casexfrm'.
69281         * lib/unicase/u8-casexfrm.c: New file.
69282         * lib/unicase/u-casexfrm.h: New file.
69283         * modules/unicase/u8-casexfrm: New file.
69285         Tests for module 'unicase/u32-casecmp'.
69286         * modules/unicase/u32-casecmp-tests: New file.
69287         * tests/unicase/test-u32-casecmp.c: New file.
69289         Tests for module 'unicase/u16-casecmp'.
69290         * modules/unicase/u16-casecmp-tests: New file.
69291         * tests/unicase/test-u16-casecmp.c: New file.
69293         Tests for module 'unicase/u8-casecmp'.
69294         * modules/unicase/u8-casecmp-tests: New file.
69295         * tests/unicase/test-u8-casecmp.c: New file.
69296         * tests/unicase/test-casecmp.h: New file.
69298         New module 'unicase/u32-casecmp'.
69299         * lib/unicase/u32-casecmp.c: New file.
69300         * modules/unicase/u32-casecmp: New file.
69302         New module 'unicase/u16-casecmp'.
69303         * lib/unicase/u16-casecmp.c: New file.
69304         * modules/unicase/u16-casecmp: New file.
69306         New module 'unicase/u8-casecmp'.
69307         * lib/unicase/u8-casecmp.c: New file.
69308         * lib/unicase/u-casecmp.h: New file.
69309         * modules/unicase/u8-casecmp: New file.
69311         Tests for module 'unicase/u32-casefold'.
69312         * modules/unicase/u32-casefold-tests: New file.
69313         * tests/unicase/test-u32-casefold.c: New file.
69315         Tests for module 'unicase/u16-casefold'.
69316         * modules/unicase/u16-casefold-tests: New file.
69317         * tests/unicase/test-u16-casefold.c: New file.
69319         Tests for module 'unicase/u8-casefold'.
69320         * modules/unicase/u8-casefold-tests: New file.
69321         * tests/unicase/test-u8-casefold.c: New file.
69323         New module 'unicase/u32-casefold'.
69324         * lib/unicase/u32-casefold.c: New file.
69325         * modules/unicase/u32-casefold: New file.
69327         New module 'unicase/u16-casefold'.
69328         * lib/unicase/u16-casefold.c: New file.
69329         * modules/unicase/u16-casefold: New file.
69331         New module 'unicase/u8-casefold'.
69332         * lib/unicase/u8-casefold.c: New file.
69333         * lib/unicase/u-casefold.h: New file.
69334         * modules/unicase/u8-casefold: New file.
69336         New module 'unicase/tocasefold'.
69337         * lib/unicase/casefold.h: New file.
69338         * lib/unicase/tocasefold.c: New file.
69339         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
69340         * modules/unicase/tocasefold: New file.
69342         Tests for module 'unicase/u32-totitle'.
69343         * modules/unicase/u32-totitle-tests: New file.
69344         * tests/unicase/test-u32-totitle.c: New file.
69346         Tests for module 'unicase/u16-totitle'.
69347         * modules/unicase/u16-totitle-tests: New file.
69348         * tests/unicase/test-u16-totitle.c: New file.
69350         Tests for module 'unicase/u8-totitle'.
69351         * modules/unicase/u8-totitle-tests: New file.
69352         * tests/unicase/test-u8-totitle.c: New file.
69354         New module 'unicase/u32-totitle'.
69355         * lib/unicase/u32-totitle.c: New file.
69356         * modules/unicase/u32-totitle: New file.
69358         New module 'unicase/u16-totitle'.
69359         * lib/unicase/u16-totitle.c: New file.
69360         * modules/unicase/u16-totitle: New file.
69362         New module 'unicase/u8-totitle'.
69363         * lib/unicase/u8-totitle.c: New file.
69364         * lib/unicase/u-totitle.h: New file.
69365         * modules/unicase/u8-totitle: New file.
69367         Tests for module 'unicase/u32-tolower'.
69368         * modules/unicase/u32-tolower-tests: New file.
69369         * tests/unicase/test-u32-tolower.c: New file.
69371         Tests for module 'unicase/u16-tolower'.
69372         * modules/unicase/u16-tolower-tests: New file.
69373         * tests/unicase/test-u16-tolower.c: New file.
69375         Tests for module 'unicase/u8-tolower'.
69376         * modules/unicase/u8-tolower-tests: New file.
69377         * tests/unicase/test-u8-tolower.c: New file.
69379         New module 'unicase/u32-tolower'.
69380         * lib/unicase/u32-tolower.c: New file.
69381         * modules/unicase/u32-tolower: New file.
69383         New module 'unicase/u16-tolower'.
69384         * lib/unicase/u16-tolower.c: New file.
69385         * modules/unicase/u16-tolower: New file.
69387         New module 'unicase/u8-tolower'.
69388         * lib/unicase/u8-tolower.c: New file.
69389         * modules/unicase/u8-tolower: New file.
69391         Tests for module 'unicase/u32-toupper'.
69392         * modules/unicase/u32-toupper-tests: New file.
69393         * tests/unicase/test-u32-toupper.c: New file.
69395         Tests for module 'unicase/u16-toupper'.
69396         * modules/unicase/u16-toupper-tests: New file.
69397         * tests/unicase/test-u16-toupper.c: New file.
69399         Tests for module 'unicase/u8-toupper'.
69400         * modules/unicase/u8-toupper-tests: New file.
69401         * tests/unicase/test-u8-toupper.c: New file.
69403         New module 'unicase/u32-toupper'.
69404         * lib/unicase/u32-toupper.c: New file.
69405         * modules/unicase/u32-toupper: New file.
69407         New module 'unicase/u16-toupper'.
69408         * lib/unicase/u16-toupper.c: New file.
69409         * modules/unicase/u16-toupper: New file.
69411         New module 'unicase/u8-toupper'.
69412         * lib/unicase/u8-toupper.c: New file.
69413         * modules/unicase/u8-toupper: New file.
69415         New module 'unicase/u32-casemap'.
69416         * lib/unicase/u32-casemap.c: New file.
69417         * modules/unicase/u32-casemap: New file.
69419         New module 'unicase/u16-casemap'.
69420         * lib/unicase/u16-casemap.c: New file.
69421         * modules/unicase/u16-casemap: New file.
69423         New module 'unicase/u8-casemap'.
69424         * lib/unicase/unicasemap.h: New file.
69425         * lib/unicase/u8-casemap.c: New file.
69426         * lib/unicase/u-casemap.h: New file.
69427         * modules/unicase/u8-casemap: New file.
69429         New module 'unicase/special-casing'.
69430         * lib/unicase/special-casing.h: New file.
69431         * lib/unicase/special-casing.c: New file.
69432         * lib/unicase/special-casing-table.gperf: New file, generated by
69433         gen-uni-tables.c.
69434         * modules/unicase/special-casing: New file.
69436         Tests for module 'unicase/locale-language'.
69437         * modules/unicase/locale-language-tests: New file.
69438         * tests/unicase/test-locale-language.sh: New file.
69439         * tests/unicase/test-locale-language.c: New file.
69441         New module 'unicase/locale-language'.
69442         * lib/unicase/locale-language.c: New file.
69443         * lib/unicase/locale-languages.gperf: New file.
69444         * modules/unicase/locale-language: New file.
69446         Generate more tables for case conversion and case folding.
69447         * lib/gen-uni-tables.c (SCC_*): New enum items.
69448         (struct special_casing_rule): New type.
69449         (casing_rules, num_casing_rules, allocated_casing_rules): New
69450         variables.
69451         (add_casing_rule, fill_casing_rules): New functions.
69452         (struct casefold_rule): New type.
69453         (casefolding_rules, num_casefolding_rules,
69454         allocated_casefolding_rules): New variables.
69455         (fill_casefolding_rules): New function.
69456         (unicode_casefold): New variable.
69457         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69458         sort_casing_rules, output_casing_rules): New functions.
69459         (main): Accept to more arguments: SpecialCasing.txt and
69460         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69461         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69462         Output mapping for casefolding.
69464         * lib/unicase.h: Include stdbool.h, uninorm.h.
69465         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69466         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69467         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69468         arguments.
69469         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69470         resultp arguments.
69471         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69472         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69473         resultp arguments.
69474         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69475         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69476         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69477         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69478         declarations.
69479         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69481 2009-03-08  Bruno Haible  <bruno@clisp.org>
69483         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69484         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69485         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69486         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69488 2009-03-07  Bruno Haible  <bruno@clisp.org>
69490         Adjust u*_normcmp, u*_normcoll API.
69491         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69492         u16_normcoll, u32_normcoll): Change failure conventions.
69493         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69494         errno and return -1.
69495         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69497 2009-03-07  Bruno Haible  <bruno@clisp.org>
69499         Tests for module 'uninorm/u32-normcoll'.
69500         * modules/uninorm/u32-normcoll-tests: New file.
69501         * tests/uninorm/test-u32-normcoll.c: New file.
69503         Tests for module 'uninorm/u16-normcoll'.
69504         * modules/uninorm/u16-normcoll-tests: New file.
69505         * tests/uninorm/test-u16-normcoll.c: New file.
69507         Tests for module 'uninorm/u8-normcoll'.
69508         * modules/uninorm/u8-normcoll-tests: New file.
69509         * tests/uninorm/test-u8-normcoll.c: New file.
69511 2009-03-07  Bruno Haible  <bruno@clisp.org>
69513         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69514         tests/uninorm/test-u32-normcmp.c.
69515         * tests/uninorm/test-u32-normcmp.c: Include it.
69516         (test_nonascii): New function, extracted from main. Add some more
69517         tests.
69518         (main): Invoke test_ascii and test_nonascii.
69519         * modules/uninorm/u32-normcmp-tests (Files): Add
69520         tests/uninorm/test-u32-normcmp.h.
69521         (Depends-on): Remove uninorm/u32-normcmp.
69523         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69524         tests/uninorm/test-u16-normcmp.c.
69525         * tests/uninorm/test-u16-normcmp.c: Include it.
69526         (test_nonascii): New function, extracted from main. Add some more
69527         tests.
69528         (main): Invoke test_ascii and test_nonascii.
69529         * modules/uninorm/u16-normcmp-tests (Files): Add
69530         tests/uninorm/test-u16-normcmp.h.
69531         (Depends-on): Remove uninorm/u16-normcmp.
69533         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69534         tests/uninorm/test-u8-normcmp.c.
69535         * tests/uninorm/test-u8-normcmp.c: Include it.
69536         (test_nonascii): New function, extracted from main. Add some more
69537         tests.
69538         (main): Invoke test_ascii and test_nonascii.
69539         * modules/uninorm/u8-normcmp-tests (Files): Add
69540         tests/uninorm/test-u8-normcmp.h.
69541         (Depends-on): Remove uninorm/u8-normcmp.
69543 2009-03-07  Bruno Haible  <bruno@clisp.org>
69545         New module 'uninorm/u32-normcoll'.
69546         * lib/uninorm/u32-normcoll.c: New file.
69547         * modules/uninorm/u32-normcoll: New file.
69549         New module 'uninorm/u16-normcoll'.
69550         * lib/uninorm/u16-normcoll.c: New file.
69551         * modules/uninorm/u16-normcoll: New file.
69553         New module 'uninorm/u8-normcoll'.
69554         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69555         declarations.
69556         * lib/uninorm/u8-normcoll.c: New file.
69557         * lib/uninorm/u-normcoll.h: New file.
69558         * modules/uninorm/u8-normcoll: New file.
69560         New module 'uninorm/u32-normxfrm'.
69561         * lib/uninorm/u32-normxfrm.c: New file.
69562         * modules/uninorm/u32-normxfrm: New file.
69564         New module 'uninorm/u16-normxfrm'.
69565         * lib/uninorm/u16-normxfrm.c: New file.
69566         * modules/uninorm/u16-normxfrm: New file.
69568         New module 'uninorm/u8-normxfrm'.
69569         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69570         declarations.
69571         * lib/uninorm/u8-normxfrm.c: New file.
69572         * lib/uninorm/u-normxfrm.h: New file.
69573         * modules/uninorm/u8-normxfrm: New file.
69575 2009-03-07  Bruno Haible  <bruno@clisp.org>
69577         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69578         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69579         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69581 2009-03-07  Bruno Haible  <bruno@clisp.org>
69583         New module 'memxfrm'.
69584         * lib/memxfrm.h: New file.
69585         * lib/memxfrm.c: New file.
69586         * modules/memxfrm: New file.
69588 2009-03-07  Bruno Haible  <bruno@clisp.org>
69590         New module 'memcmp2'.
69591         * lib/memcmp2.h: New file.
69592         * lib/memcmp2.c: New file.
69593         * modules/memcmp2: New file.
69595 2009-03-07  Bruno Haible  <bruno@clisp.org>
69597         Tests for module 'uninorm/decomposing-form'.
69598         * modules/uninorm/decomposing-form-tests: New file.
69599         * tests/uninorm/test-decomposing-form.c: New file.
69601         New module 'uninorm/decomposing-form'.
69602         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69603         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69604         Add 'decomposing_variant' field.
69605         * lib/uninorm/decomposing-form.c: New file.
69606         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69607         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69608         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69609         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69610         * modules/uninorm/decomposing-form: New file.
69611         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69612         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69614 2009-03-07  Bruno Haible  <bruno@clisp.org>
69616         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69617         strings.
69619 2009-03-06  Bruno Haible  <bruno@clisp.org>
69621         Tests for module 'uninorm/u32-normcmp'.
69622         * tests/uninorm/test-u32-normcmp.c: New file.
69623         * modules/uninorm/u32-normcmp-tests: New file.
69625         Tests for module 'uninorm/u16-normcmp'.
69626         * tests/uninorm/test-u16-normcmp.c: New file.
69627         * modules/uninorm/u16-normcmp-tests: New file.
69629         Tests for module 'uninorm/u8-normcmp'.
69630         * tests/uninorm/test-u8-normcmp.c: New file.
69631         * modules/uninorm/u8-normcmp-tests: New file.
69633         New module 'uninorm/u32-normcmp'.
69634         * lib/uninorm/u32-normcmp.c: New file.
69635         * modules/uninorm/u32-normcmp: New file.
69637         New module 'uninorm/u16-normcmp'.
69638         * lib/uninorm/u16-normcmp.c: New file.
69639         * modules/uninorm/u16-normcmp: New file.
69641         New module 'uninorm/u8-normcmp'.
69642         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69643         declarations.
69644         * lib/uninorm/u8-normcmp.c: New file.
69645         * lib/uninorm/u-normcmp.h: New file.
69646         * modules/uninorm/u8-normcmp: New file.
69648 2009-03-06  Bruno Haible  <bruno@clisp.org>
69650         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69651         Reported by Eric Blake.
69653 2009-03-06  Eric Blake  <ebb9@byu.net>
69654             Bruno Haible  <bruno@clisp.org>
69656         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69657         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69658         condition.
69659         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69660         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69661         condition.
69662         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69664 2009-03-06  Eric Blake  <ebb9@byu.net>
69666         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69667         to avoid compiler warnings.
69668         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69670 2009-03-05  Bruno Haible  <bruno@clisp.org>
69672         * tests/test-ftell.c (main): Disable test beyond end of file on
69673         FreeMiNT.
69674         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69676 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69678         * lib/filevercmp.c: Move hidden files up in ordering.
69679         * tests/test-filevercmp.c: Add tests for hidden files.
69681 2009-03-04  Bruno Haible  <bruno@clisp.org>
69683         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69684         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69685         AM_CFLAGS.
69686         Reported by Simon Josefsson.
69688 2009-03-03  Bruno Haible  <bruno@clisp.org>
69690         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69691         Reported by Simon Josefsson.
69693         * doc/ld-version-script.texi: Update node reference.
69695 2009-03-03  Bruno Haible  <bruno@clisp.org>
69697         * modules/visibility (License): Change to 'unlimited'.
69698         Suggested by Simon Josefsson.
69700 2009-03-03  Jim Meyering  <meyering@redhat.com>
69702         unlinkdir: cannot_unlink_dir may modify process state
69703         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69704         it's neither thread-safe nor appropriate for use in a library.
69706 2009-03-03  Eric Blake  <ebb9@byu.net>
69708         test-closein: silence test under Darwin
69709         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69710         care if it dies from EPIPE or EBADF.
69712 2009-03-03  Bruno Haible  <bruno@clisp.org>
69714         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69715         earlier.
69716         * doc/visibility.texi: Fix @node and @section.
69718 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69720         * doc/gnulib.texi: Link to sections for ld version script and
69721         visibility.
69722         * doc/visibility.texi: Add @node and @section.
69723         * modules/ld-version-script: New module.
69724         * m4/ld-version-script.m4: New file.
69725         * doc/ld-version-script.texi: New file.
69727 2009-03-02  David Lutterkort  <lutter@redhat.com>
69729         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69732 2009-03-02  Bruno Haible  <bruno@clisp.org>
69734         * doc/visibility.texi: Mention libtool's -export-symbols option.
69736 2009-03-02  Jim Meyering  <meyering@redhat.com>
69738         announce-gen: new option: --no-print-checksums
69739         * build-aux/announce-gen (usage): Describe it.
69740         (print_checksums): Print a newline here, not in the [*] footnote.
69741         (main): Honor it.
69743 2009-03-01  Bruno Haible  <bruno@clisp.org>
69745         Use socklen_t in the native Windows replacements prototypes.
69746         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69747         instead of 'int'.
69748         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69749         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69750         * modules/getsockopt (Depends-on): Add socklen.
69751         * modules/setsockopt (Depends-on): Add socklen.
69753 2009-03-01  Bruno Haible  <bruno@clisp.org>
69755         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69756         least 4.2.
69758 2009-03-01  Eric Blake  <ebb9@byu.net>
69759             Bruno Haible  <bruno@clisp.org>
69761         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69762         error messages.
69763         * lib/wait-process.c (wait_subprocess): Omit error message about
69764         deadly signal sent to the child of termsigp != NULL.
69766 2009-03-01  Eric Blake  <ebb9@byu.net>
69768         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69770 2009-03-01  Bruno Haible  <bruno@clisp.org>
69772         Avoid a gcc warning.
69773         * tests/test-sched.c (b): Make global.
69774         Reported by Eric Blake.
69776 2009-01-19  Martin Lambers  <marlam@marlam.de>
69778         Provide POSIX semantics for socket timeout options on W32.
69779         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69780         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69781         * modules/setsockopt: Depend on sys_time module for struct timeval.
69782         * modules/getsockopt: Depend on sys_time module for struct timeval.
69784 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69786         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69787         __USE_GNU, for consistency with netdb.in.h.
69788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69790 2009-03-01  Bruno Haible  <bruno@clisp.org>
69792         More support for FreeMiNT.
69793         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69794         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69796 2009-03-01  Bruno Haible  <bruno@clisp.org>
69798         More support for FreeMiNT.
69799         * lib/fpurge.c (fpurge): Correct last commit.
69800         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69802 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69804         Fix unportable awk script in vc-list-files.
69805         * build-aux/vc-list-files: In the replacement awk script, use
69806         substr with a second argument of 1, not zero.
69807         Report by Simon Josefsson.
69809 2009-02-28  Bruno Haible  <bruno@clisp.org>
69811         More support for FreeMiNT.
69812         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69813         to FreeMiNT today.
69814         * lib/fwriting.c (fwriting): Likewise.
69815         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69817 2009-02-28  Bruno Haible  <bruno@clisp.org>
69819         * tests/test-freadseek.c (main): Disable test beyond end of file on
69820         FreeMiNT.
69821         * tests/test-ftello.c (main): Likewise.
69822         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69824 2009-02-28  Bruno Haible  <bruno@clisp.org>
69826         Add tentative support for FreeMiNT.
69827         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69828         * lib/fpurge.c (fpurge): Likewise.
69829         * lib/freadable.c (freadable): Likewise.
69830         * lib/freading.c (freading): Likewise.
69831         * lib/freadptr.c (freadptr): Likewise.
69832         * lib/freadseek.c (freadptrinc): Likewise.
69833         * lib/fseeko.c (rpl_fseeko): Likewise.
69834         * lib/fseterr.c (fseterr): Likewise.
69835         * lib/fwritable.c (fwritable): Likewise.
69836         * lib/fwriting.c (fwriting): Likewise.
69837         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69838         Hourihane.
69839         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69841 2009-02-28  Bruno Haible  <bruno@clisp.org>
69843         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69844         SIGCHLD.
69845         Reported by Jim Meyering.
69847 2009-02-28  Bruno Haible  <bruno@clisp.org>
69849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69850         Mention the results of these tests on various platforms.
69851         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69852         order.
69853         * doc/posix-functions/printf.texi: Likewise.
69854         * doc/posix-functions/snprintf.texi: Likewise.
69855         * doc/posix-functions/sprintf.texi: Likewise.
69856         * doc/posix-functions/vfprintf.texi: Likewise.
69857         * doc/posix-functions/vprintf.texi: Likewise.
69858         * doc/posix-functions/vsnprintf.texi: Likewise.
69859         * doc/posix-functions/vsprintf.texi: Likewise.
69860         * doc/glibc-functions/obstack_printf.texi: Likewise.
69861         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69863 2009-02-28  Bruno Haible  <bruno@clisp.org>
69865         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69866         Reported by Loïc Minier <lool@dooz.org>.
69868 2009-02-27  Bruno Haible  <bruno@clisp.org>
69870         * gnulib-tool (func_import): Make the sed expression used to create the
69871         sed script for updating the .gitignore file POSIX compliant.
69872         Reported by Eric Blake.
69874 2009-02-27  Bruno Haible  <bruno@clisp.org>
69876         * gnulib-tool (sed): Don't alias as "sed --posix".
69877         Reported by Eric Blake.
69879 2009-02-27  Bruno Haible  <bruno@clisp.org>
69881         Avoid test link errors.
69882         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69883         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69884         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69885         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69888 2009-02-27  Bruno Haible  <bruno@clisp.org>
69890         Avoid spurious "(cached)" in configure output.
69891         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69892         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69893         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69894         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69895         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69896         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69897         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69898         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69899         Reported by Eric Blake.
69901 2009-02-27  Eric Blake  <ebb9@byu.net>
69903         printf: fix regression in previous patch
69904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69906 2009-02-27  Bruno Haible  <bruno@clisp.org>
69908         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69909         value.
69910         * lib/stdint.in.h: Likewise.
69911         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69913 2009-02-27  Eric Blake  <ebb9@byu.net>
69915         doc: mention more functions added in cygwin 1.7.0
69916         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69917         addition.
69918         * doc/posix-functions/open_wmemstream.texi: Likewise.
69919         * doc/posix-functions/wcsnlen.texi: Likewise.
69920         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69921         * doc/posix-functions/wcstod.texi: Likewise.
69922         * doc/posix-functions/wcstof.texi: Likewise.
69923         * doc/posix-functions/wcstoimax.texi: Likewise.
69924         * doc/posix-functions/wcstok.texi: Likewise.
69925         * doc/posix-functions/wcstoumax.texi: Likewise.
69927         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69929         * doc/posix-functions/fprintf.texi: Update.
69930         * doc/posix-functions/printf.texi: Update.
69931         * doc/posix-functions/snprintf.texi: Update.
69932         * doc/posix-functions/sprintf.texi: Update.
69933         * doc/posix-functions/vfprintf.texi: Update.
69934         * doc/posix-functions/vprintf.texi: Update.
69935         * doc/posix-functions/vsnprintf.texi: Update.
69936         * doc/posix-functions/vsprintf.texi: Update.
69937         * doc/glibc-functions/obstack_printf.texi: Update.
69938         * doc/glibc-functions/obstack_vprintf.texi: Update.
69940 2009-02-26  Eric Blake  <ebb9@byu.net>
69942         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69943         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69944         compilation bug by using runtime conversion.
69945         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69946         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69947         * modules/ceill-tests (Files): Use nan.h.
69948         * modules/floorl-tests (Files): Likewise.
69949         * modules/frexpl-tests (Files): Likewise.
69950         * modules/isnanl-tests (Files): Likewise.
69951         * modules/ldexpl-tests (Files): Likewise.
69952         * modules/roundl-tests (Files): Likewise.
69953         * modules/truncl-tests (Files): Likewise.
69954         * tests/test-ceill.c (main): Use a working NaN.
69955         * tests/test-floorl.c (main): Likewise.
69956         * tests/test-frexpl.c (main): Likewise.
69957         * tests/test-isnan.c (test_long_double): Likewise.
69958         * tests/test-isnanl.h (main): Likewise.
69959         * tests/test-ldexpl.h (main): Likewise.
69960         * tests/test-roundl.h (main): Likewise.
69961         * tests/test-truncl.h (main): Likewise.
69962         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69964 2009-02-26  Eric Blake  <ebb9@byu.net>
69965             Bruno Haible  <bruno@clisp.org>
69967         Work around a *printf bug with %ls on Solaris.
69968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69969         precision is specified, sprintf stops converting the wide string
69970         argument when the number of bytes that have been produced by this
69971         conversion equals or exceeds the precision.
69972         * doc/posix-functions/fprintf.texi: Update.
69973         * doc/posix-functions/printf.texi: Update.
69974         * doc/posix-functions/snprintf.texi: Update.
69975         * doc/posix-functions/sprintf.texi: Update.
69976         * doc/posix-functions/vfprintf.texi: Update.
69977         * doc/posix-functions/vprintf.texi: Update.
69978         * doc/posix-functions/vsnprintf.texi: Update.
69979         * doc/posix-functions/vsprintf.texi: Update.
69980         * doc/glibc-functions/obstack_printf.texi: Update.
69981         * doc/glibc-functions/obstack_vprintf.texi: Update.
69983 2009-02-26  Eric Blake  <ebb9@byu.net>
69985         stdlib: favor compiler check of random.h
69986         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69987         to avoid an ObjC random.h installed by Swarm.
69989 2009-02-26  Bruno Haible  <bruno@clisp.org>
69991         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69992         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69993         Reported by Gary V. Vaughan <gary@gnu.org>.
69995 2009-02-26  Bruno Haible  <bruno@clisp.org>
69997         Fix *printf behaviour regarding the %ls directive.
69998         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69999         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
70000         NEED_PRINTF_DIRECTIVE_LS.
70001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
70002         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
70003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70004         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
70005         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
70006         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
70007         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
70008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70009         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70012         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
70013         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70016         * doc/posix-functions/fprintf.texi: Update.
70017         * doc/posix-functions/printf.texi: Update.
70018         * doc/posix-functions/snprintf.texi: Update.
70019         * doc/posix-functions/sprintf.texi: Update.
70020         * doc/posix-functions/vfprintf.texi: Update.
70021         * doc/posix-functions/vprintf.texi: Update.
70022         * doc/posix-functions/vsnprintf.texi: Update.
70023         * doc/posix-functions/vsprintf.texi: Update.
70024         * doc/glibc-functions/obstack_printf.texi: Update.
70025         * doc/glibc-functions/obstack_vprintf.texi: Update.
70026         Reported by Eric Blake.
70028 2009-02-25  Bruno Haible  <bruno@clisp.org>
70030         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
70031         with known value.
70032         Reported by Gary V. Vaughan <gary@gnu.org>.
70034 2009-02-25  Bruno Haible  <bruno@clisp.org>
70036         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
70037         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
70038         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
70039         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
70040         Reported by Gary V. Vaughan <gary@gnu.org>.
70042 2009-02-25  Bruno Haible  <bruno@clisp.org>
70044         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
70045         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
70046         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
70047         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
70048         Reported by Gary V. Vaughan <gary@gnu.org>.
70050 2009-02-25  Eric Blake  <ebb9@byu.net>
70052         tests: skip fseek/ftell tests if ungetc is broken
70053         * m4/ungetc.m4: New file.
70054         * modules/fseek-tests: Split test, so ungetc dependency is
70055         separate from rest of test.
70056         * modules/fseeko-tests: Likewise.
70057         * modules/ftell-tests: Likewise.
70058         * modules/ftello-tests: Likewise.
70059         * tests/test-fseek.c (main): Isolate ungetc dependency.
70060         * tests/test-fseeko.c (main): Likewise.
70061         * tests/test-ftell.c (main): Likewise.
70062         * tests/test-ftello.c (main): Likewise.
70063         * tests/test-fseek2.sh: New file.
70064         * tests/test-fseeko2.sh: Likewise.
70065         * tests/test-ftell2.sh: Likewise.
70066         * tests/test-ftello2.sh: Likewise.
70068 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
70070         test-getaddrinfo: fix usage of skip return code 77
70071         * tests/test-gettaddrinfo.c: Return skip code 77 only
70072         for first occurrence of skip (4x77 is not 77)
70074 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
70076         strtod: avoid C99 decl-after-statement
70077         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
70079 2009-02-24  Eric Blake  <ebb9@byu.net>
70081         strtod: detect HP-UX 11.31 bug
70082         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
70083         Reported by Gary V. Vaughan.
70085 2009-02-23  Bruno Haible  <bruno@clisp.org>
70087         Fix invalid read past end of memory block.
70088         * lib/vasnprintf.c (DCHAR_SET): Define.
70089         (local_wcslen): Define only when needed.
70090         (local_strnlen, local_wcsnlen): New functions.
70091         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
70092         directives that involve a conversion ourselves.
70093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
70094         wcsnlen, mbrtowc, wcrtomb.
70095         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
70096         * tests/test-vasprintf-posix.c (test_function): Likewise.
70097         * tests/test-snprintf-posix.h (test_function): Likewise.
70098         * tests/test-sprintf-posix.h (test_function): Likewise.
70099         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70101 2009-02-22  Bruno Haible  <bruno@clisp.org>
70103         Implement new clarified decomposition of Hangul syllables.
70104         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
70105         of type LTV, return only a pairwise decomposition.
70106         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
70107         Likewise.
70108         * tests/uninorm/test-decomposition.c (main): Updated expected result.
70109         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
70110         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
70112 2009-02-22  Bruno Haible  <bruno@clisp.org>
70114         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
70115         zero-length results and shrink excess allocated memory.
70116         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
70117         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
70118         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
70119         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
70120         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
70121         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
70122         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
70123         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
70124         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
70125         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
70126         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
70127         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
70129 2009-02-21  Bruno Haible  <bruno@clisp.org>
70131         * doc/gnulib.texi: Include safe-alloc.texi earlier.
70132         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
70133         spaces after a period. Put a space between a macro name and its
70134         argument list. Trivial rewordings.
70135         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
70136         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
70137         (main): Return 0 explicitly.
70139 2009-02-21  Bruno Haible  <bruno@clisp.org>
70141         Tests for module 'uninorm/filter'.
70142         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
70143         * modules/uninorm/filter-tests: New file.
70145         New module 'uninorm/filter'.
70146         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
70147         uninorm_filter_flush, uninorm_filter_free): New declarations.
70148         * lib/uninorm/uninorm-filter.c: New file.
70149         * modules/uninorm/filter: New file.
70151 2009-02-21  Bruno Haible  <bruno@clisp.org>
70153         Tests for module 'uninorm/nfkc'.
70154         * tests/uninorm/test-nfkc.c: New file.
70155         * tests/uninorm/test-u8-nfkc.c: New file.
70156         * tests/uninorm/test-u16-nfkc.c: New file.
70157         * tests/uninorm/test-u32-nfkc.c: New file.
70158         * tests/uninorm/test-u32-nfkc-big.sh: New file.
70159         * tests/uninorm/test-u32-nfkc-big.c: New file.
70160         * modules/uninorm/nfkc-tests: New file.
70162         New module 'uninorm/nfkc'.
70163         * lib/uninorm/nfkc.c: New file.
70164         * modules/uninorm/nfkc: New file.
70166         Tests for module 'uninorm/nfkd'.
70167         * tests/uninorm/test-nfkd.c: New file.
70168         * tests/uninorm/test-u8-nfkd.c: New file.
70169         * tests/uninorm/test-u16-nfkd.c: New file.
70170         * tests/uninorm/test-u32-nfkd.c: New file.
70171         * tests/uninorm/test-u32-nfkd-big.sh: New file.
70172         * tests/uninorm/test-u32-nfkd-big.c: New file.
70173         * modules/uninorm/nfkd-tests: New file.
70175         New module 'uninorm/nfkd'.
70176         * lib/uninorm/nfkd.c: New file.
70177         * modules/uninorm/nfkd: New file.
70179         Tests for module 'uninorm/nfc'.
70180         * tests/uninorm/test-nfc.c: New file.
70181         * tests/uninorm/test-u8-nfc.c: New file.
70182         * tests/uninorm/test-u16-nfc.c: New file.
70183         * tests/uninorm/test-u32-nfc.c: New file.
70184         * tests/uninorm/test-u32-nfc-big.sh: New file.
70185         * tests/uninorm/test-u32-nfc-big.c: New file.
70186         * modules/uninorm/nfc-tests: New file.
70188         New module 'uninorm/nfc'.
70189         * lib/uninorm/nfc.c: New file.
70190         * modules/uninorm/nfc: New file.
70192         Tests for module 'uninorm/nfd'.
70193         * tests/uninorm/test-nfd.c: New file.
70194         * tests/uninorm/test-u8-nfd.c: New file.
70195         * tests/uninorm/test-u16-nfd.c: New file.
70196         * tests/uninorm/test-u32-nfd.c: New file.
70197         * tests/uninorm/test-u32-nfd-big.sh: New file.
70198         * tests/uninorm/test-u32-nfd-big.c: New file.
70199         * tests/uninorm/test-u32-normalize-big.h: New file.
70200         * tests/uninorm/test-u32-normalize-big.c: New file.
70201         * tests/uninorm/NormalizationTest.txt: New file, created from
70202         Unicode 5.1.0 NormalizationTest.txt.
70203         * modules/uninorm/nfd-tests: New file.
70205         New module 'uninorm/nfd'.
70206         * lib/uninorm/nfd.c: New file.
70207         * modules/uninorm/nfd: New file.
70209         New module 'uninorm/u32-normalize'.
70210         * lib/uninorm/u32-normalize.c: New file.
70211         * modules/uninorm/u32-normalize: New file.
70213         New module 'uninorm/u16-normalize'.
70214         * lib/uninorm/u16-normalize.c: New file.
70215         * modules/uninorm/u16-normalize: New file.
70217         New module 'uninorm/u8-normalize'.
70218         * lib/uninorm/u8-normalize.c: New file.
70219         * lib/uninorm/normalize-internal.h: New file.
70220         * lib/uninorm/u-normalize-internal.h: New file.
70221         * modules/uninorm/u8-normalize: New file.
70223         New module 'uninorm/decompose-internal'.
70224         * lib/uninorm/decompose-internal.c: New file.
70225         * modules/uninorm/decompose-internal: New file.
70227         Tests for module 'uninorm/composition'.
70228         * tests/uninorm/test-composition.c: New file.
70229         * modules/uninorm/composition-tests: New file.
70231         New module 'uninorm/composition'.
70232         * lib/uninorm/composition.c: New file.
70233         * lib/uninorm/composition-table.gperf: New file, generated by
70234         gen-uni-tables.
70235         * modules/uninorm/composition: New file.
70237         Tests for module 'uninorm/compat-decomposition'.
70238         * tests/uninorm/test-compat-decomposition.c: New file.
70239         * modules/uninorm/compat-decomposition-tests: New file.
70241         New module 'uninorm/compat-decomposition'.
70242         * lib/uninorm/decompose-internal.h: New file.
70243         * lib/uninorm/compat-decomposition.c: New file.
70244         * modules/uninorm/compat-decomposition: New file.
70246         Tests for module 'uninorm/canonical-decomposition'.
70247         * tests/uninorm/test-canonical-decomposition.c: New file.
70248         * modules/uninorm/canonical-decomposition-tests: New file.
70250         New module 'uninorm/canonical-decomposition'.
70251         * lib/uninorm/canonical-decomposition.c: New file.
70252         * modules/uninorm/canonical-decomposition: New file.
70254         Tests for module 'uninorm/decomposition'.
70255         * tests/uninorm/test-decomposition.c: New file.
70256         * modules/uninorm/decomposition-tests: New file.
70258         New module 'uninorm/decomposition'.
70259         * lib/uninorm/decomposition.c: New file.
70260         * modules/uninorm/decomposition: New file.
70262         New module 'uninorm/decomposition-table'.
70263         * lib/uninorm/decomposition-table.h: New file.
70264         * lib/uninorm/decomposition-table.c: New file.
70265         * lib/uninorm/decomposition-table1.h: New file, generated by
70266         gen-uni-tables.
70267         * lib/uninorm/decomposition-table2.h: New file, generated by
70268         gen-uni-tables.
70269         * modules/uninorm/decomposition-table: New file.
70271         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
70272         (UC_DECOMP_*): New enumeration items.
70273         (get_decomposition): New function.
70274         (struct decomp_table): New type.
70275         (output_decomposition, output_decomposition_tables): New functions.
70276         (unicode_composition_exclusions): New variable.
70277         (fill_composition_exclusions, debug_output_composition_tables): New
70278         functions.
70279         (main): Accept one more argument. Invoke fill_composition_exclusions.
70280         Output decomposition and composition tables.
70282         New module 'uninorm/base'.
70283         * lib/uninorm.h: New file.
70284         * lib/unictype.h: Update comment.
70285         * modules/uninorm/base: New file.
70287 2009-02-21  David Lutterkort  <lutter@redhat.com>
70289         Tests for module 'safe-alloc'.
70290         * tests/test-safe-alloc.c: New file.
70291         * modules/safe-alloc-tests: New file.
70293         New module 'safe-alloc'.
70294         * lib/safe-alloc.h: New file.
70295         * lib/safe-alloc.c: New file.
70296         * m4/safe-alloc.m4: New file.
70297         * modules/safe-alloc: New file.
70298         * doc/safe-alloc.texi: New file.
70299         * doc/gnulib.texi: Include it.
70300         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
70301         safe-alloc.
70303 2009-02-18  Bruno Haible  <bruno@clisp.org>
70305         Fix link error on non-glibc systems.
70306         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
70307         variable.
70308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70310 2009-02-18  Jim Meyering  <meyering@redhat.com>
70312         fts: avoid used-uninitialized error due to recent change
70313         * lib/fts.c (fts_read): Guard uses of the new member,
70314         parent->fts_n_dirs_remaining, since it's not relevant for
70315         the parent of a directory specified on the command-line.
70317 2009-02-17  James Youngman  <jay@gnu.org>
70318             Bruno Haible  <bruno@clisp.org>
70320         * m4/include_next.m4: Reformulate comment.
70322 2009-02-16  Jim Meyering  <meyering@redhat.com>
70324         fts: add #if guards so that the fts_lgpl module still builds
70325         * lib/fts.c: Guard just-added hash-table-using parts with
70326         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
70327         Reported by Simon Josefsson.
70329 2009-02-15  Bruno Haible  <bruno@clisp.org>
70331         * modules/array-mergesort-tests: New file.
70332         * tests/test-array-mergesort.c: New file.
70334         New module 'array-mergesort'.
70335         * modules/array-mergesort: New file.
70336         * lib/array-mergesort.h: New file.
70338 2009-02-15  Bruno Haible  <bruno@clisp.org>
70340         Fix 2009-02-07 commit.
70341         * lib/gen-uni-tables.c (output_predicate, output_category,
70342         output_combclass, output_bidi_category, output_decimal_digit,
70343         output_digit, output_numeric, output_mirror, output_scripts,
70344         output_ident_category, output_simple_mapping): Fix format directives.
70345         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
70347 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
70349         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
70350         fixes are available from IBM.
70352 2009-02-13  Jim Meyering  <meyering@redhat.com>
70354         fts: arrange not to stat non-directories in more cases
70355         This makes GNU find (when it doesn't need to stat each file)
70356         *much* more efficient at traversing reiserfs file systems.
70357         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70358         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70359         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70360         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70361         (leaf_optimization_applies): New function.
70362         (LCO_hash, LCO_compare): New helper functions.
70363         (link_count_optimize_ok): New function.
70364         (fts_stat): Initialize new member (if dir).
70365         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70366         we've just stat'ed a directory.  Skip the stat call when possible.
70367         ---
70368         Note this AFS-related exchange:
70369         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70370         and note find's pioctl call in find/fstype.c.
70371         But that is necessary only if you want to enable the
70372         optimization for AFS, and for now, I don't.
70374         fts: move a function definition "up" (no semantic change)
70375         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70376         "up" to precede upcoming use of a related function.
70378 2009-02-11  Jim Meyering  <meyering@redhat.com>
70380         fts: correct internal computation of nlinks (optimization-related)
70381         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70382         whether the current entry is a directory, so don't test it.
70384 2009-02-10  Bruno Haible  <bruno@clisp.org>
70386         Tests for module 'uniwbrk/ulc-wordbreaks'.
70387         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70388         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70389         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70391         Tests for module 'uniwbrk/u32-wordbreaks'.
70392         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70393         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70395         Tests for module 'uniwbrk/u16-wordbreaks'.
70396         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70397         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70399         Tests for module 'uniwbrk/u8-wordbreaks'.
70400         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70401         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70403 2009-02-10  Bruno Haible  <bruno@clisp.org>
70405         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70406         property.
70407         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70408         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70409         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70411 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70413         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70414         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70416 2009-02-10  Bruno Haible  <bruno@clisp.org>
70418         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70419         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70420         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70421         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70422         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70423         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70425 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70427         * lib/sockets.h (gl_fd_to_handle): New function.
70429         * tests/test-sockets.c: Call gl_fd_to_handle.
70431 2009-02-09  Bruno Haible  <bruno@clisp.org>
70433         * doc/havelib.texi: Document the conventions on bi-arch systems.
70435 2009-02-08  Bruno Haible  <bruno@clisp.org>
70437         Document the AC_LIB_LINKFLAGS macro.
70438         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70439         * doc/gnulib.texi: Include it.
70441 2009-02-08  Bruno Haible  <bruno@clisp.org>
70443         Fix wrong order of sections, compared to TOC.
70444         * doc/gnulib.texi: Include relocatable-maint.texi after the
70445         "Regular expressions" node, not before.
70447 2009-02-08  Bruno Haible  <bruno@clisp.org>
70449         Tests for module 'unicase/totitle'.
70450         * modules/unicase/totitle-tests: New file.
70452         Tests for module 'unicase/tolower'.
70453         * modules/unicase/tolower-tests: New file.
70455         Tests for module 'unicase/toupper'.
70456         * modules/unicase/toupper-tests: New file.
70457         * tests/unicase/test-mapping-part1.h: New file.
70458         * tests/unicase/test-mapping-part2.h: New file.
70460         New module 'unicase/totitle'.
70461         * modules/unicase/totitle: New file.
70462         * lib/unicase/totitle.c: New file.
70464         New module 'unicase/tolower'.
70465         * modules/unicase/tolower: New file.
70466         * lib/unicase/tolower.c: New file.
70468         New module 'unicase/toupper'.
70469         * modules/unicase/toupper: New file.
70470         * lib/unicase/toupper.c: New file.
70471         * lib/unicase/simple-mapping.h: New file.
70473         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70474         (mapping_table): New structure.
70475         (output_simple_mapping): New function.
70476         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70477         * modules/gen-uni-tables (Description): Update.
70478         * lib/unicase/toupper.h: New file, automatically generated by
70479         gen-uni-tables.
70480         * lib/unicase/tolower.h: New file, automatically generated by
70481         gen-uni-tables.
70482         * lib/unicase/totitle.h: New file, automatically generated by
70483         gen-uni-tables.
70484         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70485         gen-uni-tables.
70486         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70487         gen-uni-tables.
70488         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70489         gen-uni-tables.
70491         New module 'unicase/base'.
70492         * modules/unicase/base: New file.
70493         * lib/unicase.h: New file.
70495 2009-02-08  Bruno Haible  <bruno@clisp.org>
70497         New module 'uniwbrk/ulc-wordbreaks'.
70498         * modules/uniwbrk/ulc-wordbreaks: New file.
70499         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70501         New module 'uniwbrk/u32-wordbreaks'.
70502         * modules/uniwbrk/u32-wordbreaks: New file.
70503         * lib/uniwbrk/u32-wordbreaks.c: New file.
70505         New module 'uniwbrk/u16-wordbreaks'.
70506         * modules/uniwbrk/u16-wordbreaks: New file.
70507         * lib/uniwbrk/u16-wordbreaks.c: New file.
70509         New module 'uniwbrk/u8-wordbreaks'.
70510         * modules/uniwbrk/u8-wordbreaks: New file.
70511         * lib/uniwbrk/u8-wordbreaks.c: New file.
70512         * lib/uniwbrk/u-wordbreaks.h: New file.
70514         New module 'uniwbrk/table'.
70515         * modules/uniwbrk/table: New file.
70516         * lib/uniwbrk/wbrktable.h: New file.
70517         * lib/uniwbrk/wbrktable.c: New file.
70519         New module 'uniwbrk/wordbreak-property'.
70520         * modules/uniwbrk/wordbreak-property: New file.
70521         * lib/uniwbrk/wordbreak-property.c: New file.
70523         * lib/gen-uni-tables.c (WBP_*): New enum items.
70524         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70525         (unicode_org_wbp): New variable.
70526         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70527         New functions.
70528         (wbp_table): New structure.
70529         (output_wbp, output_wbrk_tables): New functions.
70530         (main): Accept additional argument. Invoke fill_org_wbp,
70531         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70532         output_wbrk_tables.
70533         * modules/gen-uni-tables (Description): Update.
70534         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70535         gen-uni-tables.
70537         New module 'uniwbrk/base'.
70538         * modules/uniwbrk/base: New file.
70539         * lib/uniwbrk.h: New file.
70541 2009-02-08  Bruno Haible  <bruno@clisp.org>
70543         Update to Unicode 5.1.0.
70544         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70545         U+2185..U+2188.
70546         (is_property_default_ignorable_code_point): Don't include characters
70547         of category Cc or Cs and not-a-characters.
70548         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70549         U+0D79, U+109E, U+109F, U+A60C.
70550         * lib/unictype/bidi_of.h: Regenerated.
70551         * lib/unictype/blocks.h: Regenerated.
70552         * lib/unictype/categ_C.h: Regenerated.
70553         * lib/unictype/categ_Cf.h: Regenerated.
70554         * lib/unictype/categ_Cn.h: Regenerated.
70555         * lib/unictype/categ_L.h: Regenerated.
70556         * lib/unictype/categ_Ll.h: Regenerated.
70557         * lib/unictype/categ_Lm.h: Regenerated.
70558         * lib/unictype/categ_Lo.h: Regenerated.
70559         * lib/unictype/categ_Lu.h: Regenerated.
70560         * lib/unictype/categ_M.h: Regenerated.
70561         * lib/unictype/categ_Mc.h: Regenerated.
70562         * lib/unictype/categ_Me.h: Regenerated.
70563         * lib/unictype/categ_Mn.h: Regenerated.
70564         * lib/unictype/categ_N.h: Regenerated.
70565         * lib/unictype/categ_Nd.h: Regenerated.
70566         * lib/unictype/categ_Nl.h: Regenerated.
70567         * lib/unictype/categ_No.h: Regenerated.
70568         * lib/unictype/categ_P.h: Regenerated.
70569         * lib/unictype/categ_Pd.h: Regenerated.
70570         * lib/unictype/categ_Pe.h: Regenerated.
70571         * lib/unictype/categ_Pf.h: Regenerated.
70572         * lib/unictype/categ_Pi.h: Regenerated.
70573         * lib/unictype/categ_Po.h: Regenerated.
70574         * lib/unictype/categ_Ps.h: Regenerated.
70575         * lib/unictype/categ_S.h: Regenerated.
70576         * lib/unictype/categ_Sk.h: Regenerated.
70577         * lib/unictype/categ_Sm.h: Regenerated.
70578         * lib/unictype/categ_So.h: Regenerated.
70579         * lib/unictype/categ_of.h: Regenerated.
70580         * lib/unictype/combining.h: Regenerated.
70581         * lib/unictype/ctype_alnum.h: Regenerated.
70582         * lib/unictype/ctype_alpha.h: Regenerated.
70583         * lib/unictype/ctype_graph.h: Regenerated.
70584         * lib/unictype/ctype_lower.h: Regenerated.
70585         * lib/unictype/ctype_print.h: Regenerated.
70586         * lib/unictype/ctype_punct.h: Regenerated.
70587         * lib/unictype/ctype_upper.h: Regenerated.
70588         * lib/unictype/decdigit.h: Regenerated.
70589         * lib/unictype/digit.h: Regenerated.
70590         * lib/unictype/mirror.h: Regenerated.
70591         * lib/unictype/numeric.h: Regenerated.
70592         * lib/unictype/pr_alphabetic.h: Regenerated.
70593         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70594         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70595         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70596         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70597         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70598         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70599         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70600         * lib/unictype/pr_combining.h: Regenerated.
70601         * lib/unictype/pr_dash.h: Regenerated.
70602         * lib/unictype/pr_decimal_digit.h: Regenerated.
70603         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70604         * lib/unictype/pr_deprecated.h: Regenerated.
70605         * lib/unictype/pr_diacritic.h: Regenerated.
70606         * lib/unictype/pr_extender.h: Regenerated.
70607         * lib/unictype/pr_format_control.h: Regenerated.
70608         * lib/unictype/pr_grapheme_base.h: Regenerated.
70609         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70610         * lib/unictype/pr_grapheme_link.h: Regenerated.
70611         * lib/unictype/pr_id_continue.h: Regenerated.
70612         * lib/unictype/pr_id_start.h: Regenerated.
70613         * lib/unictype/pr_ideographic.h: Regenerated.
70614         * lib/unictype/pr_ignorable_control.h: Regenerated.
70615         * lib/unictype/pr_lowercase.h: Regenerated.
70616         * lib/unictype/pr_math.h: Regenerated.
70617         * lib/unictype/pr_numeric.h: Regenerated.
70618         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70619         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70620         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70621         * lib/unictype/pr_other_id_continue.h: Regenerated.
70622         * lib/unictype/pr_other_lowercase.h: Regenerated.
70623         * lib/unictype/pr_other_math.h: Regenerated.
70624         * lib/unictype/pr_punctuation.h: Regenerated.
70625         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70626         * lib/unictype/pr_soft_dotted.h: Regenerated.
70627         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70628         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70629         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70630         * lib/unictype/pr_uppercase.h: Regenerated.
70631         * lib/unictype/pr_xid_continue.h: Regenerated.
70632         * lib/unictype/pr_xid_start.h: Regenerated.
70633         * lib/unictype/pr_zero_width.h: Regenerated.
70634         * lib/unictype/scripts.h: Regenerated.
70635         * lib/unictype/scripts_byname.gperf: Regenerated.
70636         * lib/unictype/sy_java_ident.h: Regenerated.
70637         * lib/unilbrk/lbrkprop1.h: Regenerated.
70638         * lib/unilbrk/lbrkprop2.h: Regenerated.
70639         * tests/unictype/test-categ_C.c: Regenerated.
70640         * tests/unictype/test-categ_Cf.c: Regenerated.
70641         * tests/unictype/test-categ_Cn.c: Regenerated.
70642         * tests/unictype/test-categ_L.c: Regenerated.
70643         * tests/unictype/test-categ_Ll.c: Regenerated.
70644         * tests/unictype/test-categ_Lm.c: Regenerated.
70645         * tests/unictype/test-categ_Lo.c: Regenerated.
70646         * tests/unictype/test-categ_Lu.c: Regenerated.
70647         * tests/unictype/test-categ_M.c: Regenerated.
70648         * tests/unictype/test-categ_Mc.c: Regenerated.
70649         * tests/unictype/test-categ_Me.c: Regenerated.
70650         * tests/unictype/test-categ_Mn.c: Regenerated.
70651         * tests/unictype/test-categ_N.c: Regenerated.
70652         * tests/unictype/test-categ_Nd.c: Regenerated.
70653         * tests/unictype/test-categ_Nl.c: Regenerated.
70654         * tests/unictype/test-categ_No.c: Regenerated.
70655         * tests/unictype/test-categ_P.c: Regenerated.
70656         * tests/unictype/test-categ_Pd.c: Regenerated.
70657         * tests/unictype/test-categ_Pe.c: Regenerated.
70658         * tests/unictype/test-categ_Pf.c: Regenerated.
70659         * tests/unictype/test-categ_Pi.c: Regenerated.
70660         * tests/unictype/test-categ_Po.c: Regenerated.
70661         * tests/unictype/test-categ_Ps.c: Regenerated.
70662         * tests/unictype/test-categ_S.c: Regenerated.
70663         * tests/unictype/test-categ_Sk.c: Regenerated.
70664         * tests/unictype/test-categ_Sm.c: Regenerated.
70665         * tests/unictype/test-categ_So.c: Regenerated.
70666         * tests/unictype/test-ctype_alnum.c: Regenerated.
70667         * tests/unictype/test-ctype_alpha.c: Regenerated.
70668         * tests/unictype/test-ctype_graph.c: Regenerated.
70669         * tests/unictype/test-ctype_lower.c: Regenerated.
70670         * tests/unictype/test-ctype_print.c: Regenerated.
70671         * tests/unictype/test-ctype_punct.c: Regenerated.
70672         * tests/unictype/test-ctype_upper.c: Regenerated.
70673         * tests/unictype/test-decdigit.h: Regenerated.
70674         * tests/unictype/test-digit.h: Regenerated.
70675         * tests/unictype/test-numeric.h: Regenerated.
70676         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70677         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70678         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70679         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70680         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70681         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70682         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70683         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70684         * tests/unictype/test-pr_combining.c: Regenerated.
70685         * tests/unictype/test-pr_dash.c: Regenerated.
70686         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70687         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70688         * tests/unictype/test-pr_deprecated.c: Regenerated.
70689         * tests/unictype/test-pr_diacritic.c: Regenerated.
70690         * tests/unictype/test-pr_extender.c: Regenerated.
70691         * tests/unictype/test-pr_format_control.c: Regenerated.
70692         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70693         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70694         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70695         * tests/unictype/test-pr_id_continue.c: Regenerated.
70696         * tests/unictype/test-pr_id_start.c: Regenerated.
70697         * tests/unictype/test-pr_ideographic.c: Regenerated.
70698         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70699         * tests/unictype/test-pr_lowercase.c: Regenerated.
70700         * tests/unictype/test-pr_math.c: Regenerated.
70701         * tests/unictype/test-pr_numeric.c: Regenerated.
70702         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70703         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70704         Regenerated.
70705         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70706         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70707         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70708         * tests/unictype/test-pr_other_math.c: Regenerated.
70709         * tests/unictype/test-pr_punctuation.c: Regenerated.
70710         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70711         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70712         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70713         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70714         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70715         * tests/unictype/test-pr_uppercase.c: Regenerated.
70716         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70717         * tests/unictype/test-pr_xid_start.c: Regenerated.
70718         * tests/unictype/test-pr_zero_width.c: Regenerated.
70720         Update to Unicode 5.1.0.
70721         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70722         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70723         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70724         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70725         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70726         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70727         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70728         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70729         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70730         (nonspacing_table_ind): Update.
70731         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70733         Update to Unicode 5.1.0.
70734         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70735         code transform.
70736         * lib/uniname/uniname.c (unicode_character_name,
70737         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70738         * lib/uniname/uninames.h: Regenerated.
70739         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70741 2009-02-07  Bruno Haible  <bruno@clisp.org>
70743         Merge gen-ctype and gen-lbrk into a single program.
70744         * lib/gen-uni-tables.c: New file, incorporating
70745         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70746         Add directory prefixes to the names of the generated files.
70747         * lib/unictype/gen-ctype.c: Remove file.
70748         * lib/unilbrk/gen-lbrk.c: Remove file.
70749         * modules/gen-uni-tables: New file.
70750         * modules/unictype/gen-ctype: Remove file.
70751         * modules/unilbrk/gen-lbrk: Remove file.
70753 2009-02-07  Bruno Haible  <bruno@clisp.org>
70755         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70757         New module 'unistr/u32-strcoll'.
70758         * modules/unistr/u32-strcoll: New file.
70759         * lib/unistr/u32-strcoll.c: New file.
70761         New module 'unistr/u16-strcoll'.
70762         * modules/unistr/u16-strcoll: New file.
70763         * lib/unistr/u16-strcoll.c: New file.
70765         New module 'unistr/u8-strcoll'.
70766         * modules/unistr/u8-strcoll: New file.
70767         * lib/unistr/u8-strcoll.c: New file.
70768         * lib/unistr/u-strcoll.h: New file.
70770 2009-02-07  Bruno Haible  <bruno@clisp.org>
70772         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70773         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70774         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70775         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70776         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70777         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70779 2009-02-07  Bruno Haible  <bruno@clisp.org>
70781         Make 64-bit clean.
70782         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70783         output_combclass, output_bidi_category, output_decimal_digit,
70784         output_digit, output_numeric, output_mirror, output_scripts,
70785         output_ident_category): Use proper width specifier in format strings.
70787 2009-02-07  Bruno Haible  <bruno@clisp.org>
70789         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70790         failure behaviour.
70792 2009-02-07  Jim Meyering  <meyering@redhat.com>
70794         regex: avoid compilation failure with upcoming gcc-4.4
70795         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70796         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70797         "... error: integer overflow in preprocessor expression".
70799 2009-02-05  Ben Pfaff  <blp@gnu.org>
70801         Fix link errors on Windows when close module is used.
70802         * modules/close: Add $(LIB_CLOSE) to Link section.
70803         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70804         $(LIB_CLOSE) on Windows.
70806 2009-02-05  Jim Meyering  <meyering@redhat.com>
70808         still avoid unused-parameter warnings, but do it cleanly
70809         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70810         (get_fs_usage): Cast to void instead.
70811         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70812         (dev_from_mount_options, read_file_system_list): Cast to void.
70813         Prompted by Bruno Haible.
70815 2009-02-04  Jim Meyering  <meyering@redhat.com>
70817         fsusage.c: correct copyright year
70818         * lib/fsusage.c: Reflect year in which the change is pushed into
70820         avoid misc. warnings
70821         * lib/fsusage.c (UNUSED_PARAM): Define.
70822         (get_fs_usage): Mark parameter "disk" as unused.
70823         * lib/getugroups.c (getgrent): Use "void" in prototype.
70824         * lib/mountlist.c: Mark unused parameters.
70825         (read_file_system_list): Declare a local with "const".
70826         * lib/nanosleep.c (getnow): Declare static.
70827         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70829         dirfd: set errno upon failure
70830         * lib/dirfd.c: Include <errno.h>.
70831         Set errno to ENOTSUP when returning -1.
70832         * modules/dirfd (Depends-on): Add errno.
70833         Suggested by John Kodis <kodis@comcast.net>.
70835 2009-02-01  Bruno Haible  <bruno@clisp.org>
70837         Don't assume sizeof (long) >= sizeof (void *).
70838         * lib/memcmp.c: Include stdint.h.
70839         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70840         srcp2 to 'const byte *'.
70841         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70842         types to uintptr_t.
70843         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70844         * modules/memcmp (Depends-on): Add stdint.
70845         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70847 2009-01-30  Eric Blake  <ebb9@byu.net>
70849         fix more require-before-expand issues
70850         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70851         expand, AC_PROG_AWK.
70852         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70854 2009-01-28  Eric Blake  <ebb9@byu.net>
70856         version-etc: use consistent URL formatting
70857         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70858         Improve formatting.  Use fputs for string without %.
70860 2009-01-28  Jim Meyering  <meyering@redhat.com>
70862         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70863         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70864         "underquoted definition of NAME" from autoconf-2.59.
70866 2009-01-28  Bruno Haible  <bruno@clisp.org>
70868         * doc/gnulib.texi: Add "Obsolete modules" to index.
70870 2009-01-28  Jim Meyering  <meyering@redhat.com>
70872         useless-if-before-free: recognize more variants
70873         * build-aux/useless-if-before-free: Also recognize e.g.,
70874         if (NULL != p) free (p);
70876 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70878         test-getaddrinfo: skip (don't fail) this test when there's no network
70879         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70880         on the presumption that it means you lack network access.
70882 2009-01-26  Jim Meyering  <meyering@redhat.com>
70884         fflush: avoid warnings on modern systems
70885         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70886         pos and result, into scopes where they're used.
70888 2009-01-26  Eric Blake  <ebb9@byu.net>
70890         Silence warning reintroduced by recent extensions patch.
70891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70892         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70893         autoconf.
70895         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70896         * m4/00gnulib.m4: New file.
70897         * gnulib-tool (func_get_filelist): Always use it.
70898         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70899         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70901 2009-01-25  Bruno Haible  <bruno@clisp.org>
70903         Make test-quotearg work on MacOS X and AIX.
70904         * tests/test-quotearg.sh: New file.
70905         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70906         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70907         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70908         include <libintl.h>.
70909         (fake_locale): Remove variable.
70910         (gettext, dgettext, dcgettext): Remove functions.
70911         (main): Instead of setting a fake locale, set a real locale. Call
70912         textdomain and bindtextdomain.
70913         * modules/quotearg-tests (Files): Add the new files.
70914         (Depends-on): Add gettext, setenv, unsetenv.
70915         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70916         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70917         Augment TESTS_ENVIRONMENT.
70919 2009-01-25  Bruno Haible  <bruno@clisp.org>
70921         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70922         fr_FR.ISO8859-1 locale on MacOS X.
70923         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70924         ja_JP.eucJP locale on MacOS X.
70925         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70926         zh_CN.GB18030 locale on MacOS X.
70928 2009-01-25  Bruno Haible  <bruno@clisp.org>
70930         Avoid link errors on MacOS X 10.3.
70931         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70932         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70934 2009-01-25  Bruno Haible  <bruno@clisp.org>
70936         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70937         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70938         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70939         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70940         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70941         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70942         posix_spawnattr_init, posix_spawnattr_setsigmask,
70943         posix_spawnattr_setflags, posix_spawnattr_destroy.
70945         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70946         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70947         * modules/execute (Files): Remove m4/posix_spawn.m4.
70948         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70949         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70950         posix_spawnattr_init, posix_spawnattr_setsigmask,
70951         posix_spawnattr_setflags, posix_spawnattr_destroy.
70953 2009-01-25  Bruno Haible  <bruno@clisp.org>
70955         * lib/glthread/threadlib.c: Include <stdlib.h>.
70957 2009-01-25  Bruno Haible  <bruno@clisp.org>
70959         * lib/glthread/threadlib.c (dummy): New declaration.
70961 2009-01-25  Bruno Haible  <bruno@clisp.org>
70963         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70964         multibyte characters also for the GB18030 encoding. Don't crash when
70965         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70967 2009-01-25  Bruno Haible  <bruno@clisp.org>
70969         Avoid redefining 'struct random_data' on OSF/1 5.1.
70970         * lib/stdlib.in.h: Include <random.h> if it exists.
70971         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70972         HAVE_RANDOM_H. Include <random.h> when testing whether
70973         'struct random_data' exists.
70974         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70976 2009-01-25  Bruno Haible  <bruno@clisp.org>
70978         Don't install charset.alias on MacOS X >= 10.3.
70979         * lib/localcharset.c (DARWIN7): New macro.
70980         (get_charset_aliases): Hardcode the result for Darwin7.
70981         * modules/localcharset (install-exec-local): Don't install
70982         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70984 2009-01-25  Bruno Haible  <bruno@clisp.org>
70986         Don't install charset.alias on mingw and Cygwin.
70987         * modules/localcharset (install-exec-local): Don't install
70988         charset.alias on mingw and Cygwin, if the file does not yet exist.
70989         The result for these platforms is hardcoded in localcharset.c.
70991 2009-01-25  Bruno Haible  <bruno@clisp.org>
70993         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70994         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70995         before requiring AC_USE_SYSTEM_EXTENSIONS.
70997 2009-01-25  Jim Meyering  <meyering@redhat.com>
70999         c-strtod: avoid warnings
71000         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
71001         "assignment discards qualifiers from pointer target type" warnings.
71003 2009-01-24  Bruno Haible  <bruno@clisp.org>
71005         Add support for non-UTF-8 locales on MacOS X.
71006         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
71007         canonical encodings. For Darwin 7 and newer, don't map traditional
71008         encodings to UTF-8.
71009         Reported by Vincent Lefevre <vincent@vinc17.org>
71010         at <http://savannah.gnu.org/bugs/?25235>.
71012 2009-01-24  Bruno Haible  <bruno@clisp.org>
71014         * doc/gnulib.texi (Obsolete modules): New section.
71015         Reported by Mike Frysinger <vapier@gentoo.org>.
71017 2009-01-24  Bruno Haible  <bruno@clisp.org>
71019         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
71020         (%.dvi): New rule.
71022 2009-01-24  Bruno Haible  <bruno@clisp.org>
71024         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
71025         Reported by Eric Blake.
71027 2009-01-24  Bruno Haible  <bruno@clisp.org>
71029         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
71030         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
71031         Reported by Gary V. Vaughan <gary@gnu.org>.
71033 2009-01-24  Bruno Haible  <bruno@clisp.org>
71035         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
71037 2009-01-23  Bruno Haible  <bruno@clisp.org>
71039         Make c-strtod, c-strtold usable in libraries.
71040         * lib/c-strtod.c: Include string.h instead of xalloc.h.
71041         (C_STRTOD): Call strdup instead of xstrdup.
71042         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
71043         * modules/c-strtold (Depends-on): Likewise.
71044         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
71045         * NEWS: Mention the change.
71046         Reported by Michael Gold <mgold@ncf.ca>.
71048 2009-01-23  Jim Meyering  <meyering@redhat.com>
71050         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
71051         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
71052         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
71054 2009-01-23  Simon Josefsson  <simon@josefsson.org>
71056         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
71057         GNU CoreUtils.
71058         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
71059         * modules/version-etc (Description): Update.
71061 2009-01-22  Bruno Haible  <bruno@clisp.org>
71063         Cache the C locale object.
71064         * lib/c-strtod.c (c_locale_cache): New variable.
71065         (c_locale): New function.
71066         (C_STRTOD): Use it, and don't call freelocale.
71067         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
71068         Suggested by Paolo Bonzini.
71070 2009-01-21  Bruno Haible  <bruno@clisp.org>
71072         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
71073         conditions other than overflow.
71075 2009-01-21  Bruno Haible  <bruno@clisp.org>
71077         * lib/c-strtod.c: Include errno.h.
71078         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
71079         value from STRTOD_L and STRTOD.
71081 2009-01-21  Bruno Haible  <bruno@clisp.org>
71082         and Jim Meyering  <meyering@redhat.com>
71084         nanosleep: skip configure test (fail it) for apple universal builds
71085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
71086         universal builds, assume that nanosleep does not work.
71087         * modules/nanosleep (Depends-on): Add multiarch.
71089         mktime: skip configure test (fail it) for apple universal builds
71090         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
71091         universal builds, assume that mktime does not work.
71092         * modules/mktime (Depends-on): Add multiarch.
71094 2009-01-21  Eric Blake  <ebb9@byu.net>
71096         multiarch: avoid expand-before-require warning
71097         * modules/multiarch (configure.ac): Require, rather than expand,
71098         gl_MULTIARCH.
71099         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
71100         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
71101         enforce that all clients require it.  Partial reversion of
71102         2008-12-29 patch.
71104         error: avoid expand-before-require warning
71105         * modules/errno (configure.ac): Require, rather than expand,
71106         gl_HEADER_ERRNO_H.
71107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
71108         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
71109         enforce that all clients require it.
71111         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
71112         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
71113         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
71114         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
71116 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
71118         Revert:
71119         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71121         regex: do not depend on obsolete modules.
71122         * modules/regex: Remove memcmp and memmove.
71124 2009-01-20  Bruno Haible  <bruno@clisp.org>
71126         Make the 'link' module link on Windows NT 4.
71127         * lib/link.c (_WIN32_WINNT): Don't define.
71128         (CreateHardLinkFuncType): New type.
71129         (CreateHardLinkFunc, initialized): New variables.
71130         (initialize): New function.
71131         (link): Invoke CreateHardLink indirectly through the function pointer.
71133 2009-01-20  Bruno Haible  <bruno@clisp.org>
71135         Fix compilation failure on mingw.
71136         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
71138 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
71140         * doc/c-strtod.texi: Mention a couple of restrictions.
71142 2009-01-20  Jim Meyering  <meyering@redhat.com>
71144         gettimeofday: move more declarations out of functions
71145         * lib/gettimeofday.c: Move extern declarations of tzset and
71146         gmtime out of containing functions.  Prompted by Bruno Haible.
71148 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71150         regex: do not depend on obsolete modules.
71151         * modules/regex: Remove memcmp and memmove.
71153 2009-01-19  Bruno Haible  <bruno@clisp.org>
71155         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71156         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
71157         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71158         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
71159         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
71161 2009-01-19  Bruno Haible  <bruno@clisp.org>
71163         * tests/test-link.c: Include <errno.h>.
71164         (main): Exit with code 77 when a hard link cannot be created due to
71165         the file system.
71166         * tests/test-link.sh: Skip test when a hard link cannot be created due
71167         to the file system.
71168         Suggested by Eric Blake.
71170 2009-01-19  Martin Lambers  <marlam@marlam.de>
71172         * modules/link-tests: New file.
71173         * tests/test-link.sh: New file.
71174         * tests/test-link.c: New file.
71176 2009-01-19  Eric Blake  <ebb9@byu.net>
71178         doc: mention another function added in cygwin 1.7.0
71179         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
71180         Another new function in cygwin 1.7.
71182 2009-01-19  Bruno Haible  <bruno@clisp.org>
71184         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71185         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
71186         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
71187         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71188         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
71189         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
71190         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
71191         * m4/md4.m4 (gl_MD4): Likewise.
71192         * m4/md5.m4 (gl_MD5): Likewise.
71193         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
71194         * m4/sha1.m4 (gl_SHA1): Likewise.
71195         * m4/sha256.m4 (gl_SHA256): Likewise.
71196         * m4/sha512.m4 (gl_SHA512): Likewise.
71198 2009-01-19  Bruno Haible  <bruno@clisp.org>
71200         * modules/uniname/uniname-tests (Depends-on): Add progname.
71201         * tests/uniname/test-uninames.c: Include progname.h.
71202         (main): Call set_program_name.
71204         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
71205         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
71206         (main): Call set_program_name.
71208         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
71209         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
71210         (main): Call set_program_name.
71212         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
71213         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
71214         (main): Call set_program_name.
71216         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
71217         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
71218         (main): Call set_program_name.
71220         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
71221         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
71222         (main): Call set_program_name.
71224         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
71225         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
71226         (main): Call set_program_name.
71228         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
71229         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
71230         (main): Call set_program_name.
71232         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
71233         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
71234         (main): Call set_program_name.
71236 2009-01-19  Eric Blake  <ebb9@byu.net>
71238         test-unistd: test previous patch
71239         * tests/test-unistd.c: Test *_FILENO macros.
71241         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
71242         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71243         Guarantee a definition.
71244         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
71245         * modules/unistd-safer (Depends-on): Add dependency on unistd.
71246         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
71247         * lib/dup-safer.c (STDERR_FILENO): Likewise.
71248         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71249         Likewise.
71250         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
71251         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
71252         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71253         Likewise.
71254         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
71255         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
71256         (STDERR_FILENO): Likewise.
71257         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
71258         (STDERR_FILENO): Likewise.
71259         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
71260         (STDERR_FILENO): Likewise.
71261         Reported by Elbert Pol.
71263 2009-01-19  Eric Blake  <ebb9@byu.net>
71265         doc: mention more functions added in cygwin 1.7.0
71266         * doc/posix-functions/abort.texi (abort): Update wording related
71267         to cygwin.
71268         * doc/posix-functions/daylight.texi (daylight): Likewise.
71269         * doc/posix-functions/optarg.texi (optarg): Likewise.
71270         * doc/posix-functions/optarg.texi (opterr): Likewise.
71271         * doc/posix-functions/optarg.texi (optind): Likewise.
71272         * doc/posix-functions/optarg.texi (optopt): Likewise.
71273         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
71274         worked in 1.5.x, and was withdrawn in 1.7.
71275         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
71276         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
71277         cygwin versions.
71278         * doc/posix-functions/perror.texi (perror): Likewise.
71279         * doc/posix-functions/printf.texi (printf): Likewise.
71280         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
71281         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
71282         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
71283         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
71284         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
71285         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
71286         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71287         Likewise.
71288         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71289         Likewise.
71290         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
71291         this function.
71292         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
71293         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
71294         Likewise.
71295         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
71296         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
71297         * doc/posix-functions/confstr.texi (confstr): Likewise.
71298         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
71299         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
71300         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
71301         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
71302         * doc/posix-functions/fputws.texi (fputws): Likewise.
71303         * doc/posix-functions/fwide.texi (fwide): Likewise.
71304         * doc/posix-functions/getwc.texi (getwc): Likewise.
71305         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
71306         * doc/posix-functions/putwc.texi (putwc): Likewise.
71307         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
71308         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
71309         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
71310         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
71311         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
71312         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
71313         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
71314         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
71315         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
71316         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
71317         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
71319 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71321         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
71322         * lib/ioctl.c: Include <sys/ioctl.h>.
71324 2009-01-19  Simon Josefsson  <simon@josefsson.org>
71326         * modules/getdate-tests (Depends-on): Add progname.
71327         * tests/test-getdate.c: Use progname module, to avoid link errors
71328         on non-glibc systems.
71330 2009-01-18  Simon Josefsson  <simon@josefsson.org>
71332         * modules/filenamecat-tests (Depends-on): Add progname.
71333         * modules/fstrcmp-tests (Depends-on): Likewise.
71335         * tests/test-filenamecat.c: Use progname module, to avoid link
71336         errors on non-glibc systems.
71337         * tests/test-fstrcmp.c: Likewise.
71339 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71341         gettimeofday: avoid warning: nested extern declaration of 'localtime'
71342         * lib/gettimeofday.c: Move extern declaration out of function.
71344 2009-01-18  Bruno Haible  <bruno@clisp.org>
71346         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
71347         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
71348         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
71350 2009-01-18  Bruno Haible  <bruno@clisp.org>
71352         * lib/strftime.c (MEMPCPY): Remove unused macro.
71353         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
71355 2009-01-18  Martin Lambers  <marlam@marlam.de>
71357         New module 'link'.
71358         * lib/unistd.in.h (link): New declaration.
71359         * lib/link.c: New file.
71360         * m4/link.m4: New file.
71361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71362         HAVE_LINK.
71363         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71364         * modules/link: New file.
71365         * doc/posix-functions/link.texi: Mention the new module.
71367 2009-01-18  Bruno Haible  <bruno@clisp.org>
71369         * tests/test-avltree_list.c (main): Call set_program_name.
71370         * tests/test-avltree_oset.c (main): Likewise.
71371         * tests/test-obstack-printf.c: Include progname.h.
71372         (main): Call set_program_name.
71373         * tests/test-quotearg.c: Include progname.h.
71374         (main): Call set_program_name.
71375         * tests/test-xmemdup0.c: Include progname.h.
71376         (main): Call set_program_name.
71378 2009-01-18  Bruno Haible  <bruno@clisp.org>
71380         New module 'alphasort'.
71381         * lib/dirent.in.h (alphasort): New declaration.
71382         * lib/alphasort.c: New file, from glibc with modifications.
71383         * m4/alphasort.m4: New file.
71384         * modules/alphasort: New file.
71385         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71386         HAVE_ALPHASORT.
71387         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71388         HAVE_ALPHASORT.
71389         * doc/posix-functions/alphasort.texi: Mention the new module and the
71390         portability problems.
71392 2009-01-18  Bruno Haible  <bruno@clisp.org>
71394         New module 'scandir'.
71395         * lib/dirent.in.h (scandir): New declaration.
71396         * lib/scandir.c: New file, from glibc with modifications.
71397         * m4/scandir.m4: New file.
71398         * modules/scandir: New file.
71399         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71400         HAVE_SCANDIR.
71401         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71402         HAVE_SCANDIR.
71403         * doc/posix-functions/scandir.texi: Mention the new module and the
71404         portability problems.
71406 2009-01-17  Bruno Haible  <bruno@clisp.org>
71408         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71409         Update documentation.
71410         (func_remove_suffix): Escape all dots in the suffix. Update
71411         documentation.
71412         (func_filter_filelist): Update documentation.
71413         Reported by Ralf Wildenhues.
71415 2009-01-17  Bruno Haible  <bruno@clisp.org>
71417         * modules/dprintf-posix-tests: New file.
71418         * tests/test-dprintf-posix.sh: New file.
71419         * tests/test-dprintf-posix.c: New file.
71421         New modules 'dprintf', 'dprintf-posix'.
71422         * lib/stdio.in.h (dprintf): New declaration.
71423         * lib/dprintf.c: New file.
71424         * m4/dprintf.m4: New file.
71425         * m4/dprintf-posix.m4: New file.
71426         * modules/dprintf: New file.
71427         * modules/dprintf-posix: New file.
71428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71429         HAVE_DPRINTF, REPLACE_DPRINTF.
71430         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71431         HAVE_DPRINTF, REPLACE_DPRINTF.
71432         * doc/posix-functions/dprintf.texi: Mention the new modules.
71434 2009-01-17  Bruno Haible  <bruno@clisp.org>
71436         * modules/vdprintf-posix-tests: New file.
71437         * tests/test-vdprintf-posix.sh: New file.
71438         * tests/test-vdprintf-posix.c: New file.
71440         New modules 'vdprintf', 'vdprintf-posix'.
71441         * lib/stdio.in.h (vdprintf): New declaration.
71442         * lib/vdprintf.c: New file.
71443         * m4/vdprintf.m4: New file.
71444         * m4/vdprintf-posix.m4: New file.
71445         * modules/vdprintf: New file.
71446         * modules/vdprintf-posix: New file.
71447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71448         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71449         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71450         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71451         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71453 2009-01-17  Bruno Haible  <bruno@clisp.org>
71455         Fix replacement of fopen on mingw.
71456         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71457         mingw.
71459 2009-01-17  Bruno Haible  <bruno@clisp.org>
71461         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71462         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71464 2009-01-17  Bruno Haible  <bruno@clisp.org>
71466         Avoid test-fflush2.sh failure on mingw.
71467         * tests/test-fflush2.c: Include binary-io.h.
71468         (main): Put standard input into binary mode.
71469         * modules/fflush-tests (Depends-on): Add binary-io.
71471 2009-01-17  Bruno Haible  <bruno@clisp.org>
71473         * lib/wchar.in.h: In another particular situation, include only the
71474         system's <wchar.h> file.
71475         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71476         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71477         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71479 2009-01-17  Bruno Haible  <bruno@clisp.org>
71481         Support for stripping executables in --enable-relocatable.
71482         * build-aux/install-reloc: Expect one more argument, or an environment
71483         variable RELOC_STRIP_PROG. If set, strip the destination program and
71484         its wrapper.
71485         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71486         RELOC_STRIP_PROG.
71487         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71488         to set RELOCATABLE_STRIP.
71489         * NEWS: Mention the new Makefile requirement.
71491 2009-01-17  Bruno Haible  <bruno@clisp.org>
71493         * build-aux/install-reloc: Remove debugging information left over by
71494         C compiler on MacOS X.
71496 2009-01-17  Bruno Haible  <bruno@clisp.org>
71498         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71499         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71500         _NSGetExecutablePath.
71502 2009-01-16  Jim Meyering  <meyering@redhat.com>
71504         strerror: avoid warnings about discarding "const"
71505         * lib/strerror.c (rpl_strerror): Instead of returning a const
71506         string from each and every "case", use a variable, and add a single
71507         cast after the switch.
71509 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71511         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71513 2009-01-16  Bruno Haible  <bruno@clisp.org>
71515         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71516         array initializer syntax that also works in C++ mode.
71517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71519 2009-01-16  Jim Meyering  <meyering@redhat.com>
71521         poll: suppress a warning
71522         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71523         to ignore "...unsigned expression < 0 is always false" warnings.
71525 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71527         poll: remove declarations of unused variables
71528         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71529         sockbuf and optlen.
71531 2009-01-15  Bruno Haible  <bruno@clisp.org>
71533         Make fflush-after-ungetc POSIX compliant on BSD systems.
71534         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71535         (clear_ungetc_buffer): Implement also for other systems.
71536         (rpl_fflush): On glibc systems, invoke
71537         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71538         clear_ungetc_buffer after fetching the stream's position, not before.
71540 2009-01-15  Bruno Haible  <bruno@clisp.org>
71542         Make fflush-after-ungetc POSIX compliant on glibc systems.
71543         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71544         after ungetc.
71545         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71546         (rpl_fflush): On glibc systems, simply call the system's fflush
71547         function after clearing the ungetc buffer.
71548         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71549         Instead, lseek only to the end of file, then use the system's fseeko
71550         for the rest. On glibc systems, reset the EOF indicator bit.
71552 2009-01-15  Jim Meyering  <meyering@redhat.com>
71554         openmp.m4: revert quote-adding change, for portability to older autoconf
71555         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71556         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71557         Simon Josefsson noticed the problem when using autoconf-2.61.
71559 2009-01-15  Bruno Haible  <bruno@clisp.org>
71561         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71562         * tests/test-fflush2.c (ASSERT): Always fail.
71563         (main): Add two tests for fflush() after ungetc(), taking into account
71564         the Austin Group's clarification.
71565         Suggested by Eric Blake.
71567 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71569         mktime.m4: remove K&R-style function prototypes
71570         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71571         for the Sun C++ compiler.
71573 2009-01-14  Bruno Haible  <bruno@clisp.org>
71575         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71576         while including <wchar.h>.
71577         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71578         the system's <wchar.h> file.
71579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71581 2009-01-14  Bruno Haible  <bruno@clisp.org>
71583         * m4/csharp.m4: Don't mention gettext on the serial number line.
71584         * m4/csharpexec.m4: Likewise.
71585         * m4/eaccess.m4: Likewise.
71586         * m4/javaexec.m4: Likewise.
71587         * m4/sig_atomic_t.m4: Likewise.
71588         * m4/tmpdir.m4: Likewise.
71589         * m4/intldir.m4: Bump gettext version.
71590         * m4/lib-ld.m4: Likewise.
71592 2009-01-14  Bruno Haible  <bruno@clisp.org>
71594         * lib/progname.c (set_program_name): Add more comments.
71595         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71597 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71599         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71600         were sys/stat.h does not define it.
71602 2009-01-14  Jim Meyering  <meyering@redhat.com>
71604         many *.m4 files: improve m4 quoting
71605         99% of this change was performed by running the following commands:
71606         git ls-files | grep '\.m4$' | xargs perl -pi \
71607           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71608           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71609           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71610           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71611         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71612         The remainder were to add Copyright dates, increment serial numbers,
71613         undo some changes in comments, exclude m4/intl.m4, and add quotes
71614         around the "1" in ",1" where the unusual spacing prohibited the
71615         above regexps from doing the job.  For more details, see
71616         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71617         * m4/acl.m4: Modified.
71618         * m4/afs.m4: Likewise.
71619         * m4/alloca.m4: Likewise.
71620         * m4/argp.m4: Likewise.
71621         * m4/argz.m4: Likewise.
71622         * m4/atexit.m4: Likewise.
71623         * m4/bison-i18n.m4: Likewise.
71624         * m4/bison.m4: Likewise.
71625         * m4/byteswap.m4: Likewise.
71626         * m4/c-stack.m4: Likewise.
71627         * m4/c-strtod.m4: Likewise.
71628         * m4/calloc.m4: Likewise.
71629         * m4/canonicalize-lgpl.m4: Likewise.
71630         * m4/chown.m4: Likewise.
71631         * m4/clock_time.m4: Likewise.
71632         * m4/codeset.m4: Likewise.
71633         * m4/copy-file.m4: Likewise.
71634         * m4/csharp.m4: Likewise.
71635         * m4/csharpcomp.m4: Likewise.
71636         * m4/csharpexec.m4: Likewise.
71637         * m4/d-ino.m4: Likewise.
71638         * m4/d-type.m4: Likewise.
71639         * m4/dirfd.m4: Likewise.
71640         * m4/double-slash-root.m4: Likewise.
71641         * m4/eaccess.m4: Likewise.
71642         * m4/eealloc.m4: Likewise.
71643         * m4/environ.m4: Likewise.
71644         * m4/errno_h.m4: Likewise.
71645         * m4/euidaccess.m4: Likewise.
71646         * m4/execute.m4: Likewise.
71647         * m4/fatal-signal.m4: Likewise.
71648         * m4/fchdir.m4: Likewise.
71649         * m4/fcntl_h.m4: Likewise.
71650         * m4/fileblocks.m4: Likewise.
71651         * m4/filenamecat.m4: Likewise.
71652         * m4/findprog.m4: Likewise.
71653         * m4/flexmember.m4: Likewise.
71654         * m4/fnmatch.m4: Likewise.
71655         * m4/fopen.m4: Likewise.
71656         * m4/fpending.m4: Likewise.
71657         * m4/fprintf-posix.m4: Likewise.
71658         * m4/free.m4: Likewise.
71659         * m4/frexp.m4: Likewise.
71660         * m4/frexpl.m4: Likewise.
71661         * m4/fsusage.m4: Likewise.
71662         * m4/ftruncate.m4: Likewise.
71663         * m4/gc-camellia.m4: Likewise.
71664         * m4/gc-random.m4: Likewise.
71665         * m4/gc.m4: Likewise.
71666         * m4/getaddrinfo.m4: Likewise.
71667         * m4/getcwd-abort-bug.m4: Likewise.
71668         * m4/getcwd-path-max.m4: Likewise.
71669         * m4/getdate.m4: Likewise.
71670         * m4/getdomainname.m4: Likewise.
71671         * m4/getgroups.m4: Likewise.
71672         * m4/gethostname.m4: Likewise.
71673         * m4/gethrxtime.m4: Likewise.
71674         * m4/getline.m4: Likewise.
71675         * m4/getloadavg.m4: Likewise.
71676         * m4/getndelim2.m4: Likewise.
71677         * m4/getpass.m4: Likewise.
71678         * m4/gettext.m4: Likewise.
71679         * m4/gettime.m4: Likewise.
71680         * m4/gettimeofday.m4: Likewise.
71681         * m4/gnulib-common.m4: Likewise.
71682         * m4/group-member.m4: Likewise.
71683         * m4/host-os.m4: Likewise.
71684         * m4/iconv.m4: Likewise.
71685         * m4/iconv_open.m4: Likewise.
71686         * m4/inet_ntop.m4: Likewise.
71687         * m4/inet_pton.m4: Likewise.
71688         * m4/inline.m4: Likewise.
71689         * m4/intldir.m4: Likewise.
71690         * m4/intlmacosx.m4: Likewise.
71691         * m4/intmax.m4: Likewise.
71692         * m4/intmax_t.m4: Likewise.
71693         * m4/inttypes.m4: Likewise.
71694         * m4/inttypes_h.m4: Likewise.
71695         * m4/inttypes-pri.m4: Likewise.
71696         * m4/isapipe.m4: Likewise.
71697         * m4/isnand.m4: Likewise.
71698         * m4/isnanf.m4: Likewise.
71699         * m4/isnanl.m4: Likewise.
71700         * m4/javacomp.m4: Likewise.
71701         * m4/javaexec.m4: Likewise.
71702         * m4/jm-winsz1.m4: Likewise.
71703         * m4/jm-winsz2.m4: Likewise.
71704         * m4/lchown.m4: Likewise.
71705         * m4/lcmessage.m4: Likewise.
71706         * m4/ldexpl.m4: Likewise.
71707         * m4/lib-ld.m4: Likewise.
71708         * m4/lib-link.m4: Likewise.
71709         * m4/libsigsegv.m4: Likewise.
71710         * m4/link-follow.m4: Likewise.
71711         * m4/localcharset.m4: Likewise.
71712         * m4/locale-fr.m4: Likewise.
71713         * m4/locale-ja.m4: Likewise.
71714         * m4/locale-tr.m4: Likewise.
71715         * m4/locale-zh.m4: Likewise.
71716         * m4/lock.m4: Likewise.
71717         * m4/longlong.m4: Likewise.
71718         * m4/ls-mntd-fs.m4: Likewise.
71719         * m4/lstat.m4: Likewise.
71720         * m4/malloc.m4: Likewise.
71721         * m4/mathl.m4: Likewise.
71722         * m4/mbrtowc.m4: Likewise.
71723         * m4/mbstate_t.m4: Likewise.
71724         * m4/mbswidth.m4: Likewise.
71725         * m4/memchr.m4: Likewise.
71726         * m4/memcmp.m4: Likewise.
71727         * m4/memcpy.m4: Likewise.
71728         * m4/memmem.m4: Likewise.
71729         * m4/memmove.m4: Likewise.
71730         * m4/mempcpy.m4: Likewise.
71731         * m4/memrchr.m4: Likewise.
71732         * m4/memset.m4: Likewise.
71733         * m4/minmax.m4: Likewise.
71734         * m4/mkdir-slash.m4: Likewise.
71735         * m4/mkdtemp.m4: Likewise.
71736         * m4/mktime.m4: Likewise.
71737         * m4/mmap-anon.m4: Likewise.
71738         * m4/mountlist.m4: Likewise.
71739         * m4/nanosleep.m4: Likewise.
71740         * m4/nls.m4: Likewise.
71741         * m4/nocrash.m4: Likewise.
71742         * m4/open.m4: Likewise.
71743         * m4/openat.m4: Likewise.
71744         * m4/openmp.m4: Likewise.
71745         * m4/pathmax.m4: Likewise.
71746         * m4/perl.m4: Likewise.
71747         * m4/physmem.m4: Likewise.
71748         * m4/pipe.m4: Likewise.
71749         * m4/po.m4: Likewise.
71750         * m4/poll.m4: Likewise.
71751         * m4/posixtm.m4: Likewise.
71752         * m4/posixver.m4: Likewise.
71753         * m4/printf-frexp.m4: Likewise.
71754         * m4/printf-frexpl.m4: Likewise.
71755         * m4/printf-posix.m4: Likewise.
71756         * m4/printf-posix-rpl.m4: Likewise.
71757         * m4/printf.m4: Likewise.
71758         * m4/progtest.m4: Likewise.
71759         * m4/putenv.m4: Likewise.
71760         * m4/readline.m4: Likewise.
71761         * m4/readlink.m4: Likewise.
71762         * m4/readutmp.m4: Likewise.
71763         * m4/realloc.m4: Likewise.
71764         * m4/regex.m4: Likewise.
71765         * m4/relocatable.m4: Likewise.
71766         * m4/relocatable-lib.m4: Likewise.
71767         * m4/rename-dest-slash.m4: Likewise.
71768         * m4/rename.m4: Likewise.
71769         * m4/rmdir-errno.m4: Likewise.
71770         * m4/rmdir.m4: Likewise.
71771         * m4/roundf.m4: Likewise.
71772         * m4/roundl.m4: Likewise.
71773         * m4/rpmatch.m4: Likewise.
71774         * m4/save-cwd.m4: Likewise.
71775         * m4/selinux-selinux-h.m4: Likewise.
71776         * m4/setenv.m4: Likewise.
71777         * m4/settime.m4: Likewise.
71778         * m4/sig2str.m4: Likewise.
71779         * m4/sig_atomic_t.m4: Likewise.
71780         * m4/signalblocking.m4: Likewise.
71781         * m4/signbit.m4: Likewise.
71782         * m4/sigpipe.m4: Likewise.
71783         * m4/sockets.m4: Likewise.
71784         * m4/sockpfaf.m4: Likewise.
71785         * m4/st_dm_mode.m4: Likewise.
71786         * m4/stat-time.m4: Likewise.
71787         * m4/stdbool.m4: Likewise.
71788         * m4/stdint.m4: Likewise.
71789         * m4/stdint_h.m4: Likewise.
71790         * m4/stpcpy.m4: Likewise.
71791         * m4/stpncpy.m4: Likewise.
71792         * m4/strcase.m4: Likewise.
71793         * m4/strchrnul.m4: Likewise.
71794         * m4/strcspn.m4: Likewise.
71795         * m4/strdup.m4: Likewise.
71796         * m4/strftime.m4: Likewise.
71797         * m4/strndup.m4: Likewise.
71798         * m4/strnlen.m4: Likewise.
71799         * m4/strpbrk.m4: Likewise.
71800         * m4/strptime.m4: Likewise.
71801         * m4/strsep.m4: Likewise.
71802         * m4/strtod.m4: Likewise.
71803         * m4/strtoimax.m4: Likewise.
71804         * m4/strtok_r.m4: Likewise.
71805         * m4/strtol.m4: Likewise.
71806         * m4/strtoll.m4: Likewise.
71807         * m4/strtoul.m4: Likewise.
71808         * m4/strtoull.m4: Likewise.
71809         * m4/strtoumax.m4: Likewise.
71810         * m4/strverscmp.m4: Likewise.
71811         * m4/threadlib.m4: Likewise.
71812         * m4/timegm.m4: Likewise.
71813         * m4/tm_gmtoff.m4: Likewise.
71814         * m4/tmpdir.m4: Likewise.
71815         * m4/tmpfile.m4: Likewise.
71816         * m4/tzset.m4: Likewise.
71817         * m4/uintmax_t.m4: Likewise.
71818         * m4/unlinkdir.m4: Likewise.
71819         * m4/unlocked-io.m4: Likewise.
71820         * m4/uptime.m4: Likewise.
71821         * m4/userspec.m4: Likewise.
71822         * m4/utimbuf.m4: Likewise.
71823         * m4/utime.m4: Likewise.
71824         * m4/utimes-null.m4: Likewise.
71825         * m4/utimes.m4: Likewise.
71826         * m4/vararrays.m4: Likewise.
71827         * m4/vasnprintf.m4: Likewise.
71828         * m4/vfprintf-posix.m4: Likewise.
71829         * m4/vprintf-posix.m4: Likewise.
71830         * m4/wait-process.m4: Likewise.
71831         * m4/wchar_t.m4: Likewise.
71832         * m4/wint_t.m4: Likewise.
71833         * m4/write-any-file.m4: Likewise.
71834         * m4/yield.m4: Likewise.
71836 2009-01-13  Bruno Haible  <bruno@clisp.org>
71838         Avoid test-copy-file.sh failures when ACL support insufficient.
71839         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71840         TESTS_ENVIRONMENT.
71841         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71842         Reported by Jim Meyering.
71844 2009-01-13  Bruno Haible  <bruno@clisp.org>
71846         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71847         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71848         * modules/unistdio/u8-printf-parse (Files): Likewise.
71849         * modules/unistdio/u32-printf-parse (Files): Likewise.
71850         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71852 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71854         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71855         and m4/inttypes_h.m4 too.
71857 2009-01-12  Eric Blake  <ebb9@byu.net>
71859         tests: IRIX 6.2 cc can't compile -0.0 into .data
71860         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71861         rather than at compile-time.
71862         * tests/test-floorl.c (minus_zero): Likewise.
71863         * tests/test-frexpl.c (minus_zero): Likewise.
71864         * tests/test-isnan.c (minus_zerol): Likewise.
71865         * tests/test-isnanl.h (minus_zero): Likewise.
71866         * tests/test-ldexpl.c (minus_zero): Likewise.
71867         * tests/test-roundl.c (minus_zero): Likewise.
71868         * tests/test-signbit.c (minus_zerol): Likewise.
71869         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71870         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71871         * tests/test-truncl.c (minus_zero): Likewise.
71872         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71873         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71874         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71876 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71878         regex: fix glibc bug 9697
71879         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71880         handling.
71882 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71884         regex: fix glibc bug 697
71885         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71886         being NULL also if there are no backreferences.
71888 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71890         regex: merge glibc changes
71891         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71892         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71893         re_string_skip_chars, re_string_reconstruct): Likewise.
71894         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71896 2009-01-07  Jim Meyering  <meyering@redhat.com>
71898         poll: filter through cppi
71899         * lib/poll.c: Indent cpp directives to reflect nesting.
71901 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71903         poll: don't return uninitialized
71904         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71906 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71908         avoid compile failure on AIX 6.1
71909         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71910         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71912 2009-01-04  Jim Meyering  <meyering@redhat.com>
71914         remove duplicate inclusion of <stdio.h>
71915         * tests/test-fprintf-posix.c: Likewise.
71916         * tests/test-printf-posix.c: Likewise.
71917         * tests/test-snprintf-posix.c: Likewise.
71918         * tests/test-sprintf-posix.c: Likewise.
71919         * tests/test-vasprintf-posix.c: Likewise.
71920         * tests/test-vfprintf-posix.c: Likewise.
71921         * tests/test-vprintf-posix.c: Likewise.
71922         * tests/test-vsnprintf-posix.c: Likewise.
71923         * tests/test-vsprintf-posix.c: Likewise.
71925 2009-01-03  Jim Meyering  <meyering@redhat.com>
71927         gnulib-tool: fix sed-based filtering
71928         * gnulib-tool (func_filter_filelist): Remove extra backslash
71929         in sed_fff_filter definition.
71931 2009-01-02  Jim Meyering  <meyering@redhat.com>
71933         strftime: avoid compilation failure on Solaris 2.6
71934         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71935         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71936         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71937         be available.  Reported by Tom G. Christensen.  Details in
71938         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71940 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71941             Bruno Haible  <bruno@clisp.org>
71943         Speed up gnulib-tool by doing more string processing through shell
71944         built-ins.
71945         * gnulib-tool (fast_func_append): New variable.
71946         (func_remove_prefix, func_remove_suffix): New functions.
71947         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71948         (func_filter_filelist): New function.
71949         (func_get_dependencies): Use func_remove_suffix instead of sed.
71950         (func_get_automake_snippet): Use func_filter_filelist instead of a
71951         subshell and sed invocation.
71953 2009-01-01  Bruno Haible  <bruno@clisp.org>
71955         Fix a security bug.
71956         * gnulib-tool (func_import, import, update): Don't allow the characters
71957         '"', '$', '`', '\' in macro arguments that become part of commands that
71958         are evaluated.
71960 2009-01-01  Bruno Haible  <bruno@clisp.org>
71962         * gnulib-tool (func_reset_sigpipe): Add more comments.
71964 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71966         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71967         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71968         already know the answer.
71970 2009-01-01  Jim Meyering  <meyering@redhat.com>
71972         * lib/version-etc.c (version_etc_va): Update copyright year.
71974 2008-12-30  Bruno Haible  <bruno@clisp.org>
71976         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71977         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71978         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71980 2008-12-29  Eric Blake  <ebb9@byu.net>
71982         multiarch: avoid autoconf AC_REQUIRE bug
71983         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71984         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71985         2.63 and older.
71986         Reported by Bruno Haible, and analyzed in
71987         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71989 2008-12-29  Bruno Haible  <bruno@clisp.org>
71991         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71992         files in subdirectories correctly.
71993         Reported by Ralf Wildenhues.
71995 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71997         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71998         rather than 'join FILE -', for Solaris join.
72000 2008-12-29  Bruno Haible  <bruno@clisp.org>
72002         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
72003         quoting.
72004         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72005         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
72006         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
72007         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
72008         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
72009         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
72010         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
72011         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
72012         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72013         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
72014         * m4/nls.m4 (AM_NLS): Likewise.
72015         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
72016         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
72017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72018         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
72019         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
72020         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
72021         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
72022         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
72023         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
72024         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72025         * m4/xsize.m4 (gl_XSIZE): Likewise.
72026         Suggested by Jim Meyering.
72028 2008-11-17  Bruce Korb  <bkorb@gnu.org>
72030         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
72031         * lib/parse-duration.c: use a switch instead of cascading if's.
72033 2008-12-29  Eric Blake  <ebb9@byu.net>
72035         wchar.h: supply WEOF on Irix 5.3
72036         * lib/wchar.in.h (wint_t): Also supply WEOF.
72037         * lib/wctype.in.h (wint_t): Likewise.
72038         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
72039         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
72040         Reported by Tom G. Christensen.
72042 2008-12-26  Bruno Haible  <bruno@clisp.org>
72044         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
72045         i486, i586, i686.
72047 2008-12-26  Bruno Haible  <bruno@clisp.org>
72049         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
72051 2008-12-26  Bruno Haible  <bruno@clisp.org>
72053         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
72054         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
72055         not __STDC_CONSTANT_MACROS.
72056         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
72058 2008-12-25  Bruno Haible  <bruno@clisp.org>
72060         Add support for universal builds to vasnprintf.
72061         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
72062         universal builds, guess no.
72063         * modules/vasnprintf-posix (Depends-on): Add multiarch.
72064         * modules/vasprintf-posix (Depends-on): Likewise.
72065         * modules/fprintf-posix (Depends-on): Likewise.
72066         * modules/vfprintf-posix (Depends-on): Likewise.
72067         * modules/snprintf-posix (Depends-on): Likewise.
72068         * modules/vsnprintf-posix (Depends-on): Likewise.
72069         * modules/sprintf-posix (Depends-on): Likewise.
72070         * modules/vsprintf-posix (Depends-on): Likewise.
72071         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72072         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72073         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72074         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72076         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72077         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72079         Add support for universal builds to <inttypes.h>.
72080         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
72081         _SCNu64_PREFIX): In Apple
72082         universal builds, define directly, using _LP64.
72083         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
72084         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
72085         * modules/inttypes (Depends-on): Add multiarch.
72086         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
72088         Add support for universal builds to <stdint.h>.
72089         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
72090         universal builds, define directly, using _LP64.
72091         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
72092         Apple universal builds, don't test for the size and suffix of ptrdiff_t
72093         and size_t.
72094         * modules/stdint (Depends-on): Add multiarch.
72095         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
72097         New module 'multiarch'.
72098         * modules/multiarch: New file.
72099         * m4/multiarch.m4: New file.
72101 2008-12-25  Bruno Haible  <bruno@clisp.org>
72103         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
72105 2008-12-25  Bruno Haible  <bruno@clisp.org>
72107         * modules/btowc (License): Relicense under LGPLv2+.
72108         * modules/mbsinit (License): Likewise.
72109         * modules/mbrtowc (License): Likewise.
72110         * modules/wcrtomb (License): Likewise.
72111         * modules/streq (License): Likewise.
72112         Reported by David Lutterkort <lutter@redhat.com>.
72114 2008-12-23  Bruno Haible  <bruno@clisp.org>
72116         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
72118 2008-12-23  Bruno Haible  <bruno@clisp.org>
72120         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
72121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
72122         GETADDRINFO_LIB, not in LIBS.
72123         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
72124         * modules/canon-host (Link): Likewise.
72125         * NEWS: Mention the change.
72126         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
72127         GETADDRINFO_LIB.
72129 2008-12-22  Bruno Haible  <bruno@clisp.org>
72131         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
72132         * doc/posix-functions/iswalpha_l.texi: Likewise.
72133         * doc/posix-functions/iswblank_l.texi: Likewise.
72134         * doc/posix-functions/iswcntrl_l.texi: Likewise.
72135         * doc/posix-functions/iswctype_l.texi: Likewise.
72136         * doc/posix-functions/iswdigit_l.texi: Likewise.
72137         * doc/posix-functions/iswgraph_l.texi: Likewise.
72138         * doc/posix-functions/iswlower_l.texi: Likewise.
72139         * doc/posix-functions/iswprint_l.texi: Likewise.
72140         * doc/posix-functions/iswpunct_l.texi: Likewise.
72141         * doc/posix-functions/iswspace_l.texi: Likewise.
72142         * doc/posix-functions/iswupper_l.texi: Likewise.
72143         * doc/posix-functions/iswxdigit_l.texi: Likewise.
72144         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
72145         * doc/posix-functions/open_wmemstream.texi: Likewise.
72146         * doc/posix-functions/swscanf.texi: Likewise.
72147         * doc/posix-functions/towctrans_l.texi: Likewise.
72148         * doc/posix-functions/towlower.texi: Likewise.
72149         * doc/posix-functions/towlower_l.texi: Likewise.
72150         * doc/posix-functions/towupper.texi: Likewise.
72151         * doc/posix-functions/towupper_l.texi: Likewise.
72152         * doc/posix-functions/vfwprintf.texi: Likewise.
72153         * doc/posix-functions/vfwscanf.texi: Likewise.
72154         * doc/posix-functions/vswscanf.texi: Likewise.
72155         * doc/posix-functions/vwprintf.texi: Likewise.
72156         * doc/posix-functions/vwscanf.texi: Likewise.
72157         * doc/posix-functions/wcpcpy.texi: Likewise.
72158         * doc/posix-functions/wcpncpy.texi: Likewise.
72159         * doc/posix-functions/wcscasecmp.texi: Likewise.
72160         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
72161         * doc/posix-functions/wcscoll_l.texi: Likewise.
72162         * doc/posix-functions/wcsdup.texi: Likewise.
72163         * doc/posix-functions/wcsncasecmp.texi: Likewise.
72164         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
72165         * doc/posix-functions/wcsnlen.texi: Likewise.
72166         * doc/posix-functions/wcsnrtombs.texi: Likewise.
72167         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
72168         * doc/posix-functions/wctrans_l.texi: Likewise.
72169         * doc/posix-functions/wctype_l.texi: Likewise.
72170         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
72171         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
72172         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
72173         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
72174         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
72175         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
72176         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
72177         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
72178         * doc/glibc-functions/wcschrnul.texi: Likewise.
72179         * doc/glibc-functions/wcsftime_l.texi: Likewise.
72180         * doc/glibc-functions/wcstod_l.texi: Likewise.
72181         * doc/glibc-functions/wcstof_l.texi: Likewise.
72182         * doc/glibc-functions/wcstol_l.texi: Likewise.
72183         * doc/glibc-functions/wcstold_l.texi: Likewise.
72184         * doc/glibc-functions/wcstoll_l.texi: Likewise.
72185         * doc/glibc-functions/wcstoq.texi: Likewise.
72186         * doc/glibc-functions/wcstoul_l.texi: Likewise.
72187         * doc/glibc-functions/wcstoull_l.texi: Likewise.
72188         * doc/glibc-functions/wcstouq.texi: Likewise.
72189         * doc/glibc-functions/wmempcpy.texi: Likewise.
72191 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
72192             Eric Blake  <ebb9@byu.net>
72193             Paolo Bonzini  <bonzini@gnu.org>
72194             Bruno Haible  <bruno@clisp.org>
72196         Make c-stack work on Haiku.
72197         * lib/c-stack.c (SA_ONSTACK): Define fallback.
72198         (c_stack_action): Use SA_ONSTACK flag.
72200 2008-12-22  Bruno Haible  <bruno@clisp.org>
72202         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
72204 2008-12-22  Bruno Haible  <bruno@clisp.org>
72206         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
72207         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
72208         being overridden.
72209         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
72210         New macros.
72211         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
72212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
72213         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
72214         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
72216 2008-12-22  Bruno Haible  <bruno@clisp.org>
72218         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
72219         from test code.
72221 2008-12-22  Eric Blake  <ebb9@byu.net>
72223         Avoid gcc warnings on cygwin.
72224         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
72225         Avoid unused variable.
72226         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
72227         Likewise.
72229 2008-12-22  Bruno Haible  <bruno@clisp.org>
72231         Remove HAVE_MBRTOWC conditionals.
72232         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
72233         (mbscasecmp): Assume mbrtowc function.
72234         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
72235         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
72236         * lib/mbschr.c: Include mbuiter.h unconditionally.
72237         (mbschr): Assume mbrtowc function.
72238         * lib/mbscspn.c: Include mbuiter.h unconditionally.
72239         (mbscspn): Assume mbrtowc function.
72240         * lib/mbslen.c: Include mbuiter.h unconditionally.
72241         (mbslen): Assume mbrtowc function.
72242         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
72243         (mbsncasecmp): Assume mbrtowc function.
72244         * lib/mbsnlen.c: Include mbiter.h unconditionally.
72245         (mbsnlen): Assume mbrtowc function.
72246         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
72247         (mbspbrk): Assume mbrtowc function.
72248         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
72249         (mbspcasecmp): Assume mbrtowc function.
72250         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
72251         (mbsrchr): Assume mbrtowc function.
72252         * lib/mbssep.c: Include mbuiter.h unconditionally.
72253         (mbssep): Assume mbrtowc function.
72254         * lib/mbsspn.c: Include mbuiter.h unconditionally.
72255         (mbsspn): Assume mbrtowc function.
72256         * lib/mbsstr.c: Include mbuiter.h unconditionally.
72257         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
72258         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
72259         (mbstok_r): Assume mbrtowc function.
72260         * lib/propername.c: Include mbuiter.h unconditionally.
72261         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
72262         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
72263         (trim2): Assume mbrtowc function.
72264         * lib/mbswidth.c (mbsinit): Remove fallback definition.
72265         (mbsnwidth): Assume mbrtowc function.
72266         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
72267         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
72268         fallback definitions.
72269         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
72271 2008-12-22  Bruno Haible  <bruno@clisp.org>
72273         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
72275 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
72277         * modules/regex: Request emulations for the mb*/wc* functions we need.
72278         * m4/regex.m4: Don't look for those functions here.
72279         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
72281 2008-12-22  Bruno Haible  <bruno@clisp.org>
72283         * modules/fnmatch (Depends-on): Remove duplicated dependency.
72285 2008-12-21  Bruno Haible  <bruno@clisp.org>
72287         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
72288         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
72289         (Include): Remove conditionalization.
72290         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
72291         (Include): Remove conditionalization.
72292         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
72293         (Include): Remove conditionalization.
72294         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
72295         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72296         * NEWS: Mention the change.
72297         Reported by Alan Hourihane <alanh@fairlite.co.uk>
72298         via Sergey Poznyakoff <gray@gnu.org.ua>.
72300 2008-12-21  Bruno Haible  <bruno@clisp.org>
72302         * MODULES.html.sh (Extended multibyte and wide character utilities
72303         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
72304         wcrtomb, wcsrtombs.
72305         (Support for systems lacking POSIX:2008): Add accept, bind, close,
72306         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
72307         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
72308         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
72310 2008-12-21  Bruno Haible  <bruno@clisp.org>
72312         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
72314 2008-12-21  Bruno Haible  <bruno@clisp.org>
72316         * modules/wcsnrtombs-tests: New file.
72317         * tests/test-wcsnrtombs1.sh: New file.
72318         * tests/test-wcsnrtombs2.sh: New file.
72319         * tests/test-wcsnrtombs3.sh: New file.
72320         * tests/test-wcsnrtombs4.sh: New file.
72321         * tests/test-wcsnrtombs.c: New file.
72323         New module 'wcsnrtombs'.
72324         * lib/wchar.in.h (wcsnrtombs): New declaration.
72325         * lib/wcsnrtombs.c: New file.
72326         * lib/wcsrtombs-state.c: New file.
72327         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
72328         (internal_state): Remove variable.
72329         * m4/wcsnrtombs.m4: New file.
72330         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
72331         compilation units.
72332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
72333         HAVE_WCSNRTOMBS.
72334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
72335         HAVE_WCSNRTOMBS.
72336         * modules/wcsnrtombs: New file.
72337         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
72338         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
72340 2008-12-21  Bruno Haible  <bruno@clisp.org>
72342         * modules/wcsrtombs-tests: New file.
72343         * tests/test-wcsrtombs1.sh: New file.
72344         * tests/test-wcsrtombs2.sh: New file.
72345         * tests/test-wcsrtombs3.sh: New file.
72346         * tests/test-wcsrtombs4.sh: New file.
72347         * tests/test-wcsrtombs.c: New file.
72349         New module 'wcsrtombs'.
72350         * lib/wchar.in.h (wcsrtombs): New declaration.
72351         * lib/wcsrtombs.c: New file.
72352         * m4/wcsrtombs.m4: New file.
72353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
72354         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
72356         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72357         * modules/wcsrtombs: New file.
72358         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72359         bugs.
72361 2008-12-21  Bruno Haible  <bruno@clisp.org>
72363         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72364         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72366         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72367         if not correct.
72368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72369         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72370         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72371         m4/locale-zh.m4, m4/codeset.m4.
72372         * doc/posix-functions/wcrtomb.texi: Document the bug.
72374 2008-12-21  Bruno Haible  <bruno@clisp.org>
72376         Work around a btowc() bug on IRIX 6.5.
72377         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72378         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72379         REPLACE_WTOBC if not.
72380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72381         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72382         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72384 2008-12-21  Bruno Haible  <bruno@clisp.org>
72386         * modules/wcrtomb-tests: New file.
72387         * tests/test-wcrtomb.sh: New file.
72388         * tests/test-wcrtomb.c: New file.
72390         New module 'wcrtomb'.
72391         * lib/wchar.in.h (wcrtomb): New declaration.
72392         * lib/wcrtomb.c: New file.
72393         * m4/wcrtomb.m4: New file.
72394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72395         HAVE_WCRTOMB.
72396         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72397         HAVE_WCRTOMB.
72398         * modules/wcrtomb: New file.
72399         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72401 2008-12-21  Bruno Haible  <bruno@clisp.org>
72403         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72404         * modules/mbsrtowcs (Files): Likewise.
72405         * modules/wctob (Files): Likewise.
72406         * modules/c-strcase-tests (Files): Likewise.
72407         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72408         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72409         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72410         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72411         * modules/vasnprintf-posix-tests (Files): Likewise.
72413 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72415         gitlog-to-changelog: pass all command-line arguments to git-log
72416         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72417         it is sometimes convenient to filter the commits in various ways.
72418         gitlog-to-changelog only allows --since to specify a start date,
72419         but git-log itself supports many other filtering mechanisms.
72420         At the moment, I want to filter by branch name.  Rather than
72421         adding a --branch option to gitlog-to-changelog, it seems more
72422         flexible to simply pass all options directly to git-log and let
72423         git do the work.  Notice that this effectively makes --since a
72424         redundant option for gitlog-to-changelog, but removing it would
72425         require current usage to change since calls would then require
72426         an additional '--'.
72428 2008-12-21  Bruno Haible  <bruno@clisp.org>
72430         * modules/mbsnrtowcs-tests: New file.
72431         * tests/test-mbsnrtowcs1.sh: New file.
72432         * tests/test-mbsnrtowcs2.sh: New file.
72433         * tests/test-mbsnrtowcs3.sh: New file.
72434         * tests/test-mbsnrtowcs4.sh: New file.
72435         * tests/test-mbsnrtowcs.c: New file.
72437         New module 'mbsnrtowcs'.
72438         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72439         * lib/mbsnrtowcs.c: New file.
72440         * lib/mbsrtowcs-state.c: New file.
72441         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72442         (internal_state): Remove variable.
72443         * m4/mbsnrtowcs.m4: New file.
72444         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72445         compilation units.
72446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72447         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72448         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72449         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72450         * modules/mbsnrtowcs: New file.
72451         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72452         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72453         portability problem.
72455 2008-12-21  Bruno Haible  <bruno@clisp.org>
72457         Work around mbsrtowcs bug.
72458         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72459         (gl_FUNC_MBSRTOWCS): Invoke it.
72460         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72461         m4/locale-zh.m4.
72462         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72464 2008-12-21  Bruno Haible  <bruno@clisp.org>
72466         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72468 2008-12-21  Bruno Haible  <bruno@clisp.org>
72470         Update doc for AIX.
72471         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72472         16-bit wchar_t type.
72473         * doc/posix-functions/btowc.texi: Likewise.
72474         * doc/posix-functions/fgetwc.texi: Likewise.
72475         * doc/posix-functions/fgetws.texi: Likewise.
72476         * doc/posix-functions/fputwc.texi: Likewise.
72477         * doc/posix-functions/fputws.texi: Likewise.
72478         * doc/posix-functions/fwide.texi: Likewise.
72479         * doc/posix-functions/fwprintf.texi: Likewise.
72480         * doc/posix-functions/fwscanf.texi: Likewise.
72481         * doc/posix-functions/getwchar.texi: Likewise.
72482         * doc/posix-functions/getwc.texi: Likewise.
72483         * doc/posix-functions/iswalnum.texi: Likewise.
72484         * doc/posix-functions/iswalpha.texi: Likewise.
72485         * doc/posix-functions/iswblank.texi: Likewise.
72486         * doc/posix-functions/iswcntrl.texi: Likewise.
72487         * doc/posix-functions/iswctype.texi: Likewise.
72488         * doc/posix-functions/iswdigit.texi: Likewise.
72489         * doc/posix-functions/iswgraph.texi: Likewise.
72490         * doc/posix-functions/iswlower.texi: Likewise.
72491         * doc/posix-functions/iswprint.texi: Likewise.
72492         * doc/posix-functions/iswpunct.texi: Likewise.
72493         * doc/posix-functions/iswspace.texi: Likewise.
72494         * doc/posix-functions/iswupper.texi: Likewise.
72495         * doc/posix-functions/iswxdigit.texi: Likewise.
72496         * doc/posix-functions/mbrtowc.texi: Likewise.
72497         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72498         * doc/posix-functions/mbstowcs.texi: Likewise.
72499         * doc/posix-functions/mbtowc.texi: Likewise.
72500         * doc/posix-functions/putwchar.texi: Likewise.
72501         * doc/posix-functions/putwc.texi: Likewise.
72502         * doc/posix-functions/swprintf.texi: Likewise.
72503         * doc/posix-functions/tolower.texi: Likewise.
72504         * doc/posix-functions/toupper.texi: Likewise.
72505         * doc/posix-functions/towctrans.texi: Likewise.
72506         * doc/posix-functions/ungetwc.texi: Likewise.
72507         * doc/posix-functions/vswprintf.texi: Likewise.
72508         * doc/posix-functions/wcrtomb.texi: Likewise.
72509         * doc/posix-functions/wcscat.texi: Likewise.
72510         * doc/posix-functions/wcschr.texi: Likewise.
72511         * doc/posix-functions/wcscmp.texi: Likewise.
72512         * doc/posix-functions/wcscoll.texi: Likewise.
72513         * doc/posix-functions/wcscpy.texi: Likewise.
72514         * doc/posix-functions/wcscspn.texi: Likewise.
72515         * doc/posix-functions/wcsftime.texi: Likewise.
72516         * doc/posix-functions/wcslen.texi: Likewise.
72517         * doc/posix-functions/wcsncat.texi: Likewise.
72518         * doc/posix-functions/wcsncmp.texi: Likewise.
72519         * doc/posix-functions/wcsncpy.texi: Likewise.
72520         * doc/posix-functions/wcspbrk.texi: Likewise.
72521         * doc/posix-functions/wcsrchr.texi: Likewise.
72522         * doc/posix-functions/wcsrtombs.texi: Likewise.
72523         * doc/posix-functions/wcsspn.texi: Likewise.
72524         * doc/posix-functions/wcsstr.texi: Likewise.
72525         * doc/posix-functions/wcstod.texi: Likewise.
72526         * doc/posix-functions/wcstof.texi: Likewise.
72527         * doc/posix-functions/wcstoimax.texi: Likewise.
72528         * doc/posix-functions/wcstok.texi: Likewise.
72529         * doc/posix-functions/wcstold.texi: Likewise.
72530         * doc/posix-functions/wcstoll.texi: Likewise.
72531         * doc/posix-functions/wcstol.texi: Likewise.
72532         * doc/posix-functions/wcstombs.texi: Likewise.
72533         * doc/posix-functions/wcstoull.texi: Likewise.
72534         * doc/posix-functions/wcstoul.texi: Likewise.
72535         * doc/posix-functions/wcstoumax.texi: Likewise.
72536         * doc/posix-functions/wcswidth.texi: Likewise.
72537         * doc/posix-functions/wcsxfrm.texi: Likewise.
72538         * doc/posix-functions/wctob.texi: Likewise.
72539         * doc/posix-functions/wctomb.texi: Likewise.
72540         * doc/posix-functions/wctrans.texi: Likewise.
72541         * doc/posix-functions/wctype.texi: Likewise.
72542         * doc/posix-functions/wcwidth.texi: Likewise.
72543         * doc/posix-functions/wmemchr.texi: Likewise.
72544         * doc/posix-functions/wmemcmp.texi: Likewise.
72545         * doc/posix-functions/wmemcpy.texi: Likewise.
72546         * doc/posix-functions/wmemmove.texi: Likewise.
72547         * doc/posix-functions/wmemset.texi: Likewise.
72548         * doc/posix-functions/wprintf.texi: Likewise.
72549         * doc/posix-functions/wscanf.texi: Likewise.
72551 2008-12-21  Bruno Haible  <bruno@clisp.org>
72553         Update doc for HP-UX 11.11.
72554         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72555         in HP-UX version 11.00, not in all versions of HP-UX 11.
72556         * doc/posix-functions/fwide.texi: Likewise.
72557         * doc/posix-functions/fwprintf.texi: Likewise.
72558         * doc/posix-functions/fwscanf.texi: Likewise.
72559         * doc/posix-functions/inet_ntop.texi: Likewise.
72560         * doc/posix-functions/inet_pton.texi: Likewise.
72561         * doc/posix-functions/mbrlen.texi: Likewise.
72562         * doc/posix-functions/mbrtowc.texi: Likewise.
72563         * doc/posix-functions/mbsinit.texi: Likewise.
72564         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72565         * doc/posix-functions/swprintf.texi: Likewise.
72566         * doc/posix-functions/swscanf.texi: Likewise.
72567         * doc/posix-functions/towctrans.texi: Likewise.
72568         * doc/posix-functions/vfwprintf.texi: Likewise.
72569         * doc/posix-functions/vswprintf.texi: Likewise.
72570         * doc/posix-functions/vwprintf.texi: Likewise.
72571         * doc/posix-functions/wcrtomb.texi: Likewise.
72572         * doc/posix-functions/wcsrtombs.texi: Likewise.
72573         * doc/posix-functions/wcsstr.texi: Likewise.
72574         * doc/posix-functions/wctob.texi: Likewise.
72575         * doc/posix-functions/wctrans.texi: Likewise.
72576         * doc/posix-functions/wmemchr.texi: Likewise.
72577         * doc/posix-functions/wmemcmp.texi: Likewise.
72578         * doc/posix-functions/wmemcpy.texi: Likewise.
72579         * doc/posix-functions/wmemmove.texi: Likewise.
72580         * doc/posix-functions/wmemset.texi: Likewise.
72581         * doc/posix-functions/wprintf.texi: Likewise.
72582         * doc/posix-functions/wscanf.texi: Likewise.
72584 2008-12-21  Bruno Haible  <bruno@clisp.org>
72586         Work around a portability problem.
72587         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72588         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72590 2008-12-20  Bruno Haible  <bruno@clisp.org>
72592         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72593         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72594         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72596         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72598         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72599         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72600         set.
72601         (GNULIB_defined_mbstate_t): New macro.
72602         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72603         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72604         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72605         reuses the system's mbrtowc function but works around the bugs.
72606         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72607         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72608         macros.
72609         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72610         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72611         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72612         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72613         REPLACE_MBSINIT if mbsinit needs to be overridden.
72614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72615         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72616         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72617         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72618         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72619         m4/locale-zh.m4.
72620         (Depends): Add mbsinit.
72621         * modules/mbsinit (Depends): Add mbrtowc.
72622         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72624 2008-12-20  Bruno Haible  <bruno@clisp.org>
72626         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72627         so that there are no conversion errors on AIX.
72628         * tests/test-mbsrtowcs.c (main): LIkewise.
72630 2008-12-20  Bruno Haible  <bruno@clisp.org>
72632         Work around wctob bug on Solaris <= 9.
72633         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72634         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72636         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72637         * modules/wctob (Files): Add m4/locale-fr.m4.
72638         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72640 2008-12-20  Bruno Haible  <bruno@clisp.org>
72642         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72643         /dev/null.
72644         * tests/test-select-in.sh: Likewise.
72645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72647 2008-12-20  Bruno Haible  <bruno@clisp.org>
72649         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72650         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72651         Cygwin 1.5.x.
72653 2008-12-20  Bruno Haible  <bruno@clisp.org>
72655         Ensure mbstate_t is defined on HP-UX 11.11.
72656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72657         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72658         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72659         AC_USE_SYSTEM_EXTENSIONS.
72660         * modules/fnmatch (Depends-on): Add extensions.
72661         * modules/mbrlen (Depends-on): Likewise.
72662         * modules/mbrtowc (Depends-on): Likewise.
72663         * modules/mbsinit (Depends-on): Likewise.
72664         * modules/mbsrtowcs (Depends-on): Likewise.
72665         * modules/mbswidth (Depends-on): Likewise.
72666         * modules/quotearg (Depends-on): Likewise.
72667         * modules/strftime (Depends-on): Likewise.
72669 2008-12-20  Bruno Haible  <bruno@clisp.org>
72671         Ensure wctob is declared on IRIX 6.5.
72672         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72673         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72674         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72676         of HAVE_WCTOB.
72677         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72678         HAVE_WCTOB.
72679         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72681 2008-12-19  Bruno Haible  <bruno@clisp.org>
72683         * modules/mbsrtowcs-tests: New file.
72684         * tests/test-mbsrtowcs1.sh: New file.
72685         * tests/test-mbsrtowcs2.sh: New file.
72686         * tests/test-mbsrtowcs3.sh: New file.
72687         * tests/test-mbsrtowcs4.sh: New file.
72688         * tests/test-mbsrtowcs.c: New file.
72690         New module 'mbsrtowcs'.
72691         * lib/wchar.in.h (mbsrtowcs): New declaration.
72692         * lib/mbsrtowcs.c: New file.
72693         * m4/mbsrtowcs.m4: New file.
72694         * modules/mbsrtowcs: New file.
72695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72696         HAVE_MBSRTOWCS.
72697         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72698         HAVE_MBSRTOWCS.
72699         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72701 2008-12-19  Bruno Haible  <bruno@clisp.org>
72703         New module 'mbrlen'.
72704         * lib/wchar.in.h (mbrlen): New declaration.
72705         * lib/mbrlen.c: New file.
72706         * m4/mbrlen.m4: New file.
72707         * modules/mbrlen: New file.
72708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72709         HAVE_MBRLEN.
72710         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72711         HAVE_MBRLEN.
72712         * doc/posix-functions/mbrlen.texi: Document the new module.
72714 2008-12-19  Bruno Haible  <bruno@clisp.org>
72716         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72717         * modules/mbrtowc (Depends-on): Add verify.
72718         Suggested by Paul Eggert.
72720 2008-12-18  Bruno Haible  <bruno@clisp.org>
72722         * modules/mbsinit-tests: New file.
72723         * tests/test-mbsinit.sh: New file.
72724         * tests/test-mbsinit.c: New file.
72726 2008-12-18  Bruno Haible  <bruno@clisp.org>
72728         * modules/mbrtowc-tests: New file.
72729         * tests/test-mbrtowc1.sh: New file.
72730         * tests/test-mbrtowc2.sh: New file.
72731         * tests/test-mbrtowc3.sh: New file.
72732         * tests/test-mbrtowc4.sh: New file.
72733         * tests/test-mbrtowc.c: New file.
72735         New module 'mbrtowc'.
72736         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72737         mbsinit and mbrtowc.
72738         (mbrtowc): New declaration.
72739         * lib/mbrtowc.c: New file.
72740         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72741         * modules/mbrtowc: New file.
72742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72743         HAVE_MBRTOWC.
72744         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72745         HAVE_MBRTOWC.
72746         * doc/posix-functions/mbrtowc.texi: Document the new module.
72748 2008-12-18  Bruno Haible  <bruno@clisp.org>
72750         New module 'wctob'.
72751         * lib/wchar.in.h (wctob): New declaration.
72752         * lib/wctob.c: New file.
72753         * m4/wctob.m4: New file.
72754         * modules/wctob: New file.
72755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72756         HAVE_WCTOB.
72757         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72758         * doc/posix-functions/wctob.texi: Document the new module.
72760 2008-12-18  Bruno Haible  <bruno@clisp.org>
72762         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72763         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72765 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72767         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72768         G. Christensen" <tgc@jupiterrise.com>.
72770         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72771         G. Christensen" <tgc@jupiterrise.com>.
72773         * lib/flock.c: Need to include string.h.  Reported by "Tom
72774         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72775         <ebb9@byu.net>.
72777 2008-12-18  Bruno Haible  <bruno@clisp.org>
72779         * m4/locale-ja.m4: New file, from GNU gettext.
72781 2008-12-17  Bruno Haible  <bruno@clisp.org>
72783         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72784         Suggested by Eric Blake.
72786 2008-12-17  Bruno Haible  <bruno@clisp.org>
72788         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72790 2008-12-17  Bruno Haible  <bruno@clisp.org>
72792         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72793         * modules/mbsinit (Depends-on): Add verify.
72794         Suggested by Paul Eggert.
72796 2008-12-17  Bruno Haible  <bruno@clisp.org>
72798         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72799         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72800         gl_FUNC_MBRTOWC.
72801         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72802         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72803         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72804         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72805         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72806         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72807         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72808         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72809         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72810         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72811         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72812         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72813         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72814         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72815         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72816         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72817         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72818         * modules/trim (configure.ac): Likewise.
72820 2008-12-17  Bruno Haible  <bruno@clisp.org>
72822         * modules/btowc-tests: New file.
72823         * tests/test-btowc1.sh: New file.
72824         * tests/test-btowc2.sh: New file.
72825         * tests/test-btowc.c: New file.
72827         New module 'btowc'.
72828         * lib/wchar.in.h (btowc): New declaration.
72829         * lib/btowc.c: New file.
72830         * m4/btowc.m4: New file.
72831         * modules/btowc: New file.
72832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72833         HAVE_BTOWC.
72834         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72835         * doc/posix-functions/btowc.texi: Document the new module.
72837 2008-12-17  Bruno Haible  <bruno@clisp.org>
72839         New module 'mbsinit'.
72840         * lib/wchar.in.h (mbsinit): New declaration.
72841         * lib/mbsinit.c: New file.
72842         * m4/mbsinit.m4: New file.
72843         * modules/mbsinit: New file.
72844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72845         HAVE_MBSINIT.
72846         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72847         HAVE_MBSINIT.
72848         * doc/posix-functions/mbsinit.texi: Document the new module.
72850 2008-12-16  Bruno Haible  <bruno@clisp.org>
72852         * lib/unistd.in.h: Add comment.
72853         * tests/test-environ.c: Don't include <stdlib.h>.
72855 2008-12-16  Bruno Haible  <bruno@clisp.org>
72857         * lib/parse-duration.h (parse_duration): Document return value
72858         convention.
72859         * lib/parse-duration.c: Include specification header first. Add
72860         comments.
72861         (_): Remove macro.
72862         (parse_year_month_day, parse_hour_minute_second): Move side effects
72863         outside of strchr call.
72864         (parse_non_iso8601): Move side effects outside of isspace call.
72865         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72866         call.
72868 2008-12-16  Bruno Haible  <bruno@clisp.org>
72870         * tests/test-parse-duration.sh: Produce no output when the test
72871         succeeds.
72873 2008-12-16  Bruno Haible  <bruno@clisp.org>
72875         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72876         expressions.
72878 2008-12-15  Bruno Haible  <bruno@clisp.org>
72880         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72881         * doc/glibc-functions/flistxattr.texi: Likewise.
72882         * doc/glibc-functions/fopencookie.texi: Likewise.
72883         * doc/glibc-functions/fremovexattr.texi: Likewise.
72884         * doc/glibc-functions/fsetxattr.texi: Likewise.
72885         * doc/glibc-functions/getxattr.texi: Likewise.
72886         * doc/glibc-functions/lgetxattr.texi: Likewise.
72887         * doc/glibc-functions/listxattr.texi: Likewise.
72888         * doc/glibc-functions/llistxattr.texi: Likewise.
72889         * doc/glibc-functions/lremovexattr.texi: Likewise.
72890         * doc/glibc-functions/lsetxattr.texi: Likewise.
72891         * doc/glibc-functions/removexattr.texi: Likewise.
72892         * doc/glibc-functions/setxattr.texi: Likewise.
72893         * doc/posix-functions/open_memstream.texi: Likewise.
72895 2008-12-15  Eric Blake  <ebb9@byu.net>
72897         Update doc for cygwin 1.7.
72898         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72899         functions.
72900         * doc/posix-functions/fchmodat.texi: Likewise.
72901         * doc/posix-functions/fchownat.texi: Likewise.
72902         * doc/posix-functions/fdopendir.texi: Likewise.
72903         * doc/posix-functions/fmemopen.texi: Likewise.
72904         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72905         * doc/posix-functions/fstatat.texi: Likewise.
72906         * doc/posix-functions/futimens.texi: Likewise.
72907         * doc/posix-functions/gai_strerror.texi: Likewise.
72908         * doc/posix-functions/getaddrinfo.texi: Likewise.
72909         * doc/posix-functions/getnameinfo.texi: Likewise.
72910         * doc/posix-functions/if_freenameindex.texi: Likewise.
72911         * doc/posix-functions/if_indextoname.texi: Likewise.
72912         * doc/posix-functions/if_nameindex.texi: Likewise.
72913         * doc/posix-functions/if_nametoindex.texi: Likewise.
72914         * doc/posix-functions/insque.texi: Likewise.
72915         * doc/posix-functions/linkat.texi: Likewise.
72916         * doc/posix-functions/llrint.texi: Likewise.
72917         * doc/posix-functions/llrintf.texi: Likewise.
72918         * doc/posix-functions/llrintl.texi: Likewise.
72919         * doc/posix-functions/lockf.texi: Likewise.
72920         * doc/posix-functions/lrintl.texi: Likewise.
72921         * doc/posix-functions/mkdirat.texi: Likewise.
72922         * doc/posix-functions/mkfifoat.texi: Likewise.
72923         * doc/posix-functions/mknodat.texi: Likewise.
72924         * doc/posix-functions/mq_close.texi: Likewise.
72925         * doc/posix-functions/mq_getattr.texi: Likewise.
72926         * doc/posix-functions/mq_notify.texi: Likewise.
72927         * doc/posix-functions/mq_open.texi: Likewise.
72928         * doc/posix-functions/mq_receive.texi: Likewise.
72929         * doc/posix-functions/mq_send.texi: Likewise.
72930         * doc/posix-functions/mq_setattr.texi: Likewise.
72931         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72932         * doc/posix-functions/mq_timedsend.texi: Likewise.
72933         * doc/posix-functions/mq_unlink.texi: Likewise.
72934         * doc/posix-functions/open_memstream.texi: Likewise.
72935         * doc/posix-functions/openat.texi: Likewise.
72936         * doc/posix-functions/posix_fadvise.texi: Likewise.
72937         * doc/posix-functions/posix_fallocate.texi: Likewise.
72938         * doc/posix-functions/posix_madvise.texi: Likewise.
72939         * doc/posix-functions/posix_memalign.texi: Likewise.
72940         * doc/posix-functions/posix_openpt.texi: Likewise.
72941         * doc/posix-functions/readlinkat.texi: Likewise.
72942         * doc/posix-functions/remque.texi: Likewise.
72943         * doc/posix-functions/renameat.texi: Likewise.
72944         * doc/posix-functions/rintl.texi: Likewise.
72945         * doc/posix-functions/sem_unlink.texi: Likewise.
72946         * doc/posix-functions/shm_open.texi: Likewise.
72947         * doc/posix-functions/shm_unlink.texi: Likewise.
72948         * doc/posix-functions/signgam.texi: Likewise.
72949         * doc/posix-functions/sigset.texi: Likewise.
72950         * doc/posix-functions/stpcpy.texi: Likewise.
72951         * doc/posix-functions/stpncpy.texi: Likewise.
72952         * doc/posix-functions/strerror.texi: Likewise.
72953         * doc/posix-functions/strtod.texi: Likewise.
72954         * doc/posix-functions/symlinkat.texi: Likewise.
72955         * doc/posix-functions/unlinkat.texi: Likewise.
72956         * doc/posix-functions/utimensat.texi: Likewise.
72957         * doc/glibc-functions/bindresvport.texi: Likewise.
72958         * doc/glibc-functions/dn_expand.texi: Likewise.
72959         * doc/glibc-functions/exp10.texi: Likewise.
72960         * doc/glibc-functions/exp10f.texi: Likewise.
72961         * doc/glibc-functions/fgetxattr.texi: Likewise.
72962         * doc/glibc-functions/flistxattr.texi: Likewise.
72963         * doc/glibc-functions/fopencookie.texi: Likewise.
72964         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72965         * doc/glibc-functions/fremovexattr.texi: Likewise.
72966         * doc/glibc-functions/fsetxattr.texi: Likewise.
72967         * doc/glibc-functions/getifaddrs.texi: Likewise.
72968         * doc/glibc-functions/getxattr.texi: Likewise.
72969         * doc/glibc-functions/lgetxattr.texi: Likewise.
72970         * doc/glibc-functions/listxattr.texi: Likewise.
72971         * doc/glibc-functions/llistxattr.texi: Likewise.
72972         * doc/glibc-functions/lremovexattr.texi: Likewise.
72973         * doc/glibc-functions/lsetxattr.texi: Likewise.
72974         * doc/glibc-functions/pow10.texi: Likewise.
72975         * doc/glibc-functions/pow10f.texi: Likewise.
72976         * doc/glibc-functions/rcmd_af.texi: Likewise.
72977         * doc/glibc-functions/removexattr.texi: Likewise.
72978         * doc/glibc-functions/res_init.texi: Likewise.
72979         * doc/glibc-functions/res_mkquery.texi: Likewise.
72980         * doc/glibc-functions/res_query.texi: Likewise.
72981         * doc/glibc-functions/res_querydomain.texi: Likewise.
72982         * doc/glibc-functions/res_send.texi: Likewise.
72983         * doc/glibc-functions/rresvport_af.texi: Likewise.
72984         * doc/glibc-functions/setxattr.texi: Likewise.
72985         * doc/glibc-functions/strcasestr.texi: Likewise.
72987 2008-12-15  Bruno Haible  <bruno@clisp.org>
72989         Fix compilation error on OSF/1 4.0.
72990         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72991         <sys/time.h>, simply delegate to the system header.
72992         Reported by Daniel Richard G. <oss@teragram.com>.
72994 2008-12-15  Bruno Haible  <bruno@clisp.org>
72996         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72997         * doc/posix-functions/fchmodat.texi: Likewise.
72998         * doc/posix-functions/fchownat.texi: Likewise.
72999         * doc/posix-functions/fdopendir.texi: Likewise.
73000         * doc/posix-functions/fstatat.texi: Likewise.
73001         * doc/posix-functions/mkdirat.texi: Likewise.
73002         * doc/posix-functions/unlinkat.texi: Likewise.
73004 2008-12-14  Bruno Haible  <bruno@clisp.org>
73006         Update doc for POSIX:2008.
73007         * doc/posix-functions/faccessat.texi: New file.
73008         * doc/posix-functions/fchmodat.texi: New file.
73009         * doc/posix-functions/fchownat.texi: New file.
73010         * doc/posix-functions/fdopendir.texi: New file.
73011         * doc/posix-functions/fstatat.texi: New file.
73012         * doc/posix-functions/futimens.texi: New file.
73013         * doc/posix-functions/linkat.texi: New file.
73014         * doc/posix-functions/mkdirat.texi: New file.
73015         * doc/posix-functions/mkfifoat.texi: New file.
73016         * doc/posix-functions/mknodat.texi: New file.
73017         * doc/posix-functions/open_wmemstream.texi: New file.
73018         * doc/posix-functions/openat.texi: New file.
73019         * doc/posix-functions/psiginfo.texi: New file.
73020         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
73021         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
73022         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
73023         * doc/posix-functions/readlinkat.texi: New file.
73024         * doc/posix-functions/renameat.texi: New file.
73025         * doc/posix-functions/strerror_l.texi: New file.
73026         * doc/posix-functions/symlinkat.texi: New file.
73027         * doc/posix-functions/unlinkat.texi: New file.
73028         * doc/posix-functions/utimensat.texi: New file.
73029         * doc/gnulib.texi (Function Substitutes): Add these subsections.
73031 2008-12-14  Bruno Haible  <bruno@clisp.org>
73033         Update doc for POSIX:2008.
73034         * doc/posix-functions/alphasort.texi: Renamed from
73035         doc/glibc-functions/alphasort.texi.
73036         * doc/posix-functions/dirfd.texi: Renamed from
73037         doc/glibc-functions/dirfd.texi.
73038         * doc/posix-functions/dprintf.texi: Renamed from
73039         doc/glibc-functions/dprintf.texi.
73040         * doc/posix-functions/duplocale.texi: Renamed from
73041         doc/glibc-functions/duplocale.texi.
73042         * doc/posix-functions/fexecve.texi: Renamed from
73043         doc/glibc-functions/fexecve.texi.
73044         * doc/posix-functions/fmemopen.texi: Renamed from
73045         doc/glibc-functions/fmemopen.texi.
73046         * doc/posix-functions/freelocale.texi: Renamed from
73047         doc/glibc-functions/freelocale.texi.
73048         * doc/posix-functions/getdate_err.texi: Renamed from
73049         doc/glibc-functions/getdate_err.texi.
73050         * doc/posix-functions/isalnum_l.texi: Renamed from
73051         doc/glibc-functions/isalnum_l.texi.
73052         * doc/posix-functions/isalpha_l.texi: Renamed from
73053         doc/glibc-functions/isalpha_l.texi.
73054         * doc/posix-functions/isblank_l.texi: Renamed from
73055         doc/glibc-functions/isblank_l.texi.
73056         * doc/posix-functions/iscntrl_l.texi: Renamed from
73057         doc/glibc-functions/iscntrl_l.texi.
73058         * doc/posix-functions/isdigit_l.texi: Renamed from
73059         doc/glibc-functions/isdigit_l.texi.
73060         * doc/posix-functions/isgraph_l.texi: Renamed from
73061         doc/glibc-functions/isgraph_l.texi.
73062         * doc/posix-functions/islower_l.texi: Renamed from
73063         doc/glibc-functions/islower_l.texi.
73064         * doc/posix-functions/isprint_l.texi: Renamed from
73065         doc/glibc-functions/isprint_l.texi.
73066         * doc/posix-functions/ispunct_l.texi: Renamed from
73067         doc/glibc-functions/ispunct_l.texi.
73068         * doc/posix-functions/isspace_l.texi: Renamed from
73069         doc/glibc-functions/isspace_l.texi.
73070         * doc/posix-functions/isupper_l.texi: Renamed from
73071         doc/glibc-functions/isupper_l.texi.
73072         * doc/posix-functions/iswalnum_l.texi: Renamed from
73073         doc/glibc-functions/iswalnum_l.texi.
73074         * doc/posix-functions/iswalpha_l.texi: Renamed from
73075         doc/glibc-functions/iswalpha_l.texi.
73076         * doc/posix-functions/iswblank_l.texi: Renamed from
73077         doc/glibc-functions/iswblank_l.texi.
73078         * doc/posix-functions/iswcntrl_l.texi: Renamed from
73079         doc/glibc-functions/iswcntrl_l.texi.
73080         * doc/posix-functions/iswctype_l.texi: Renamed from
73081         doc/glibc-functions/iswctype_l.texi.
73082         * doc/posix-functions/iswdigit_l.texi: Renamed from
73083         doc/glibc-functions/iswdigit_l.texi.
73084         * doc/posix-functions/iswgraph_l.texi: Renamed from
73085         doc/glibc-functions/iswgraph_l.texi.
73086         * doc/posix-functions/iswlower_l.texi: Renamed from
73087         doc/glibc-functions/iswlower_l.texi.
73088         * doc/posix-functions/iswprint_l.texi: Renamed from
73089         doc/glibc-functions/iswprint_l.texi.
73090         * doc/posix-functions/iswpunct_l.texi: Renamed from
73091         doc/glibc-functions/iswpunct_l.texi.
73092         * doc/posix-functions/iswspace_l.texi: Renamed from
73093         doc/glibc-functions/iswspace_l.texi.
73094         * doc/posix-functions/iswupper_l.texi: Renamed from
73095         doc/glibc-functions/iswupper_l.texi.
73096         * doc/posix-functions/iswxdigit_l.texi: Renamed from
73097         doc/glibc-functions/iswxdigit_l.texi.
73098         * doc/posix-functions/isxdigit_l.texi: Renamed from
73099         doc/glibc-functions/isxdigit_l.texi.
73100         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
73101         doc/glibc-functions/mbsnrtowcs.texi.
73102         * doc/posix-functions/mkdtemp.texi: Renamed from
73103         doc/glibc-functions/mkdtemp.texi.
73104         * doc/posix-functions/newlocale.texi: Renamed from
73105         doc/glibc-functions/newlocale.texi.
73106         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
73107         doc/glibc-functions/nl_langinfo_l.texi.
73108         * doc/posix-functions/open_memstream.texi: Renamed from
73109         doc/glibc-functions/open_memstream.texi.
73110         * doc/posix-functions/opterr.texi: Renamed from
73111         doc/glibc-functions/opterr.texi.
73112         * doc/posix-functions/optind.texi: Renamed from
73113         doc/glibc-functions/optind.texi.
73114         * doc/posix-functions/optopt.texi: Renamed from
73115         doc/glibc-functions/optopt.texi.
73116         * doc/posix-functions/psignal.texi: Renamed from
73117         doc/glibc-functions/psignal.texi.
73118         * doc/posix-functions/scandir.texi: Renamed from
73119         doc/glibc-functions/scandir.texi.
73120         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
73121         doc/glibc-functions/sched_get_priority_min.texi.
73122         * doc/posix-functions/signgam.texi: Renamed from
73123         doc/glibc-functions/signgam.texi.
73124         * doc/posix-functions/stpcpy.texi: Renamed from
73125         doc/glibc-functions/stpcpy.texi.
73126         * doc/posix-functions/stpncpy.texi: Renamed from
73127         doc/glibc-functions/stpncpy.texi.
73128         * doc/posix-functions/strcasecmp_l.texi: Renamed from
73129         doc/glibc-functions/strcasecmp_l.texi.
73130         * doc/posix-functions/strcoll_l.texi: Renamed from
73131         doc/glibc-functions/strcoll_l.texi.
73132         * doc/posix-functions/strfmon_l.texi: Renamed from
73133         doc/glibc-functions/strfmon_l.texi.
73134         * doc/posix-functions/strftime_l.texi: Renamed from
73135         doc/glibc-functions/strftime_l.texi.
73136         * doc/posix-functions/strncasecmp_l.texi: Renamed from
73137         doc/glibc-functions/strncasecmp_l.texi.
73138         * doc/posix-functions/strndup.texi: Renamed from
73139         doc/glibc-functions/strndup.texi.
73140         * doc/posix-functions/strnlen.texi: Renamed from
73141         doc/glibc-functions/strnlen.texi.
73142         * doc/posix-functions/strsignal.texi: Renamed from
73143         doc/glibc-functions/strsignal.texi.
73144         * doc/posix-functions/strxfrm_l.texi: Renamed from
73145         doc/glibc-functions/strxfrm_l.texi.
73146         * doc/posix-functions/timer_gettime.texi: Renamed from
73147         doc/glibc-functions/timer_gettime.texi.
73148         * doc/posix-functions/tolower_l.texi: Renamed from
73149         doc/glibc-functions/tolower_l.texi.
73150         * doc/posix-functions/toupper_l.texi: Renamed from
73151         doc/glibc-functions/toupper_l.texi.
73152         * doc/posix-functions/towctrans_l.texi: Renamed from
73153         doc/glibc-functions/towctrans_l.texi.
73154         * doc/posix-functions/towlower_l.texi: Renamed from
73155         doc/glibc-functions/towlower_l.texi.
73156         * doc/posix-functions/towupper_l.texi: Renamed from
73157         doc/glibc-functions/towupper_l.texi.
73158         * doc/posix-functions/uselocale.texi: Renamed from
73159         doc/glibc-functions/uselocale.texi.
73160         * doc/posix-functions/vdprintf.texi: Renamed from
73161         doc/glibc-functions/vdprintf.texi.
73162         * doc/posix-functions/wcpcpy.texi:
73163         Renamed from doc/glibc-functions/wcpcpy.texi.
73164         * doc/posix-functions/wcpncpy.texi: Renamed from
73165         doc/glibc-functions/wcpncpy.texi.
73166         * doc/posix-functions/wcscasecmp.texi: Renamed from
73167         doc/glibc-functions/wcscasecmp.texi.
73168         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
73169         doc/glibc-functions/wcscasecmp_l.texi.
73170         * doc/posix-functions/wcscoll_l.texi: Renamed from
73171         doc/glibc-functions/wcscoll_l.texi.
73172         * doc/posix-functions/wcsdup.texi: Renamed from
73173         doc/glibc-functions/wcsdup.texi.
73174         * doc/posix-functions/wcsncasecmp.texi: Renamed from
73175         doc/glibc-functions/wcsncasecmp.texi.
73176         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
73177         doc/glibc-functions/wcsncasecmp_l.texi.
73178         * doc/posix-functions/wcsnlen.texi: Renamed from
73179         doc/glibc-functions/wcsnlen.texi.
73180         * doc/posix-functions/wcsnrtombs.texi: Renamed from
73181         doc/glibc-functions/wcsnrtombs.texi.
73182         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
73183         doc/glibc-functions/wcsxfrm_l.texi.
73184         * doc/posix-functions/wctrans_l.texi: Renamed from
73185         doc/glibc-functions/wctrans_l.texi.
73186         * doc/posix-functions/wctype_l.texi: Renamed from
73187         doc/glibc-functions/wctype_l.texi.
73188         * doc/gnulib.texi (Function Substitutes): Add these subsections.
73189         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
73190         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
73191         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
73192         these subsections.
73193         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
73194         Remove sections.
73196 2008-12-14  Bruno Haible  <bruno@clisp.org>
73198         Update doc for POSIX:2008.
73199         * doc/posix-functions/*.texi: Update URL of POSIX specification.
73201 2008-12-14  Bruno Haible  <bruno@clisp.org>
73203         Update doc for POSIX:2008.
73204         * doc/pastposix-functions/bcmp.texi: Renamed from
73205         doc/posix-functions/bcmp.texi.
73206         * doc/pastposix-functions/bcopy.texi: Renamed from
73207         doc/posix-functions/bcopy.texi.
73208         * doc/pastposix-functions/bsd_signal.texi: Renamed from
73209         doc/posix-functions/bsd_signal.texi.
73210         * doc/pastposix-functions/bzero.texi: Renamed from
73211         doc/posix-functions/bzero.texi.
73212         * doc/pastposix-functions/ecvt.texi: Renamed from
73213         doc/posix-functions/ecvt.texi.
73214         * doc/pastposix-functions/fcvt.texi: Renamed from
73215         doc/posix-functions/fcvt.texi.
73216         * doc/pastposix-functions/ftime.texi: Renamed from
73217         doc/posix-functions/ftime.texi.
73218         * doc/pastposix-functions/gcvt.texi: Renamed from
73219         doc/posix-functions/gcvt.texi.
73220         * doc/pastposix-functions/getcontext.texi: Renamed from
73221         doc/posix-functions/getcontext.texi.
73222         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
73223         doc/posix-functions/gethostbyaddr.texi.
73224         * doc/pastposix-functions/gethostbyname.texi: Renamed from
73225         doc/posix-functions/gethostbyname.texi.
73226         * doc/pastposix-functions/getwd.texi: Renamed from
73227         doc/posix-functions/getwd.texi.
73228         * doc/pastposix-functions/h_errno.texi: Renamed from
73229         doc/posix-functions/h_errno.texi.
73230         * doc/pastposix-functions/index.texi: Renamed from
73231         doc/posix-functions/index.texi.
73232         * doc/pastposix-functions/makecontext.texi: Renamed from
73233         doc/posix-functions/makecontext.texi.
73234         * doc/pastposix-functions/mktemp.texi: Renamed from
73235         doc/posix-functions/mktemp.texi.
73236         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
73237         doc/posix-functions/pthread_attr_getstackaddr.texi.
73238         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
73239         doc/posix-functions/pthread_attr_setstackaddr.texi.
73240         * doc/pastposix-functions/rindex.texi: Renamed from
73241         doc/posix-functions/rindex.texi.
73242         * doc/pastposix-functions/scalb.texi: Renamed from
73243         doc/posix-functions/scalb.texi.
73244         * doc/pastposix-functions/setcontext.texi: Renamed from
73245         doc/posix-functions/setcontext.texi.
73246         * doc/pastposix-functions/swapcontext.texi: Renamed from
73247         doc/posix-functions/swapcontext.texi.
73248         * doc/pastposix-functions/ualarm.texi: Renamed from
73249         doc/posix-functions/ualarm.texi.
73250         * doc/pastposix-functions/usleep.texi: Renamed from
73251         doc/posix-functions/usleep.texi.
73252         * doc/pastposix-functions/vfork.texi: Renamed from
73253         doc/posix-functions/vfork.texi.
73254         * doc/pastposix-functions/wcswcs.texi: Renamed from
73255         doc/posix-functions/wcswcs.texi.
73256         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
73257         (Function Substitutes): Update.
73259 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73261         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
73262         m4/strerror.m4.
73264 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73265             Bruno Haible  <bruno@clisp.org>
73267         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
73269 2008-12-13  Bruno Haible  <bruno@clisp.org>
73271         * modules/strtoull (Depends-on): Remove unistd.
73273 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73275         * modules/strtoull (Depends-on): Add stdlib.
73277 2008-12-11  Simon Josefsson  <simon@josefsson.org>
73279         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
73281 2008-12-10  Jim Meyering  <meyering@redhat.com>
73283         gl_ASSERT: don't say assertions are disabled when they're not
73284         * m4/assert.m4 (gl_ASSERT): Do not make configure report
73285         "checking whether to enable assertions... no", when they are in
73286         fact enabled.  This is solely a bug in the output of configure.
73287         In spite of saying "no", NDEBUG was not defined in that case.
73288         Also, as noted by Eric Blake, leave assertions enabled upon
73289         --enable-assert=INVALID.
73291 2008-12-10  Bruno Haible  <bruno@clisp.org>
73293         Change MODULES.html to refer to POSIX:2008 where possible.
73294         * MODULES.html.sh (POSIX2008_URL): New variable.
73295         (posix_headers): Remove sys/timeb, ucontext.
73296         (posix2001_headers): New variable.
73297         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
73298         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
73299         index, makecontext, mktemp, pthread_attr_getstackaddr,
73300         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
73301         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
73302         (posix2001_functions): New variable.
73303         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
73304         otherwise.
73306 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73308         add missing include to parse-duration.c
73309         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
73310         * modules/parse-duration (Depends-on): Add xalloc.
73312         fix sed script reading maint.mk
73313         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
73314         (syntax-check-rules): Use it.
73316 2008-12-09  Bruno Haible  <bruno@clisp.org>
73318         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
73319         MacOS X 10.4/PowerPC.
73320         Reported by Simon Josefsson.
73322 2008-12-08  Jim Meyering  <meyering@redhat.com>
73324         work around mingw's lack of some S_IF definitions
73325         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
73326         Reported by Simon Josefsson.
73328 2008-12-08  Bruno Haible  <bruno@clisp.org>
73330         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
73331         applied to variables. Needed on MacOS X 10.4/PowerPC.
73332         Reported by Simon Josefsson.
73334 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
73335         and Eric Blake  <ebb9@byu.net>
73337         assert: honor --enable-assert
73338         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
73339         order to honor --enable-assert, rather than treating it as a
73340         synonym for --disable-assert.
73342 2008-12-08  Jim Meyering  <meyering@redhat.com>
73344         * lib/posixtm.c: Remove now-useless declaration of mktime.
73346         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
73348 2008-12-07  Bruno Haible  <bruno@clisp.org>
73350         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
73351         test_once): Mark functions as static.
73352         * tests/test-tls.c (test_tls): Likewise.
73354 2008-12-07  Bruno Haible  <bruno@clisp.org>
73356         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73357         iconv_register_autodetect.
73359 2008-12-07  Jim Meyering  <meyering@redhat.com>
73361         posixtm.c: avoid a warning
73362         * lib/posixtm.c (posixtime): Don't initialize tm0.
73363         It's no longer needed to placate gcc4's -Wuninitialized,
73364         and the attempt to placate would elicit a new warning.
73366         unicodeio.c: mark unused parameters
73367         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73368         (fallback_failure_callback): Likewise.
73370 2008-12-07  Bruno Haible  <bruno@clisp.org>
73372         * gnulib-tool (func_create_testdir): When building the tests
73373         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73374         Reported by Simon Josefsson.
73376 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73378         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73380 2008-12-06  Bruno Haible  <bruno@clisp.org>
73382         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73383         Suggested by Eric Blake.
73385 2008-12-06  Bruno Haible  <bruno@clisp.org>
73387         Fix a c-stack test failure on MacOS X.
73388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73389         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73390         handler for SIGBUS as well.
73391         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73392         install a signal handler for SIGBUS as well.
73393         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73395 2008-12-06  Bruno Haible  <bruno@clisp.org>
73397         Advocacy documentation.
73398         * doc/gnulib-intro.texi (Benefits): New section.
73399         * doc/gnulib.texi: Update.
73401 2008-12-06  Bruno Haible  <bruno@clisp.org>
73403         Document the 'manywarnings' module.
73404         * doc/manywarnings.texi: New file.
73405         * doc/gnulib.texi: Include it.
73407 2008-12-05  Eric Blake  <ebb9@byu.net>
73409         tests: silence some gcc warnings
73410         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73411         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73412         type mismatches.
73414 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73415             Bruno Haible  <bruno@clisp.org>
73417         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73419 2008-11-29  Jim Meyering  <meyering@redhat.com>
73421         unicodeio.c: mark unused parameters
73422         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73423         (fallback_failure_callback): Likewise.
73425         fts: fix a thinko
73426         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73427         (set_stat_type): Return S_IF*-valued "type" directly.
73428         Prompted by James Youngman's spotting a related bug.
73429         Confirmed by further testing through find.
73431         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73432         * lib/fts.c (D_TYPE): Define.
73433         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73434         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73435         (s_ifmt_shift_bits): New function.
73436         (set_stat_type): New function.
73437         (fts_build): When not calling fts_stat, call set_stat_type
73438         to propagate dirent.d_type info to fts_read caller.
73439         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73440         fts_statp->st_mode type information may be valid.
73442 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73444         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73445         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73446         <sds@gnu.org>.
73448 2008-11-20  Bruno Haible  <bruno@clisp.org>
73450         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73451         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73452         INCLUDE_NEXT.
73453         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73454         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73455         * modules/math (Makefile.am): Substitute
73456         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73459 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73460             Bruno Haible  <bruno@clisp.org>
73462         * lib/stdint.in.h: Define all type macros so that their expansion is
73463         a single typedef'ed token. Fixes a compilation failure in Boost which
73464         does "using ::int8_t;".
73466 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73468         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73469         gl_MANYWARN_ALL_GCC.
73470         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73471         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73472         * modules/manywarnings: New file.
73473         * MODULES.html.sh: Mention manywarnings module.
73475 2008-11-18  Bruno Haible  <bruno@clisp.org>
73477         * doc/gnulib-tool.texi (Unit tests): New section.
73479 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73481         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73482         paths like 'lib/po/foo.po'.
73484 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73486         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73487         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73489 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73491         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73492         parameter works.
73494 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73496         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73498 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73500         * modules/parse-duration-tests: New file.
73501         * tests/test-parse-duration.sh: New file.
73502         * tests/test-parse-duration.c: New file.
73504         New module 'parse-duration'.
73505         * lib/parse-duration.h: New file.
73506         * lib/parse-duration.c: New file.
73507         * modules/parse-duration: New file.
73509 2008-11-17  Bruno Haible  <bruno@clisp.org>
73511         * tests/test-select-out.sh: Comment out the first pipe test.
73512         Reported by Simon Josefsson.
73514 2008-11-17  Bruno Haible  <bruno@clisp.org>
73516         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73518         gl_HOSTENT.
73520 2008-11-17  Bruno Haible  <bruno@clisp.org>
73522         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73523         -lnetwork and -lnet. Needed for Haiku and BeOS.
73525 2008-11-16  Bruno Haible  <bruno@clisp.org>
73527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73529 2008-11-16  Bruno Haible  <bruno@clisp.org>
73531         Avoid test failure on Haiku.
73532         * tests/test-fsync.c: Include <errno.h>.
73533         (main): Don't require that fsync (0) fails.
73535 2008-11-15  Bruno Haible  <bruno@clisp.org>
73537         New module 'hostent'.
73538         * modules/hostent: New file.
73539         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73541 2008-11-15  Bruno Haible  <bruno@clisp.org>
73543         New module 'servent'.
73544         * modules/servent: New file.
73545         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73547 2008-11-15  Bruno Haible  <bruno@clisp.org>
73549         Avoid generating same test program with two different rules.
73550         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73551         test-frexp to test-frexp-nolibm.
73552         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73553         test-frexpl to test-frexpl-nolibm.
73555 2008-11-15  Bruno Haible  <bruno@clisp.org>
73557         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73558         $(FREXPL_LIBM).
73560 2008-11-15  Bruno Haible  <bruno@clisp.org>
73562         * lib/netdb.in.h: Activate the definitions also when the system's
73563         <netdb.h> has 'struct addrinfo'.
73564         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73565         EAI_OVERFLOW or AI_NUMERICSERV.
73566         * doc/posix-headers/netdb.texi: Document the problem.
73568 2008-11-15  Bruno Haible  <bruno@clisp.org>
73570         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73572         Make the 'sched' module work on platforms where <sched.h> exists but
73573         is incomplete (such as Haiku).
73574         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73575         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73576         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73577         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73578         HAVE_STRUCT_SCHED_PARAM.
73579         * modules/sched (Depends-on): Add include_next.
73580         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73581         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73582         * doc/posix-headers/sched.texi: Document the issue.
73584 2008-11-13  Jim Meyering  <meyering@redhat.com>
73586         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73587         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73588         test would fail due to the difference in the Report bugs to ...
73589         line.  The expected address is empty, "<>", while the actual
73590         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73592 2008-11-12  Bruno Haible  <bruno@clisp.org>
73594         lstat: don't compile lstat.c on systems lacking lstat
73595         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73596         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73597         Reported by Daniel P. Berrange via Jim Meyering.
73599 2008-11-12  Jim Meyering  <meyering@redhat.com>
73601         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73603 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73605         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73606         instead.
73608 2008-11-12  Bruno Haible  <bruno@clisp.org>
73610         * lib/unicodeio.c: Include unistr.h.
73611         (utf8_wctomb): Remove function.
73612         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73614 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73616         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73617         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73618         <bruno@clisp.org>.
73619         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73621 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73623         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73624         * doc/gnulib.texi: Add section for warnings.
73626 2008-11-11  Bruno Haible  <bruno@clisp.org>
73628         * lib/sockets.h: Add a comment.
73630 2008-11-11  Karl Berry  <karl@gnu.org>
73632         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73634 2008-11-11  Eric Blake  <ebb9@byu.net>
73636         fdl.texi: avoid git symlinks
73637         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73639 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73641         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73643 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73645         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73646         (gl_WARN_ADD): Substitute $2 if literal.
73648 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73650         * m4/warning.m4: Remove.
73652 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73654         * m4/warnings.m4: Almost complete rewrite. :-)
73656 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73658         * modules/warnings: New module.
73659         * m4/warnings.m4: New file.
73660         * MODULES.html.sh: Mention warnings module.
73661         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73662         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73664 2008-11-10  Eric Blake  <ebb9@byu.net>
73666         fdl.texi: make a symlink to the latest version
73667         * doc/standards.texi: Revert today's earlier change.
73668         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73669         * doc/fdl.texi: ...and replace this with a symlink to the newer
73670         fdl-1.3.texi.
73672 2008-11-10  Bruno Haible  <bruno@clisp.org>
73674         * tests/test-select-fd.c (main): Accept the result file name as fourth
73675         argument.
73676         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73677         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73679 2008-11-10  Bruno Haible  <bruno@clisp.org>
73681         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73682         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73683         as autoconf-substituted macros.
73684         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73686         gl_NETDB_H_DEFAULTS. Set these variables.
73687         * modules/netdb (Makefile.am): Substitute these variables.
73689 2008-11-10  Eric Blake  <ebb9@byu.net>
73691         standards.texi: include correct file for FDL 1.3
73692         * doc/standards.texi (GNU Free Documentation License): Change
73693         include file to pull in FDL 1.3, not 1.2.
73695         fdl.texi: revert accidental change to license
73696         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73698 2008-11-10  Bruno Haible  <bruno@clisp.org>
73700         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73701         cross-compiling guesses also when the native compile gives no result.
73703 2008-11-10  Bruno Haible  <bruno@clisp.org>
73705         * lib/spawni.c (__spawni): Force variable into the stack.
73707 2008-11-10  Bruno Haible  <bruno@clisp.org>
73709         Add support for Haiku.
73710         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73711         glibc and BeOS, but also on Haiku.
73712         * lib/fpurge.c (fpurge): Likewise.
73713         * lib/freadable.c (freadable): Likewise.
73714         * lib/freadahead.c (freadahead): Likewise.
73715         * lib/freading.c (freading): Likewise.
73716         * lib/freadptr.c (freadptr): Likewise.
73717         * lib/freadseek.c (freadptrinc): Likewise.
73718         * lib/fseeko.c (rpl_fseeko): Likewise.
73719         * lib/fseterr.c (fseterr): Likewise.
73720         * lib/fwritable.c (fwritable): Likewise.
73721         * lib/fwriting.c (fwriting): Likewise.
73722         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73724 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73726         * lib/config.charset: Treat Haiku like BeOS.
73728 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73730         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73731         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73733 2008-11-08  Bruno Haible  <bruno@clisp.org>
73735         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73736         AC_CACHE_CHECK.
73738 2008-11-08  Bruno Haible  <bruno@clisp.org>
73740         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73742 2008-11-08  Bruno Haible  <bruno@clisp.org>
73744         * tests/test-select-fd.c: New file.
73745         * tests/test-select-in.sh: New file.
73746         * tests/test-select-out.sh: New file.
73747         * tests/test-select-stdin.c: New file.
73748         * modules/select-tests (Files): Add the new files.
73749         (Depends-on): Add gettimeofday.
73750         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73751         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73752         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73754 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73755             Bruno Haible  <bruno@clisp.org>
73757         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73759 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73761         * build-aux/pmccabe2html: Added support for C++ source files.
73763 2008-11-05  Ben Pfaff  <blp@gnu.org>
73765         Fix lib/close.c build on Windows.
73766         * modules/close (Files): Add lib/w32sock.h.
73768 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73770         Accept Bison's NEWS format.
73771         * build-aux/announce-gen (print_news_deltas): Tweak
73772         $re_prefix.
73774 2008-11-04  Bruno Haible  <bruno@clisp.org>
73776         * modules/random_r (Maintainer): Add glibc.
73778 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73780         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73781         by karl@freefriends.org (Karl Berry).
73782         * doc/alloca.texi: Likewise.
73783         * doc/c-ctype.texi: Likewise.
73784         * doc/c-strcase.texi: Likewise.
73785         * doc/c-strcaseeq.texi: Likewise.
73786         * doc/c-strcasestr.texi: Likewise.
73787         * doc/c-strstr.texi: Likewise.
73788         * doc/c-strtod.texi: Likewise.
73789         * doc/c-strtold.texi: Likewise.
73790         * doc/ctime.texi: Likewise.
73791         * doc/error.texi: Likewise.
73792         * doc/fdl.texi: Likewise.
73793         * doc/gcd.texi: Likewise.
73794         * doc/getdate.texi: Likewise.
73795         * doc/gnulib-intro.texi: Likewise.
73796         * doc/gnulib-tool.texi: Likewise.
73797         * doc/gnulib.texi: Likewise.
73798         * doc/inet_ntoa.texi: Likewise.
73799         * doc/maintain.texi: Likewise.
73800         * doc/make-stds.texi: Likewise.
73801         * doc/quote.texi: Likewise.
73802         * doc/regexprops-generic.texi: Likewise.
73803         * doc/standards.texi: Likewise.
73804         * doc/verify.texi: Likewise.
73805         * doc/visibility.texi: Likewise.
73806         * doc/gnulib.texi (GNU Free Documentation License): Include
73807         fdl-1.3.texi instead of fdl.texi.
73809 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73811         * doc/fdl-1.3.texi: New file, from
73812         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73813         * modules/fdl-1.3: Add.
73814         * MODULES.html.sh: Add fdl-1.3.
73816 2008-11-03  Bruno Haible  <bruno@clisp.org>
73818         Make determination of absolute name of header file work with AIX xlc.
73819         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73820         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73821         preprocessing.
73822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73823         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73825 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73827         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73828         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73829         <ludo@gnu.org>.
73831 2008-11-02  Bruno Haible  <bruno@clisp.org>
73833         Mark 'strpbrk' obsolete.
73834         * modules/strpbrk (Status, Notice): New sections.
73835         * modules/strtok_r (Depends-on): Add strpbrk.
73837 2008-11-02  Bruno Haible  <bruno@clisp.org>
73839         Mark 'strdup' obsolete.
73840         * modules/strdup (Status, Notice): New sections.
73841         * modules/findprog (Depends-on): Add strdup.
73842         * modules/getaddrinfo (Depends-on): Likewise.
73843         * modules/localename (Depends-on): Likewise.
73844         * modules/relocatable-lib (Depends-on): Likewise.
73845         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73846         * modules/relocatable-prog (Depends-on): Likewise.
73847         * modules/trim (Depends-on): Likewise.
73848         * modules/unictype/gen-ctype (Depends-on): Likewise.
73849         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73851 2008-11-02  Bruno Haible  <bruno@clisp.org>
73853         Mark 'strcspn' obsolete.
73854         * modules/strcspn (Status, Notice): New sections.
73856 2008-11-02  Bruno Haible  <bruno@clisp.org>
73858         Mark 'rmdir' obsolete.
73859         * modules/rmdir (Status, Notice): New sections.
73860         * modules/clean-temp (Depends-on): Add rmdir.
73861         * modules/openat (Depends-on): Likewise.
73863 2008-11-02  Bruno Haible  <bruno@clisp.org>
73865         Mark 'raise' obsolete.
73866         * modules/raise (Status, Notice): New sections.
73867         (Include): Specify <signal.h>.
73868         * modules/stdio (Depends-on): Add raise.
73869         * modules/write (Depends-on): Likewise.
73871 2008-11-02  Bruno Haible  <bruno@clisp.org>
73873         Mark 'memset' obsolete.
73874         * modules/memset (Status, Notice): New sections.
73876 2008-11-02  Bruno Haible  <bruno@clisp.org>
73878         Mark 'memmove' obsolete.
73879         * modules/memmove (Status, Notice): New sections.
73880         * modules/argp (Depends-on): Add memmove.
73881         * modules/argz (Depends-on): Likewise.
73882         * modules/canonicalize (Depends-on): Likewise.
73883         * modules/canonicalize-lgpl (Depends-on): Likewise.
73884         * modules/fts (Depends-on): Likewise.
73885         * modules/getcwd (Depends-on): Likewise.
73886         * modules/human (Depends-on): Likewise.
73887         * modules/regex (Depends-on): Likewise.
73888         * modules/striconveh (Depends-on): Likewise.
73889         * modules/trim (Depends-on): Likewise.
73890         * modules/unistr/u8-move (Depends-on): Likewise.
73891         * modules/unistr/u16-move (Depends-on): Likewise.
73892         * modules/unistr/u32-move (Depends-on): Likewise.
73894 2008-11-02  Bruno Haible  <bruno@clisp.org>
73896         Mark 'memcpy' obsolete.
73897         * modules/memcpy (Status, Notice): New sections.
73899 2008-11-02  Bruno Haible  <bruno@clisp.org>
73901         Mark 'memcmp' obsolete.
73902         * modules/memcmp (Status, Notice): New sections.
73903         * modules/argmatch (Depends-on): Add memchr.
73904         * modules/backupfile (Depends-on): Likewise.
73905         * modules/c-strcasestr (Depends-on): Likewise.
73906         * modules/crypto/des (Depends-on): Likewise.
73907         * modules/csharpcomp (Depends-on): Likewise.
73908         * modules/fnmatch (Depends-on): Likewise.
73909         * modules/git-merge-changelog (Depends-on): Likewise.
73910         * modules/isnand (Depends-on): Likewise.
73911         * modules/isnand-nolibm (Depends-on): Likewise.
73912         * modules/isnanf (Depends-on): Likewise.
73913         * modules/isnanf-nolibm (Depends-on): Likewise.
73914         * modules/isnanl (Depends-on): Likewise.
73915         * modules/isnanl-nolibm (Depends-on): Likewise.
73916         * modules/mbchar (Depends-on): Likewise.
73917         * modules/memcoll (Depends-on): Likewise.
73918         * modules/quotearg (Depends-on): Likewise.
73919         * modules/regex (Depends-on): Likewise.
73920         * modules/relocatable-prog (Depends-on): Likewise.
73921         * modules/same (Depends-on): Likewise.
73922         * modules/signbit (Depends-on): Likewise.
73923         * modules/strcasestr-simple (Depends-on): Likewise.
73924         * modules/unictype/gen-ctype (Depends-on): Likewise.
73925         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73926         * modules/uniname/uniname (Depends-on): Likewise.
73927         * modules/unistr/u8-cmp (Depends-on): Likewise.
73929 2008-11-02  Bruno Haible  <bruno@clisp.org>
73931         Mark 'memchr' obsolete.
73932         * modules/memchr (Status, Notice): New sections.
73933         * modules/argp (Depends-on): Add memchr.
73934         * modules/base64 (Depends-on): Likewise.
73935         * modules/c-strcasestr (Depends-on): Likewise.
73936         * modules/chdir-long (Depends-on): Likewise.
73937         * modules/fnmatch (Depends-on): Likewise.
73938         * modules/getsubopt (Depends-on): Likewise.
73939         * modules/git-merge-changelog (Depends-on): Likewise.
73940         * modules/glob (Depends-on): Likewise.
73941         * modules/strcasestr-simple (Depends-on): Likewise.
73942         * modules/strnlen (Depends-on): Likewise.
73944 2008-11-02  Bruno Haible  <bruno@clisp.org>
73946         Mark 'atexit' obsolete.
73947         * modules/atexit (Status, Notice): New sections.
73948         * modules/chdir-long (Depends-on): Add atexit.
73949         * modules/wait-process (Depends-on): Likewise.
73951 2008-11-02  Bruno Haible  <bruno@clisp.org>
73953         * gnulib-tool: New option --with-obsolete.
73954         (func_usage): Document it.
73955         (func_modules_transitive_closure): Drop obsolete dependencies if
73956         incobsolete is not true.
73957         (func_import): Read and save the incobsolete variable to the cache.
73959 2008-11-02  Bruno Haible  <bruno@clisp.org>
73961         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73962         * gnulib-tool: New option --extract-status.
73963         (func_usage): Document it.
73964         (sed_extract_prog): Recognize it.
73965         (func_get_status): New function.
73967 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73969         * modules/sockets (License): Change from LGPL to LGPLv2+.
73971 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73973         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73975 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73977         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73978         Mention times and sys_times.
73979         * modules/sys_times, modules/sys_times-tests: New modules.
73980         * modules/times, modules/times-tests: Likewise
73981         * m4/sys_times_h.m4: New file.
73982         * lib/sys_times.in.h: Likewise
73983         * lib/times.c: Likewise.
73984         * tests/test-sys_times.c: Likewise.
73985         * tests/test-times.c: Likewise.
73986         * doc/posix-headers/sys_times.texi: Update.
73987         * doc/posix-functions/times.texi: Update.
73989 2008-10-28  Jim Meyering  <meyering@redhat.com>
73991         * modules/tempname (Depends-on): Add lstat.
73993         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73995 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73997         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73998         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73999         using idiom used elsewhere in gnulib.
74001 2008-10-27  Jim Meyering  <meyering@redhat.com>
74003         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
74005 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74007         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
74008         TESTS_ENVIRONMENT, for shell scripts that needs to call built
74009         programs.
74010         * tests/test-argp-2.sh: Use $EXEEXT when needed.
74012 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74014         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
74016 2008-10-27  Bruno Haible  <bruno@clisp.org>
74018         * tests/test-lstat.c: Include <stdio.h>.
74020 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74022         * modules/lstat-tests: New module.
74023         * tests/test-lstat.c: New file.
74025 2008-10-26  Jim Meyering  <meyering@redhat.com>
74027         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
74029 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74030             Bruno Haible  <bruno@clisp.org>
74032         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
74033         * modules/configmake (Include): Add a note that the include must come
74034         after all system headers.
74035         * lib/javaversion.c: Include configmake.h after all other includes.
74037 2008-10-26  Bruno Haible  <bruno@clisp.org>
74039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
74040         HAVE_STRUCT_RANDOM_DATA to 1.
74041         (gl_STDLIB_H): Simplify.
74043 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74045         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
74046         substitute HAVE_STRUCT_RANDOM_DATA.
74047         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
74048         random_data.
74049         * modules/stdlib (Makefile.am): Substitute
74050         HAVE_STRUCT_RANDOM_DATA.
74052 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74054         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
74055         * doc/gnulib-intro.texi (Copyright): Likewise.
74057 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74059         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
74060         findings.
74062 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
74063             Bruno Haible  <bruno@clisp.org>
74065         * lib/unistd.in.h: Include <winsock2.h>.
74066         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
74067         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
74068         Provide dummy declarations.
74069         (gethostname): Override.
74070         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
74071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
74072         gl_PREREQ_SYS_H_WINSOCK2.
74073         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
74074         * doc/posix-functions/gethostname.texi: More details.
74076 2008-10-25  Bruno Haible  <bruno@clisp.org>
74078         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74079         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
74080         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
74082         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
74083         here ...
74084         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
74085         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
74086         gl_UNISTD_H_DEFAULTS.
74088 2008-10-25  Eric Blake  <ebb9@byu.net>
74090         signbit: avoid spurious compiler failure
74091         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
74092         declarations inside function.
74094 2008-10-24  Simon Josefsson  <simon@josefsson.org>
74095             Bruno Haible  <bruno@clisp.org>
74097         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
74098         * modules/random_r (Depends-on): Add stdint.
74100 2008-10-24  Bruno Haible  <bruno@clisp.org>
74102         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
74103         Eggert.
74104         * modules/strerror (License): Likewise.
74106 2008-10-24  Jim Meyering  <meyering@redhat.com>
74108         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
74109         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
74111 2008-10-24  Eric Blake  <ebb9@byu.net>
74113         getgroups: fix compilation when getgroups is available
74114         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
74115         but with <config.h> override of getgroups disabled.
74117 2008-10-24  Simon Josefsson  <simon@josefsson.org>
74119         * doc/gnulib.texi (Header files): Add note about C++ problems.
74120         Explained by Bruno Haible <bruno@clisp.org>.
74122 2008-10-23  Bruno Haible  <bruno@clisp.org>
74124         Define a dummy SA_NODEFER macro on Interix.
74125         * lib/signal.in.h (SA_NODEFER): Define fallback.
74126         Reported by Aleksey Cheusov <cheusov@tut.by> via
74127         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
74129 2008-10-23  Bruno Haible  <bruno@clisp.org>
74131         * modules/freadahead (License): Change to LGPLv2+.
74132         Suggested by Simon Josefsson.
74134 2008-10-23  Jim Meyering  <meyering@redhat.com>
74136         random_r: new module
74137         * modules/random_r: New file.
74138         * m4/random_r.m4: New file.
74139         * lib/random_r.c: New file, from glibc.
74140         * modules/random_r-tests: New file.
74141         * tests/test-random_r.c: New file.
74142         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
74143          Declare.
74144         (RAND_MAX): Define.
74145         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
74146         * modules/stdlib: Substitute them, too.
74147         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
74148         * doc/glibc-functions/initstate_r.texi: Mention the new module.
74149         * doc/glibc-functions/random_r.texi: Likewise.
74150         * doc/glibc-functions/setstate_r.texi: Likewise.
74151         * doc/glibc-functions/srandom_r.texi: Likewise.
74152         * config/srclist.txt: Mention it.
74154 2008-10-23  David Lutterkort  <lutter@redhat.com>
74156         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
74157         link requirement
74159 2008-10-23  Jim Meyering  <meyering@redhat.com>
74161         selinux-h: mark parameters of stub functions as intentionally unused
74162         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
74163         * lib/se-context.in.h: Likewise.
74165 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74167         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
74169 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74171         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
74173 2008-10-22  Eric Blake  <ebb9@byu.net>
74175         glthread/thread: avoid compiler warning
74176         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
74177         Add unreachable abort to silence compiler.
74179 2008-10-22  Eric Blake  <ebb9@byu.net>
74181         netdb: also supply struct addrinfo for cygwin 1.5.x
74182         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
74183         older cygwin.
74184         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
74185         cygwin.
74186         * doc/posix-headers/netdb.texi (netdb.h): Document this.
74188 2008-10-22  Bruno Haible  <bruno@clisp.org>
74190         * users.txt: Update entry about pspp.
74192 2008-10-21  Bruno Haible  <bruno@clisp.org>
74194         Simplification.
74195         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
74196         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
74198         Simplification.
74199         * lib/ioctl.c (ioctl): Don't undefine.
74200         * lib/socket.c (socket): Don't undefine.
74202         Remove unused module indicator macros.
74203         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
74204         GNULIB_$1 as a C macro.
74206         * doc/posix-functions/close.texi: Undo last change.
74207         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
74208         Windows platforms.
74210 2008-10-21  Bruno Haible  <bruno@clisp.org>
74212         Add gethostname() declaration to <unistd.h>.
74213         * lib/unistd.in.h (gethostname): New declaration.
74214         * lib/gethostname.c: Include <unistd.h>.
74215         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
74216         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
74217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
74218         and HAVE_GETHOSTNAME.
74219         * modules/gethostname (Depends-on): Add unistd.
74220         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74221         (Include): Specify <unistd.h>.
74222         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
74223         HAVE_GETHOSTNAME.
74224         * tests/test-gethostname.c: Include <unistd.h> first.
74226 2008-10-21  Bruno Haible  <bruno@clisp.org>
74228         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
74229         * modules/select-tests (Depends-on): Likewise.
74230         Reported by Simon Josefsson.
74232 2008-10-21  Simon Josefsson  <simon@josefsson.org>
74234         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
74235         * lib/accept.c: New file, based on winsock.c.
74236         * lib/bind.c: New file, based on winsock.c.
74237         * lib/connect.c: New file, based on winsock.c.
74238         * lib/getpeername.c: New file, based on winsock.c.
74239         * lib/getsockname.c: New file, based on winsock.c.
74240         * lib/getsockopt.c: New file, based on winsock.c.
74241         * lib/ioctl.c: New file, based on winsock.c.
74242         * lib/listen.c: New file, based on winsock.c.
74243         * lib/recv.c: New file, based on winsock.c.
74244         * lib/recvfrom.c: New file, based on winsock.c.
74245         * lib/send.c: New file, based on winsock.c.
74246         * lib/sendto.c: New file, based on winsock.c.
74247         * lib/setsockopt.c: New file, based on winsock.c.
74248         * lib/shutdown.c: New file, based on winsock.c.
74249         * lib/socket.c: New file, based on winsock.c.
74250         * lib/w32sock.h: New file, based on winsock.c.
74251         * lib/winsock.c: Remove file.
74252         * modules/accept: Likewise.
74253         * modules/bind: Likewise.
74254         * modules/connect: Likewise.
74255         * modules/getpeername: Likewise.
74256         * modules/getsockname: Likewise.
74257         * modules/getsockopt: Likewise.
74258         * modules/ioctl: Likewise.
74259         * modules/listen: Likewise.
74260         * modules/recv: Likewise.
74261         * modules/recvfrom: Likewise.
74262         * modules/send: Likewise.
74263         * modules/sendto: Likewise.
74264         * modules/setsockopt: Likewise.
74265         * modules/shutdown: Likewise.
74266         * modules/socket: Use socket.c instead of winsock.c.
74267         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
74268         * doc/posix-functions/accept.texi: Doc fix.
74269         * doc/posix-functions/bind.texi: Doc fix.
74270         * doc/posix-functions/close.texi: Doc fix.
74271         * doc/posix-functions/connect.texi: Doc fix.
74272         * doc/posix-functions/getpeername.texi: Doc fix.
74273         * doc/posix-functions/getsockname.texi: Doc fix.
74274         * doc/posix-functions/getsockopt.texi: Doc fix.
74275         * doc/posix-functions/ioctl.texi: Doc fix.
74276         * doc/posix-functions/listen.texi: Doc fix.
74277         * doc/posix-functions/recv.texi: Doc fix.
74278         * doc/posix-functions/recvfrom.texi: Doc fix.
74279         * doc/posix-functions/send.texi: Doc fix.
74280         * doc/posix-functions/sendto.texi: Doc fix.
74281         * doc/posix-functions/setsockopt.texi: Doc fix.
74282         * doc/posix-functions/shutdown.texi: Doc fix.
74283         * doc/posix-functions/socket.texi: Doc fix.
74285 2008-10-20  Bruno Haible  <bruno@clisp.org>
74287         Take into account the role of SIGABRT_COMPAT on Windows 2008.
74288         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
74289         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
74290         as an alias for SIGABRT.
74291         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
74292         (sigaction): Map it to SIGABRT.
74293         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
74295 2008-10-20  Bruno Haible  <bruno@clisp.org>
74297         * lib/fts.c: Don't include lstat.h.
74298         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
74300         Move the lstat() declaration to <sys/stat.h>.
74301         * lib/lstat.h: Remove file.
74302         * lib/sys_stat.in.h: Add special invocation convention.
74303         (lstat): New declaration.
74304         * lib/lstat.c (orig_lstat): New function.
74305         (rpl_lstat): Use orig_lstat instead of lstat.
74306         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
74307         AC_C_INLINE. Set REPLACE_LSTAT.
74308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
74309         and REPLACE_LSTAT.
74310         * modules/lstat (Files): Remove lib/lstat.h.
74311         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74312         (Include): Specify <sys/stat.h> instead of lstat.h.
74313         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
74314         REPLACE_LSTAT.
74315         * NEWS: Mention the change.
74317 2008-10-20  Bruno Haible  <bruno@clisp.org>
74319         * modules/posix_spawn-tests: New file.
74320         * tests/test-posix_spawn3.c: New file.
74322 2008-10-20  Bruno Haible  <bruno@clisp.org>
74324         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
74325         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74326         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
74327         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74328         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
74330 2008-10-20  Bruno Haible  <bruno@clisp.org>
74332         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
74333         of posix_spawn on AIX 5.3.
74335 2008-10-20  Bruno Haible  <bruno@clisp.org>
74337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
74339 2008-10-20  Bruno Haible  <bruno@clisp.org>
74341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
74342         of AC_LANG_PROGRAM.
74344 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74346         * lib/netdb.in.h: Don't define GNU specific constants until they
74347         are supported or needed.  Reported by Bruno Haible
74348         <bruno@clisp.org>.
74350 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74352         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
74354 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74356         * lib/getaddrinfo.h: Remove file.
74357         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74358         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74359         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74360         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74361         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74362         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74363         * tests/test-getaddrinfo.c: Likewise.
74364         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74365         * NEWS: Mention change.
74367 2008-10-19  Bruno Haible  <bruno@clisp.org>
74369         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74371 2008-10-19  Bruno Haible  <bruno@clisp.org>
74373         * lib/wait-process.c: Include simply <sys/wait.h>.
74374         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74375         WIFSTOPPED): Remove fallback definitions.
74376         * modules/wait-process (Depends-on): Add sys_wait.
74378         New module 'sys_wait'.
74379         * modules/sys_wait: New file.
74380         * lib/sys_wait.in.h: New file, partially copied from
74381         lib/wait-process.c.
74382         * m4/sys_wait_h.m4: New file.
74383         * doc/posix-headers/sys_wait.texi: Mention the new module.
74385 2008-10-19  Bruno Haible  <bruno@clisp.org>
74387         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74389 2008-10-19  Bruno Haible  <bruno@clisp.org>
74391         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74392         * lib/wait-process.c (WAIT_T): Remove type.
74393         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74394         (wait_subprocess): Update.
74396 2008-10-19  Bruno Haible  <bruno@clisp.org>
74398         New module 'atoll'.
74399         * modules/atoll: New file.
74400         * lib/stdlib.in.h (atoll): New declaration.
74401         * lib/atoll.c: New file, from glibc with modifications.
74402         * m4/atoll.m4: New file.
74403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74404         HAVE_ATOLL.
74405         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74406         * doc/posix-functions/atoll.texi: Mention the new module.
74408 2008-10-19  Bruno Haible  <bruno@clisp.org>
74410         Add strtoull() declaration to <stdlib.h>.
74411         * lib/stdlib.in.h (strtoull): New declaration.
74412         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74413         Set HAVE_STRTOULL.
74414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74415         HAVE_STRTOULL.
74416         * modules/strtoull (Depends-on): Add stdlib.
74417         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74418         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74419         HAVE_STRTOULL.
74421 2008-10-19  Bruno Haible  <bruno@clisp.org>
74423         Add strtoll() declaration to <stdlib.h>.
74424         * lib/stdlib.in.h (strtoll): New declaration.
74425         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74426         Set HAVE_STRTOLL.
74427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74428         HAVE_STRTOLL.
74429         * modules/strtoll (Depends-on): Add stdlib.
74430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74431         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74433 2008-10-19  Bruno Haible  <bruno@clisp.org>
74435         * modules/bcopy (Depends-on): Add strings.
74436         (Include): Specify <strings.h>.
74438 2008-10-19  Bruno Haible  <bruno@clisp.org>
74440         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74442 2008-10-19  Bruno Haible  <bruno@clisp.org>
74444         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74445         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74446         mingw.
74448 2008-10-19  Bruno Haible  <bruno@clisp.org>
74450         * lib/atanl.c: Don't include isnanl.h.
74451         * lib/cosl.c: Likewise.
74452         * lib/ldexpl.c: Likewise.
74453         * lib/logl.c: Likewise.
74454         * lib/sinl.c: Likewise.
74455         * lib/sqrtl.c: Likewise.
74456         * lib/tanl.c: Likewise.
74458         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74459         * lib/isnanf.h: Remove file.
74460         * lib/isnand.h: Remove file.
74461         * lib/isnanl.h: Remove file.
74462         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74463         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74464         macros.
74465         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74466         HAVE_ISNANF, don't define it as a C macro.
74467         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74468         HAVE_ISNAND, don't define it as a C macro.
74469         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74470         HAVE_ISNANL, don't define it as a C macro.
74471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74472         HAVE_ISNAN[FDL].
74473         * modules/isnanf (Files): Remove lib/isnanf.h.
74474         (Depends-on): Add math.
74475         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74476         (Include): Specify <math.h> instead of isnanf.h.
74477         * modules/isnand (Files): Remove lib/isnand.h.
74478         (Depends-on): Add math.
74479         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74480         (Include): Specify <math.h> instead of isnand.h.
74481         * modules/isnanl (Files): Remove lib/isnanl.h.
74482         (Depends-on): Add math.
74483         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74484         (Include): Specify <math.h> instead of isnanl.h.
74485         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74486         HAVE_ISNAN[FDL].
74487         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74488         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74489         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74490         * NEWS: Mention the change.
74492 2008-10-18  Bruno Haible  <bruno@clisp.org>
74494         Add getusershell(), setusershell(), endusershell() declarations to
74495         <unistd.h>.
74496         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74497         declarations.
74498         * lib/getusershell.c: Include unistd.h.
74499         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74500         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74501         HAVE_GETUSERSHELL.
74502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74503         and HAVE_GETUSERSHELL.
74504         * modules/getusershell (Depends-on): Add unistd, extensions.
74505         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74506         (Include): Specify <unistd.h>.
74507         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74508         HAVE_GETUSERSHELL.
74510 2008-10-18  Bruno Haible  <bruno@clisp.org>
74512         Add a getloadavg() declaration to <stdlib.h>.
74513         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74514         getloadavg declaration.
74515         (getloadavg): New declaration.
74516         * lib/getloadavg.c: Include <stdlib.h> first.
74517         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74518         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74519         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74521         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74522         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74523         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74524         (Include): Specify <stdlib.h>.
74525         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74526         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74528 2008-10-18  Bruno Haible  <bruno@clisp.org>
74530         * lib/dirchownmod.c: Don't include lchmod.h.
74532         Move the lchmod() declaration to <sys/stat.h>.
74533         * lib/lchmod.h: Remove file.
74534         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74535         (lchmod): New declaration, moved here from lib/lchown.h.
74536         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74537         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74539         and HAVE_LCHMOD.
74540         * modules/lchmod (Files): Remove lib/lchmod.h.
74541         (Depends-on): Add sys_stat, extensions.
74542         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74543         (Include): Specify <sys/stat.h> instead of lchmod.h.
74544         * modules/sys_stat (Depends-on): Add link-warning.
74545         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74546         definition of GL_LINK_WARNING.
74547         * NEWS: Mention the change.
74549 2008-10-18  Bruno Haible  <bruno@clisp.org>
74551         * lib/fchdir.c: Don't include dirfd.h.
74552         * lib/fts.c: Likewise.
74553         * lib/getcwd.c: Likewise.
74554         * lib/glob.c: Likewise.
74556         Move the dirfd() declaration to <dirent.h>.
74557         * lib/dirfd.h: Remove file.
74558         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74559         (dirfd): New declaration.
74560         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74561         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74562         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74563         HAVE_DECL_DIRFD.
74564         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74565         HAVE_DECL_DIRFD.
74566         * modules/dirfd (Files): Remove lib/dirfd.h.
74567         (Depends-on): Add dirent, extensions.
74568         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74569         (Include): Specify <dirent.h> instead of dirfd.h.
74570         * modules/dirent (Depends-on): Add link-warning.
74571         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74572         definition of GL_LINK_WARNING.
74573         * NEWS: Mention the change.
74575 2008-10-18  Bruno Haible  <bruno@clisp.org>
74577         Move the euidaccess() declaration to <unistd.h>.
74578         * lib/euidaccess.h: Remove file.
74579         * lib/unistd.in.h (euidaccess): New declaration.
74580         * lib/euidaccess.c: Don't include euidaccess.h.
74581         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74582         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74584         and HAVE_EUIDACCESS.
74585         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74586         (Depends-on): Add unistd.
74587         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74588         (Include): Specify <unistd.h> instead of euidaccess.h.
74589         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74590         HAVE_EUIDACCESS.
74591         * NEWS: Mention the change.
74593 2008-10-18  Bruno Haible  <bruno@clisp.org>
74595         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74597         Move the getdomainname() declaration to <unistd.h>.
74598         * lib/getdomainname.h: Remove file.
74599         * lib/unistd.in.h (getdomainname): New declaration.
74600         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74601         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74602         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74603         HAVE_GETDOMAINNAME.
74604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74605         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74606         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74607         (Depends-on): Add unistd, extensions.
74608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74609         (Includes): Specify <unistd.h> instead of getdomainname.h.
74610         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74611         HAVE_GETDOMAINNAME.
74612         * NEWS: Mention the change.
74614 2008-10-18  Bruno Haible  <bruno@clisp.org>
74616         * modules/dirent: New file.
74617         * m4/dirent_h.m4: New file.
74618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74619         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74620         * modules/fchdir (Files): Remove lib/dirent.in.h.
74621         (Depends-on): Add dirent.
74622         (Makefile.am): Move rules to modules/dirent.
74623         * doc/posix-headers/dirent.texi: Mention the new module.
74625 2008-10-18  Bruno Haible  <bruno@clisp.org>
74627         Avoid -Wunused-parameter warnings in public gnulib header files.
74628         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74629         macro.
74630         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74632 2008-10-18  Bruno Haible  <bruno@clisp.org>
74634         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74635         * doc/glibc-functions/error.texi: Mention the module 'error'.
74636         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74637         * doc/glibc-functions/getdomainname.texi: Mention the module
74638         'getdomainname'.
74639         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74640         * doc/glibc-functions/getpagesize.texi: Mention the module
74641         'getpagesize'.
74642         * doc/glibc-functions/getusershell.texi: Mention the module
74643         'getusershell'.
74644         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74645         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74646         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74647         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74648         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74649         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74650         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74651         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74652         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74653         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74654         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74655         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74656         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74657         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74659 2008-10-17  Bruno Haible  <bruno@clisp.org>
74661         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74662         HP-UX and IRIX, use -0.0L.
74663         * tests/test-ceill.c (minus_zero): Likewise.
74664         * tests/test-floorl.c (minus_zero): Likewise.
74665         * tests/test-frexpl.c (minus_zero): Likewise.
74666         * tests/test-isnan.c (minus_zerol): Likewise.
74667         * tests/test-isnanl.h (minus_zero): Likewise.
74668         * tests/test-ldexpl.c (minus_zero): Likewise.
74669         * tests/test-roundl.c (minus_zero): Likewise.
74670         * tests/test-signbit.c (minus_zerol): Likewise.
74671         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74672         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74673         * tests/test-truncl.c (minus_zero): Likewise.
74674         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74675         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74676         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74677         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74679 2008-10-17  Bruno Haible  <bruno@clisp.org>
74681         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74682         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74683         that it gets activated only for gcc >= 3.0.
74684         * lib/dirent.in.h: Likewise.
74685         * lib/errno.in.h: Likewise.
74686         * lib/fcntl.in.h: Likewise.
74687         * lib/float.in.h: Likewise.
74688         * lib/iconv.in.h: Likewise.
74689         * lib/inttypes.in.h: Likewise.
74690         * lib/locale.in.h: Likewise.
74691         * lib/math.in.h: Likewise.
74692         * lib/netdb.in.h: Likewise.
74693         * lib/netinet_in.in.h: Likewise.
74694         * lib/search.in.h: Likewise.
74695         * lib/signal.in.h: Likewise.
74696         * lib/spawn.in.h: Likewise.
74697         * lib/stdarg.in.h: Likewise.
74698         * lib/stdint.in.h: Likewise.
74699         * lib/stdio.in.h: Likewise.
74700         * lib/stdlib.in.h: Likewise.
74701         * lib/string.in.h: Likewise.
74702         * lib/strings.in.h: Likewise.
74703         * lib/sys_file.in.h: Likewise.
74704         * lib/sys_ioctl.in.h: Likewise.
74705         * lib/sys_select.in.h: Likewise.
74706         * lib/sys_socket.in.h: Likewise.
74707         * lib/sys_stat.in.h: Likewise.
74708         * lib/sys_time.in.h: Likewise.
74709         * lib/sysexits.in.h: Likewise.
74710         * lib/time.in.h: Likewise.
74711         * lib/unistd.in.h: Likewise.
74712         * lib/wchar.in.h: Likewise.
74713         * lib/wctype.in.h: Likewise.
74714         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74716 2008-10-17  Jim Meyering  <meyering@redhat.com>
74718         ignore-value: don't depend on inline module
74719         * modules/ignore-value (Depends-on): Remove 'inline'.
74720         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74721         Suggestion from Bruno Haible.
74723 2008-10-17  Bruno Haible  <bruno@clisp.org>
74725         New implementation of condition variables for Win32.
74726         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74727         (gl_linked_waitqueue_t): New type.
74728         (gl_cond_t): Use it.
74729         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74730         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74731         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74732         (glthread_cond_init_func, glthread_cond_wait_func,
74733         glthread_cond_timedwait_func, glthread_cond_signal_func,
74734         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74735         Reimplemented on the basis of gl_linked_waitqueue_t.
74736         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74737         gl_waitqueue_t.
74738         (gl_rwlock_t): Update.
74739         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74741 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74743         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74744         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74746 2008-10-17  Jim Meyering  <meyering@redhat.com>
74748         ignore-value: new module
74749         * modules/ignore-value: New file.
74750         * lib/ignore-value.h: New file.
74751         * MODULES.html.sh (Compiler warning management): New section,
74752         just for this module.  More to come.
74754 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74756         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74757         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74758         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74760 2008-10-16  Jim Meyering  <meyering@redhat.com>
74762         openat-die.c: avoid 'no previous prototype' warning
74763         * lib/openat-die.c: Include "openat.h".
74764         Reported by Reuben Thomas <rrt@sc3d.org>.
74766 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74768         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74769         * lib/netdb.in.h: Fix typo.
74770         Reported by Bruno Haible  <bruno@clisp.org>
74772         * lib/netdb.in.h: Include sys/socket.h for platforms without
74773         netdb.h, to get structures like hostent on MinGW.
74774         * modules/netdb (Depends-on): Add sys_socket.
74776 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74778         * modules/netdb, modules/netdb-tests: New file.
74779         * m4/netdb_h.m4: New file.
74780         * lib/netdb.in.h: Add, currently just an empty file pending
74781         definitions.
74782         * tests/test-netdb.c: New file.
74783         * doc/posix-headers/netdb.texi: Mention that we replace it if
74784         needed.
74785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74786         netdb.
74788 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74790         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74791         with code.
74793 2008-10-13  Bruno Haible  <bruno@clisp.org>
74795         * lib/glthread/cond.c (glthread_cond_wait_func,
74796         glthread_cond_timedwait_func): Add a comment.
74798 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74800         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74801         * tests/test-select.c: Likewise,
74803 2008-10-13  Bruno Haible  <bruno@clisp.org>
74805         * lib/glthread/cond.c (glthread_cond_wait_func,
74806         glthread_cond_timedwait_func): Fix variable name.
74807         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74809 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74811         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74813         struct sockaddr.sa_len.
74814         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74816 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74818         * build-aux/pmccabe2html: Add css and css_url parameters.
74820 2008-10-12  Bruno Haible  <bruno@clisp.org>
74822         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74823         calling aclx_get.
74824         Reported by Rainer Tammer <tammer@tammer.net>.
74826 2008-10-12  Bruno Haible  <bruno@clisp.org>
74828         Use msvcrt aware primitives for creation/termination of Win32 threads.
74829         * lib/glthread/thread.c: Include <process.h>.
74830         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74831         (wrapper_func): Update signature.
74832         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74834 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74835             Bruno Haible  <bruno@clisp.org>
74837         Provide a Win32 implementation of the 'cond' module.
74838         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74839         * lib/glthread/cond.c (glthread_cond_init_func,
74840         glthread_cond_wait_func, glthread_cond_timedwait_func,
74841         glthread_cond_signal_func, glthread_cond_broadcast_func,
74842         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74843         * modules/cond (Dependencies): Add gettimeofday.
74845 2008-10-11  Bruno Haible  <bruno@clisp.org>
74847         Make sleep work on older versions of mingw.
74848         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74849         only whether it exists.
74850         * doc/posix-functions/sleep.texi: Mention the problem with older
74851         versions of mingw.
74853 2008-10-11  Bruno Haible  <bruno@clisp.org>
74855         New module 'shutdown'.
74856         * modules/shutdown: New file.
74857         * lib/sys_socket.in.h (shutdown): New declaration.
74858         * lib/winsock.c (shutdown): New function.
74859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74860         GNULIB_SHUTDOWN.
74861         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74862         * doc/posix-functions/shutdown.texi: Document the new module.
74864 2008-10-11  Jim Meyering  <meyering@redhat.com>
74866         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74868 2008-10-11  Bruno Haible  <bruno@clisp.org>
74870         New module 'fclose'.
74871         * modules/fclose: New file.
74872         * lib/stdio.in.h (fclose): New declaration.
74873         * lib/fclose.c: New file.
74874         * m4/fclose.m4: New file.
74875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74876         REPLACE_FCLOSE.
74877         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74878         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74879         REPLACE_FCLOSE.
74880         * modules/close (Depends-on): fclose.
74881         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74883 2008-10-11  Bruno Haible  <bruno@clisp.org>
74885         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74886         set errno and don't call _close.
74888 2008-10-10  Bruno Haible  <bruno@clisp.org>
74890         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74891         ACL, not afterwards. Fixes test failure on Cygwin.
74893 2008-10-09  Ben Pfaff  <blp@gnu.org>
74895         * build-aux/announce-gen: Fix gnulib version related part of usage
74896         message.  Die with a useful error message if no tarballs are
74897         found.
74899 2008-10-10  Jim Meyering  <meyering@redhat.com>
74901         bootstrap: use git's --depth=N option only if it's supported
74902         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74903         recognize the --depth option.  Reported by Pádraig Brady.
74905 2008-10-09  Bruno Haible  <bruno@clisp.org>
74907         New module 'ioctl'.
74908         * modules/ioctl: New file.
74909         * lib/sys_socket.in.h (ioctl): Remove declaration.
74910         * lib/winsock.c: Include <sys/ioctl.h>.
74911         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74912         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74913         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74914         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74915         * doc/posix-functions/ioctl.texi: Mention the new module.
74917 2008-10-09  Bruno Haible  <bruno@clisp.org>
74919         New module 'sys_ioctl'.
74920         * lib/sys_ioctl.in.h: New file.
74921         * m4/sys_ioctl_h.m4: New file.
74922         * modules/sys_ioctl: New file.
74923         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74925 2008-10-09  Bruno Haible  <bruno@clisp.org>
74927         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74928         * lib/winsock.c: Include <stdarg.h>.
74929         (rpl_ioctl): Change to second argument 'int' and then varargs.
74931 2008-10-09  Bruno Haible  <bruno@clisp.org>
74933         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74934         when the sys_socket module is present and the system has <winsock2.h>.
74936 2008-10-09  Bruno Haible  <bruno@clisp.org>
74938         * doc/posix-functions/close.texi: Mention module 'close' instead of
74939         module 'sys_socket'.
74941 2008-10-09  Bruno Haible  <bruno@clisp.org>
74943         * doc/glibc-headers/sys_ioctl.texi: New file.
74944         * doc/gnulib.texi: Include it.
74946 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74947             Bruno Haible  <bruno@clisp.org>
74949         Combine the two replacements of 'close'.
74950         * lib/sys_socket.in.h (close): Define to a reminder to include
74951         <unistd.h>.
74952         (_gl_close_fd_maybe_socket): New declaration.
74953         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74954         * lib/winsock.c (close): Remove undefinition.
74955         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74956         needed for the gnulib module 'close'.
74957         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74958         define to an error symbol or to a warning, if suitable.
74959         * lib/close.c: Include <sys/socket.h>.
74960         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74961         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74962         UNISTD_H_HAVE_WINSOCK2_H.
74963         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74965         UNISTD_H_HAVE_WINSOCK2_H.
74966         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74967         (configure.ac): Set a module indicator.
74968         (Makefile.am): Substitute GNULIB_CLOSE.
74969         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74970         * modules/poll-tests (Depends-on): Add close.
74971         * modules/select-tests (Depends-on): Likewise.
74973 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74974             Bruno Haible  <bruno@clisp.org>
74976         New module 'close'.
74977         * modules/close: New file.
74978         * lib/unistd.in.h (close): Move declaration out of the
74979         FCHDIR_REPLACEMENT scope.
74980         (_gl_unregister_fd): New declaration.
74981         * lib/close.c: New file.
74982         * lib/fchdir.c (rpl_close): Remove function.
74983         * m4/close.m4: New file.
74984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74985         close.
74986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74987         REPLACE_CLOSE.
74988         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74989         REPLACE_CLOSE.
74990         * modules/fchdir (Depends-on): Add close.
74992 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74993             Bruno Haible  <bruno@clisp.org>
74995         * lib/fcntl.in.h (open): Simplify conditionals.
74996         (_gl_register_fd): New declaration.
74997         * lib/fchdir.c (rpl_open): Remove function.
74998         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74999         also.
75000         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
75001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
75002         open.
75004 2008-10-09  Jim Meyering  <meyering@redhat.com>
75006         GNUmakefile: use the more name-space-friendly "_version"
75007         * top/GNUmakefile (_dummy): Update.
75008         (_version): Rename from "version".
75010 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75011             Bruno Haible  <bruno@clisp.org>
75013         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
75014         rpl_close.
75015         (_gl_register_fd): New function, extracted from rpl_open.
75016         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
75017         (rpl_open, rpl_opendir): Use _gl_register_fd.
75019 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75021         Fix organization of 'open' replacement.
75022         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
75023         (gl_FUNC_OPEN): Use it.
75024         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
75026 2008-10-08  Bruno Haible  <bruno@clisp.org>
75028         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
75030 2008-10-08  Simon Josefsson  <simon@josefsson.org>
75032         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
75033         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
75034         listen).
75036 2008-10-08  Eric Blake  <ebb9@byu.net>
75038         GNUmakefile: add 'make version' target
75039         * top/GNUmakefile (_curr-ver): Split version update rules...
75040         (version): ...into a target.
75042 2008-10-07  Bruno Haible  <bruno@clisp.org>
75044         Use a more portable replacement expression for -0.0L.
75045         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
75046         instead of -0.0L. Fix m4 quotation.
75048         * tests/test-signbit.c: Include <float.h>.
75049         (minus_zero): New variable.
75050         (test_signbitl): Use minus_zero instead of -zero.
75051         * modules/signbit-tests (Depends-on): Add float.
75053         * tests/test-ceill.c: Include <float.h>.
75054         (zero): Remove variable.
75055         (minus_zero): New variable.
75056         (main): Use minus_zero instead of -zero.
75057         * modules/ceill-tests (Depends-on): Add float.
75059         * tests/test-floorl.c: Include <float.h>.
75060         (zero): Remove variable.
75061         (minus_zero): New variable.
75062         (main): Use minus_zero instead of -zero.
75063         * modules/floorl-tests (Depends-on): Add float.
75065         * tests/test-roundl.c: Include <float.h>.
75066         (zero): Remove variable.
75067         (minus_zero): New variable.
75068         (main): Use minus_zero instead of -zero.
75069         * modules/roundl-tests (Depends-on): Add float.
75071         * tests/test-truncl.c: Include <float.h>.
75072         (zero): Remove variable.
75073         (minus_zero): New variable.
75074         (main): Use minus_zero instead of -zero.
75075         * modules/truncl-tests (Depends-on): Add float.
75077         * tests/test-frexpl.c (zero): Remove variable.
75078         (minus_zero): New variable.
75079         (main): Use minus_zero instead of -zero.
75080         * modules/frexpl-tests (Depends-on): Add float.
75082         * tests/test-isnan.c (zerol): Remove variable.
75083         (minus_zerol): New variable.
75084         (test_long_double): Use minus_zerol instead of -zerol.
75085         * modules/isnan-tests (Depends-on): Add float.
75087         * tests/test-isnanl.h (zero): Remove variable.
75088         (minus_zero): New variable.
75089         (main): Use minus_zero instead of -zero.
75090         * modules/isnanl-nolibm-tests (Depends-on): Add float.
75091         * modules/isnanl-tests (Depends-on): Add float.
75093         * tests/test-ldexpl.c (zero): Remove variable.
75094         (minus_zero): New variable.
75095         (main): Use minus_zero instead of -zero.
75096         * modules/ldexpl-tests (Depends-on): Add float.
75098         * tests/test-snprintf-posix.h (zerol): Remove variable.
75099         (minus_zerol): New variable.
75100         (test_function): Use minus_zerol instead of -zerol.
75101         * modules/snprintf-posix-tests (Depends-on): Add float.
75102         * modules/vsnprintf-posix-tests (Depends-on): Add float.
75104         * tests/test-sprintf-posix.h (zerol): Remove variable.
75105         (minus_zerol): New variable.
75106         (test_function): Use minus_zerol instead of -zerol.
75107         * modules/sprintf-posix-tests (Depends-on): Add float.
75108         * modules/vsprintf-posix-tests (Depends-on): Add float.
75110         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
75111         (minus_zerol): New variable.
75112         (test_function): Use minus_zerol instead of -zerol.
75113         * modules/vasnprintf-posix-tests (Depends-on): Add float.
75115         * tests/test-vasprintf-posix.c (zerol): Remove variable.
75116         (minus_zerol): New variable.
75117         (test_function): Use minus_zerol instead of -zerol.
75118         * modules/vasprintf-posix-tests (Depends-on): Add float.
75120 2008-10-07  Simon Josefsson  <simon@josefsson.org>
75122         * MODULES.html.sh (Support for building documentation): Mention
75123         pmccabe2html.  Sort entries.
75125         Add pmccabe2html module, from gnupdf.
75126         * build-aux/pmccabe.css: New file.
75127         * build-aux/pmccabe2html: New file.
75128         * m4/pmccabe2html.m4: New file.
75129         * modules/pmccabe2html: New file.
75131 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
75133         flock: new module
75134         * MODULES.html.sh: Add to list of modules.
75135         * lib/flock.c: flock implementation for Windows and Unix systems
75136         which have fcntl.
75137         * doc/glibc-functions/flock.texi: Update documentation.
75138         * lib/sys_file.in.h: <sys/file.h> header file.
75139         * m4/flock.m4: M4 macros.
75140         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
75141         * modules/flock: flock module.
75142         * modules/flock-tests: flock tests module.
75143         * modules/sys_file: sys/file.h module.
75144         * tests/test-flock.c: test suite for flock.
75146 2008-10-06  Jim Meyering  <meyering@redhat.com>
75148         bootstrap: check for LT_INIT more portably still ;-)
75149         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
75150         Spotted by Bruno Haible.
75152 2008-10-06  Eric Blake  <ebb9@byu.net>
75154         test-signbit: avoid tripping Irix cc bug on -0.0L
75155         * tests/test-signbit.c (minus_zerol): Delete, and replace with
75156         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
75157         entire testsuite consistent and avoids an Irix 6.2 bug.
75159 2008-10-05  Bruno Haible  <bruno@clisp.org>
75160             Jim Meyering  <jim@meyering.net>
75162         Add an option for ignoring EPIPE during close_stdout.
75163         * lib/closeout.h: Include <stdbool.h>.
75164         (close_stdout_set_ignore_EPIPE): New declaration.
75165         * lib/closeout.c: Include <stdbool.h>.
75166         (ignore_EPIPE): New variable.
75167         (close_stdout_set_ignore_EPIPE): New function.
75168         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
75169         * lib/close-stream.c (close_stream): Mention the possible EPIPE
75170         failure.
75171         * modules/closeout (Depends-on): Add stdbool.
75173 2008-10-05  Bruno Haible  <bruno@clisp.org>
75175         * modules/accept: New file.
75176         * modules/bind: New file.
75177         * modules/connect: New file.
75178         * modules/getpeername: New file.
75179         * modules/getsockname: New file.
75180         * modules/getsockopt: New file.
75181         * modules/listen: New file.
75182         * modules/recv: New file.
75183         * modules/recvfrom: New file.
75184         * modules/send: New file.
75185         * modules/sendto: New file.
75186         * modules/setsockopt: New file.
75187         * modules/socket: New file.
75188         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
75189         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
75190         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
75191         the particular module is requested. Add a link warning when the
75192         particular module is not requested.
75193         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
75194         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
75195         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
75196         the particular module is requested.
75197         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
75198         gl_SYS_SOCKET_H_DEFAULTS): New macros.
75199         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
75200         * modules/sys_socket (Depends-on): Add link-warning.
75201         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
75202         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
75203         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
75204         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
75205         GL_LINK_WARNING.
75206         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
75207         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
75208         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
75209         * doc/posix-functions/getpeername.texi: Mention the new module
75210         'getpeername'.
75211         * doc/posix-functions/getsockname.texi: Mention the new module
75212         'getsockname'.
75213         * doc/posix-functions/getsockopt.texi: Mention the new module
75214         'getsockopt'.
75215         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
75216         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
75217         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
75218         * doc/posix-functions/send.texi: Mention the new module 'send'.
75219         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
75220         * doc/posix-functions/setsockopt.texi: Mention the new module
75221         'setsockopt'.
75222         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
75223         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
75224         listen, connect, accept.
75225         * modules/select-tests (Depends-on): Likewise.
75227 2008-10-05  Bruno Haible  <bruno@clisp.org>
75229         * lib/winsock.c (strerror): Remove unused #undef.
75230         (rpl_close): Remove unused local variable.
75232         * modules/sys_socket (Depends-on); Add errno.
75234 2008-10-05  Bruno Haible  <bruno@clisp.org>
75236         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
75237         (select): Add a link warning when the 'select' module is not used.
75238         * modules/sys_select (Depends-on): Add link-warning.
75239         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
75240         Suggested by Paolo Bonzini.
75242 2008-10-05  Jim Meyering  <meyering@redhat.com>
75244         bootstrap: check for LT_INIT more portably
75245         * build-aux/bootstrap: Avoid using grep -E, since it's not
75246         portable enough.  Suggestion from Bruno Haible.
75248 2008-10-05  Bruno Haible  <bruno@clisp.org>
75250         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
75251         as being fixed by gnulib.
75253 2008-10-05  Bruno Haible  <bruno@clisp.org>
75255         * modules/select-tests: New file, mostly copied from
75256         modules/sys_select-tests.
75257         * tests/test-select.c: New file, mostly copied from
75258         tests/test-sys_select.c.
75259         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
75260         * modules/sys_select-tests (Depends-on): Remove all dependencies.
75261         (Makefile.am): Remove test_sys_select_LDADD.
75263         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
75264         to an undefined symbol, for an error message.
75265         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
75266         (gl_SYS_SELECT_H_DEFAULTS): New macro.
75267         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
75268         winsock-select.c here.
75269         * modules/sys_select (Files): Remove lib/winsock-select.c.
75270         (Depends-on): Remove alloca.
75271         (Makefile.am): Substitute GNULIB_SELECT.
75272         * modules/select: New file.
75273         * doc/posix-functions/select.texi: Update.
75275 2008-10-05  Bruno Haible  <bruno@clisp.org>
75277         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
75278         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
75279         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
75280         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
75281         getdtablesize.
75282         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
75283         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
75285 2008-10-05  Bruno Haible  <bruno@clisp.org>
75287         * modules/getdtablesize-tests: New file.
75288         * tests/test-getdtablesize.c: New file.
75290         New module 'getdtablesize'.
75291         * lib/unistd.in.h (getdtablesize): New declaration.
75292         * lib/getdtablesize.c: New file.
75293         * m4/getdtablesize.m4: New file.
75294         * modules/getdtablesize: New file.
75295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75296         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
75297         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
75298         HAVE_GETDTABLESIZE.
75299         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
75301 2008-10-05  Bruno Haible  <bruno@clisp.org>
75303         * modules/sched (Makefile.am): Fix typo.
75304         Reported by Simon Josefsson.
75306 2008-10-05  Jim Meyering  <meyering@redhat.com>
75308         bootstrap: check for LT_INIT, too
75309         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
75310         are deprecated.  Suggestion from Ralf Wildenhues.
75312 2008-10-05  Bruno Haible  <bruno@clisp.org>
75314         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
75315         overriding them by ours.
75316         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
75318 2008-10-05  Jim Meyering  <meyering@redhat.com>
75320         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
75321         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
75322         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
75324 2008-10-04  Bruno Haible  <bruno@clisp.org>
75326         * modules/dup2 (License): Change to LGPLv2+.
75327         * modules/sleep (License): Likewise.
75328         * modules/perror (License): Likewise.
75329         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
75330         Blake.
75331         * modules/signal (License): Likewise.
75332         * modules/sigprocmask (License): Likewise.
75333         * modules/raise (License): Change to LGPLv2+, with approval by Jim
75334         Meyering.
75336 2008-10-04  Bruno Haible  <bruno@clisp.org>
75338         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
75339         Reported by Rainer Tammer <tammer@tammer.net>.
75341 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
75342             Bruno Haible  <bruno@clisp.org>
75344         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
75345         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
75346         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
75348 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
75350         filevercmp: new module
75351         * lib/filevercmp.h: New function filevercmp comparing version strings.
75352         * lib/filevercmp.c: Implementation of filevercmp function.
75353         * modules/filevercmp: Module metadata.
75354         * tests/test-filevercmp.c: Unit test for new module.
75355         * modules/filevercmp-tests: Unit test metadata.
75356         * MODULES.html.sh: Add filevercmp module.
75358 2008-10-03  Bruno Haible  <bruno@clisp.org>
75360         * lib/c-ctype.h: Add comment.
75361         Reported by Jim Meyering.
75363 2008-10-02  Bruno Haible  <bruno@clisp.org>
75365         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75367 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75369         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75370         name of bootstrap.conf accordingly.
75372 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75374         * build-aux/bootstrap: Install git-merge-changelog configuration
75375         items into .gitconfig if needed.
75377 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75379         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75380         git repository, and initialize/update it accordingly.
75382 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75384         * modules/fsync-tests: New file.
75385         * tests/test-fsync.c: New file.
75387         New module 'fsync'.
75388         * lib/fsync.c: New file.
75389         * m4/fsync.m4: New file.
75390         * modules/fsync: New file.
75391         * lib/unistd.in.h (fsync): New declaration.
75392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75393         GNULIB_FSYNC and HAVE_FSYNC.
75394         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75395         * MODULES.html.sh (posix_functions): Add fsync.
75396         * doc/posix-functions/fsync.texi: Mention the new module.
75398 2008-10-02  Jim Meyering  <meyering@redhat.com>
75400         fts.c: sync with similar code from coreutils' remove.c
75401         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75402         Guard also with "#if defined __linux__", since for now at least,
75403         this code is Linux-kernel-specific.
75405 2008-10-02  Jim Meyering  <meyering@redhat.com>
75407         fts: bug fixes
75408         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75409         Include <sys/vfs.h>, not <sys/statfs.h>.
75411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75412         Include <sys/vfs.h>, not <sys/statfs.h>.
75414 2008-10-01  Bruno Haible  <bruno@clisp.org>
75416         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75418         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75419         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75420         * doc/posix-functions/posix_spawnp.texi: Likewise.
75421         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75422         whether posix_spawn actually works.
75423         * m4/pipe.m4 (gl_PIPE): Likewise.
75424         * modules/execute (Files): Add m4/posix_spawn.m4.
75425         * modules/pipe (Files): Add m4/posix_spawn.m4.
75426         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75428 2008-10-01  Jim Meyering  <meyering@redhat.com>
75430         remove trailing spaces
75431         * NEWS: Likewise.
75432         * lib/poll.c (poll): Likewise.
75433         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75434         * lib/winsock.c (rpl_close): Likewise.
75435         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75436         * modules/yield: Likewise.
75437         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75438         * tests/test-sys_select.c (connect_to_socket): Likewise.
75440         fts.c: adjust a new interface to be more generally useful
75441         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75442         (fts_build): Adjust caller.
75444 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75446         * modules/cond-tests: New file.
75447         * tests/test-cond.c: New file.
75449 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75450             Bruno Haible  <bruno@clisp.org>
75452         * modules/cond (Dependencies): Add errno, time.
75453         * lib/glthread/cond.h: Include <time.h>.
75454         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75455         across platforms.
75457 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75458             Bruno Haible  <bruno@clisp.org>
75460         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75462 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75463             Bruno Haible  <bruno@clisp.org>
75465         * modules/tls-tests (Depends-on): Add thread, yield.
75466         (configure.ac): Remove all checks.
75467         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75468         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75469         gl_thread_self): Remove definitions. Include glthread/thread.h and
75470         glthread/yield.h instead.
75471         (test_tls): Pass an additional NULL argument to gl_thread_join.
75473 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75474             Bruno Haible  <bruno@clisp.org>
75476         * modules/lock-tests (Depends-on): Add thread, yield.
75477         (configure.ac): Remove all checks.
75478         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75479         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75480         gl_thread_self): Remove definitions. Include glthread/thread.h and
75481         glthread/yield.h instead.
75482         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75483         additional NULL argument to gl_thread_join.
75485 2008-09-30  Bruno Haible  <bruno@clisp.org>
75487         Fix the Win32 implementation of the 'thread' module.
75488         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75489         pointer type.
75490         (gl_thread_self): Invoke gl_thread_self_func.
75491         (gl_thread_self_func): New declaration.
75492         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75493         (do_init_self_key, init_self_key): New functions.
75494         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75495         Remove some fields.
75496         (running_threads, running_lock): Remove variables.
75497         (get_current_thread_handle): New function.
75498         (gl_thread_self_func, wrapper_func, glthread_create_func,
75499         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75500         simplified.
75502 2008-09-30  Bruno Haible  <bruno@clisp.org>
75504         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75505         files.
75507 2008-09-30  Jim Meyering  <meyering@redhat.com>
75509         fts.m4: correct the test for statfs.f_type
75510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75511         when checking for statfs.f_type.
75513 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75515         tests: avoid some compiler warnings
75516         * tests/test-memchr.c (main): Pass NULL indirectly.
75517         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75519 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75521         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75522         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75523         exactly specified dayshifts.
75524         (dayshift): New rule.
75525         (rel): Add dayshift.
75526         (relative_time_table) [tomorrow, yesterday, today, now]:
75527         Use tDAY_SHIFT in place of tDAY_UNIT.
75528         * tests/test-getdate.c: Add tests for now-disallowed countable
75529         dayshifts, e.g., "4 yesterday ago".
75531 2008-09-29  Bruno Haible  <bruno@clisp.org>
75533         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75534         * tests/test-posix_spawn1.in.sh: Renamed from
75535         tests/test-posix_spawn.in.sh.
75536         * tests/test-posix_spawn2.c: New file.
75537         * tests/test-posix_spawn2.in.sh: New file.
75538         * modules/posix_spawnp-tests (Files): Update.
75539         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75541 2008-09-29  Bruno Haible  <bruno@clisp.org>
75543         Propagate effects of putenv/setenv/unsetenv to child processes.
75544         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75545         * lib/pipe.c (create_pipe): Likewise.
75547 2008-09-29  Bruno Haible  <bruno@clisp.org>
75549         Enable use of shell scripts as executables in mingw.
75550         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75551         run the program as a shell script.
75552         * lib/pipe.c (create_pipe): Likewise.
75553         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75554         resulting array.
75556 2008-09-29  Eric Blake  <ebb9@byu.net>
75558         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75560 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75562         * doc/posix-functions/accept.texi: Update mingw problems.
75563         * doc/posix-functions/bind.texi: Update mingw problems.
75564         * doc/posix-functions/close.texi: Update mingw problems.
75565         * doc/posix-functions/connect.texi: Update mingw problems.
75566         * doc/posix-functions/getpeername.texi: Update mingw problems.
75567         * doc/posix-functions/getsockname.texi: Update mingw problems.
75568         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75569         * doc/posix-functions/ioctl.texi: Update mingw problems.
75570         * doc/posix-functions/listen.texi: Update mingw problems.
75571         * doc/posix-functions/recv.texi: Update mingw problems.
75572         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75573         * doc/posix-functions/select.texi: Update mingw problems.
75574         * doc/posix-functions/send.texi: Update mingw problems.
75575         * doc/posix-functions/sendto.texi: Update mingw problems.
75576         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75577         * doc/posix-functions/socket.texi: Update mingw problems.
75579 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75580             Bruno Haible  <bruno@clisp.org>
75582         * lib/sys_select.in.h: Include sys/time.h.
75583         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75584         * modules/sys_select: Depend on sys_time.
75585         * tests/test-sys_select.c: Test that sys/select.h defines struct
75586         timeval fully.
75588 2008-09-29  Bruno Haible  <bruno@clisp.org>
75590         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75591         * lib/sys_select.in.h: Likewise.
75593 2008-09-29  Bruno Haible  <bruno@clisp.org>
75595         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75597 2008-09-29  Bruno Haible  <bruno@clisp.org>
75599         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75600         Set LIBSOCKET instead of augmenting LIBS.
75601         * modules/sockets (Link): New section.
75602         * modules/sockets-tests (test_sockets_LDADD): New variable.
75603         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75604         * modules/poll-tests (test_poll_LDADD): New variable.
75605         * NEWS: Document the change.
75607 2008-09-29  Bruno Haible  <bruno@clisp.org>
75609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75610         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75611         ARPA_INET_H directly.
75612         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75614 2008-09-28  Bruno Haible  <bruno@clisp.org>
75616         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75617         from gl_HEADER_SYS_SOCKET.
75618         (gl_HEADER_SYS_SOCKET): Invoke it.
75619         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75621 2008-09-28  Bruno Haible  <bruno@clisp.org>
75623         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75624         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75625         Needed on OSF/1 4.0.
75627 2008-09-28  Bruno Haible  <bruno@clisp.org>
75629         Override open more carefully.
75630         * lib/open.c (orig_open): New function.
75631         (rpl_open): Use orig_open instead of open.
75632         * lib/fcntl.in.h: Add special invocation convention.
75633         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75634         (gl_FUNC_OPEN): Invoke it.
75636         Override freopen more carefully.
75637         * lib/freopen.c (orig_freopen): New function.
75638         (rpl_freopen): Use orig_freopen instead of freopen.
75639         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75640         (gl_FUNC_FREOPEN): Invoke it.
75642         Override fopen more carefully.
75643         * lib/fopen.c (orig_fopen): New function.
75644         (rpl_fopen): Use orig_fopen instead of fopen.
75645         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75646         (gl_FUNC_FOPEN): Invoke it.
75647         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75649 2008-09-28  Bruno Haible  <bruno@clisp.org>
75651         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75652         SIGPIPE.
75654 2008-09-28  Bruno Haible  <bruno@clisp.org>
75656         * tests/test-sigaction.c (handler, main): Disable the check whether
75657         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75658         glibc systems with LinuxThreads.
75660 2008-09-28  Bruno Haible  <bruno@clisp.org>
75662         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75664         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75665         with AIX xlc.
75666         * lib/fcntl.in.h (open): Likewise.
75667         Reported by Rainer Tammer <tammer@tammer.net>.
75669 2008-09-28  Bruno Haible  <bruno@clisp.org>
75671         * modules/posix_spawnp-tests: New file.
75672         * tests/test-posix_spawn.c: New file.
75673         * tests/test-posix_spawn.in.sh: New file.
75675         New module 'posix_spawnp'.
75676         * modules/posix_spawnp: New file.
75677         * lib/spawnp.c: New file, from GNU libc with modifications.
75678         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75680         New module 'posix_spawn'.
75681         * modules/posix_spawn: New file.
75682         * lib/spawn.c: New file, from GNU libc with modifications.
75683         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75685         New module 'posix_spawnattr_destroy'.
75686         * modules/posix_spawnattr_destroy: New file.
75687         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75688         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75689         module.
75691         New module 'posix_spawnattr_setsigmask'.
75692         * modules/posix_spawnattr_setsigmask: New file.
75693         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75694         modifications.
75695         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75696         new module.
75698         New module 'posix_spawnattr_getsigmask'.
75699         * modules/posix_spawnattr_getsigmask: New file.
75700         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75701         modifications.
75702         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75703         new module.
75705         New module 'posix_spawnattr_setsigdefault'.
75706         * modules/posix_spawnattr_setsigdefault: New file.
75707         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75708         modifications.
75709         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75710         new module.
75712         New module 'posix_spawnattr_getsigdefault'.
75713         * modules/posix_spawnattr_getsigdefault: New file.
75714         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75715         modifications.
75716         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75717         new module.
75719         New module 'posix_spawnattr_setschedpolicy'.
75720         * modules/posix_spawnattr_setschedpolicy: New file.
75721         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75722         modifications.
75723         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75724         new module.
75726         New module 'posix_spawnattr_getschedpolicy'.
75727         * modules/posix_spawnattr_getschedpolicy: New file.
75728         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75729         modifications.
75730         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75731         new module.
75733         New module 'posix_spawnattr_setschedparam'.
75734         * modules/posix_spawnattr_setschedparam: New file.
75735         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75736         modifications.
75737         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75738         new module.
75740         New module 'posix_spawnattr_getschedparam'.
75741         * modules/posix_spawnattr_getschedparam: New file.
75742         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75743         modifications.
75744         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75745         new module.
75747         New module 'posix_spawnattr_setpgroup'.
75748         * modules/posix_spawnattr_setpgroup: New file.
75749         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75750         modifications.
75751         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75752         module.
75754         New module 'posix_spawnattr_getpgroup'.
75755         * modules/posix_spawnattr_getpgroup: New file.
75756         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75757         modifications.
75758         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75759         module.
75761         New module 'posix_spawnattr_setflags'.
75762         * modules/posix_spawnattr_setflags: New file.
75763         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75764         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75765         module.
75767         New module 'posix_spawnattr_getflags'.
75768         * modules/posix_spawnattr_getflags: New file.
75769         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75770         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75771         module.
75773         New module 'posix_spawnattr_init'.
75774         * modules/posix_spawnattr_init: New file.
75775         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75776         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75777         module.
75779         New module 'posix_spawn_file_actions_destroy'.
75780         * modules/posix_spawn_file_actions_destroy: New file.
75781         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75782         modifications.
75783         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75784         the new module.
75786         New module 'posix_spawn_file_actions_addopen'.
75787         * modules/posix_spawn_file_actions_addopen: New file.
75788         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75789         modifications.
75790         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75791         the new module.
75793         New module 'posix_spawn_file_actions_adddup2'.
75794         * modules/posix_spawn_file_actions_adddup2: New file.
75795         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75796         modifications.
75797         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75798         the new module.
75800         New module 'posix_spawn_file_actions_addclose'.
75801         * modules/posix_spawn_file_actions_addclose: New file.
75802         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75803         modifications.
75804         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75805         the new module.
75807         New module 'posix_spawn_file_actions_init'.
75808         * modules/posix_spawn_file_actions_init: New file.
75809         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75810         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75811         new module.
75813         New module 'posix_spawn-internal'.
75814         * modules/posix_spawn-internal: New file.
75815         * lib/spawn_int.h: New file, from GNU libc with modifications.
75816         * lib/spawni.c: New file, from GNU libc with modifications.
75817         * m4/posix_spawn.m4: New file.
75819         New module 'spawn'.
75820         * modules/spawn: New file.
75821         * lib/spawn.in.h: New file, from GNU libc with modifications.
75822         * m4/spawn_h.m4: New file.
75823         * doc/posix-headers/spawn.texi: Mention the new module.
75825 2008-09-28  Bruno Haible  <bruno@clisp.org>
75827         * modules/sched-tests: New file.
75828         * tests/test-sched.c: New file.
75830         New module 'sched'.
75831         * modules/sched: New file.
75832         * lib/sched.in.h: New file.
75833         * m4/sched_h.m4: New file.
75834         * doc/posix-headers/sched.texi: Mention the new module.
75836 2008-09-27  Eric Blake  <ebb9@byu.net>
75838         Fix previous patch, and tweak references to $0.
75839         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75840         (func_version, func_gnulib_dir): Don't call this program
75841         gnulib-tool.
75842         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75843         with using $0 in function.
75844         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75845         (func_fatal_error): Reuse the name the user invoked us with.
75847 2008-09-27  Bruno Haible  <bruno@clisp.org>
75849         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75850         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75851         (gl_ICONV_H): Not here.
75852         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75853         instead of assigning ICONV_H directly.
75855         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75857         WCHAR_H directly.
75859 2008-09-27  Bruno Haible  <bruno@clisp.org>
75861         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75862         * modules/arpa_inet (Depends-on): Add link-warning.
75863         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75864         * modules/unistd (Makefile.am): Likewise.
75866 2008-09-26  Bruno Haible  <bruno@clisp.org>
75868         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75869         variables.
75870         (func_version): Essentially copied from gnulib-tool.
75871         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75872         func_readlink): Copied from gnulib-tool.
75874 2008-09-26  Bruno Haible  <bruno@clisp.org>
75876         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75877         invoking git-version-gen.
75879 2008-09-26  Bruno Haible  <bruno@clisp.org>
75881         * posix-modules: Update to directory names changed on 2008-01-19.
75882         Remove commas in output before splitting into words. No more need to
75883         avoid 'ftruncate' since 2007-02-19.
75885 2008-09-26  Bruno Haible  <bruno@clisp.org>
75887         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75889 2008-09-26  Bruno Haible  <bruno@clisp.org>
75891         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75892         * modules/fwriteerror (Depends-on): Add errno.
75894 2008-09-26  Bruno Haible  <bruno@clisp.org>
75896         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75897         * tests/test-vc-list-files-cvs.sh: Likewise.
75899 2008-09-26  Bruno Haible  <bruno@clisp.org>
75901         * doc/posix-headers/sys_resource.texi: Reorder items.
75903 2008-09-26  Jim Meyering  <meyering@redhat.com>
75905         fts: tweak inode comparison function
75906         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75907         inode numbers, as documented.
75909         fts: sort dirent entries on inode number before traversing
75910         This avoids a quadratic, seek-related performance penalty when
75911         operating on a directory containing many entries (measurable at 10k;
75912         3.5 hours at 2 million entries with a cold cache) on certain types
75913         of file systems, including ext3 and ext4, but not tmpfs.
75914         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75915         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75916         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75917         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75918         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75919         (fts_build): Set the stat.st_ino member from D_INO.
75920         If it is likely to be useful, sort dirent entries on inode number.
75922         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75923         and the struct statfs.f_type member.
75924         * modules/fts (Depends-on): Add d-ino.
75926 2008-09-26  Bruno Haible  <bruno@clisp.org>
75928         * modules/sigpipe-die (Depends-on): Add sigpipe.
75930         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75931         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75932         and GNULIB_STDIO_H_SIGPIPE are set.
75933         * lib/stdio-write.c: New file.
75934         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75935         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75936         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75937         REPLACE_STDIO_WRITE_FUNCS.
75938         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75939         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75940         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75941         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75942         * modules/stdio (Files): Add lib/stdio-write.c.
75943         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75944         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75945         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75946         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75947         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75948         REPLACE_FPRINTF_POSIX.
75949         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75950         REPLACE_PRINTF_POSIX.
75951         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75952         REPLACE_VFPRINTF_POSIX.
75953         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75954         REPLACE_VPRINTF_POSIX.
75955         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75956         SIGPIPE issue.
75957         * doc/posix-functions/fputc.texi: Likewise.
75958         * doc/posix-functions/fputs.texi: Likewise.
75959         * doc/posix-functions/fwrite.texi: Likewise.
75960         * doc/posix-functions/printf.texi: Likewise.
75961         * doc/posix-functions/putc.texi: Likewise.
75962         * doc/posix-functions/putchar.texi: Likewise.
75963         * doc/posix-functions/puts.texi: Likewise.
75964         * doc/posix-functions/vfprintf.texi: Likewise.
75965         * doc/posix-functions/vprintf.texi: Likewise.
75967         * modules/safe-write (Depends-on): Add write.
75969         * modules/sigpipe-tests: New file.
75970         * tests/test-sigpipe.c: New file.
75971         * tests/test-sigpipe.sh: New file.
75973         * modules/write: New file.
75974         * lib/unistd.in.h: Include <sys/types.h>.
75975         (write): New declaration.
75976         * lib/write.c: New file.
75977         * m4/write.m4: New file.
75978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75979         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75980         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75981         GNULIB_WRITE, REPLACE_WRITE.
75982         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75983         and the SIGPIPE issue.
75985         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75986         (raise): New declaration.
75987         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75988         (ext_signal): New function.
75989         (rpl_raise): New function.
75990         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75991         GNULIB_SIGNAL_H_SIGPIPE.
75992         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75993         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75995         * modules/sigpipe: New file.
75996         * m4/sigpipe.m4: New file.
75998 2008-09-25  Derek Price  <derek@ximbiot.com>
75999             Bruno Haible  <bruno@clisp.org>
76001         * gnulib-tool (func_import): Report all license incompatibilities, not
76002         just the first one.
76004 2008-09-25  Bruno Haible  <bruno@clisp.org>
76006         * gnulib-tool (func_import): When computing the edits, consider not
76007         only the Makefile.ams that exist but also those that will be generated.
76009 2008-09-25  Simon Josefsson  <simon@josefsson.org>
76011         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
76012         fixes gnulib-tool --test warning about duplicate dependency.
76014 2008-09-25  Bruno Haible  <bruno@clisp.org>
76016         * gnulib-tool: Don't ask the user to perform edits in the generated
76017         Makefile.ams.
76018         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
76019         apply to the Makefile.am being generated.
76020         (func_emit_tests_Makefile_am): Execute edits that apply to the
76021         Makefile.am being generated.
76022         (func_import): Setup list of Makefile.am edits before emitting the
76023         Makefile.ams, not at the end.
76024         (func_create_testdir): Update.
76025         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76027 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76029         * gnulib-tool (func_import): Store the --tests-base option in the
76030         comment in gnulib-cache.m4.
76032 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
76034         * NEWS: Document increased portability that sys_select now provides.
76036         * lib/sys_select.in.h: Install select wrapper.
76037         * lib/sys_socket.in.h: Use more descriptive name when there is no
76038         select wrapper.
76039         * lib/winsock-select.c: New.
76040         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
76041         Require gl_HEADER_SYS_SOCKET.
76042         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
76043         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
76044         * tests/test-sys_select.c: Add functional tests.
76046 2008-09-24  Eric Blake  <ebb9@byu.net>
76048         open, fopen: close fd leak in last patch
76049         * lib/open.c (rpl_open): Close fd before returning error.
76050         * lib/fopen.c (rpl_fopen): Close fd before returning error.
76051         * doc/posix-functions/open.texi (open): Document that Irix also
76052         has the bug.
76053         * doc/posix-functions/fopen.texi (fopen): Likewise.
76054         Reported by Paolo Bonzini.
76056 2008-09-24  Bruno Haible  <bruno@clisp.org>
76058         Ensure that a filename ending in a slash cannot be used to access a
76059         non-directory.
76060         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
76061         to check whether it's really a directory.
76062         * lib/fopen.c: Include fcntl.h, unistd.h.
76063         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
76064         and fdopen().
76065         * modules/fopen (Depends-on): Add unistd.
76066         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
76067         * tests/test-fopen.c (main): Likewise.
76068         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
76069         * doc/posix-functions/fopen.texi: Likewise.
76070         Reported by Eric Blake.
76072 2008-09-23  Eric Blake  <ebb9@byu.net>
76074         c-stack: avoid compiler optimizations when provoking overflow
76075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
76076         recursion harder to optimize, to ensure a stack overflow occurs.
76077         * tests/test-c-stack.c (recurse): Likewise.
76078         Borrowed from libsigsegv.
76080         c-stack: work around Irix sigaltstack bug
76081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
76082         whether sigaltstack uses wrong end of stack_t (copied in part from
76083         libsigsegv).
76084         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
76085         Irix bug, without requiring an over-allocation.
76086         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
76087         bug.
76089         fopen: document mingw bug on directories
76090         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
76091         not allowing a stream visiting a directory, even though reading
76092         from such a stream is not portable.
76094 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76096         * lib/poll.c: Rewrite.
76097         * modules/poll: Depend on alloca.
76099 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76101         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
76102         instead define prototypes for a full set of wrappers.  Ensure
76103         that Cygwin does not use the compatibility code, which is only
76104         for MinGW.
76105         * lib/winsock.c: New.
76106         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
76107         * modules/sys_socket: Add lib/winsock.c.
76109         * modules/poll-tests: Add errno and perror.
76110         * tests/test-poll.c: Use ioctl, not ioctlsocket.
76112 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76114         * tests/test-poll.c: Downgrade minimum needed Winsock version.
76116 2008-09-23  Bruno Haible  <bruno@clisp.org>
76118         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
76119         * doc/glibc-functions/*: Likewise.
76121 2008-09-23  Simon Josefsson  <simon@josefsson.org>
76123         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
76124         success.
76126 2008-09-22  Eric Blake  <ebb9@byu.net>
76127             Bruno Haible  <bruno@clisp.org>
76129         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
76130         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
76131         supply %A but mishandle pseudo-NaN.
76132         Reported by Simon Josefsson.
76134 2008-09-21  Bruno Haible  <bruno@clisp.org>
76136         * tests/test-lock.c (main): Tweak skip message.
76137         * tests/test-tls.c (main): Likewise.
76139 2008-09-21  Bruno Haible  <bruno@clisp.org>
76141         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
76142         whether 'struct sigaction' has sa_sigaction here...
76143         (gl_PREREQ_SIG_HANDLER_H): ... not here.
76144         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
76146 2008-09-21  Bruno Haible  <bruno@clisp.org>
76148         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
76149         section.
76150         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
76151         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
76152         the new section.
76153         (Support for obsolete systems lacking POSIX:2001): New section.
76154         (String handling <string.h>): Move strdup to the new section.
76155         Suggested by Simon Josefsson and Paolo Bonzini.
76157 2008-09-21  Bruno Haible  <bruno@clisp.org>
76159         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
76160         exponents in %e and %g results on 'long double'. Needed for mingw's
76161         improved *printf functions.
76162         * tests/test-vasprintf-posix.c (test_function): Likewise.
76163         * tests/test-snprintf-posix.h (test_function): Likewise.
76164         * tests/test-sprintf-posix.h (test_function): Likewise.
76165         Reported by Eric Blake.
76167 2008-09-21  Bruno Haible  <bruno@clisp.org>
76169         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
76170         * tests/test-sprintf-posix.h (test_function): Likewise.
76172 2008-09-21  Bruno Haible  <bruno@clisp.org>
76174         * modules/getpass (Depends-on): Add strdup-posix.
76176         New module 'strdup-posix'.
76177         * modules/strdup-posix: New file.
76178         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
76179         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
76180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76181         REPLACE_STRDUP.
76182         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
76183         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
76184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76185         strdup-posix.
76187         * modules/strdup (Depends-on): Remove malloc-posix.
76189 2008-09-20  Bruno Haible  <bruno@clisp.org>
76191         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
76192         Wildenhues.
76194 2008-09-20  Bruno Haible  <bruno@clisp.org>
76196         Ensure that wint_t gets defined on IRIX 5.3.
76197         * lib/wchar.in.h (wint_t): Define if not defined by the system.
76198         * lib/wctype.in.h (wint_t): Likewise.
76199         (__wctype_wint_t): Remove type.
76200         (isw*): Use wint_t instead of __wctype_wint_t.
76201         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
76202         * modules/wchar (Files): Add m4/wint_t.m4.
76203         (Makefile.am): Substitute HAVE_WINT_T.
76204         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
76205         * tests/test-wctype.c: Check that wint_t is defined.
76206         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
76207         * doc/posix-headers/wctype.texi: Likewise.
76208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76210 2008-09-18  Bruno Haible  <bruno@clisp.org>
76212         * gnulib-tool (func_exit): Update comment.
76214 2008-09-18  Simon Josefsson  <simon@josefsson.org>
76216         * modules/getaddrinfo (Depends-on): Remove strdup, this module
76217         assumes strdup exists and does not depend on strdup to return
76218         ENOMEM on out of memory conditions.
76220 2008-09-18  Bruno Haible  <bruno@clisp.org>
76222         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
76223         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
76224         digits for the exponent.
76226 2008-09-18  Jim Meyering  <meyering@redhat.com>
76227             Bruno Haible  <bruno@clisp.org>
76229         * lib/vasnprintf.c (decimal_point_char): Define also if
76230         NEED_PRINTF_INFINITE_LONG_DOUBLE.
76232 2008-09-16  Bruno Haible  <bruno@clisp.org>
76233         and Eric Blake  <ebb9@byu.net>
76235         vasnprintf: support Irix 5.3
76236         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
76237         that mishandle long double infinity.
76238         Reported by Tom G. Christensen.
76240 2008-09-16  Bruno Haible  <bruno@clisp.org>
76242         * doc/glibc-functions/scandir.texi: Mention the function is missing on
76243         Solaris 9.
76244         * doc/glibc-functions/alphasort.texi: Likewise.
76245         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
76247 2008-09-16  Jim Meyering  <meyering@redhat.com>
76249         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
76250         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
76251         a umask modification leak out of a subshell.  Otherwise, the
76252         opensolaris /bin/sh would be accepted and thus cause unwarranted
76253         failures in the coreutils test suite.
76255 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
76257         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
76258         to succeed.
76260 2008-09-16  Jim Meyering  <meyering@redhat.com>
76262         avoid spurious test failure when library is built without ACL support
76263         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76264         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
76265         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
76266         * tests/test-copy-acl.sh: Likewise.
76268 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76270         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
76271         based on character occurrence counts.
76273 2008-09-15  Eric Blake  <ebb9@byu.net>
76275         tests: avoid some compiler warnings
76276         * tests/test-memchr.c (main): Pass NULL indirectly.
76277         * tests/test-closein.c (main): Avoid unused variable.
76279 2008-09-15  Bruno Haible  <bruno@clisp.org>
76281         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
76282         are missing on OpenBSD 4.0 individually.
76283         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76285 2008-09-15  Bruno Haible  <bruno@clisp.org>
76287         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
76288         * doc/posix-functions/strerror.texi: Mention also Cygwin.
76289         * doc/posix-functions/perror.texi: Likewise.
76290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
76291         is missing.
76292         Reported by Eric Blake.
76294         * lib/errno.in.h: Use replacement values >= 2000.
76295         Reported by Eric Blake.
76297 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76299         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
76300         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
76301         limit.
76302         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
76303         compareseq was aborted.
76305 2008-09-14  Bruno Haible  <bruno@clisp.org>
76307         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
76308         yvec_edit_count.
76309         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
76310         (fstrcmp_bounded): Simplify result computation accordingly.
76312 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76314         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
76315         (fstrcmp): Define in terms of fstrcmp_bounded.
76316         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
76317         lower_bound argument.
76318         Return quickly if the result is certainly < lower_bound.
76319         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
76321 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76323         * lib/diffseq.h (EARLY_ABORT): New macro.
76324         (compareseq): Change return type to bool. Return true when EARLY_ABORT
76325         evaluates to true.
76327 2008-09-14  Bruno Haible  <bruno@clisp.org>
76329         * modules/perror-tests: New file.
76330         * tests/test-perror.sh: New file.
76331         * tests/test-perror.c: New file.
76333         New module 'perror'.
76334         * lib/stdio.in.h (perror): New declaration.
76335         * lib/perror.c: New file.
76336         * m4/perror.m4: New file.
76337         * modules/perror: New file.
76338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
76339         * doc/posix-functions/perror.texi: Mention the perror module.
76340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
76341         REPLACE_PERROR.
76342         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
76343         REPLACE_PERROR.
76345 2008-09-14  Bruno Haible  <bruno@clisp.org>
76347         * modules/stdio (Makefile.am): Reorder to match the order in
76348         lib/stdio.in.h.
76349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76351 2008-09-13  Bruno Haible  <bruno@clisp.org>
76353         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
76355 2008-09-13  Bruno Haible  <bruno@clisp.org>
76357         Extend strerror to cover the added errno values.
76358         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76359         (rpl_strerror): Provide error messages for the added errno values and
76360         for the WSA* values.
76361         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76362         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76363         strerror.
76364         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76365         * modules/strerror (Depends-on): Add errno.
76366         * doc/posix-functions/strerror.texi: Document the change.
76367         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76368         and EOVERFLOW.
76370 2008-09-13  Bruno Haible  <bruno@clisp.org>
76372         * modules/EOVERFLOW: Remove file.
76373         * m4/eoverflow.m4: Remove file.
76374         * modules/EOVERFLOW-tests: Remove file.
76375         * tests/test-EOVERFLOW.c: Remove file.
76376         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76377         * modules/ftell (Depends-on): Likewise.
76378         * modules/getdelim (Depends-on): Likewise.
76379         * modules/getugroups (Depends-on): Likewise.
76380         * modules/poll (Depends-on): Likewise.
76381         * modules/snprintf (Depends-on): Likewise.
76382         * modules/sprintf-posix (Depends-on): Likewise.
76383         * modules/vasnprintf (Depends-on): Likewise.
76384         * modules/vasprintf (Depends-on): Likewise.
76385         * modules/vfprintf-posix (Depends-on): Likewise.
76386         * modules/vsnprintf (Depends-on): Likewise.
76387         * modules/vsprintf-posix (Depends-on): Likewise.
76388         * modules/xvasprintf (Depends-on): Likewise.
76389         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76390         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76391         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76392         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76393         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76394         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76395         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76396         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76397         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76398         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76399         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76400         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76401         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76402         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76403         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76404         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76405         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76406         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76407         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76408         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76409         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76410         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76411         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76412         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76413         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76414         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76415         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76416         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76417         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76418         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76419         * MODULES.html.sh: Remove EOVERFLOW.
76420         * NEWS: Mention the change.
76422 2008-09-13  Bruno Haible  <bruno@clisp.org>
76424         * modules/errno-tests: New file.
76425         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76427         * lib/errno.in.h: New file.
76428         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76429         * modules/errno: New file.
76430         * doc/posix-headers/errno.texi: Update documentation.
76431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76433 2008-09-13  Bruno Haible  <bruno@clisp.org>
76435         * tests/test-poll.c: Use #if for native Windows, rather than testing
76436         __MSVCRT__.
76438 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76439             Bruno Haible  <bruno@clisp.org>
76441         * lib/glob.c: Don't include <pwd.h> on native Windows.
76442         (WINDOWS32): New macro.
76443         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76445 2008-09-13  Bruno Haible  <bruno@clisp.org>
76447         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76448         (ETIMEDOUT): Remove macro.
76449         (glthread_cond_timedwait_multithreaded): New declaration.
76450         (glthread_cond_timedwait): Use it.
76451         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76452         (glthread_cond_timedwait_multithreaded): New function.
76454 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76456         * modules/poll-tests: Do not check for io.h.
76457         * tests/test-poll.c: Check for __MSVCRT__ instead.
76459 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76461         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76462         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76463         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76465 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76467         * modules/poll-tests: New.
76468         * tests/test-poll.c: New.
76470 2008-09-12  Eric Blake  <ebb9@byu.net>
76472         frexp: test for NetBSD failure on -0.0
76473         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76474         not all, bugs from NetBSD 3.0 have been fixed.
76475         * doc/posix-functions/frexp.texi (frexp): Document bug.
76476         Reported by Thomas Klausner.
76478         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76479         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76480         literal -0.0.
76481         Reported by Jonathan C. Patschke <jp@centtech.com>.
76483 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76485         * lib/glthread/cond.h: Use dummy implementation also if
76486         USE_WIN32_THREADS.
76488 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76490         * modules/fnmatch-posix (License): Change to LGPLv2+.
76491         * modules/fnmatch-gnu (License): Likewise.
76493 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76495         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76497 2008-09-11  Jim Meyering  <meyering@redhat.com>
76499         * users.txt: Add gtk-vnc.
76501 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76503         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76504         rotate amounts.
76506         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76507         required for 16-bit and 8-bit rotates.
76508         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76509         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76510         UINT8_MAX instead of hard-coded constants.
76511         Suggested by Paul Eggert.
76513 2008-09-07  Bruno Haible  <bruno@clisp.org>
76515         * tests/test-striconveh.c (main): Check behaviour when converting from
76516         UTF-7.
76518         Make striconveh work better with stateful encodings.
76519         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76520         that iconv does not increment the inptr when returning -1/EINVAL.
76522 2008-09-07  Bruno Haible  <bruno@clisp.org>
76524         * build-aux/config.rpath: Update according to libtool-2.2.6.
76525         * build-aux/config.libpath: Likewise.
76527 2008-09-06  Bruno Haible  <bruno@clisp.org>
76529         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76530         * lib/freadptr.c (freadptr): Likewise.
76531         * lib/freadseek.c (freadptrinc): Likewise.
76532         Reported by Simon Josefsson.
76534 2008-09-06  Bruno Haible  <bruno@clisp.org>
76536         * modules/freadptr (License): Change to LGPLv2+.
76537         * modules/freadseek (License): Likewise.
76538         Suggested by Eric Blake.
76540         * modules/memchr2 (License): Change to LGPLv2+.
76541         Approved by Eric Blake.
76543 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76544             Bruno Haible  <bruno@clisp.org>
76546         Make gnulib-tool work with native 'sed' on AIX.
76547         * gnulib-tool (sed_noop): New variable.
76548         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76549         func_add_or_update, func_create_testdir): Use it to initialize sed
76550         script variables.
76551         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76553 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76554             Bruno Haible  <bruno@clisp.org>
76556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76557         also works after #include directives.
76559 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76561         getdate.y: reject an out-of-range timezone value
76562         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76563         the range [-24...+24].  When specified with only one or two digits,
76564         * tests/test-getdate.c: Tests for the fix.
76565         * doc/getdate.texi: Document this change.
76567 2008-09-03  Bruno Haible  <bruno@clisp.org>
76569         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76571 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76573         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76574         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76575         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76576         Blake <ebb9@byu.net>.
76578         * tests/test-bitrotate.c: Add more test vectors.
76580 2008-09-02  Eric Blake  <ebb9@byu.net>
76582         vasnprintf-posix: handle large precision via %.*d
76583         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76584         when handling it ourselves.
76585         * tests/test-vasnprintf-posix.c (test_function): Add test.
76586         * tests/test-snprintf-posix.h (test_function): Likewise.
76587         * tests/test-sprintf-posix.h (test_function): Likewise.
76588         * tests/test-vasprintf-posix.c (test_function): Likewise.
76589         Reported by Alain Guibert.
76591 2008-09-01  Eric Blake  <ebb9@byu.net>
76593         c-stack: make configure-time check more robust
76594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76595         successful sigaction call.
76596         Reported by Tom G. Christensen.
76598 2008-09-01  Bruno Haible  <bruno@clisp.org>
76600         New module 'findprog-lgpl'.
76601         * modules/findprog-lgpl: New file.
76602         * lib/findprog-lgpl.c: New file.
76603         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76604         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76605         to decide whether to use strdup or xstrdup, concatenated_filename or
76606         xconcatenated_filename.
76608 2008-09-01  Bruno Haible  <bruno@clisp.org>
76610         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76611         'xconcat-filename' (GPL).
76612         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76613         (License): Change to LGPLv2+.
76614         * modules/xconcat-filename: New file.
76615         * lib/concat-filename.h (concatenated_filename): Change specification.
76616         (xconcatenated_filename): New declaration.
76617         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76618         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76619         memory situations.
76620         * lib/xconcat-filename.c: New file.
76621         * NEWS: Mention the change.
76622         * lib/findprog.c: Include concat-filename.h, not filename.h.
76623         (find_in_path): Use xconcatenated_filename instead of
76624         concatenated_filename.
76625         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76626         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76627         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76628         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76629         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76630         instead of concatenated_filename.
76631         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76632         (execute_java_class): Use xconcatenated_filename instead of
76633         concatenated_filename.
76634         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76635         * modules/javacomp (Depends-on): Likewise.
76636         * modules/javaexec (Depends-on): Likewise.
76638 2008-09-01  Bruno Haible  <bruno@clisp.org>
76640         Split module 'filename' into 'filename' and 'concat-filename'.
76641         * modules/filename: Keep only lib/filename.h.
76642         (License): Change to LGPLv2+.
76643         * modules/concat-filename: New file, extracted from modules/filename.
76644         * lib/filename.h (concatenated_filename): Remove declaration.
76645         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76646         * lib/concat-filename.c: Include concat-filename.h.
76647         * NEWS: Mention the change.
76649 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76651         * lib/bitrotate.h (rotl8, rotr8): Add.
76653         * modules/bitrotate (configure.ac): Need
76654         AC_REQUIRE([AC_C_INLINE]).
76655         (Description): Mention stdint.h.  Reported by Bruno Haible
76656         <bruno@clisp.org>.
76658         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76659         Paolo Bonzini <bonzini@gnu.org>.
76661 2008-08-31  Bruno Haible  <bruno@clisp.org>
76663         Assume Solaris specific bi-arch conventions on Solaris systems.
76664         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76665         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76667         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76668         like acl_libdirstem.
76669         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76670         acl_libdirstem.
76671         * NEWS: Mention the change.
76672         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76674 2008-08-31  Jim Meyering  <meyering@redhat.com>
76676         * lib/strftime.h: Add comments describing the two added arguments.
76678         remove duplicate #include directives
76679         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76680         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76682 2008-08-31  Bruno Haible  <bruno@clisp.org>
76684         New module 'sigpipe-die'.
76685         * modules/sigpipe-die: New file.
76686         * lib/sigpipe-die.h: New file.
76687         * lib/sigpipe-die.c: New file.
76688         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76690 2008-08-31  Bruno Haible  <bruno@clisp.org>
76692         Don't override previously installed signal handlers.
76693         * lib/fatal-signal.c (saved_sigactions): New variable.
76694         (uninstall_handlers): Reset the signal to the saved handler, not
76695         to SIG_DFL (except when ignored).
76696         (install_handlers): Save the previous handlers.
76698 2008-08-30  Bruno Haible  <bruno@clisp.org>
76700         * gnulib-tool (func_reset_sigpipe): New function.
76701         (func_get_automake_snippet, func_modules_transitive_closure,
76702         func_import): Invoke it before a join command that reads from stdin,
76703         to avoid "echo: write error: Broken pipe" error messages on stderr.
76704         Reported by Sam Steingold <sds@gnu.org>.
76706 2008-08-30  Bruno Haible  <bruno@clisp.org>
76708         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76709         Code copied from m4/open.m4.
76710         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76711         access and the filename ends in a slash. Code copied from lib/open.c.
76712         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76713         * tests/test-fopen.c (main): Check against bug with trailing slash.
76715 2008-08-29  Bruno Haible  <bruno@clisp.org>
76717         Avoid some "gcc -pedantic" warnings.
76718         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76719         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76720         * lib/dirent.in.h: Likewise.
76721         * lib/fcntl.in.h: Likewise.
76722         * lib/float.in.h: Likewise.
76723         * lib/iconv.in.h: Likewise.
76724         * lib/inttypes.in.h: Likewise.
76725         * lib/locale.in.h: Likewise.
76726         * lib/math.in.h: Likewise.
76727         * lib/netinet_in.in.h: Likewise.
76728         * lib/search.in.h: Likewise.
76729         * lib/signal.in.h: Likewise.
76730         * lib/stdarg.in.h: Likewise.
76731         * lib/stdint.in.h: Likewise.
76732         * lib/stdio.in.h: Likewise.
76733         * lib/stdlib.in.h: Likewise.
76734         * lib/string.in.h: Likewise.
76735         * lib/strings.in.h: Likewise.
76736         * lib/sys_select.in.h: Likewise.
76737         * lib/sys_socket.in.h: Likewise.
76738         * lib/sys_stat.in.h: Likewise.
76739         * lib/sys_time.in.h: Likewise.
76740         * lib/sysexits.in.h: Likewise.
76741         * lib/time.in.h: Likewise.
76742         * lib/unistd.in.h: Likewise.
76743         * lib/wchar.in.h: Likewise.
76744         * lib/wctype.in.h: Likewise.
76745         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76746         * modules/fchdir (Makefile.am): Likewise.
76747         * modules/fcntl (Makefile.am): Likewise.
76748         * modules/float (Makefile.am): Likewise.
76749         * modules/iconv_open (Makefile.am): Likewise.
76750         * modules/inttypes (Makefile.am): Likewise.
76751         * modules/locale (Makefile.am): Likewise.
76752         * modules/math (Makefile.am): Likewise.
76753         * modules/netinet_in (Makefile.am): Likewise.
76754         * modules/search (Makefile.am): Likewise.
76755         * modules/signal (Makefile.am): Likewise.
76756         * modules/stdarg (Makefile.am): Likewise.
76757         * modules/stdint (Makefile.am): Likewise.
76758         * modules/stdio (Makefile.am): Likewise.
76759         * modules/stdlib (Makefile.am): Likewise.
76760         * modules/string (Makefile.am): Likewise.
76761         * modules/strings (Makefile.am): Likewise.
76762         * modules/sys_select (Makefile.am): Likewise.
76763         * modules/sys_socket (Makefile.am): Likewise.
76764         * modules/sys_stat (Makefile.am): Likewise.
76765         * modules/sys_time (Makefile.am): Likewise.
76766         * modules/sysexits (Makefile.am): Likewise.
76767         * modules/time (Makefile.am): Likewise.
76768         * modules/unistd (Makefile.am): Likewise.
76769         * modules/wchar (Makefile.am): Likewise.
76770         * modules/wctype (Makefile.am): Likewise.
76771         Reported by Reuben Thomas <rrt@sc3d.org>.
76773 2008-08-29  Bruno Haible  <bruno@clisp.org>
76775         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76776         any more.
76778 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76780         * MODULES.html.sh (Misc): Add bitrotate.
76782         * modules/bitrotate: New file.
76784         * lib/bitrotate.h: New file.
76786         * modules/bitrotate-tests: New file.
76788         * tests/test-bitrotate.c: New file.
76790         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76791         on the bitrotate module.
76793         * lib/arctwo.c: Use new bitrotate module.
76795 2008-08-29  Jim Meyering  <meyering@redhat.com>
76797         bootstrap: merge changes from coreutils
76798         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76799         of copied files.  Remove a kludge, now that this is fixed.
76800         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76801         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76802         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76804 2008-08-29  Bruno Haible  <bruno@clisp.org>
76806         * MODULES.html.sh: Remove --cvs-urls option.
76808 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76810         maint.mk: adjust to file name change
76811         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76813 2008-08-28  Jim Meyering  <meyering@redhat.com>
76815         * modules/getndelim2 (License): Relicense to LGPLv2+.
76816         Approved by Richard Stallman for the version of 1995, and by
76817         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76819 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76821         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76822         dummy if one is not available.  Do not touch them if
76823         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76824         (getc_maybe_unlocked): New.
76825         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76827 2008-08-26  Eric Blake  <ebb9@byu.net>
76829         doc/INSTALL: resync from autoconf
76830         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76831         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76832         moving...
76833         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76834         * INSTALL: Regenerate.
76835         * INSTALL.ISO: New file.
76836         * INSTALL.UTF-8: Likewise.
76838 2008-08-26  Jim Meyering  <meyering@redhat.com>
76840         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76841         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76842         these definitions conditional, so that they may be overridden, too.
76844 2008-08-26  Bruno Haible  <bruno@clisp.org>
76846         Generate INSTALL file variants with prettier quotes.
76847         * doc/Makefile (INSTALL_PRELUDE): New macro.
76848         (INSTALL): Use it.
76849         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76851 2008-08-26  Bruno Haible  <bruno@clisp.org>
76853         Run makeinfo in an English locale.
76854         * doc/Makefile (MAKEINFO): New variable.
76856 2008-08-26  Bruno Haible  <bruno@clisp.org>
76858         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76859         Suggested by Eric Blake.
76861 2008-08-25  Bruno Haible  <bruno@clisp.org>
76863         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76865 2008-08-25  Eric Blake  <ebb9@byu.net>
76867         c-stack: test that stack overflow can be caught
76868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76869         that platform allows handling stack overflow; at least OS/2 EMX
76870         has sigaltstack, but crashes before transferring control to
76871         handler on stack overflow.
76872         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76873         check for HAVE_STACK_OVERFLOW_HANDLING.
76874         Reported by Elbert Pol.
76876 2008-08-25  Bruno Haible  <bruno@clisp.org>
76878         * doc/posix-functions/strftime.texi: Fix description of strftime
76879         module.
76881 2008-08-24  Bruno Haible  <bruno@clisp.org>
76883         * tests/uniwidth/test-uc_width2.c: New file.
76884         * tests/uniwidth/test-uc_width2.sh: New file.
76885         * modules/uniwidth/width-tests (Files): Add the new files.
76886         (TESTS): Add uniwidth/test-uc_width2.sh.
76887         (TESTS_ENVIRONMENT): New variable.
76888         (check_PROGRAMS): Add test-uc_width2.
76889         (test_uc_width2_SOURCES): New variable.
76891         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76892         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76893         not 0x00AB.
76894         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76896 2008-08-22  Eric Blake  <ebb9@byu.net>
76898         test-lock, test-tls: mention why a test is skipped
76899         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76900         skipped.
76901         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76903         count-one-bits: relax license
76904         * modules/count-one-bits (License): Relicense to LGPLv2+.
76905         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76907 2008-08-22  Andreas Schwab  <schwab@suse.de>
76909         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76910         Remove spurious space in assignment.
76912 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76914         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76915         Paul Eggert <eggert@CS.UCLA.EDU>.
76917 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76919         * modules/gettext: Add m4/threadlib.m4.
76921 2008-08-19  Eric Blake  <ebb9@byu.net>
76923         test-c-stack: fix compilation failure on FreeBSD 5.0
76924         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76925         headers before <sys/resource.h>.
76926         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76927         the bug.
76928         Reported by Nelson H. F. Beebe.
76930         strverscmp: migrate from "strverscmp.h" to <string.h>
76931         * modules/string (Makefile.am): Add new hooks.
76932         * modules/strverscmp (Files): Remove strverscmp.h.
76933         (Depends-on): Add string.
76934         (configure.ac): Add indicator.
76935         (Include): Mention new header.
76936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76937         defaults.
76938         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76939         results.
76940         * lib/strverscmp.h: Delete.
76941         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76942         * tests/test-strverscmp.c (includes): Adjust client.
76943         * lib/check-version.c (includes): Likewise.
76944         * NEWS: Document the change.
76946         strverscmp: add unit test
76947         * modules/strverscmp-tests: New file.
76948         * tests/test-strverscmp.c: Likewise.
76950 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76952         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76953         regarding Windows crypto stuff, from Mono.
76955 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76957         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76958         if present, for intel RND.  Return error on failures.
76960 2008-08-18  Ben Pfaff  <blp@gnu.org>
76962         gitlog-to-changelog: give better diagnostic for failed pipe-open
76963         * build-aux/gitlog-to-changelog: Improve error message: suggest
76964         that the version of Git may be too old.
76966 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76968         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76969         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76971 2008-08-18  Bruno Haible  <bruno@clisp.org>
76973         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76974         pthread_in_use().
76976 2008-08-18  Bruno Haible  <bruno@clisp.org>
76978         * lib/glthread/threadlib.c: Include <pthread.h>.
76980 2008-08-18  Bruno Haible  <bruno@clisp.org>
76982         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76983         glthread_recursive_lock_* macros.
76984         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76985         Fix syntax error.
76987 2008-08-18  Bruno Haible  <bruno@clisp.org>
76989         * lib/glthread/thread.c: Avoid forcing a context switch right after
76990         thread creation.
76992 2008-08-17  Bruno Haible  <bruno@clisp.org>
76994         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76995         * lib/glthread/thread.h: Provide Win32 specific implementation.
76996         * modules/thread (Files): Add lib/glthread/thread.c.
76997         (Depends-on): Add lock.
76998         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
77000 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77002         New module 'yield'.
77003         * modules/yield: New file.
77004         * lib/glthread/yield.h: New file.
77005         * m4/yield.m4: New file.
77006         * MODULES.html.sh (Multithreading): Add yield.
77008 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77010         New module 'thread'.
77011         * modules/thread: New file.
77012         * lib/glthread/thread.h: New file.
77013         * m4/thread.m4: New file.
77014         * MODULES.html.sh (Multithreading): Add thread.
77016 2008-08-17  Bruno Haible  <bruno@clisp.org>
77018         * lib/glthread/lock.h: Include <stdlib.h> always.
77019         * lib/glthread/tls.h: Likewise.
77020         * lib/glthread/cond.h: Likewise.
77022 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77024         New module 'cond'.
77025         * modules/cond: New file.
77026         * lib/glthread/cond.h: New file.
77027         * lib/glthread/cond.c: New file.
77028         * m4/cond.m4: New file.
77029         * MODULES.html.sh (Multithreading): Add cond.
77031 2008-08-16  Eric Blake  <ebb9@byu.net>
77033         c-stack: fix regression on Irix 5.3 from 2008-06-21
77034         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
77035         sa_sigaction...
77036         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
77037         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
77038         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
77039         * modules/signal (Makefile.am): Use the value.
77040         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
77041         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
77042         * doc/posix-headers/signal.texi (signal.h): Document this
77043         portability issue.
77044         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
77045         Reported by Tom G. Christensen.
77047 2008-08-17  Bruno Haible  <bruno@clisp.org>
77049         New module 'threadlib'.
77050         * modules/threadlib: New file.
77051         * lib/glthread/threadlib.c: New file, extracted from
77052         lib/glthread/lock.c.
77053         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
77054         functions.
77055         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
77056         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
77057         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
77058         macros.
77059         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
77060         (gl_DISABLE_THREADS): Remove macro.
77061         * modules/lock (Files): Remove build-aux/config.rpath.
77062         (Depends-on): Remove havelib. Add threadlib.
77063         (configure.ac-early): Remove section.
77064         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
77065         * modules/tls (Depends-on): Remove lock. Add threadlib.
77066         (Link): New section, copied from threadlib.
77067         * MODULES.html.sh (Multithreading): Add threadlib.
77069 2008-08-14  Bruno Haible  <bruno@clisp.org>
77071         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
77072         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
77073         glthread_rwlock_unlock, glthread_rwlock_destroy,
77074         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
77075         glthread_recursive_lock_destroy): Define as macros always.
77076         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
77077         glthread_lock_lock.
77078         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
77079         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
77080         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
77081         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
77082         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
77083         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
77084         (glthread_recursive_lock_lock_func): Renamed from
77085         glthread_recursive_lock_lock.
77086         (glthread_recursive_lock_unlock_func): Renamed from
77087         glthread_recursive_lock_unlock.
77088         (glthread_recursive_lock_destroy_func): Renamed from
77089         glthread_recursive_lock_destroy.
77091 2008-08-14  Bruno Haible  <bruno@clisp.org>
77093         * lib/glthread/lock.h: Renamed from lib/lock.h.
77094         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
77095         * lib/glthread/tls.h: Renamed from lib/tls.h.
77096         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
77097         * lib/fstrcmp.c: Update includes.
77098         * lib/strsignal.c: Update includes.
77099         * modules/lock (Files, Makefile.am): Update.
77100         (Include): Change to "glthread/lock.h".
77101         * modules/tls (Files, Makefile.am): Update.
77102         (Include): Change to "glthread/tls.h".
77103         * tests/test-lock.c: Update includes.
77104         * tests/test-tls.c: Update includes.
77105         * NEWS: Mention the renamed header files.
77107 2008-08-11  Jim Meyering  <meyering@redhat.com>
77109         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
77111 2008-08-11  Eric Blake  <ebb9@byu.net>
77113         test-c-stack: avoid C99-ism
77114         * tests/test-c-stack.c (main): Fix whitespace, move declaration
77115         before statement.
77116         Reported by Alain Guibert.
77118 2008-08-10  Jim Meyering  <meyering@redhat.com>
77120         ensure that return value of uinttostr et al are not ignored
77121         * lib/inttostr.h (__GNUC_PREREQ): Define.
77122         (__attribute_warn_unused_result__): Define.
77123         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
77125 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
77127         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
77128         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
77130 2008-08-07  Jim Meyering  <meyering@redhat.com>
77132         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
77134         * modules/mkstemp (License): Relicense under LGPLv2+.
77135         * modules/tempname (License): Likewise.
77137 2008-08-06  Bruno Haible  <bruno@clisp.org>
77139         * lib/poll.c (poll): Further micro-optimization.
77141 2008-08-06  Jim Meyering  <meyering@redhat.com>
77143         inet_pton.c: use locale-independent tolower
77144         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
77145         (inet_pton6): Use c_tolower rather than tolower.
77146         * modules/inet_pton (Depends-on): Add c-ctype.
77148 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
77150         * lib/poll.c (poll): Avoid division when timeout is 0, cache
77151         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
77153 2008-08-06  Jim Meyering  <meyering@redhat.com>
77155         * modules/inet_pton (License): Relicense under LGPLv2+.
77157 2008-08-03  Bruno Haible  <bruno@clisp.org>
77159         Additional non-aborting API for lock and tls.
77160         * lib/lock.h: Include <errno.h>.
77161         (glthread_lock_init): New macro/function.
77162         (gl_lock_init): Define as wrapper around glthread_lock_init.
77163         (glthread_lock_lock): New macro/function.
77164         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
77165         (glthread_lock_unlock): New macro/function.
77166         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
77167         (glthread_lock_destroy): New macro/function.
77168         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
77169         (glthread_rwlock_init): New macro/function.
77170         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
77171         (glthread_rwlock_rdlock): New macro/function.
77172         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
77173         (glthread_rwlock_wrlock): New macro/function.
77174         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
77175         (glthread_rwlock_unlock): New macro/function.
77176         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
77177         (glthread_rwlock_destroy): New macro/function.
77178         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
77179         (glthread_recursive_lock_init): New macro/function.
77180         (gl_recursive_lock_init): Define as wrapper around
77181         glthread_recursive_lock_init.
77182         (glthread_recursive_lock_lock): New macro/function.
77183         (gl_recursive_lock_lock): Define as wrapper around
77184         glthread_recursive_lock_lock.
77185         (glthread_recursive_lock_unlock): New macro/function.
77186         (gl_recursive_lock_unlock): Define as wrapper around
77187         glthread_recursive_lock_unlock.
77188         (glthread_recursive_lock_destroy): New macro/function.
77189         (gl_recursive_lock_destroy): Define as wrapper around
77190         glthread_recursive_lock_destroy.
77191         (glthread_once): New macro/function.
77192         (gl_once): Define as wrapper around glthread_once.
77193         Update function declarations.
77194         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
77195         glthread_rwlock_init. Return error code.
77196         (glthread_rwlock_rdlock_multithreaded): Renamed from
77197         glthread_rwlock_rdlock. Return error code.
77198         (glthread_rwlock_wrlock_multithreaded): Renamed from
77199         glthread_rwlock_wrlock. Return error code.
77200         (glthread_rwlock_unlock_multithreaded): Renamed from
77201         glthread_rwlock_unlock. Return error code.
77202         (glthread_rwlock_destroy_multithreaded): Renamed from
77203         glthread_rwlock_destroy. Return error code.
77204         (glthread_recursive_lock_init_multithreaded): Renamed from
77205         glthread_recursive_lock_init. Return error code.
77206         (glthread_recursive_lock_lock_multithreaded): Renamed from
77207         glthread_recursive_lock_lock. Return error code.
77208         (glthread_recursive_lock_unlock_multithreaded): Renamed from
77209         glthread_recursive_lock_unlock. Return error code.
77210         (glthread_recursive_lock_destroy_multithreaded): Renamed from
77211         glthread_recursive_lock_destroy. Return error code.
77212         (glthread_once_call): Make static.
77213         (glthread_once_multithreaded): Renamed from glthread_once.
77214         * lib/tls.h: Include <errno.h>.
77215         (glthread_tls_key_init): New macro/function.
77216         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
77217         (glthread_tls_set): New macro/function.
77218         (gl_tls_set): Define as wrapper around glthread_tls_set.
77219         (glthread_tls_key_destroy): New macro/function.
77220         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
77221         Update function declarations.
77222         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
77223         glthread_tls_get.
77224         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77226 2008-08-04  Eric Blake  <ebb9@byu.net>
77228         gnumakefile: use space, not TAB, outside of targets
77229         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
77231 2008-08-02  Jim Meyering  <meyering@redhat.com>
77233         getdate.y: avoid locale-dependent date parsing failure
77234         In Turkish locales, getdate would fail to recognize keywords
77235         containing a lowercase "i".  The solution is not to rely on
77236         locale-sensitive case-conversion.
77237         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
77238         (lookup_word): Use c_toupper in place of toupper.
77239         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
77240         Reported by Vefa Bicakci <bicave@superonline.com> in
77241         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
77242         * modules/getdate (Depends-on): Add c-ctype.
77244 2008-08-02  Bruno Haible  <bruno@clisp.org>
77246         * gnulib-tool (func_import): When updating or creating a .gitignore
77247         file, prepend each added line with a slash, and ignore leading slashes
77248         from the existing lines.
77249         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77251 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77253         Portability fix for GNU make 3.79.1.
77254         * top/GNUmakefile: Avoid 'else COND', which older GNU make
77255         versions do not understand.
77257 2008-08-01  Bruno Haible  <bruno@clisp.org>
77259         Work around bug of HP-UX 10.20 cc with -0.0 literal.
77260         * tests/test-isnanf.h (zero): New variable.
77261         (main): Avoid literal -0.0f.
77262         * tests/test-isnand.h (zero): New variable.
77263         (main): Avoid literal -0.0.
77264         * tests/test-isnanl.h (zero): New variable.
77265         (main): Avoid literal -0.0L.
77266         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
77267         (test_float, test_double, test_long_double): Avoid literals -0.0f,
77268         -0.0, -0.0L.
77269         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
77270         (test_signbitd): Avoid literal -0.0.
77271         (test_signbitl): Avoid literal -0.0L.
77272         * tests/test-ceilf1.c (zero): New variable.
77273         (main): Avoid literal -0.0f.
77274         * tests/test-ceill.c (zero): New variable.
77275         (main): Avoid literal -0.0L.
77276         * tests/test-floorf1.c (zero): New variable.
77277         (main): Avoid literal -0.0f.
77278         * tests/test-floorl.c (zero): New variable.
77279         (main): Avoid literal -0.0L.
77280         * tests/test-roundf1.c (zero): New variable.
77281         (main): Avoid literal -0.0f.
77282         * tests/test-round1.c (zero): New variable.
77283         (main): Avoid literal -0.0.
77284         * tests/test-roundl.c (zero): New variable.
77285         (main): Avoid literal -0.0L.
77286         * tests/test-truncf1.c (zero): New variable.
77287         (main): Avoid literal -0.0f.
77288         * tests/test-trunc1.c (zero): New variable.
77289         (main): Avoid literal -0.0.
77290         * tests/test-truncl.c (zero): New variable.
77291         (main): Avoid literal -0.0L.
77292         * tests/test-frexp.c (zero): New variable.
77293         (main): Avoid literal -0.0.
77294         * tests/test-frexpl.c (zero): New variable.
77295         (main): Avoid literal -0.0L.
77296         * tests/test-ldexpl.c (zero): New variable.
77297         (main): Avoid literal -0.0L.
77298         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77299         (zerod, zerol): New variables.
77300         (test_function): Avoid literals -0.0, -0.0L.
77301         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77302         (zerod, zerol): New variables.
77303         (test_function): Avoid literals -0.0, -0.0L.
77304         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77305         (zerod, zerol): New variables.
77306         (test_function): Avoid literals -0.0, -0.0L.
77307         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77308         (zerod, zerol): New variables.
77309         (test_function): Avoid literals -0.0, -0.0L.
77310         * tests/test-strtod.c (zero): New variable.
77311         (main): Avoid literal -0.0.
77312         Reported by Jonathan C. Patschke <jp@centtech.com>.
77314 2008-07-31  Jim Meyering  <meyering@redhat.com>
77316         sha256.h: correct definition of SHA224_DIGEST_SIZE
77317         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
77318         Reported by Paulie Pena IV <paulie4@gmail.com>.
77319         Define as 224 / 8, rather than as a literal.
77320         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
77321         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
77322         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
77324 2008-07-31  Bruno Haible  <bruno@clisp.org>
77326         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
77327         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
77328         Reported by Jonathan Patschke <jp@centtech.com>.
77330 2008-07-31  Bruno Haible  <bruno@clisp.org>
77332         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
77333         Reported by Paolo Bonzini <bonzini@gnu.org>.
77335 2008-07-30  Eric Blake  <ebb9@byu.net>
77337         test-strtod: allow compilation without -lm
77338         * tests/test-strtod.c (main): Avoid link dependence on fabs.
77339         Reported by Dennis Clarke <blastwave@gmail.com>.
77341 2008-07-28  Jim Meyering  <meyering@redhat.com>
77343         bootstrap: work also when there are no .po files in po/
77344         * build-aux/bootstrap (update_po_files): Complete the change
77345         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
77347 2008-07-27  Jim Meyering  <meyering@redhat.com>
77349         * users.txt: Add zile.
77351 2008-07-26  Ben Pfaff  <blp@gnu.org>
77353         Add missing dependencies on new m4/exponent[fdl].m4 files.
77354         * modules/isnanf-nolibm: Add m4/exponentf.m4.
77355         * modules/isnand-nolibm: Add m4/exponentd.m4.
77356         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77357         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77358         m4/isnan[fdl].m4, because the macros actually used moved.
77359         Reported by Jim Meyering.
77361 2008-07-14  Ben Pfaff  <blp@gnu.org>
77363         Add isinf module.
77364         * lib/isinf.c: New file.
77365         * lib/math.in.h: Define isinf macro if we have decided to replace
77366         it.
77367         * m4/isinf.m4: New file.
77368         * m4/math_h.m4: Initialize and substitute variables for isinf
77369         module.
77370         * modules/isinf: New file.
77371         * modules/isinf-tests: New file.
77372         * modules/math: Add substitutions for new module.
77373         * tests/test-isinf.c: New file.
77374         * doc/posix-functions/isinf.texi: Mention new module.
77375         * MODULES.html.sh: Mention new module.
77377 2008-07-14  Ben Pfaff  <blp@gnu.org>
77379         Factor out some macros for use by additional modules.
77380         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77381         exponentf.m4.
77382         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77383         exponentd.m4.
77384         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77385         file exponentl.m4.
77386         * m4/exponentf.m4: New file.
77387         * m4/exponentd.m4: New file.
77388         * m4/exponentl.m4: New file.
77389         * modules/isnanf: Use new file m4/exponentf.m4.
77390         * modules/isnand: Use new file m4/exponentd.m4.
77391         * modules/isnanl: Use new file m4/exponentl.m4.
77393 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77395         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77396         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77397         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77398         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77400         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77401         readlink on platforms without PATH_MAX.
77403 2008-07-21  Eric Blake  <ebb9@byu.net>
77405         Warn, not fail, on stale version.
77406         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77408         Don't allow installation with stale devel version number.
77409         * top/GNUmakefile (_is-install-target): New macro.
77410         (_curr-ver): Forbid installation with stale version number.
77412 2008-07-20  Bruno Haible  <bruno@clisp.org>
77414         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77415         TESTS_ENVIRONMENT.
77416         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77418 2008-07-20  Bruno Haible  <bruno@clisp.org>
77420         * lib/c-stack.h (c_stack_action): Add documentation.
77421         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77423 2008-07-20  Bruno Haible  <bruno@clisp.org>
77425         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77426         * modules/readlink (License): Likewise.
77428 2008-07-17  Eric Blake  <ebb9@byu.net>
77430         * modules/c-stack (Link): Fix typo.
77432         Make c-stack use libsigsegv, when available.
77433         * modules/c-stack (Depends-on): Add libsigsegv.
77434         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77435         needed.
77436         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77437         (segv_handler, overflow_handler, c_stack_action)
77438         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77439         implementation when libsigsegv is available, but only when using
77440         the library is necessary.
77441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77442         comment, explaining why XSI check fails on Linux.
77443         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77444         * tests/test-c-stack2.sh: Tweak skip message.
77445         * NEWS: Document new link-time requirements.
77447 2008-07-16  Eric Blake  <ebb9@byu.net>
77449         c-stack: Expose false positives when not using libsigsegv.
77450         * modules/c-stack-tests (Files): Expand test.
77451         * tests/test-c-stack.c (main): Add means to conditionally trigger
77452         non-overflow SIGSEGV.
77453         * tests/test-c-stack2.sh: New file.
77455 2008-07-14  Bruno Haible  <bruno@clisp.org>
77457         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77458         Reported by Eric Blake.
77460 2008-07-14  Sam Steingold  <sds@gnu.org>
77461             Bruno Haible  <bruno@clisp.org>
77463         New module libsigsegv.
77464         * modules/libsigsegv: New file.
77465         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77466         modifications.
77467         * MODULES.html.sh (Signal handling): New section.
77469 2008-07-14  Bruno Haible  <bruno@clisp.org>
77471         * modules/unictype/ctype-* (Description): Add the word "function".
77472         Improves the resulting doc in MODULES.html.
77474 2008-07-12  Ben Pfaff  <blp@gnu.org>
77476         Add longlong module.
77477         * modules/longlong: New file.
77479 2008-07-12  Bruno Haible  <bruno@clisp.org>
77481         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77482         to empty.
77484 2008-07-10  Ben Pfaff  <blp@gnu.org>
77486         Add isnan module.
77487         * doc/posix-functions/isnan.texi: Mention new module.
77488         * lib/math.in.h: Define isnan macro if we have decided to replace
77489         it.
77490         * m4/isnan.m4: New file.
77491         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77492         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77493         also.
77494         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77495         redundancy.
77496         * m4/math_h.m4: Initialize and substitute variables for isnan
77497         module.
77498         * modules/isnan: New file.
77499         * modules/isnan-tests: New file.
77500         * modules/math: Add substitutions for new module.
77501         * tests/test-isnan.c: New file.
77502         * MODULES.html.sh: Mention new module.
77504 2008-07-10  Ben Pfaff  <blp@gnu.org>
77506         Add isnanf module.
77507         * lib/isnanf.m4: New file.
77508         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77509         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77510         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77511         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77512         * modules/isnanf: New file.
77513         * modules/isnanf-tests: New file.
77514         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77515         files.
77516         * tests/test-isnanf-nolibm.c: factored most of its contents into
77517         new file tests/test-isnanf.h.
77518         * tests/test-isnanf.h: New file.
77519         * tests/test-isnanf.c: New file.
77520         * MODULES.html.sh: Mention new module.
77521         * doc/glibc-functions/isnanf.texi: Mention new module.
77523 2008-07-10  Ben Pfaff  <blp@gnu.org>
77525         Add isnand module.
77526         * lib/isnand.h: New file.
77527         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77528         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77529         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77530         functionality also.
77531         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77532         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77533         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77534         * modules/isnand: New file.
77535         * modules/isnand-tests: New file.
77536         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77537         files.
77538         * tests/test-isnand-nolibm.c: factored most of its contents into
77539         new file tests/test-isnand.h.
77540         * tests/test-isnand.h: New file.
77541         * tests/test-isnand.c: New file.
77542         * MODULES.html.sh: Mention new module.
77544 2008-07-10  Ben Pfaff  <blp@gnu.org>
77546         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77547         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77548         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77549         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77550         * modules/isnanf-nolibm: Update references to renamed files.
77551         * modules/isnand-nolibm: Likewise.
77552         * modules/isnanf-nolibm-tests: Likewise.
77553         * modules/isnand-nolibm-tests: Likewise.
77554         * lib/frexp.c: Likewise.
77555         * lib/isfinite.c: Likewise.
77556         * lib/signbitd.c: Likewise.
77557         * lib/signbitf.c: Likewise.
77558         * lib/vasnprintf.c: Likewise.
77559         * tests/test-ceilf1.c: Likewise.
77560         * tests/test-ceilf2.c: Likewise.
77561         * tests/test-floorf1.c: Likewise.
77562         * tests/test-floorf2.c: Likewise.
77563         * tests/test-frexp.c: Likewise.
77564         * tests/test-round1.c: Likewise.
77565         * tests/test-round2.c: Likewise.
77566         * tests/test-roundf1.c: Likewise.
77567         * tests/test-strtod.c: Likewise.
77568         * tests/test-trunc1.c: Likewise.
77569         * tests/test-trunc2.c: Likewise.
77570         * tests/test-truncf1.c: Likewise.
77571         * tests/test-truncf2.c: Likewise.
77572         * NEWS: Mention the renamed header files.
77574 2008-07-11  Jim Meyering  <meyering@redhat.com>
77576         vc-list-files: make the last-resort awk code more portable
77577         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77578         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77579         does not support it.
77581 2008-07-10  Eric Blake  <ebb9@byu.net>
77583         Work with tar's bootstrap.
77584         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77585         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77586         an m4 comment.
77588 2008-07-09  Jim Meyering  <meyering@redhat.com>
77590         posix-shell.m4: fix typo that made this test malfunction
77591         * m4/posix-shell.m4: Remove capitalization in variable name.
77593 2008-07-08  Bruno Haible  <bruno@clisp.org>
77595         * m4/onceonly.m4: Update comments.
77596         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77598 2008-07-04  Jim Meyering  <meyering@redhat.com>
77600         * users.txt: Add vc-dwim.
77601         (bison, coreutils): Use the gitweb URL.
77603 2008-07-03  Jim Meyering  <meyering@redhat.com>
77605         * users.txt: Add libffcall.  From Sam Steingold.
77607 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77609         getdate.y: do not ignore TZ with relative day, month or year offset
77610         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77611         relative-date-handling, since otherwise, the latter would clobber the
77612         sole output (an updated Start value) of the tz-handling block.
77613         * tests/test-getdate.c: Tests for the fix
77615 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77617         Recognize 'foo_LIBRARIES += libgnu.a'.
77618         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77619         makefile snippet has already specified an installation location,
77620         also using '+='.
77622 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77624         getdate.y: factor out common actions
77625         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77626         Use them in place of open-coded actions.
77628 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77630         Add self-test for getdate module.
77631         * modules/getdate-tests: New file.
77632         * tests/test-getdate.c: New file.
77634 2008-06-29  Bruno Haible  <bruno@clisp.org>
77636         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77637         .gitignore.
77638         Reported by Sylvain Beucler <beuc@beuc.net>.
77640 2008-06-29  Bruno Haible  <bruno@clisp.org>
77642         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77643         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77645 2008-06-29  Bruno Haible  <bruno@clisp.org>
77647         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77648         EXTRA_DIST.
77649         Reported by Sylvain Beucler <beuc@beuc.net>.
77651 2008-06-26  Jim Meyering  <meyering@redhat.com>
77653         make several modules depend on the "open" module
77654         This provides slightly increased consistency when opening-for-write
77655         the name of a non-directory spelled with a trailing slash.
77656         * modules/chdir-safer: Likewise.
77657         * modules/chown: Likewise.
77658         * modules/clean-temp: Likewise.
77659         * modules/copy-file: Likewise.
77660         * modules/fchdir: Likewise.
77661         * modules/fcntl-safer: Likewise.
77662         * modules/pipe: Likewise.
77663         * modules/utime: Likewise.
77664         Prompted by Eric Blake and Bruno Haible.
77666 2008-06-24  Andreas Schwab  <schwab@suse.de>
77668         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77669         literals can be used as initializers for global variables.
77671 2008-06-23  Eric Blake  <ebb9@byu.net>
77673         Make gnulib-cache.m4 easier to diff.
77674         * gnulib-tool (func_import): Allow newlines when reading cached
77675         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77677 2008-06-23  Bruno Haible  <bruno@clisp.org>
77679         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77680         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77681         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77682         m4/signalblocking.m4.
77683         (gl_PREREQ_SIGACTION): Don't invoke it.
77684         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77685         gl_PREREQ_SIG_HANDLER_H.
77686         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77687         Don't check for sigaction here.
77689 2008-06-23  Bruno Haible  <bruno@clisp.org>
77691         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77692         (install_handlers): Don't set the SA_RESETHAND flag.
77694 2008-06-23  Bruno Haible  <bruno@clisp.org>
77696         * m4/sigaction.m4: Comment fixes.
77697         * lib/signal.in.h: Likewise.
77699 2008-06-23  Eric Blake  <ebb9@byu.net>
77701         Fix typo.
77702         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77704         Avoid SA_ namespace.
77705         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77706         Reported by Ralf Wildenhues.
77708         Avoid test failure due to SA_RESTORER.
77709         * tests/test-sigaction.c (SA_MASK): New macro.
77710         (main): Avoid failing due to extension flags being set.
77711         Reported by Jim Meyering.
77713         Revert use of sig-handler.h in sigprocmask.c.
77714         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77715         it requires the existence of struct sigaction.
77716         * lib/sigprocmask.c (handler_t): Restore typedef.
77717         (rpl_signal, old_handlers): Use local type.
77719 2008-06-22  Bruno Haible  <bruno@clisp.org>
77721         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77722         conditionally.
77723         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77725 2008-06-22  Bruno Haible  <bruno@clisp.org>
77727         * doc/posix-functions/siginterrupt.texi: Move note.
77729         * lib/signal.in.h (SA_RESTART): New macro.
77730         * lib/sigaction.c: Update comment.
77732         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77734         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77735         (gl_PREREQ_SIGPROCMASK): Invoke it.
77736         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77738         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77740         * lib/sigprocmask.c: Update a comment.
77742 2008-06-21  Eric Blake  <ebb9@byu.net>
77744         Use sigaction module rather than signal().
77745         * modules/c-stack (Depends-on): Add sigaction.
77746         * modules/fatal-signal (Depends-on): Likewise.
77747         * modules/nanosleep (Depends-on): Likewise.
77748         * modules/sigprocmask (Files): Add sig-handler.h.
77749         * modules/sigaction (Files): Likewise.
77750         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77751         Eggert.
77752         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77753         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77754         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77755         (init_fatal_signals): Likewise.
77756         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77757         (siginterrupt): Delete fallback.
77758         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77759         instead.
77760         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77761         siginterrupt.
77763         New module sigaction, for mingw.
77764         * modules/sigaction: New module...
77765         * modules/sigaction-tests: ...and its test.
77766         * m4/sigaction.m4: New file.
77767         * lib/sigaction.c: Likewise.
77768         * tests/test-sigaction.c: Likewise.
77769         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77770         * modules/signal (Makefile.am): Likewise.
77771         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77772         needed.
77773         * doc/posix-headers/signal.texi (signal.h): Mention provided
77774         types.
77775         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77776         that sigaction is preferable.
77777         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77778         module.
77779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77780         sigaction.
77782         Improve robustness of sigprocmask by overriding signal.
77783         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77784         is in use.
77785         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77786         (SIGKILL, SIGSTOP): Provide fallbacks.
77787         (rpl_signal): Implement.
77788         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77789         signal can be called inside handlers.
77791         Fix nanosleep module on mingw.
77792         * modules/nanosleep (Depends-on): Add sys_select.
77793         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77795         Fix licensing of sigprocmask.
77796         * modules/raise (License): Relicense as LGPL.
77798 2008-06-21  Bruno Haible  <bruno@clisp.org>
77800         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77801         result if it contains question marks.
77802         Reported by Michael Geng <linux@michaelgeng.de>.
77804 2008-06-19  Bruno Haible  <bruno@clisp.org>
77806         Fix CVS-ism.
77807         * doc/gnulib.texi: Include updated-stamp.texi.
77808         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77809         (updated-stamp.texi): New rule.
77810         (gnulib.info): Depend on it.
77811         * doc/.gitignore: Add updated-stamp.texi.
77812         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77814 2008-06-19  Bruno Haible  <bruno@clisp.org>
77816         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77817         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77819 2008-06-19  Eric Blake  <ebb9@byu.net>
77821         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77822         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77823         Reported by Stepan Kasal.
77825 2008-06-18  Bruno Haible  <bruno@clisp.org>
77827         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77828         Reported by Eric Blake.
77830 2008-06-18  Eric Blake  <ebb9@byu.net>
77832         Work around cygwin 1.5.25 strsignal bug.
77833         * tests/test-strsignal.c: Allow for const char *.
77834         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77836 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77838         * users.txt: Update URL to article and add author/date
77839         information.
77841 2008-06-17  Bruno Haible  <bruno@clisp.org>
77843         New macro gl_DISABLE_THREADS.
77844         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77845         if the user did not pass --enable-threads or --disable-threads option.
77846         (gl_DISABLE_THREADS): New macro.
77847         Reported by Eric Blake <ebb9@byu.net>.
77849 2008-06-17  Bruno Haible  <bruno@clisp.org>
77851         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77852         when the macro ignores it.
77853         Based on a patch by Eric Blake <ebb9@byu.net>.
77855 2008-06-17  Bruno Haible  <bruno@clisp.org>
77857         * modules/tls (License): Change to LGPLv2+.
77858         Reported by Eric Blake.
77860 2008-06-17  Eric Blake  <ebb9@byu.net>
77862         Simplify c-stack prerequisites.
77863         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77865         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77866         check.
77867         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77868         <sys/resource.h>.
77870         Move c-stack test into testsuite.
77871         * modules/c-stack-tests: New file.
77872         * lib/c-stack.c [DEBUG]: Move test program...
77873         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77874         fail test if sigaltstack is lacking.
77875         * tests/test-c-stack.sh: New driver file.
77877 2008-06-16  Eric Blake  <ebb9@byu.net>
77879         Use raise module consistently.
77880         * modules/fatal-signal (Depends-on): Add raise.
77881         * modules/sigprocmask (Depends-on): Likewise.
77882         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77883         * lib/sigprocmask.c (sigprocmask): Likewise.
77884         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77885         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77887         Fix compliance bug in sigpending.
77888         * lib/sigprocmask.c (sigpending): Return pending array via
77889         parameter, not return value.
77891 2008-06-14  Eric Blake  <ebb9@byu.net>
77893         Improve obstack-printf test code.
77894         * tests/test-obstack-printf.c (test_function): Fix comment, and
77895         simplify usage of obstack_* in macros.  Add a test for coverage.
77896         Reported by Bruno Haible.
77898 2008-06-14  Bruno Haible  <bruno@clisp.org>
77900         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77901         array size as a constant, not as a const variable.
77902         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77903         AC_USE_SYSTEM_EXTENSIONS.
77904         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77905         Test whether the obstack_printf function actually exists.
77906         * modules/obstack-printf (Depends-on): Add extensions.
77907         (Include): Remove obstack.h.
77908         * modules/obstack-printf-posix (Depends-on): Add extensions.
77909         (Include): Remove obstack.h.
77911 2008-06-13  Eric Blake  <ebb9@byu.net>
77913         Add obstack-printf and obstack-printf-posix modules.
77914         * modules/obstack-printf: New file.
77915         * modules/obstack-printf-posix: Likewise.
77916         * MODULES.html.sh (Misc): Mention them.
77917         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77918         Likewise.
77919         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77920         Likewise.
77921         * modules/stdio (Makefile.am): Accomodate new modules.
77922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77923         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77924         Declare.
77925         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77926         functions.
77927         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77928         (gl_REPLACE_OBSTACK_PRINTF): New macros
77929         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77930         * tests/test-obstack-printf.c: New file.
77931         * modules/obstack-printf-tests: Likewise.
77932         * modules/obstack-printf-posix-tests: Likewise.
77934 2008-06-11  Bruno Haible  <bruno@clisp.org>
77936         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77937         * lib/open.c: Include errno.h.
77938         (open): Fail when attempting to write to a file that has a trailing
77939         slash.
77940         * tests/test-open.c (main): Test against trailing slash bug.
77941         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77943 2008-06-10  Bruno Haible  <bruno@clisp.org>
77945         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77946         for $? to work inside the trap command, with various /bin/sh-s.
77947         * tests/test-vc-list-files-cvs.sh: Likewise.
77949 2008-06-10  Bruno Haible  <bruno@clisp.org>
77951         * lib/acl-internal.h: Don't include gettext.h here.
77952         * lib/set-mode-acl.c: Include gettext.h here.
77953         * lib/copy-acl.c: Likewise.
77955 2008-06-10  Bruno Haible  <bruno@clisp.org>
77957         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77958         * lib/wait-process.c (wait_subprocess): Likewise.
77959         * lib/execute.h (execute): Add termsigp argument.
77960         * lib/execute.c (execute): Likewise.
77961         * lib/csharpcomp.c (compile_csharp_using_pnet,
77962         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77963         * lib/csharpexec.c (execute_csharp_using_pnet,
77964         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77965         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77966         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77967         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77968         is_jikes_present): Update.
77969         * lib/javaexec.c (execute_java_class): Update.
77970         * lib/javaversion.c (execute_and_read_line): Update.
77971         * NEWS: Document the changes.
77972         Reported by Eric Blake.
77974 2008-06-10  Eric Blake  <ebb9@byu.net>
77976         Add missing include.
77977         * tests/test-strstr.c (includes): Add <signal.h>.
77978         * tests/test-strcasestr.c (includes): Likewise.
77979         * tests/test-memmem.c (includes): Likewise.
77981 2008-06-10  Bruno Haible  <bruno@clisp.org>
77983         * lib/wait-process.c (wait_subprocess): Add an assertion.
77985 2008-06-10  Bruno Haible  <bruno@clisp.org>
77987         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77989 2008-06-10  Bruno Haible  <bruno@clisp.org>
77991         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77992         using alarm().
77993         * tests/test-strcasestr.c (main): Likewise.
77994         * tests/test-strstr.c (main): Likewise.
77996 2008-06-09  Bruno Haible  <bruno@clisp.org>
77998         Work around the Solaris 10 ACE ACLs ABI change.
77999         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
78000         declare if ACL_NO_TRIVIAL is present.
78001         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
78002         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
78003         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
78004         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
78005         define if ACL_NO_TRIVIAL is present.
78006         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
78007         and use the current ABI.
78008         (file_has_acl): Use same #if condition as elsewhere.
78009         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
78010         in use, and use the current ABI.
78011         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
78012         Reported by Jim Meyering.
78014 2008-06-09  Eric Blake  <ebb9@byu.net>
78016         Work around environments that (stupidly) ignore SIGALRM.
78017         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
78018         before using alarm().
78019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
78021         Reported by Ian Beckwith <ianb@erislabs.net>.
78023         Produce autobuild blurb earlier in log.
78024         * modules/autobuild (configure.ac-early): Move AB_INIT here.
78026 2008-06-09  Jim Meyering  <meyering@redhat.com>
78027         and Ondřej Vašík  <ovasik@redhat.com>
78029         utimens.c: correct kernel bug work-around
78030         Ondřej Vašík found that the invalid return value of 280 indicates
78031         failure, not success, and the kernel bug we're trying to work
78032         around affects not just the utimensat call, but also the fallback
78033         futimens call.
78034         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
78035         not success.
78036         [HAVE_FUTIMENS]: Use the same work-around, here.
78038 2008-06-09  Jim Meyering  <meyering@redhat.com>
78040         add more guards around definition of ACE_-related code
78041         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
78042         ALLOW and ACE_OWNER are also defined.
78044 2008-06-08  Bruno Haible  <bruno@clisp.org>
78046         * lib/acl-internal.h: Add me as co-author.
78047         * lib/file-has-acl.c: Likewise.
78048         * lib/set-mode-acl.c: Likewise.
78049         * lib/copy-acl.c: Likewise.
78051 2008-06-08  Bruno Haible  <bruno@clisp.org>
78053         Add support for AIX ACLs.
78054         * lib/acl-internal.h (acl_nontrivial): New declaration.
78055         * lib/file-has-acl.c (acl_nontrivial): New function.
78056         (file_has_acl): Add implementation using AIX 4 ACL API.
78057         * lib/set-mode-acl.c (qset_acl): Likewise.
78058         * lib/copy-acl.c (qcopy_acl): Likewise.
78060 2008-06-08  Bruno Haible  <bruno@clisp.org>
78062         Add support for HP-UX ACLs.
78063         * lib/acl-internal.h (acl_nontrivial): New declaration.
78064         * lib/file-has-acl.c (acl_nontrivial): New function.
78065         (file_has_acl): Add implementation using HP-UX 11 ACL API.
78066         * lib/set-mode-acl.c (qset_acl): Likewise.
78067         * lib/copy-acl.c (qcopy_acl): Likewise.
78069 2008-06-08  Bruno Haible  <bruno@clisp.org>
78071         Add support for Cygwin ACLs.
78072         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
78073         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
78074         the chmod_or_fchmod call.
78075         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
78077 2008-06-08  Bruno Haible  <bruno@clisp.org>
78079         Fix bug with setuid modes in Solaris 10+ code.
78080         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
78081         succeeded, when the mode contains some special bits.
78083 2008-06-08  Bruno Haible  <bruno@clisp.org>
78085         Add support for Solaris 7..10 ACLs.
78086         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
78087         declarations.
78088         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
78089         functions.
78090         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
78091         * lib/set-mode-acl.c (qset_acl): Likewise.
78092         * lib/copy-acl.c (qcopy_acl): Likewise.
78094 2008-06-08  Bruno Haible  <bruno@clisp.org>
78096         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
78097         declaration.
78098         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
78099         (acl_access_nontrivial): Remove MacOS X case.
78100         (file_has_acl): Use acl_extended_nontrivial.
78101         * lib/copy-acl.c (qcopy_acl): Likewise.
78103 2008-06-08  Bruno Haible  <bruno@clisp.org>
78105         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
78107 2008-06-08  Jim Meyering  <meyering@redhat.com>
78109         * modules/acl (Maintainer): Add Bruno Haible.
78111 2008-06-07  Bruno Haible  <bruno@clisp.org>
78113         Improve support for Tru64 ACLs.
78114         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
78115         ACL on OSF/1.
78117 2008-06-07  Bruno Haible  <bruno@clisp.org>
78119         Add support for MacOS X ACLs.
78120         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
78121         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
78122         * lib/set-mode-acl.c (qset_acl): Likewise.
78123         * lib/copy-acl.c (qcopy_acl): Likewise.
78125 2008-06-07  Bruno Haible  <bruno@clisp.org>
78127         Fix memory leak introduced on 2008-05-22.
78128         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
78129         use.
78131 2008-06-07  Bruno Haible  <bruno@clisp.org>
78133         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
78134         to construct an empty ACL.
78136 2008-06-07  Bruno Haible  <bruno@clisp.org>
78138         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
78139         precisely.
78140         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
78142 2008-06-07  Bruno Haible  <bruno@clisp.org>
78144         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
78145         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
78147 2008-06-07  Bruno Haible  <bruno@clisp.org>
78149         * doc/posix-functions/_setjmp.texi: Explain the use of this function
78150         regardless of POSIX.
78151         * doc/posix-functions/_longjmp.texi: Likewise.
78152         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
78153         SystemV platform in this case.
78155 2008-06-06  Eric Blake  <ebb9@byu.net>
78157         Document abort() bugs.
78158         * doc/posix-functions/abort.texi (abort): Mention anomalies.
78160         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
78161         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
78162         sigsetjmp.
78163         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
78164         siglongjmp, but only as a macro.
78165         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
78166         is obsolete.
78167         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
78169         Tweak documentation to cover cygwin argz bugs.
78170         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
78171         argz bug fix; no code change needed since no cygwin releases
78172         occurred between the last fix and the bug being tested.
78173         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
78174         module and recently fixed cygwin bugs.
78175         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
78176         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
78177         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
78178         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
78179         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
78180         Likewise.
78181         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
78182         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
78183         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
78184         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
78185         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
78186         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
78187         Likewise.
78189         Avoid gcc warning on cygwin.
78190         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
78191         !ACL_NO_TRIVIAL]: Avoid unused variable.
78193 2008-06-05  Eric Blake  <ebb9@byu.net>
78195         Be tolerant of UNKNOWN version in gnulib-tool test dir.
78196         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
78197         git-version-gen fails to come up with a version.
78198         Reported by Simon Josefsson.
78200 2008-06-05  Jim Meyering  <meyering@redhat.com>
78201             Paul Eggert  <eggert@cs.ucla.edu>
78203         utimens.c: work around a probable Linux kernel bug
78204         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
78205         appears to be a kernel bug that causes utimensat to return 280
78206         instead of 0, indicating success.
78208 2008-06-04  Bruno Haible  <bruno@clisp.org>
78210         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
78211         2008-06-01 commit.
78213 2008-06-04  Bruno Haible  <bruno@clisp.org>
78215         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
78216         * lib/file-has-acl.c (acl_access_nontrivial): New function.
78217         (file_has_acl): Use it. Save errno afterwards.
78218         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
78220 2008-06-03  Bruno Haible  <bruno@clisp.org>
78222         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
78223         draft code. Simplify #ifs.
78224         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
78225         Put Solaris code after POSIX-draft code. Fix comments regarding
78226         Solaris 10, HP-UX. Mention Cygwin.
78227         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
78229 2008-06-03  Eric Blake  <ebb9@byu.net>
78231         Provide fallback for older kernels.
78232         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
78233         Provide runtime fallback if kernel lacks support.
78234         Reported by Mike Frysinger.
78236 2008-06-02  Bruno Haible  <bruno@clisp.org>
78238         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
78239         it exists.
78241 2008-06-02  Bruno Haible  <bruno@clisp.org>
78243         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
78244         * lib/copy-acl.c (qcopy_acl): Update comment.
78246 2008-06-02  Bruno Haible  <bruno@clisp.org>
78248         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
78249         like ACL APIs.
78251 2008-06-02  Bruno Haible  <bruno@clisp.org>
78253         * tests/test-file-has-acl.sh: Use different code for Cygwin.
78254         * tests/test-set-mode-acl.sh: Likewise.
78255         * tests/test-copy-acl.sh: Likewise.
78256         * tests/test-copy-file.sh: Likewise.
78258 2008-06-02  Bruno Haible  <bruno@clisp.org>
78260         * tests/test-file-has-acl.sh: Remove unused code.
78262 2008-06-01  Bruno Haible  <bruno@clisp.org>
78264         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
78265         (copy_acl): Just a wrapper around qcopy_acl that emits the error
78266         messages.
78267         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
78269 2008-06-01  Bruno Haible  <bruno@clisp.org>
78271         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
78272         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
78273         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
78274         APIs.
78275         * modules/acl-tests (configure.ac): Remove tests now contained in
78276         m4/acl.m4.
78278 2008-06-02  Jim Meyering  <meyering@redhat.com>
78280         announce-gen: use a better key-server host name
78281         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
78282         it may be more consistently reliable.  Suggested by Werner Koch
78283         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
78285 2008-06-01  Bruno Haible  <bruno@clisp.org>
78287         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
78288         Reported by Voroskoi Andras <voroskoi@gmail.com>.
78290 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
78292         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
78294 2008-06-01  Bruno Haible  <bruno@clisp.org>
78296         New ACL tests.
78297         * tests/test-file-has-acl.sh: New file.
78298         * tests/test-file-has-acl.c: New file.
78299         * tests/test-set-mode-acl.sh: New file.
78300         * tests/test-set-mode-acl.c: New file.
78301         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
78302         * tests/test-copy-acl.c: New file.
78303         * modules/acl-tests: New file, based on modules/copy-file-tests.
78304         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
78305         (Depends-on): Add acl-tests.
78306         (configure.ac): Remove checks.
78307         (Makefile.am): Don't create test-sameacls program here any more.
78309 2008-06-01  Bruno Haible  <bruno@clisp.org>
78311         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
78312         * tests/test-sameacls.c: Include progname.h.
78313         (main): Invoke set_program_name. Portability fixes for MacOS X,
78314         Solaris, HP-UX.
78316 2008-06-01  Bruno Haible  <bruno@clisp.org>
78318         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
78319         function.
78320         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
78322 2008-06-01  Bruno Haible  <bruno@clisp.org>
78324         * modules/rpmatch (Depends-on): Add strdup.
78326 2008-06-01  Bruno Haible  <bruno@clisp.org>
78328         * lib/pipe.c: Include unistd-safer.h.
78329         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
78330         * modules/pipe (Depends-on): Add unistd-safer.
78332 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78334         * modules/autobuild (configure.ac): Call AB_INIT.
78336 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78338         * tests/test-getaddrinfo.c: Don't print debug messages by default.
78339         Suggested by Bruno Haible <bruno@clisp.org>.
78341 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78343         * tests/test-base64.c: Cast size_t to unsigned long when invoking
78344         printf.  Use %lu instead of %d.  Reported by Bruno Haible
78345         <bruno@clisp.org>.
78347 2008-05-29  Eric Blake  <ebb9@byu.net>
78349         Prefer new POSIX 200x interfaces over futimesat.
78350         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
78351         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
78352         when available.
78353         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
78355 2008-05-28  Bruno Haible  <bruno@clisp.org>
78357         * modules/stpcpy (License): Change to LGPLv2+.
78358         Requested by David Lutterkort <dlutter@redhat.com>.
78360 2008-05-27  Bruno Haible  <bruno@clisp.org>
78362         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78363         current mingw.
78364         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78366 2008-05-27  Bruno Haible  <bruno@clisp.org>
78368         * modules/iconv_open (Link): New section, from module 'iconv'.
78369         * modules/striconv (Link): Likewise.
78370         * modules/striconveh (Link): Likewise.
78371         * modules/xstriconv (Link): Likewise.
78372         * modules/unicodeio (Link): Likewise.
78373         * modules/propername (Link): Likewise.
78374         Reported by Jim Meyering.
78376 2008-05-26  Jim Meyering  <meyering@redhat.com>
78378         sha256: do not artificially restrict buffer length to be < 2^32
78379         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78380         uint32_t to size_t.
78381         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78382         to match.
78384         avoid unaligned access errors, e.g., on sparc
78385         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78386         direct access through a possibly-unaligned uint64* pointer.
78387         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78388         direct access through a possibly-unaligned uint32* pointer.
78389         Prompted by this patch from Tom "spot" Callaway:
78390         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78392         sha512.c: fix typo in comment
78393         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78395 2008-05-25  Bruno Haible  <bruno@clisp.org>
78397         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78398         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78399         (Makefile.am): Update lib_SOURCES.
78401 2008-05-25  Bruno Haible  <bruno@clisp.org>
78403         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78405 2008-05-25  Jim Meyering  <meyering@redhat.com>
78407         useless-if-before-free: freed expr may have white-space differences
78408         * build-aux/useless-if-before-free: Recognize cases in which the
78409         freed expression differs from the tested one in embedded white
78410         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78411         $1 was used, so we can't make any regexp shy.  Improved tests now
78412         detect this.
78414         useless-if-before-free: accept white space in the expression.
78415         * build-aux/useless-if-before-free: For now, any white space
78416         in the expression must be identical in the free argument.
78418         useless-if-before-free: efficiency tweak
78419         * build-aux/useless-if-before-free: Make the expression-matching
78420         regexp "shy".
78421         Make the *outer* regexp shy, not the expr-matching one.
78423         update code-in-comment to accept cast of free arg
78424         * build-aux/useless-if-before-free: Update regexp.
78426 2008-05-25  Bruno Haible  <bruno@clisp.org>
78428         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78429         * modules/copy-file-tests (Files, Makefile.am): Update.
78430         * tests/test-copy-file.c (func_test_copy): Update.
78432 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78434         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78436 2008-05-23  Bruno Haible  <bruno@clisp.org>
78438         Improve support for ACLs on OSF/1.
78439         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78440         Remove fallback for unknown flavors of ACLs.
78442 2008-05-22  Bruno Haible  <bruno@clisp.org>
78444         Add support for ACLs on OSF/1.
78445         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78446         replacements.
78447         (acl_free_text): New macro fallback.
78448         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78449         acl_free.
78450         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78451         acl_free_text function. Require AC_C_INLINE.
78453 2008-05-22  Bruno Haible  <bruno@clisp.org>
78455         Make copy_acl work on MacOS X 10.5.
78456         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78457         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78458         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78459         If MODE_INSIDE_ACL, don't assume that every system has the same text
78460         representation for ACLs as FreeBSD.
78461         * lib/copy-acl.c (copy_acl): Add support for platforms with
78462         !MODE_INSIDE_ACL.
78463         * lib/file-has-acl.c (file_has_acl): Likewise.
78464         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78465         FreeBSD, MacOS X, or IRIX, respectively.
78467 2008-05-22  Bruno Haible  <bruno@clisp.org>
78469         * lib/acl.h: Don't include <sys/acl.h>.
78470         (GETACLCNT): Move fallback to lib/acl-internal.h.
78471         * lib/acl-internal.h: Include <sys/acl.h> here.
78472         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78474 2008-05-22  Bruno Haible  <bruno@clisp.org>
78476         Split off copy_acl function to separate file.
78477         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78478         * lib/acl.c (copy_acl): Moved function to separate file.
78479         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78480         * modules/acl (Files): Add lib/copy-acl.c.
78481         (Makefiles.am): Augment lib_SOURCES.
78483 2008-05-22  Bruno Haible  <bruno@clisp.org>
78485         * modules/copy-file-tests: New file.
78486         * tests/test-copy-file.sh: New file.
78487         * tests/test-copy-file.c: New file.
78488         * tests/test-copy-file-sameacls.c: New file.
78490 2008-05-22  Eric Blake  <ebb9@byu.net>
78492         Avoid gcc warning.
78493         * tests/test-memcmp.c (main): Pass NULL indirectly.
78495 2008-05-21  Bruno Haible  <bruno@clisp.org>
78497         Add reference doc about ACLs.
78498         * doc/acl-resources.txt: New file.
78499         * doc/acl-cygwin.txt: New file.
78501 2008-05-21  Bruno Haible  <bruno@clisp.org>
78503         Avoid one more warning from gcc.
78504         * lib/vasnprintf.c (IF_LINT): Update comments.
78505         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78507 2008-05-21  Jim Meyering  <meyering@redhat.com>
78509         avoid a warning from gcc
78510         * lib/vasnprintf.c (IF_LINT): Define.
78511         (scale10_round_decimal_long_double):
78512         Use it to avoid a "may be used uninitialized" warning.
78513         (scale10_round_decimal_double): Likewise.
78515 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78517         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78518         declared.
78520 2008-05-20  Bruno Haible  <bruno@clisp.org>
78522         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78523         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78525 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78527         * modules/memcmp-tests: New file.
78528         * tests/test-memcmp.c: New file.
78530 2008-05-19  Bruno Haible  <bruno@clisp.org>
78532         * modules/propername (Notice, configure.ac): Put quoted "..." into
78533         --keyword option.
78534         * lib/propername.h: Update comments accordingly.
78535         Reported by Eric Blake.
78537 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78539         * modules/getpass-gnu (Depends-on): Add fseeko.
78541 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78543         * modules/base64-tests: New file.
78545 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78547         * lib/base64.c (base64_decode_ctx): If a decode context structure
78548         was passed in use it to ignore newlines.  If a context structure
78549         was _not_ passed in, continue to treat newlines as garbage (this
78550         is the historical behavior).  Formerly base64_decode.
78551         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78552         takes a decode context structure.
78553         * lib/base64.h (base64_decode): Macro for four-argument calls.
78554         (base64_decode_alloc): Likewise.
78555         * lib/base64.c (base64_decode_ctx): If a decode context structure
78556         was passed in use it to ignore newlines.  If a context structure
78557         was _not_ passed in, continue to treat newlines as garbage (this
78558         is the historical behavior).  Formerly base64_decode.
78559         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78560         takes a decode context structure.
78561         * lib/base64.h (base64_decode): Macro for four-argument calls.
78562         (base64_decode_alloc): Likewise.
78564 2008-05-19  Jim Meyering  <meyering@redhat.com>
78566         avoid a warning from gcc
78567         * lib/trim.c (IF_LINT): Define.
78568         (trim2): Use it to avoid a "may be used uninitialized" warning.
78570         Fix doc typo.
78571         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78573 2008-05-19  Bruno Haible  <bruno@clisp.org>
78575         * doc/glibc-functions/getpass.texi: Document limits of other
78576         implementations.
78578 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78579             Bruno Haible <bruno@clisp.org>
78581         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78583 2008-05-18  Bruno Haible  <bruno@clisp.org>
78585         * modules/propername: New file, from GNU gettext.
78586         * lib/propername.h: New file, from GNU gettext.
78587         * lib/propername.c: New file, from GNU gettext.
78588         * MODULES.html.sh (Internationalization functions): Add propername.
78590 2008-05-16  Jim Meyering  <meyering@redhat.com>
78591             Bruno Haible  <bruno@clisp.org>
78593         Avoid some warnings from "gcc -Wshadow".
78594         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78596 2008-05-15  Eric Blake  <ebb9@byu.net>
78598         Extend previous patch to cygwin 1.7.0.
78599         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78600         fast implementation in cygwin >= 1.7.0.
78601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78604 2008-05-15  Bruno Haible  <bruno@clisp.org>
78606         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78607         implementation in glibc >= 2.9.
78608         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78611 2008-05-15  Bruno Haible  <bruno@clisp.org>
78613         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78614         (Unicode string functions): Add unilbrk/*.
78615         Reported by Karl Berry.
78617 2008-05-15  Eric Blake  <ebb9@byu.net>
78619         Fix violation of <stdbool.h> replacement in regex.
78620         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78621         * lib/regexec.c (re_search_internal): Likewise.
78622         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78624 2008-05-15  Jim Meyering  <meyering@redhat.com>
78626         avoid distracting test output when git or cvs is not found
78627         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78628         * tests/test-vc-list-files-git.sh: Likewise.
78630 2008-05-15  Eric Blake  <ebb9@byu.net>
78632         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78633         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78634         glibc version.
78635         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78636         * doc/posix-functions/strstr.texi (strstr): Likewise.
78637         * lib/str-two-way.h (MAX): Sychronize with glibc.
78639 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78641         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78642         opr.ctx_type.
78643         (calc_first): Initialize constraint field.
78644         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78645         Fix grammar.
78646         (duplicate_node): Merge constraint field for all node types.
78647         (calc_eclosure_iter): Look at constraint field for all node types.
78648         * lib/regex_internal.c (create_cd_newstate): Don't look at
78649         opr.ctx_type.
78651 2008-05-14  Bruno Haible  <bruno@clisp.org>
78653         Help GCC to do better code generation.
78654         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78655         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78656         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78657         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78658         Declare with attribute 'malloc' if supported.
78660 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78662         use "echo STR|wc -c" rather than unportable "expr length STR"
78663         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78664         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78666 2008-05-14  Jim Meyering  <meyering@redhat.com>
78668         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78669         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78670         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78671         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78672         via Collin Lasse.
78674 2008-05-14  Eric Blake  <ebb9@byu.net>
78676         Avoid quadratic growth in gl_LIBSOURCES.
78677         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78678         Suggested by Bruno Haible.
78680         Test xmemdup0.
78681         * modules/xmemdup0-tests: New file.
78682         * tests/test-xmemdup0.c: Likewise.
78684 2008-05-13  Eric Blake  <ebb9@byu.net>
78686         Split xmemdup0 into its own module.
78687         * modules/xmemdup0: New file.
78688         * lib/xmemdup0.h: Likewise.
78689         * lib/xmemdup0.c: Likewise.
78690         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78691         * lib/xalloc.h (xmemdup0): Remove.
78692         * lib/xmalloc.c (xmemdup0): Likewise.
78694 2008-05-13  Eric Blake  <ebb9@byu.net>
78695             Bruno Haible  <bruno@clisp.org>
78697         Reduce number of forks required during autoconf.
78698         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78699         and gl_LIBSOURCES_DIR.
78700         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78701         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78702         m4_syscmd per file.
78703         <m4_foreach_w>: Move...
78704         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78706 2008-05-13  Eric Blake  <ebb9@byu.net>
78708         * gnulib-tool: Fix various comment typos.
78710 2008-05-12  Bruno Haible  <bruno@clisp.org>
78712         Tailor the linebreaking algorithm.
78713         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78715 2008-05-12  Bruno Haible  <bruno@clisp.org>
78717         Update to Unicode 5.0.0.
78718         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78719         LBP_JV, LBP_JT. Redistribute values.
78720         (unilbrk_table): Change size.
78721         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78722         Unicode TR#14 rev. 22.
78723         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78724         LBP_JV, LBP_JT. Redistribute values.
78725         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78726         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78727         Update.
78728         * lib/unilbrk/lbrkprop1.h: Regenerated.
78729         * lib/unilbrk/lbrkprop2.h: Regenerated.
78730         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78731         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78732         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78733         Likewise.
78734         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78735         Likewise.
78736         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78737         result.
78738         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78739         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78740         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78741         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78742         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78743         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78745 2008-05-11  Bruno Haible  <bruno@clisp.org>
78747         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78749 2008-05-11  Bruno Haible  <bruno@clisp.org>
78751         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78752         * modules/unilbrk/gen-lbrk: New file.
78754 2008-05-11  Bruno Haible  <bruno@clisp.org>
78756         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78757         * m4/sha512.m4 (gl_SHA512): Likewise.
78759 2008-05-11  Jim Meyering  <meyering@redhat.com>
78761         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78762         * modules/crypto/sha256: New file.
78763         * modules/crypto/sha512: Likewise.
78764         * lib/sha256.c: Likewise.
78765         * lib/sha256.h: Likewise.
78766         * lib/sha512.c: Likewise.
78767         * lib/sha512.h: Likewise.
78768         * lib/u64.h: Likewise.
78769         * m4/sha256.m4: Likewise.
78770         * m4/sha512.m4: Likewise.
78771         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78773 2008-05-10  Bruno Haible  <bruno@clisp.org>
78775         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78776         (Input/Output <stdio.h>): Add xprintf.
78777         (Signal handling <signal.h>): Add strsignal.
78778         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78779         (Core language properties): Add func.
78780         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78781         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78782         strings.
78783         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78784         (Input/output): New section.
78785         (File system functions): Add openat-die, stat-macros.
78786         (Networking functions): Add sockets.
78787         (Unicode string functions): Add unictype/*.
78788         (Support for building libraries and executables): Add gperf.
78789         (Support for building documentation): Add agpl-3.0.
78790         (Misc): Add nocrash.
78792 2008-05-10  Bruno Haible  <bruno@clisp.org>
78794         * modules/unictype/gen-ctype: New file.
78796 2008-05-10  Jim Meyering  <meyering@redhat.com>
78798         Make chdir-safer.c more efficient on a system with no symlinks.
78799         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78800         also if ELOOP is zero.  Suggested by Bruno Haible.
78802         Make chdir-safer.c slightly safer.
78803         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78804         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78806         Avoid compile failure on systems without ELOOP (like mingw).
78807         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78808         Reported by Bruno Haible.
78810 2008-05-10  Bruno Haible  <bruno@clisp.org>
78812         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78813         (is_utf8_encoding): Use a case-insensitive comparison.
78814         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78815         streq.
78817 2008-05-10  Bruno Haible  <bruno@clisp.org>
78819         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78820         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78821         * lib/unilbrk/ulc-common.h (iconv_string_length,
78822         iconv_string_keeping_offsets): Remove declarations.
78823         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78824         Don't include <iconv.h>, streq.h, xsize.h.
78825         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78826         conversion.
78827         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78828         <iconv.h>, streq.h, xsize.h.
78829         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78830         conversion.
78831         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78832         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78833         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78834         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78836 2008-05-10  Bruno Haible  <bruno@clisp.org>
78838         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78839         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78841         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78842         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78844         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78845         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78847         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78848         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78850         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78851         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78853         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78854         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78856         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78857         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78859         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78860         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78862 2008-05-10  Bruno Haible  <bruno@clisp.org>
78864         Split up 'linebreak' module.
78865         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78866         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78867         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78868         modifications.
78869         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78870         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78871         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78872         lib/linebreak.c.
78873         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78874         lib/linebreak.c.
78875         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78876         lib/linebreak.c.
78877         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78878         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78879         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78880         lib/linebreak.c.
78881         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78882         lib/linebreak.c.
78883         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78884         lib/linebreak.c.
78885         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78886         lib/linebreak.c.
78887         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78888         lib/linebreak.c.
78889         * modules/unilbrk/base: New file.
78890         * modules/unilbrk/tables: New file.
78891         * modules/unilbrk/u8-possible-linebreaks: New file.
78892         * modules/unilbrk/u16-possible-linebreaks: New file.
78893         * modules/unilbrk/u32-possible-linebreaks: New file.
78894         * modules/unilbrk/ulc-common: New file.
78895         * modules/unilbrk/ulc-possible-linebreaks: New file.
78896         * modules/unilbrk/u8-width-linebreaks: New file.
78897         * modules/unilbrk/u16-width-linebreaks: New file.
78898         * modules/unilbrk/u32-width-linebreaks: New file.
78899         * modules/unilbrk/ulc-width-linebreaks: New file.
78900         * lib/linebreak.h: Remove file.
78901         * lib/linebreak.c: Remove file.
78902         * m4/linebreak.m4: Remove file.
78903         * modules/linebreak: Remove file.
78904         * NEWS: Mention the changes.
78906 2008-05-09  Eric Blake  <ebb9@byu.net>
78908         Add xmemdup0.
78909         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78910         implementation.
78911         * lib/xmalloc.c (xmemdup0): New C implementation.
78913 2008-05-08  Bruno Haible  <bruno@clisp.org>
78915         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78917 2008-05-07  Eric Blake  <ebb9@byu.net>
78919         Support cross-compilation of <wctype.h>.
78920         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78921         AC_CACHE_CHECK.
78923 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78925         * build-aux/vc-list-files: Add support for bzr.
78927 2008-05-03  Jim Meyering  <meyering@redhat.com>
78929         avoid failed assertion with tight malloc
78930         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78932 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78934         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78935         are needed from arpa/inet.h.
78936         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78937         Reported by Bruno Haible.
78939 2008-05-02  Jim Meyering  <meyering@redhat.com>
78941         avoid compilation error on FreeBSD 6
78942         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78944 2008-05-01  Jim Meyering  <meyering@redhat.com>
78946         useless-if-before-free: correct --help's exit status description
78947         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78948         for one or more matches, etc.  Reported by Bruno Haible.
78950         vc-list-files: make the stand-alone gnulib test work
78951         * modules/vc-list-files-tests (configure.ac):
78952         Define and AC_SUBST abs_aux_dir.
78953         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78954         $(abs_top_srcdir) to each script and having each of them
78955         duplicate the work of setting PATH, set PATH here, using
78956         the new variable, abs_aux_dir instead.
78957         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78958         * tests/test-vc-list-files-git.sh: Likewise.
78959         Reported by Bruno Haible.
78961 2008-05-01  Bruno Haible  <bruno@clisp.org>
78963         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78964         reallocation. Rename 'done' to 'found_delimiter'.
78966 2008-05-01  Jim Meyering  <meyering@redhat.com>
78968         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78969         * build-aux/vc-list-files: Use `...`, not $(...).
78971 2008-04-30  Jim Meyering  <meyering@redhat.com>
78973         add tests for vc-list-files
78974         * modules/vc-list-files-tests: New module.
78975         * tests/test-vc-list-files-cvs.sh: New file.
78976         * tests/test-vc-list-files-git.sh: New file.
78978         avoid a warning from gcc
78979         * lib/getndelim2.c (IF_LINT): Define.
78980         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78982         vc-list-files: work properly with build-aux/cvsu, too
78983         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78984         to all cvs-based clauses.
78986         vc-list-files: work properly in the CVS+awk case, too
78987         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78989         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78990         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78991         take more than one file argument, so .  Add quotes, just in case $dir
78992         ever contains a shell meta-character.  Prompted by Soren Hansen in
78993         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78995 2008-04-29  Eric Blake  <ebb9@byu.net>
78997         Optimize getndelim2 to use block operations when possible.
78998         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78999         freadseek, and memchr2.
79000         * lib/getndelim2.c (getndelim2): Use them for block reads.
79002 2008-04-29  Bruno Haible  <bruno@clisp.org>
79004         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
79005         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79006         * modules/inet_ntop (Depends-on): Add extensions.
79007         * modules/inet_pton (Depends-on): Likewise.
79008         Reported by Simon Josefsson.
79010 2008-04-29  Jim Meyering  <meyering@redhat.com>
79012         When the is more than one match in a block, match all of them.
79013         * build-aux/useless-if-before-free: Iterate through each block
79014         until there are no more matches.
79016         Fix broken useless-if-before-free script.
79017         * build-aux/useless-if-before-free: Fix typo: missing "?" after
79018         the expression to match cast of argument to free-like function.
79020 2008-04-29  Eric Blake  <ebb9@byu.net>
79022         Use new header.
79023         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
79025 2008-04-29  Jim Meyering  <meyering@redhat.com>
79027         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
79028         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
79029         by gnulib to exist and to declare e.g., inet_ntop.
79030         Don't include "inet_ntop.h", now removed.
79032         * m4/arpa_inet_h.m4: Remove trailing blanks.
79034 2008-04-29  Eric Blake  <ebb9@byu.net>
79036         Silence valgrind on safe reads beyond potential array bounds.
79037         * lib/rawmemchr.valgrind: New file.
79038         * lib/strchrnul.valgrind: Likewise.
79039         * modules/rawmemchr (Files): Distribute new file.
79040         * modules/strchrnul (Files): Likewise.
79041         Suggested by Bruno Haible.
79043 2008-04-29  Bruno Haible  <bruno@clisp.org>
79045         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
79046         (inet_ntop, inet_pton): Change portability warning's wording.
79047         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
79048         Invoke gl_CHECK_NEXT_HEADERS.
79049         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
79050         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
79051         set ARPA_INET_H.
79052         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79053         * modules/arpa_inet (Description): No longer only for systems that
79054         lack it.
79055         (Depends-on): Add include_next.
79056         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
79057         HAVE_ARPA_INET_H.
79059 2008-04-29  Jim Meyering  <meyering@redhat.com>
79061         * modules/mkdir (License): Re-license as LGPLv2+.
79063 2008-04-29  Bruno Haible  <bruno@clisp.org>
79065         * modules/rawmemchr (Maintainer): Set to Eric.
79066         * modules/strchrnul (Maintainer): Likewise.
79068 2008-04-29  Simon Josefsson  <simon@josefsson.org>
79070         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
79071         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
79073         * modules/arpa_inet (arpa/inet.h): Use them.
79075 2008-04-28  Eric Blake  <ebb9@byu.net>
79077         Test getndelim2.
79078         * modules/getndelim2-tests: New file.
79079         * tests/test-getndelim2.c: Likewise.
79080         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
79081         stream.
79082         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
79084         * MODULES.html.sh: Document new module.
79086 2008-04-20  Bruno Haible  <bruno@clisp.org>
79088         * lib/c-stack.c (die): Use raise.
79089         * modules/c-stack (Depends-on): Add raise.
79091 2008-04-28  Bruno Haible  <bruno@clisp.org>
79093         Expect rpmatch to be declared.
79094         * lib/yesno.c (rpmatch): Remove declaration.
79096         Declare rpmatch.
79097         * lib/stdlib.in.h (rpmatch): New declaration.
79098         * lib/rpmatch.c: Include <stdlib.h> first.
79099         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
79100         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
79101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
79102         HAVE_RPMATCH.
79103         * modules/rpmatch (Depends-on): Add stdlib, extensions.
79104         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79105         (Include): Set to <stdlib.h>.
79106         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
79107         HAVE_RPMATCH.
79108         * NEWS: Document the change.
79110 2008-04-28  Bruno Haible  <bruno@clisp.org>
79112         Change rpmatch to use nl_langinfo when appropriate.
79113         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
79114         (N_): New macro.
79115         (localized_pattern): New function/macro.
79116         (try): Remove match, nomatch arguments. Copy the pattern into safe
79117         memory before caching it.
79118         (rpmatch): Use localized_pattern. Add translator comments.
79119         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
79120         Suggested by Eric Blake.
79121         * modules/rpmatch (Depends-on): Add stdbool.
79123 2008-04-28  Eric Blake  <ebb9@byu.net>
79125         Add rawmemchr module, matching glibc.
79126         * modules/string (Makefile.am): New indicator.
79127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
79128         * lib/string.in.h (rawmemchr): Declare when appropriate.
79129         * modules/rawmemchr: New file.
79130         * m4/rawmemchr.m4: Likewise.
79131         * lib/rawmemchr.c: Likewise.
79132         * modules/rawmemchr-tests: Likewise.
79133         * tests/test-rawmemchr.c: Likewise.
79134         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
79135         module.
79136         * modules/strchrnul (Depends-on): Add rawmemchr.
79137         * lib/strchrnul.c (strchrnul): Optimize a corner case.
79139         Whitespace cleanup.
79140         * tests/test-strchrnul.c: Reindent.
79141         * lib/strchrnul.c: Likewise.
79143         Optimize and test strchrnul.
79144         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
79145         * modules/strchrnul-tests: New file.
79146         * tests/test-strchrnul.c: Likewise.
79148         Remove intprops dependency.
79149         * modules/memchr (Depends-on): Remove intprops.
79150         * modules/memrchr (Depends-on): Likewise.
79151         * modules/memchr2 (Depends-on): Likewise.
79152         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
79153         * lib/memrchr.c (__memrchr): Likewise.
79154         * lib/memrchr2.c (memchr2): Likewise.
79155         Reported by Simon Josefsson.
79157 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79159         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
79160         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79162 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79164         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
79166         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
79168         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
79170         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
79171         declarations.
79172         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
79174         * m4/inet_pton.m4: Don't check for header files.
79176         * m4/inet_ntop.m4: Don't check for header files.
79178 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79180         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
79181         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
79182         trigger for cygwin).
79183         Reported by Bruno Haible  <bruno@clisp.org>.
79185 2008-04-28  Bruno Haible  <bruno@clisp.org>
79187         * doc/posix-functions/strdup.texi: Mention mingw problem.
79189 2008-04-27  Bruno Haible  <bruno@clisp.org>
79191         * modules/stat-time-tests (Depends-on): Add sleep.
79192         * tests/test-stat-time.c (force_unlink): New function.
79193         (cleanup): Use it.
79194         (test_mtime): Remove the ctime related tests.
79195         (test_ctime): New function, containing the ctime related tests.
79196         (main): Call test_ctime, except on native Windows platforms.
79198 2008-04-27  Bruno Haible  <bruno@clisp.org>
79200         * lib/rpmatch.c (rpmatch): Add some comments.
79201         Reported by James Youngman <jay@gnu.org>.
79203 2008-04-27  Bruno Haible  <bruno@clisp.org>
79205         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
79206         quiet NaNs.
79208 2008-04-27  Bruno Haible  <bruno@clisp.org>
79210         Make test-yesno.sh work on mingw.
79211         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
79212         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
79213         (main): Set stdin to binary mode.
79214         * modules/yesno-tests (Depends-on): Add binary-io.
79216 2008-04-27  Bruno Haible  <bruno@clisp.org>
79218         Fix 'isfinite' on x86, x86_64, ia64 platforms.
79219         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
79220         argument that lie outside the IEEE 854 domain.
79221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
79222         (gl_ISFINITE): Use it.
79223         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
79225 2008-04-27  Bruno Haible  <bruno@clisp.org>
79227         Allow local renaming in config.h.
79228         * lib/memrchr.c (memrchr): Don't undefine outside libc.
79230 2008-04-27  Bruno Haible  <bruno@clisp.org>
79232         * lib/memchr.c (__memchr): Change type of 'i'.
79233         * lib/memchr2.c (memchr2): Likewise.
79235 2008-04-26  Eric Blake  <ebb9@byu.net>
79236         and Bruno Haible  <bruno@clisp.org>
79238         Optimize and test memrchr.
79239         * modules/memrchr (Depends-on): Add intprops.
79240         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
79241         * modules/memrchr-tests: New file.
79242         * tests/test-memrchr.c: New file.
79244 2008-04-26  Bruno Haible  <bruno@clisp.org>
79246         Add tentative support for DragonFly BSD.
79247         * lib/stdio-impl.h: Add macros for DragonFly BSD.
79248         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
79249         fp.
79250         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79251         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
79252         * lib/fpurge.c (fpurge): Likewise.
79253         * lib/freadable.c (freaadable): Likewise.
79254         * lib/freadahead.c (freadahead): Likewise.
79255         * lib/freading.c (freading): Likewise.
79256         * lib/freadptr.c (freadptr): Likewise.
79257         * lib/freadseek.c (freadptrinc): Likewise.
79258         * lib/fseeko.c (fseeko): Likewise.
79259         * lib/fseterr.c (fseterr): Likewise.
79260         * lib/fwritable.c (fwritable): Likewise.
79261         * lib/fwriting.c (fwriting): Likewise.
79263 2008-04-26  Bruno Haible  <bruno@clisp.org>
79265         * lib/stdio-impl.h: New file.
79266         * lib/fbufmode.c: Include stdio-impl.h.
79267         (fbufmode): Use fp_, remove redundant #defines.
79268         * lib/fflush.c: Include stdio-impl.h.
79269         (clear_ungetc_buffer): Remove redundant #defines.
79270         * lib/fpurge.c: Include stdio-impl.h.
79271         (fpurge): Remove redundant #defines.
79272         * lib/freadable.c: Include stdio-impl.h.
79273         (freadable): Remove redundant #defines.
79274         * lib/freadahead.c: Include stdio-impl.h.
79275         (freadahead): Remove redundant #defines.
79276         * lib/freading.c: Include stdio-impl.h.
79277         (freading): Remove redundant #defines.
79278         * lib/freadptr.c: Include stdio-impl.h.
79279         (freadptr): Remove redundant #defines.
79280         * lib/freadseek.c: Include stdio-impl.h.
79281         (freadptrinc): Remove redundant #defines.
79282         * lib/fseeko.c: Include stdio-impl.h.
79283         (rpl_fseeko): Remove redundant #defines.
79284         * lib/fseterr.c: Include stdio-impl.h.
79285         (fseterr): Remove redundant #defines.
79286         * lib/fwritable.c: Include stdio-impl.h.
79287         (fwritable: Remove redundant #defines.
79288         * lib/fwriting.c: Include stdio-impl.h.
79289         (fwriting): Remove redundant #defines.
79290         * modules/fbufmode (Files): Add lib/stdio-impl.h.
79291         * modules/fflush (Files): Likewise.
79292         * modules/fpurge (Files): Likewise.
79293         * modules/freadable (Files): Likewise.
79294         * modules/freadahead (Files): Likewise.
79295         * modules/freading (Files): Likewise.
79296         * modules/freadptr (Files): Likewise.
79297         * modules/freadseek (Files): Likewise.
79298         * modules/fseeko (Files): Likewise.
79299         * modules/fseterr (Files): Likewise.
79300         * modules/fwritable (Files): Likewise.
79301         * modules/fwriting (Files): Likewise.
79303 2008-04-26  Bruno Haible  <bruno@clisp.org>
79305         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79306         restore_seek_optimization, update_fpos_cache): New functions, extracted
79307         from rpl_fflush.
79308         (rpl_fflush): Use them.
79309         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
79310         (gl_REPLACE_FFLUSH): Use it.
79312 2008-04-26  Bruno Haible  <bruno@clisp.org>
79314         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
79315         on Solaris.
79316         * tests/test-xstrtoimax.sh: Likewise.
79317         * tests/test-xstrtoumax.sh: Likewise.
79318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79320 2008-04-26  Bruno Haible  <bruno@clisp.org>
79322         * modules/memchr-tests: New file.
79323         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
79325 2008-04-26  Eric Blake  <ebb9@byu.net>
79326             Bruno Haible  <bruno@clisp.org>
79328         * lib/memchr.c: Include intprops.h.
79329         (__memchr): Optimize parallel detection of matching bytes. Rename local
79330         variables. Add explanatory comments.
79332 2008-04-26  Bruno Haible  <bruno@clisp.org>
79334         Fix module 'memchr', broken since 2000-10-28.
79335         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
79337 2008-04-26  Bruno Haible  <bruno@clisp.org>
79339         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
79340         comments.
79342 2008-04-25  Eric Blake  <ebb9@byu.net>
79344         Use native fstatat on cygwin 1.7.0.
79345         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
79346         first.
79348 2008-04-23  Eric Blake  <ebb9@byu.net>
79350         Improve memchr2 performance.
79351         * lib/memchr2.c (memchr2): Further optimize parallel detection of
79352         NUL bytes.
79353         * modules/memchr2 (Depends-on): Use intprops.h.
79355 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79357         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79358         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79359         <blp@cs.stanford.edu>.
79361 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79363         * lib/arpa_inet.in.h: New file.
79365         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79366         (Makefile.am): Sed in substitute header file.
79368         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79369         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79371         * modules/inet_ntop (configure.ac): Use
79372         gl_ARPA_INET_MODULE_INDICATOR.
79374         * modules/inet_pton (configure.ac): Use
79375         gl_ARPA_INET_MODULE_INDICATOR.
79377 2008-04-22  Jim Meyering  <meyering@redhat.com>
79379         * modules/verify (License): Re-license as LGPLv2+.
79381 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79383         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79384         parameter to void* as per POSIX standard (MinGW uses char*).
79386 2008-04-21  Bruno Haible  <bruno@clisp.org>
79388         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79389         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79390         Define to replacements if REPLACE_ISWCNTRL is 1.
79391         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79392         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79393         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79394         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79395         what it fixes.
79396         * doc/posix-functions/iswalpha.texi: Likewise.
79397         * doc/posix-functions/iswblank.texi: Likewise.
79398         * doc/posix-functions/iswcntrl.texi: Likewise.
79399         * doc/posix-functions/iswdigit.texi: Likewise.
79400         * doc/posix-functions/iswgraph.texi: Likewise.
79401         * doc/posix-functions/iswlower.texi: Likewise.
79402         * doc/posix-functions/iswprint.texi: Likewise.
79403         * doc/posix-functions/iswpunct.texi: Likewise.
79404         * doc/posix-functions/iswspace.texi: Likewise.
79405         * doc/posix-functions/iswupper.texi: Likewise.
79406         * doc/posix-functions/iswxdigit.texi: Likewise.
79407         Reported by Alain Guibert.
79409 2008-04-21  Bruno Haible  <bruno@clisp.org>
79411         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79412         Patch by Alain Guibert.
79414 2008-04-21  Bruno Haible  <bruno@clisp.org>
79416         Fix test failures on mingw.
79417         * tests/test-xstrtol.c (print_no_progname): New function.
79418         (main): Install it in error_print_progname hook.
79419         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79420         * tests/test-xstrtoimax.sh: Likewise.
79421         * tests/test-xstrtoumax.sh: Likewise.
79423 2008-04-21  Bruno Haible  <bruno@clisp.org>
79425         Fix test failure on mingw.
79426         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79428 2008-04-21  Bruno Haible  <bruno@clisp.org>
79430         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79431         Actually assign a value.
79433 2008-04-20  Bruno Haible  <bruno@clisp.org>
79435         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79436         take 2.
79437         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79438         'canonicalize-lgpl' module is also used.
79439         * lib/canonicalize-lgpl.c: Undo last change.
79440         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79442 2008-04-20  Bruno Haible  <bruno@clisp.org>
79444         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79445         config.h. Provide _mkdir based fallback for mingw.
79446         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79447         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79448         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79449         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79450         rather than defining mkdir in config.h.
79451         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79452         (gl_SYS_STAT_H_DEFAULTS): New macro.
79453         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79454         HAVE_IO_H any more.
79455         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79456         HAVE_DECL_MKDIR and HAVE_IO_H.
79458 2008-04-20  Bruno Haible  <bruno@clisp.org>
79460         * lib/isapipe.c: Port to native Windows platforms.
79462 2008-04-20  Bruno Haible  <bruno@clisp.org>
79464         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79466 2008-04-21  Eric Blake  <ebb9@byu.net>
79468         Work around preprocessors that don't handle UINTMAX_MAX.
79469         * lib/memchr2.c (memchr2): Avoid embedded #if.
79470         Reported by Alain Guibert, fix suggested by Bruno Haible.
79472 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79474         * doc/posix-functions/strftime.texi (strftime): Explain better
79475         Windows incompatibility.  Suggested by Micah Cowan
79476         <micah@cowan.name>.
79478 2008-04-20  Bruno Haible  <bruno@clisp.org>
79480         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79481         unistr/u8-mblen.
79483 2008-04-20  Bruno Haible  <bruno@clisp.org>
79485         Fix test failure on platforms with non-GNU iconv.
79486         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79487         (U_TO_U8): Use it, rather than u16_to_u8.
79488         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79489         units at the end of the input string.
79490         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79492 2008-04-20  Bruno Haible  <bruno@clisp.org>
79494         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79495         when the resulting length is 0.
79496         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79498 2008-04-20  Bruno Haible  <bruno@clisp.org>
79500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79501         works.
79502         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79504 2008-04-20  Bruno Haible  <bruno@clisp.org>
79506         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79507         * modules/tsearch-tests (configure.ac): Test for initstate function.
79509 2008-04-20  Bruno Haible  <bruno@clisp.org>
79511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79512         for nlink_t if missing.
79513         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79515 2008-04-19  Bruno Haible  <bruno@clisp.org>
79517         Work around snprintf bug on Linux libc5.
79518         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79520         gl_SNPRINTF_SIZE1.
79521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79522         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79523         that test failed.
79524         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79525         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79526         * modules/snprintf (Files): Add m4/printf.m4.
79527         * modules/vsnprintf (Files): Likewise.
79528         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79529         * doc/posix-functions/vsnprintf.texi: Likewise.
79531 2008-04-19  Bruno Haible  <bruno@clisp.org>
79533         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79534         from 0.0058 to less than 10^-7.
79536 2008-04-19  Bruno Haible  <bruno@clisp.org>
79538         Fix rounding when a precision is given.
79539         * lib/vasnprintf.c (is_borderline): New function.
79540         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79541         9...9x.
79542         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79543         %e, %g.
79544         * tests/test-vasprintf-posix.c (test_function): Likewise.
79545         * tests/test-snprintf-posix.h (test_function): Likewise.
79546         * tests/test-sprintf-posix.h (test_function): Likewise.
79547         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79548         * tests/test-printf-posix.h (test_function): Likewise.
79549         * tests/test-printf-posix.output: Update.
79550         Reported by John Darrington <john@darrington.wattle.id.au> via
79551         Ben Pfaff <blp@cs.stanford.edu>.
79553 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79555         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79556         Suggested by Bruno Haible <bruno@clisp.org>.
79558 2008-04-17  Bruno Haible  <bruno@clisp.org>
79560         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79561         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79562         implementation.
79563         Patch by Bruce Merry <bmerry@gmail.com>.
79565 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79567         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79568         doesn't work under Windows.
79570 2008-04-16  Bruno Haible  <bruno@clisp.org>
79572         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79573         New macros.
79574         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79575         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79576         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79577         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79578         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79579         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79580         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79581         macros.
79582         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79583         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79584         Northern Sotho, Uighur.
79586 2008-04-16  Bruno Haible  <bruno@clisp.org>
79588         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79589         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79590         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79591         Reported by Daniel Bergström <daniel@octocode.com>.
79593 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79594             Bruno Haible  <bruno@clisp.org>
79596         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79597         function.
79598         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79599         New functions, mostly extracted from gl_locale_name_default.
79600         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79602 2008-04-16  Eric Blake  <ebb9@byu.net>
79604         Adjust strtod detection to catch glibc 2.7 bug.
79605         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79606         Reported by John Gatewood Ham.
79608 2008-04-16  Bruno Haible  <bruno@clisp.org>
79610         Add tentative support for Linux libc5.
79611         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79612         * lib/fpurge.c (fpurge): Likewise.
79613         * lib/freadable.c (freadable): Likewise.
79614         * lib/freadahead.c (freadahead): Likewise.
79615         * lib/freading.c (freading): Likewise.
79616         * lib/freadptr.c (freadptr): Likewise.
79617         * lib/freadseek.c (freadptrinc): Likewise.
79618         * lib/fseeko.c (rpl_fseeko): Likewise.
79619         * lib/fseterr.c (fseterr): Likewise.
79620         * lib/fwritable.c (fwritable): Likewise.
79621         * lib/fwriting.c (fwriting): Likewise.
79622         Reported by Alain Guibert <alguibert+bts@free.fr>.
79624 2008-04-15  Bruno Haible  <bruno@clisp.org>
79626         * modules/mathl (configure.ac): Define module indicator.
79628 2008-04-15  Bruno Haible  <bruno@clisp.org>
79630         * lib/logl.c (logl): Remove unused variables.
79632 2008-04-15  Bruno Haible  <bruno@clisp.org>
79634         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79635         fails.
79637 2008-04-15  Bruno Haible  <bruno@clisp.org>
79639         * lib/trim.c (trim2): Fix argument of isspace() macro.
79641 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79643         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79644         to 0.
79645         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79647 2008-04-14  Bruno Haible  <bruno@clisp.org>
79649         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79650         AC_LANG_PROGRAM argument.
79651         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79652         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79654         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79655         * m4/math_h.m4 (gl_MATH_H): Likewise.
79656         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79658         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79659         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79660         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79661         * m4/regex.m4 (gl_REGEX): Likewise.
79662         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79663         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79666         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79667         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79668         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79669         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79671 2008-04-14  Jim Meyering  <meyering@redhat.com>
79673         test-strtod: fix typos: s/abs/fabs/
79674         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79676 2008-04-13  Bruno Haible  <bruno@clisp.org>
79678         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79679         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79680         module is also used and while not building the reloc-wrapper.
79682 2008-04-13  Bruno Haible  <bruno@clisp.org>
79684         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79686 2008-04-13  Bruno Haible  <bruno@clisp.org>
79688         Fix AIX compilation failure introduced on 2008-04-02.
79689         * tests/test-frexp.c (exp): Undefine before redefining.
79690         * tests/test-frexpl.c (exp): Likewise.
79692 2008-04-13  Bruno Haible  <bruno@clisp.org>
79694         Work around a HP-UX stdio bug.
79695         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79696         * tests/test-ftello.c (main): Likewise.
79697         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79698         * doc/posix-functions/ftello.texi: Likewise.
79700 2008-04-13  Bruno Haible  <bruno@clisp.org>
79702         Make test-signbit pass on HP-UX/hppa.
79703         * tests/test-signbit.c (minus_zerol): New variable.
79704         (test_signbitl): Use it.
79706 2008-04-13  Bruno Haible  <bruno@clisp.org>
79708         Make truncl work on OSF/1 4.0.
79709         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79710         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79711         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79713         HAVE_DECL_TRUNCL.
79714         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79715         HAVE_DECL_TRUNCL.
79716         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79718 2008-04-13  Bruno Haible  <bruno@clisp.org>
79720         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79722 2008-04-13  Bruno Haible  <bruno@clisp.org>
79724         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79725         expression, so as to avoid HP-UX 11 cc compiler bug.
79727 2008-04-13  Bruno Haible  <bruno@clisp.org>
79729         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79731 2008-04-13  Bruno Haible  <bruno@clisp.org>
79733         * lib/git-merge-changelog.c: Remove empty declaration outside of
79734         functions.
79736 2008-04-13  Bruno Haible  <bruno@clisp.org>
79738         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79740 2008-04-13  Bruno Haible  <bruno@clisp.org>
79742         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79743         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79745         also if it exists but lacks definitions of the SHUT_* macros.
79746         * modules/sys_socket (Description): Update.
79747         Reported by Elbert Pol <e.pol@chello.nl>.
79749 2008-04-13  Bruno Haible  <bruno@clisp.org>
79751         * lib/localcharset.c (OS2): Don't redefine if already defined.
79752         Reported by Elbert Pol <e.pol@chello.nl>.
79754 2008-04-13  Bruno Haible  <bruno@clisp.org>
79756         * lib/binary-io.h [__EMX__]: Include <io.h>.
79757         Reported by Elbert Pol <e.pol@chello.nl>.
79759 2008-04-12  Bruno Haible  <bruno@clisp.org>
79761         * lib/fpucw.h: Enable the definitions also for x86_64.
79762         Needed for NetBSD/x86_64.
79763         Reported by Thomas Klausner <tk@giga.or.at>.
79765 2008-04-12  Bruno Haible  <bruno@clisp.org>
79767         * tests/test-strtod.c: Include isnand.h.
79768         (main): Use isnand instead of isnan.
79769         Reported by Jim Meyering.
79771 2008-04-12  Bruno Haible  <bruno@clisp.org>
79773         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79774         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79776 2008-04-12  Jim Meyering  <meyering@redhat.com>
79778         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79780 2008-04-12  Bruno Haible  <bruno@clisp.org>
79782         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79783         Reported by Elbert Pol <e.pol@chello.nl>.
79785 2008-04-12  Eric Blake  <ebb9@byu.net>
79787         Work around Solaris 10 math.h bug.
79788         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79789         (gl_MATH_H_DEFAULTS): Set up default.
79790         * modules/math (Makefile.am): Replace new indicators.
79791         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79792         * tests/test-math.c (main): Test this.
79793         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79794         * doc/posix-headers/math.texi (math.h): Mention bug.
79795         Reported by Nelson H. F. Beebe and Jim Meyering.
79797 2008-04-11  Bruno Haible  <bruno@clisp.org>
79799         Adapt to future versions of Apple GCC.
79800         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79801         Reported by Peter O'Gorman <peter@pogma.com>.
79803 2008-04-11  Bruno Haible  <bruno@clisp.org>
79805         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79807 2008-04-11  Bruno Haible  <bruno@clisp.org>
79809         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79811         * modules/getaddrinfo-tests (Makefile.am): Define
79812         test_getaddrinfo_LDADD.
79814 2008-04-11  Bruno Haible  <bruno@clisp.org>
79816         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79817         (init): Fix syntax error.
79818         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79819         is declared.
79821 2008-04-11  Bruno Haible  <bruno@clisp.org>
79823         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79824         * modules/glob (Depends-on): Add stdbool.
79826 2008-04-11  Bruno Haible  <bruno@clisp.org>
79828         * lib/trim.c: Include <string.h>.
79830 2008-04-11  Eric Blake  <ebb9@byu.net>
79832         Avoid compile failure on OS/2.
79833         * lib/regex_internal.h (internal_function): Disable optimization
79834         on OS/2 (__EMX__), where it caused compiler error.
79835         Reported by Elbert Pol.
79837 2008-04-11  Bruno Haible  <bruno@clisp.org>
79839         Flush the standard error stream before aborting. Needed on mingw.
79840         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79841         * tests/test-array_list.c (ASSERT): Likewise.
79842         * tests/test-array_oset.c (ASSERT): Likewise.
79843         * tests/test-avltree_list.c (ASSERT): Likewise.
79844         * tests/test-avltree_oset.c (ASSERT): Likewise.
79845         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79846         * tests/test-binary-io.c (ASSERT): Likewise.
79847         * tests/test-byteswap.c (ASSERT): Likewise.
79848         * tests/test-c-ctype.c (ASSERT): Likewise.
79849         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79850         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79851         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79852         * tests/test-c-strstr.c (ASSERT): Likewise.
79853         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79854         * tests/test-canonicalize.c (ASSERT): Likewise.
79855         * tests/test-carray_list.c (ASSERT): Likewise.
79856         * tests/test-ceilf1.c (ASSERT): Likewise.
79857         * tests/test-ceilf2.c (ASSERT): Likewise.
79858         * tests/test-ceill.c (ASSERT): Likewise.
79859         * tests/test-count-one-bits.c (ASSERT): Likewise.
79860         * tests/test-fbufmode.c (ASSERT): Likewise.
79861         * tests/test-fflush2.c (ASSERT): Likewise.
79862         * tests/test-floorf1.c (ASSERT): Likewise.
79863         * tests/test-floorf2.c (ASSERT): Likewise.
79864         * tests/test-floorl.c (ASSERT): Likewise.
79865         * tests/test-fopen.c (ASSERT): Likewise.
79866         * tests/test-fpending.c (ASSERT): Likewise.
79867         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79868         * tests/test-fpurge.c (ASSERT): Likewise.
79869         * tests/test-freadable.c (ASSERT): Likewise.
79870         * tests/test-freadahead.c (ASSERT): Likewise.
79871         * tests/test-freading.c (ASSERT): Likewise.
79872         * tests/test-freadptr.c (ASSERT): Likewise.
79873         * tests/test-freadptr2.c (ASSERT): Likewise.
79874         * tests/test-freadseek.c (ASSERT): Likewise.
79875         * tests/test-freopen.c (ASSERT): Likewise.
79876         * tests/test-frexp.c (ASSERT): Likewise.
79877         * tests/test-frexpl.c (ASSERT): Likewise.
79878         * tests/test-fseek.c (ASSERT): Likewise.
79879         * tests/test-fseeko.c (ASSERT): Likewise.
79880         * tests/test-fstrcmp.c (ASSERT): Likewise.
79881         * tests/test-ftell.c (ASSERT): Likewise.
79882         * tests/test-ftello.c (ASSERT): Likewise.
79883         * tests/test-func.c (ASSERT): Likewise.
79884         * tests/test-fwritable.c (ASSERT): Likewise.
79885         * tests/test-fwriting.c (ASSERT): Likewise.
79886         * tests/test-getdelim.c (ASSERT): Likewise.
79887         * tests/test-getline.c (ASSERT): Likewise.
79888         * tests/test-i-ring.c (ASSERT): Likewise.
79889         * tests/test-iconv-utf.c (ASSERT): Likewise.
79890         * tests/test-iconv.c (ASSERT): Likewise.
79891         * tests/test-isfinite.c (ASSERT): Likewise.
79892         * tests/test-isnand.c (ASSERT): Likewise.
79893         * tests/test-isnanf.c (ASSERT): Likewise.
79894         * tests/test-isnanl.h (ASSERT): Likewise.
79895         * tests/test-ldexpl.c (ASSERT): Likewise.
79896         * tests/test-linked_list.c (ASSERT): Likewise.
79897         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79898         * tests/test-localename.c (ASSERT): Likewise.
79899         * tests/test-lseek.c (ASSERT): Likewise.
79900         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79901         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79902         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79903         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79904         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79905         * tests/test-mbschr.c (ASSERT): Likewise.
79906         * tests/test-mbscspn.c (ASSERT): Likewise.
79907         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79908         * tests/test-mbspbrk.c (ASSERT): Likewise.
79909         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79910         * tests/test-mbsrchr.c (ASSERT): Likewise.
79911         * tests/test-mbsspn.c (ASSERT): Likewise.
79912         * tests/test-mbsstr1.c (ASSERT): Likewise.
79913         * tests/test-mbsstr2.c (ASSERT): Likewise.
79914         * tests/test-mbsstr3.c (ASSERT): Likewise.
79915         * tests/test-memchr2.c (ASSERT): Likewise.
79916         * tests/test-memmem.c (ASSERT): Likewise.
79917         * tests/test-open.c (ASSERT): Likewise.
79918         * tests/test-printf-frexp.c (ASSERT): Likewise.
79919         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79920         * tests/test-printf-posix.c (ASSERT): Likewise.
79921         * tests/test-quotearg.c (ASSERT): Likewise.
79922         * tests/test-rbtree_list.c (ASSERT): Likewise.
79923         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79924         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79925         * tests/test-round1.c (ASSERT): Likewise.
79926         * tests/test-roundf1.c (ASSERT): Likewise.
79927         * tests/test-roundl.c (ASSERT): Likewise.
79928         * tests/test-signbit.c (ASSERT): Likewise.
79929         * tests/test-sleep.c (ASSERT): Likewise.
79930         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79931         * tests/test-snprintf.c (ASSERT): Likewise.
79932         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79933         * tests/test-stat-time.c (ASSERT): Likewise.
79934         * tests/test-strcasestr.c (ASSERT): Likewise.
79935         * tests/test-strerror.c (ASSERT): Likewise.
79936         * tests/test-striconv.c (ASSERT): Likewise.
79937         * tests/test-striconveh.c (ASSERT): Likewise.
79938         * tests/test-striconveha.c (ASSERT): Likewise.
79939         * tests/test-strsignal.c (ASSERT): Likewise.
79940         * tests/test-strstr.c (ASSERT): Likewise.
79941         * tests/test-strtod.c (ASSERT): Likewise.
79942         * tests/test-trunc1.c (ASSERT): Likewise.
79943         * tests/test-trunc2.c (ASSERT): Likewise.
79944         * tests/test-truncf1.c (ASSERT): Likewise.
79945         * tests/test-truncf2.c (ASSERT): Likewise.
79946         * tests/test-truncl.c (ASSERT): Likewise.
79947         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79948         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79949         * tests/test-vasnprintf.c (ASSERT): Likewise.
79950         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79951         * tests/test-vasprintf.c (ASSERT): Likewise.
79952         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79953         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79954         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79955         * tests/test-vsnprintf.c (ASSERT): Likewise.
79956         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79957         * tests/test-wcwidth.c (ASSERT): Likewise.
79958         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79959         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79960         * tests/test-xvasprintf.c (ASSERT): Likewise.
79961         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79962         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79963         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79964         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79965         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79966         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79967         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79968         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79969         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79970         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79971         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79972         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79973         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79974         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79975         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79976         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79977         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79978         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79979         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79980         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79981         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79982         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79983         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79984         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79985         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79986         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79987         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79988         * tests/unictype/test-combining.c (ASSERT): Likewise.
79989         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79990         * tests/unictype/test-digit.c (ASSERT): Likewise.
79991         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79992         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79993         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79994         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79995         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79996         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79997         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79998         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79999         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
80000         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
80001         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
80002         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
80003         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
80004         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
80005         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
80006         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
80007         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
80008         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
80009         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
80010         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
80011         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
80012         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
80013         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
80014         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
80015         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
80016         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
80017         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
80018         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
80019         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
80020         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
80021         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
80022         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
80023         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
80024         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
80025         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
80026         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
80027         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
80028         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
80029         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
80030         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
80031         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
80032         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
80033         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
80034         Reported by Eric Blake.
80036 2008-04-11  Bruno Haible  <bruno@clisp.org>
80038         * lib/wchar.in.h: Tweak comment.
80040 2008-04-11  Bruno Haible  <bruno@clisp.org>
80042         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
80043         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
80044         gl_COMMON.
80045         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
80047 2008-04-11  Bruno Haible  <bruno@clisp.org>
80049         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
80051 2008-04-11  Simon Josefsson  <simon@josefsson.org>
80053         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
80054         of attempting to use non-existing /dev/*random.  Based on patch
80055         from Adam Strzelecki <ono@java.pl> in
80056         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
80058 2008-04-08  Bruno Haible  <bruno@clisp.org>
80060         Add tentative support for emx+gcc.
80061         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
80062         * lib/fpurge.c (fpurge): Likewise.
80063         * lib/freadable.c (freadable): Likewise.
80064         * lib/freadahead.c (freadahead): Likewise.
80065         * lib/freading.c (freading): Likewise.
80066         * lib/freadptr.c (freadptr): Likewise.
80067         * lib/freadseek.c (freadptrinc): Likewise.
80068         * lib/fseeko.c (rpl_fseeko): Likewise.
80069         * lib/fseterr.c (fseterr): Likewise.
80070         * lib/fwritable.c (fwritable): Likewise.
80071         * lib/fwriting.c (fwriting): Likewise.
80072         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
80074 2008-04-09  Eric Blake  <ebb9@byu.net>
80076         Avoid some autoconf warnings.
80077         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
80078         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
80079         * m4/afs.m4 (gl_AFS): Likewise.
80080         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
80081         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
80082         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80083         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
80084         (gl_INTEGER_TYPE_SUFFIX): Likewise.
80085         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
80086         (AC_CHECK_DECLS_ONCE): Likewise.
80087         Rename file...
80088         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
80089         gnulib-tool requires autoconf 2.59 or better.
80090         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
80092 2008-04-08  Eric Blake  <ebb9@byu.net>
80094         Use 'git describe --match' if present (added in git 1.5.5).
80095         * build-aux/git-version-gen: Limit result to tags that match 'v*'
80096         if possible.
80098 2008-04-08  Bruno Haible  <bruno@clisp.org>
80100         Add tentative support for OpenServer.
80101         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
80102         _ptr, _cnt.
80103         * lib/fpurge.c (fpurge): Likewise.
80104         * lib/freadable.c (freadable): Likewise.
80105         * lib/freadahead.c (freadahead): Likewise.
80106         * lib/freading.c (freading): Likewise.
80107         * lib/freadptr.c (freadptr): Likewise.
80108         * lib/freadseek.c (freadptrinc): Likewise.
80109         * lib/fseeko.c (rpl_fseeko): Likewise.
80110         * lib/fseterr.c (fseterr): Likewise.
80111         * lib/fwritable.c (fwritable): Likewise.
80112         * lib/fwriting.c (fwriting): Likewise.
80113         Reported by Roger Cornelius <rac@tenzing.org> and
80114         Brian K. White <brian@aljex.com>.
80116 2008-04-06  Jim Meyering  <meyering@redhat.com>
80118         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
80120 2008-04-06  Bruno Haible  <bruno@clisp.org>
80122         Avoid possible error with non-ASCII bytes in UTF-8 locales.
80123         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
80124         * tests/test-printf-posix.sh: Likewise.
80125         * tests/test-vfprintf-posix.sh: Likewise.
80126         * tests/test-vprintf-posix.sh: Likewise.
80127         * tests/test-xprintf-posix.sh: Likewise.
80129 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80131         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
80132         hide error from 'ls', needed on OS/2.
80133         Report by Elbert Pol <elbert.pol@gmail.com>.
80135 2008-04-04  Eric Blake  <ebb9@byu.net>
80137         Make test-fseeko.c failures meaningful.
80138         * tests/test-fseeko.c: Print line number on failure.
80139         * tests/test-fseek.c: Likewise.
80140         Reported by Nelson H. F. Beebe.
80142         Improve strtod bug detection check.
80143         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
80144         required for Solaris 10.
80145         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
80147 2008-04-04  Bruno Haible  <bruno@clisp.org>
80149         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
80150         by m4/setenv.m4.
80152 2008-04-03  Eric Blake  <ebb9@byu.net>
80154         Ensure sane .version contents.
80155         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
80156         version string.
80157         * build-aux/git-version-gen: Improve documentation.
80159         Make GNU make output nicer.
80160         * top/GNUmakefile [!_have-Makefile]: Add dependency on
80161         MAKECMDGOALS to enforce message for all command line targets.  Set
80162         srcdir for use in maint.mk.
80164         Another maintainer tweak.
80165         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
80166         a target that regenerates version.
80168 2008-04-03  Jim Meyering  <meyering@redhat.com>
80170         vc-list-files: don't cause coreutils "make po-check" failure
80171         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
80173 2008-04-03  Eric Blake  <ebb9@byu.net>
80175         Allow VPATH usage of vc-list-files.
80176         * build-aux/vc-list-files (scriptversion): Add timestamp.
80177         (options): Add --help, --version, -C.
80178         (CVS): Support installed cvsu.
80180 2008-04-02  Bruno Haible  <bruno@clisp.org>
80182         Avoid some "statement with no effect" warnings from gcc.
80183         * tests/test-wctype.c (main): Explicitly ignore unused values.
80184         Reported by Jim Meyering.
80186 2008-04-02  Jim Meyering  <meyering@redhat.com>
80188         Avoid some warnings from "gcc -Wshadow".
80189         * tests/test-frexp.c (exp): Define to a different identifier.
80190         * tests/test-frexpl.c (exp): Likewise.
80192 2008-04-03  Jim Meyering  <meyering@redhat.com>
80194         bootstrap: remove dangling *.[ch] symlinks from lib
80195         * build-aux/bootstrap [dangling symlink removal]: Move find's
80196         -depth option to precede all others, to avoid a warning.
80197         Remove *.[ch] files too, and from "$source_base" (usually lib/).
80199 2008-04-02  Bruno Haible  <bruno@clisp.org>
80201         Avoid some warnings from "gcc -Wshadow".
80202         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
80203         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
80204         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
80205         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
80206         Reported by Jim Meyering.
80208 2008-04-01  Bruno Haible  <bruno@clisp.org>
80210         Fix test to work on IRIX 6.5 with cc.
80211         * tests/test-math.c (numeric_equal): New function.
80212         (main): Use it.
80214 2008-04-01  Bruno Haible  <bruno@clisp.org>
80216         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
80218 2008-04-01  Bruno Haible  <bruno@clisp.org>
80220         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
80221         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80222         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
80223         (Depends-on): Remove math.
80225         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
80226         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80227         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
80228         (Depends-on): Remove math.
80230         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
80231         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80232         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
80233         (Depends-on): Remove math.
80234         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
80235         (Depends-on): Remove math.
80237         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
80238         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80239         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
80240         (Depends-on): Remove math.
80241         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
80242         (Depends-on): Remove math.
80244         * tests/test-round1.c: Include nan.h.
80245         (main): Use NaNd instead of NAN.
80246         * modules/round-tests (Files): Add tests/nan.h.
80248         * tests/test-trunc1.c: Include nan.h.
80249         (main): Use NaNd instead of NAN.
80250         * modules/trunc-tests (Files): Add tests/nan.h.
80252         * tests/test-roundf1.c: Include nan.h.
80253         (main): Use NaNf instead of NAN.
80254         * modules/roundf-tests (Files): Add tests/nan.h.
80256         * tests/test-truncf1.c: Include nan.h.
80257         (main): Use NaNf instead of NAN.
80258         * modules/truncf-tests (Files): Add tests/nan.h.
80260         * tests/test-ceilf1.c: Include nan.h.
80261         (main): Use NaNf instead of NAN.
80262         * modules/ceilf-tests (Files): Add tests/nan.h.
80264         * tests/test-floorf1.c: Include nan.h.
80265         (main): Use NaNf instead of NAN.
80266         * modules/floorf-tests (Files): Add tests/nan.h.
80268         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
80269         (main): Use NaNf instead of NAN.
80270         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
80272         * tests/test-isnand.c: Include nan.h instead of <math.h>.
80273         (main): Use NaNd instead of NAN.
80274         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
80276         * tests/test-frexp.c: Include nan.h.
80277         (main): Use NaNd instead of NAN.
80278         * modules/frexp-tests (Files): Add tests/nan.h.
80280         * lib/isnan.c: Don't include <math.h>.
80281         (FUNC): Don't use NAN macro.
80282         * modules/isnand-nolibm (Depends-on): Remove math.
80283         * modules/isnanf-nolibm (Depends-on): Remove math.
80284         * modules/isnanl (Depends-on): Remove math.
80285         * modules/isnanl-nolibm (Depends-on): Remove math.
80287         * tests/nan.h: New file.
80289 2008-04-01  Eric Blake  <ebb9@byu.net>
80291         Fix typos.
80292         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
80293         values to be the right type.
80295         For now, cater to gnulib strtod inaccuracies.
80296         * tests/test-strtod.c (main): Allow 1-ulp error on expected
80297         fractional results.  While not as nice from a QoI perspective, it
80298         is a quicker patch than correctly implementing decimal to binary
80299         rounding.
80301 2008-03-31  Eric Blake  <ebb9@byu.net>
80303         Guarantee a definition of NAN.
80304         * lib/math.in.h (NAN): Define if missing.
80305         * tests/test-math.c (main): Test it.
80306         * doc/posix-headers/math.texi (math.h): Document this.
80307         * lib/isnan.c (rpl_isnand): Use it.
80308         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
80309         * tests/test-floorf1.c (NaN): Likewise.
80310         * tests/test-frexp.c (NaN): Likewise.
80311         * tests/test-isnand.c (NaN): Likewise.
80312         * tests/test-isnanf.c (NaN): Likewise.
80313         * tests/test-round1.c (NaN): Likewise.
80314         * tests/test-roundf1.c (NaN): Likewise.
80315         * tests/test-snprintf-posix.h (NaN): Likewise.
80316         * tests/test-sprintf-posix.h (NaN): Likewise.
80317         * tests/test-trunc1.c (NaN): Likewise.
80318         * tests/test-truncf1.c (NaN): Likewise.
80319         * tests/test-vasnprintf-posix.c (NaN): Likewise.
80320         * tests/test-vasprintf-posix.c (NaN): Likewise.
80321         * modules/isnand-nolibm (Depends-on): Add math.
80322         * modules/isnanf-nolibm (Depends-on): Likewise.
80323         * modules/isnanl (Depends-on): Likewise.
80324         * modules/isnanl-nolibm (Depends-on): Likewise.
80325         * modules/snprintf-posix-tests (Depends-on): Likewise.
80326         * modules/sprintf-posix-tests (Depends-on): Likewise.
80327         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
80328         * modules/vsprintf-posix-tests (Depends-on): Likewise.
80329         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
80330         * modules/vasprintf-posix-tests (Depends-on): Likewise.
80332 2008-03-31  Bruno Haible  <bruno@clisp.org>
80334         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
80335         * doc/posix-functions/strtod.texi: Likewise.
80337 2008-03-31  Bruno Haible  <bruno@clisp.org>
80339         * tests/test-strtod.c (main): Don't use C99 syntax.
80341 2008-03-31  Bruno Haible  <bruno@clisp.org>
80343         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
80344         Reported by Eric Blake.
80346 2008-03-31  Jim Meyering  <meyering@redhat.com>
80348         Don't compare actual signbit return values.
80349         * tests/test-strtod.c (main): Rather, compare only their
80350         zero/non-zero nature.
80352 2008-03-31  Eric Blake  <ebb9@byu.net>
80354         More strtod documentation.
80355         * doc/posix-functions/strtod.texi (strtod): Interpret more test
80356         failures as distinct bugs.
80358 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80360         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80361         Problem reported by Erik Benada in
80362         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80364 2008-03-30  Bruno Haible  <bruno@clisp.org>
80366         * tests/test-strtod.c: Add comments about which assertion fails on which
80367         platform.
80368         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80370 2008-03-30  Eric Blake  <ebb9@byu.net>
80372         Test signbit behavior on zeros.
80373         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80374         (test_signbitd, test_signbitl): Likewise.
80376         More strtod touchups.
80377         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80378         sign of negative underflow, for now.  Use .5, not .1.
80379         * doc/posix-functions/strtod.texi (strtod): Mention these
80380         limitations.
80381         Reported by Jim Meyering.
80383 2008-03-30  Bruno Haible  <bruno@clisp.org>
80385         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80386         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80388 2008-03-30  Bruno Haible  <bruno@clisp.org>
80390         Avoid failure when attempting to return empty iconv results on some
80391         platforms.
80392         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80393         allocation, don't report ENOMEM when the resulting string is empty.
80395 2008-03-30  Bruno Haible  <bruno@clisp.org>
80397         Fix buffer overrun.
80398         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80399         Don't consider the width for tmp_length. Check count against tmp_length
80400         before doing the padding. Ensure enough allocation during padding.
80402 2008-03-30  Eric Blake  <ebb9@byu.net>
80404         strtod touchups.
80405         * lib/strtod.c (strtod): Avoid compiler warnings.
80406         Reported by Jim Meyering.
80408 2008-03-30  Bruno Haible  <bruno@clisp.org>
80410         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80411         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80412         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80413         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80414         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80415         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80416         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80417         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80419         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80420         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80421         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80422         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80423         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80424         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80425         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80426         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80428         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80429         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80430         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80431         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80432         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80433         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80434         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80435         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80437         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80438         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80440         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80441         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80443         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80444         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80446         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80448         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80450         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80452         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80454         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80456         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80458         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80460         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80462         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80463         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80465         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80466         (Depends-on): Add EOVERFLOW.
80467         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80468         (Depends-on): Add EOVERFLOW.
80469         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80470         (Depends-on): Add EOVERFLOW.
80471         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80472         (Depends-on): Add EOVERFLOW.
80473         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80474         (Depends-on): Add EOVERFLOW.
80475         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80476         (Depends-on): Add EOVERFLOW.
80477         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80478         (Depends-on): Add EOVERFLOW.
80479         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80480         (Depends-on): Add EOVERFLOW.
80482         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80483         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80484         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80486         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80488         * modules/snprintf (Depends-on): Add EOVERFLOW.
80490         * lib/poll.c (EOVERFLOW): Remove fallback.
80491         * modules/poll (Depends-on): Add EOVERFLOW.
80493         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80494         * modules/getugroups (Depends-on): Add EOVERFLOW.
80496         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80497         * modules/getdelim (Depends-on): Add EOVERFLOW.
80499         * lib/ftell.c (EOVERFLOW): Remove fallback.
80500         * modules/ftell (Depends-on): Add EOVERFLOW.
80502         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80504         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80506         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80508         * modules/EOVERFLOW-tests: New file.
80509         * tests/test-EOVERFLOW.c: New file.
80511         * modules/EOVERFLOW: New file.
80512         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80514 2008-03-30  Bruno Haible  <bruno@clisp.org>
80516         Fix bug introduced on 2007-06-10.
80517         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80518         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80520 2008-03-30  Bruno Haible  <bruno@clisp.org>
80522         Improve freadseek's efficiency after ungetc.
80523         * lib/freadseek.c: Include freadahead.h.
80524         (freadptrinc): New function, extracted from freadseek.
80525         (freadseek): Use it in a loop. Use freadahead to determine the number
80526         of loop iterations.
80527         * modules/freadseek (Depends-on): Add freadahead.
80528         (configure.ac): Require AC_C_INLINE.
80530 2008-03-30  Bruno Haible  <bruno@clisp.org>
80532         * lib/freadseek.c (freadseek): Don't ignore the return value of
80533         freadptr.
80535 2008-03-29  Eric Blake  <ebb9@byu.net>
80537         Add hex float support.
80538         * modules/strtod (Depends-on): Add c-ctype.
80539         (Link): Mention POW_LIB.
80540         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80541         whitespace between 'e' and exponent.
80542         * tests/test-strtod.c (main): Enable hex float tests.
80543         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80544         now provides.
80546         Document various strtod bugs, with some fixes.
80547         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80548         "-0x", "inf", "nan", and hex constants.
80549         * doc/posix-functions/atof.texi (atof): Likewise.
80550         * modules/stdlib (Makefile.am): Support strtod.
80551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80552         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80553         detect additional strtod bugs.
80554         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80555         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80556         bool where appropriate.  Parse 'inf' and 'nan'.
80557         * tests/test-strtod.c: New file.
80558         * modules/strtod (Depends-on): Add stdbool, stdlib.
80559         (configure.ac): Turn on module indicator.
80560         * modules/strtod-tests: New module.
80562 2008-03-29  Eric Blake  <ebb9@byu.net>
80564         Fix ftell on mingw.
80565         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80566         * modules/ftell-tests (Depends-on): Add binary-io.
80567         * modules/ftello-tests (Depends-on): Likewise.
80568         * tests/test-ftell.c (main): Enhance test to cover behavior after
80569         ungetc.  Enforce binary mode.
80570         * tests/test-ftello.c (main): Likewise.
80572         Pass test-freadseek on cygwin.
80573         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80574         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80575         ungetc buffer.
80577         * tests/test-fflush2.c (main): Fix typo.
80579 2008-03-29  Bruno Haible  <bruno@clisp.org>
80581         * tests/test-fflush2.c (main): Temporarily disable the contents of
80582         this test.
80583         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80584         Reported by Eric Blake.
80586 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80588         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80589         (GC_SHA224_DIGEST_SIZE): Add.
80591         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80592         (gc_hash_digest_length): Likewise.
80593         (gc_hash_buffer): Likewise.
80595 2008-03-25  Bruno Haible  <bruno@clisp.org>
80597         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80598         detail which gettext release to use.
80599         Reported by Simon Josefsson.
80601 2008-03-26  Jim Meyering  <meyering@redhat.com>
80603         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80604         * modules/gnumakefile (clean-GNUmakefile): Also, use
80605         test ... && ... || : syntax rather than if-then ... fi.
80607         gnumakefile: Don't double-quote-expand $(VPATH) value.
80608         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80610 2008-03-24  Eric Blake  <ebb9@byu.net>
80612         Alter GNUmakefile to install into top directory.
80613         * modules/maintainer-makefile: Split, and add dependency...
80614         * modules/gnumakefile: to this new module.
80615         * build-aux/GNUmakefile: Move...
80616         * top/GNUmakefile: ...here.
80617         * build-aux/maint.mk: Move...
80618         * top/maint.mk: ...here.
80619         * MODULES.html.sh (Support for maintaining...): Document new
80620         module.
80622 2008-03-23  Bruno Haible  <bruno@clisp.org>
80624         * gnulib-tool: New options --vc-files, --no-vc-files.
80625         (func_usage): Document them.
80626         (vc_files): New variable.
80627         (func_import): Consider vc_files.
80628         (func_create_testdir): Set vc_files to empty.
80629         Suggested by Jim Meyering and Karl Berry.
80631 2008-03-23  Bruno Haible  <bruno@clisp.org>
80633         Fix regex compilation error on HP-UX 11.
80634         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80635         * modules/regex (Files): Add m4/mbstate_t.m4.
80636         Reported by Ton Voon <ton.voon@altinity.com>.
80638 2008-03-23  Bruno Haible  <bruno@clisp.org>
80640         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80642 2008-03-23  Eric Blake  <ebb9@byu.net>
80643             Bruno Haible  <bruno@clisp.org>
80645         Install files from top/ in the destination directory.
80646         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80647         augmentation also for the files from top/.
80648         (func_import, func_create_testdir): Rewrite file names:
80649         top/filename -> filename.
80651 2008-03-23  Bruno Haible  <bruno@clisp.org>
80653         Tweak "gnulib --version" output.
80654         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80656 2008-03-23  Bruno Haible  <bruno@clisp.org>
80658         Tweak "gnulib --version" output.
80659         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80660         rather than contents of ChangeLog, when possible.
80662 2008-03-21  Eric Blake  <ebb9@byu.net>
80664         More --version tweaks.
80665         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80666         date of last ChangeLog entry.
80668 2008-03-21  Jim Meyering  <meyering@redhat.com>
80670         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80672 2008-03-20  Eric Blake  <ebb9@byu.net>
80674         VPATH fix.
80675         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80677 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80679         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80680         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80682 2008-03-20  Eric Blake  <ebb9@byu.net>
80684         Sync GNUmakefile with coreutils.
80685         * build-aux/GNUmakefile (have-Makefile): Rename...
80686         (_have-Makefile): ...to this, for namespace consideration.
80687         (GNUmakefile.cfg): Include, if present.
80688         (_autoreconf): Define a default.
80689         (_is-dist-target): New rule for rebuilds to pick up intra-release
80690         version.
80691         (maint-cfg.mk): Rename...
80692         (cfg.mk): ...to this.
80694 2008-03-18  Jim Meyering  <meyering@redhat.com>
80696         New script and module: mktempd
80697         * MODULES.html.sh (maint+release support): Add mktempd.
80698         * build-aux/mktempd: New file.
80699         * modules/mktempd: New file.
80701 2008-03-15  Jim Meyering  <meyering@redhat.com>
80703         Undo last change.
80704         * lib/sha1.c, lib/md5.c: 63 != ~63.
80705         Reported by Andreas Schwab.
80707         sha1.c, md5.c: Hoist a redundant expression.
80708         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80709         "ctx->buflen" only once, before calling *_process_block.
80710         * lib/md5.c (md5_process_bytes): Likewise.
80712 2008-03-14  Eric Blake  <ebb9@byu.net>
80714         Bump copyright year in files generated by gnulib-tool.
80715         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80716         gnulib-tool, rather than hard-coding it.
80718         Fix 'gnulib-tool --version' output to work with git.
80719         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80720         (startup): ...here.
80721         (func_version): Use it to invoke git-version-gen, rather than
80722         relying on CVS keyword expansion.  Modernize wording.
80723         (cvsdatestamp, last_checkin_date, version): Kill unused
80724         variables.
80726 2008-03-12  Jim Meyering  <meyering@redhat.com>
80728         Recognize optional cast of the argument to free.
80729         * build-aux/useless-if-before-free: Update regexps.
80731         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80733 2008-03-11  Bruno Haible  <bruno@clisp.org>
80735         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80736         by a single package.
80737         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80738         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80739         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80740         Reported by Sam Steingold <sds@gnu.org>.
80742 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80744         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80745         repositories.
80747 2008-03-11  Bruno Haible  <bruno@clisp.org>
80749         Avoid conflicts between local macro definitions.
80750         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80751         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80753 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80754             Bruno Haible  <bruno@clisp.org>
80756         Make va_copy work with some version of xlc on AIX 5.1.
80757         * lib/stdarg.in.h: New file.
80758         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80759         On AIX, use a <stdarg.h> file substitute.
80760         * modules/stdarg (Files): Add lib/stdarg.in.h.
80761         (Depends-on): Add include_next.
80762         (Makefile.am): Build a stdarg.h substitute if requested.
80763         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80765 2008-03-10  Bruno Haible  <bruno@clisp.org>
80767         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80769         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80771 2008-03-10  Bruno Haible  <bruno@clisp.org>
80773         * modules/stdlib (Depends-on): Add include_next, remove
80774         absolute-header.
80776 2008-03-09  Bruno Haible  <bruno@clisp.org>
80778         * lib/freadahead.h (freadahead): Document more precisely.
80779         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80780         the sum of both buffer sizes.
80781         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80782         * NEWS: Document the change.
80784 2008-03-09  Bruno Haible  <bruno@clisp.org>
80786         Extend freadptr to return also the buffer size.
80787         * lib/freadptr.h (freadptr): Add sizep argument.
80788         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80789         (freadptr): Add sizep argument. Determine buffer size like freadahead
80790         does.
80791         * tests/test-freadptr.c: Don't include freadahead.h.
80792         (main): Adapt for new calling convention of freadptr.
80793         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80794         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80795         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80796         tests/test-freadptr2.sh.
80797         (Depends): Remove freadahead.
80798         (TESTS): Add test-freadptr2.sh.
80799         (check_PROGRAMS): Add test-freadptr2.
80801 2008-03-09  Bruno Haible  <bruno@clisp.org>
80803         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80804         Report and solution by Simon Josefsson.
80806 2008-03-06  Bruno Haible  <bruno@clisp.org>
80808         Make fflush after ungetc work on BSD platforms.
80809         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80810         * tests/test-fflush2.c: New file.
80811         * tests/test-fflush2.sh: New file.
80812         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80813         tests/test-fflush2.c.
80814         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80815         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80817 2008-03-06  Eric Blake  <ebb9@byu.net>
80819         Likewise for ftello.
80820         * modules/ftello (Dependencies): Add extensions.
80821         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80823 2008-03-06  Bruno Haible  <bruno@clisp.org>
80825         * modules/fseeko (Dependencies): Add extensions.
80826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80827         Needed on glibc systems.
80829 2008-03-06  Bruno Haible  <bruno@clisp.org>
80831         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80832         email address.
80833         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80835 2008-03-06  Bruno Haible  <bruno@clisp.org>
80837         * users.txt: Add libgnupdf.
80839 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80841         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80842         (Header File Substitutes, Function Substitutes,
80843         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80844         (Build robot for gnulib): Fix typo.
80846 2008-03-06  Bruno Haible  <bruno@clisp.org>
80848         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80849         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80851 2008-03-06  Bruno Haible  <bruno@clisp.org>
80853         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80854         * doc/gnulib.texi: Include it.
80856 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80858         * modules/func (License): Change license to unlimited; there was
80859         no LGPL parts in the module anyway.
80861 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80863         * modules/__func__: Renamed to modules/func.
80864         * modules/__func__-tests: Renamed to modules/func-tests.
80865         * tests/test-__func__.c: Renamed to tests/test-func.c.
80866         * m4/__func__.m4: Renamed to m4/func.m4.
80867         * doc/gnulib.texi (__func__): Section renamed to func.
80868         Suggested by Eric Blake <ebb9@byu.net>.
80870 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80872         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80873         about __func__.  Make example self-contained.  Suggested by Eric
80874         Blake <ebb9@byu.net>.
80876         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80877         Suggested by Eric Blake <ebb9@byu.net>.
80879 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80881         * modules/__func__: New file.
80882         * modules/__func__-tests: New file.
80883         * tests/test-__func__.c: New file.
80884         * m4/__func__.m4: New file.
80885         * doc/gnulib.texi (__func__): Document __func__ module.
80887 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80889         * modules/byteswap (License): Re-license as LGPLv2+.
80891 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80893         * doc/Makefile: Add pdf target.
80895 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80897         * modules/inline (License): Use 'unlimited', since there are only
80898         *.m4 files in this module.
80900 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80901             Bruno Haible  <bruno@clisp.org>
80903         Add support for HP C 7.1 on OpenVMS 8.3.
80904         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80906 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80908         Update VMS specifics.
80909         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80911 2008-03-02  Jim Meyering  <meyering@redhat.com>
80913         Remove the last dependency on the "free" module.
80914         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80915         Reported by Bob Proulx.
80917         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80919         Remove useless "if" tests before free.  Deprecate "free" module.
80920         * doc/posix-functions/free.texi: Mention that this
80921         module is no longer useful.
80922         * modules/free (Notice): Say this module is obsolete.
80923         * modules/readutmp (Depends-on): Remove free.
80924         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80925         * lib/putenv.c (putenv): Likewise.
80926         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80927         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80928         * tests/test-c-strcasestr.c (main): Likewise.
80929         * tests/test-c-strstr.c (main): Likewise.
80930         * tests/test-mbscasestr1.c (main): Likewise.
80931         * tests/test-mbscasestr2.c (main): Likewise.
80932         * tests/test-mbsstr1.c (main): Likewise.
80933         * tests/test-mbsstr2.c (main): Likewise.
80934         * tests/test-memmem.c (main): Likewise.
80935         * tests/test-strcasestr.c (main): Likewise.
80936         * tests/test-striconv.c (main): Likewise.
80937         * tests/test-striconveh.c (main): Likewise.
80938         * tests/test-striconveha.c (main): Likewise.
80939         * tests/test-strstr.c (main): Likewise.
80941         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80943         bootstrap: sync from coreutils again
80944         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80946 2008-03-01  Jim Meyering  <meyering@redhat.com>
80948         bootstrap: sync from coreutils
80949         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80950         also when the target doesn't exist.
80952 2008-03-01  Eric Blake  <ebb9@byu.net>
80954         Fix bugs in last patch.
80955         * lib/memchr2.c (memchr2): Fix typo.
80956         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80957         extension.
80958         Reported by Bruce Korb.
80960         New module 'memchr2'.
80961         * modules/memchr2: New file.
80962         * modules/memchr2-tests: Likewise.
80963         * lib/memchr2.h: Likewise.
80964         * lib/memchr2.c: Likewise, based on memchr.c.
80965         * tests/test-memchr2.c: New test.
80966         * MODULES.html.sh (String handling): Add memchr2.
80968 2008-02-29  Bruno Haible  <bruno@clisp.org>
80970         * modules/freadseek-tests: New file.
80971         * tests/test-freadseek.sh: New file.
80972         * tests/test-freadseek.c: New file.
80974         New module 'freadseek'.
80975         * modules/freadseek: New file.
80976         * lib/freadseek.h: New file.
80977         * lib/freadseek.c: New file.
80978         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80980 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80982         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80983         wydawca.
80985         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80986         program_invocation_name and program_invocation_short_name are
80987         present.
80989 2008-02-28  Bruno Haible  <bruno@clisp.org>
80991         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80992         * tests/test-freadptr.sh: Also test non-seekable stdin.
80994 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80996         * build-aux/bootstrap (source_base, m4_base)
80997         (doc_base, tests_base): New variables.
80998         (gnulib_tool_options): Do not hardcode base directories, use
80999         the above variables instead.
81001 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
81003         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
81005 2008-02-28  Bruno Haible  <bruno@clisp.org>
81007         * modules/freadptr-tests: New file.
81008         * tests/test-freadptr.sh: New file.
81009         * tests/test-freadptr.c: New file.
81011         New module 'freadptr'.
81012         * modules/freadptr: New file.
81013         * lib/freadptr.h: New file.
81014         * lib/freadptr.c: New file.
81015         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
81017 2008-02-26  Karl Berry  <karl@freefriends.org>
81019         Sync from Libtool:
81020         * libltdl/argz.c (argz_add, argz_count): New functions.
81021         * libltdl/argz.in.h: Declare them.
81022         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
81024 2008-02-22  Bruno Haible  <bruno@clisp.org>
81026         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
81027         is a pointer type.  Needed for HP-UX 10.
81028         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
81029         * doc/posix-functions/gmtime_r.texi: Likewise.
81030         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
81032 2008-02-24  Bruno Haible  <bruno@clisp.org>
81034         * modules/environ-tests: New file.
81035         * tests/test-environ.c: New file.
81037         New module 'environ'.
81038         * modules/environ: New file.
81039         * lib/unistd.in.h (environ): New declaration.
81040         * m4/environ.m4: New file.
81041         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
81042         after use.
81043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
81044         HAVE_DECL_ENVIRON.
81045         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
81046         HAVE_DECL_ENVIRON.
81047         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
81048         wrong claim that 'environ' is missing on some systems.
81049         * modules/execute (Depends-on): Add environ.
81050         * lib/execute.c (environ): Remove fallback declaration.
81051         * modules/pipe (Depends-on): Add environ.
81052         * lib/pipe.c (environ): Remove fallback declaration.
81053         * modules/setenv (Depends-on): Add environ.
81054         * lib/setenv.c (environ): Remove fallback declaration.
81055         * modules/unsetenv (Depends-on): Add environ.
81056         * lib/unsetenv.c (environ): Remove fallback declaration.
81057         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
81058         m4/environ.m4.
81059         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
81060         (gl_PREREQ_UNSETENV): Likewise.
81062 2008-02-24  Bruno Haible  <bruno@clisp.org>
81064         * doc/posix-functions/environ.texi: Document the MacOS X problem.
81066 2008-02-20  Bob Proulx  <bob@proulx.com>
81068         Enable use of older two part flavor 'git describe'.
81069         * build-aux/git-version-gen: If using the older two part flavor of
81070         git version then recreate the third part now present in the
81071         newer three part flavor of git describe.
81073 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
81075         * lib/fts.c (fts_build): Typo correction to comment.
81077 2008-02-17  Bruno Haible  <bruno@clisp.org>
81079         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
81080         generating no-op conflicts.
81082 2008-02-17  Bruno Haible  <bruno@clisp.org>
81084         Speed up by 10%.
81085         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
81086         result_entries, rather than an index-based loop.
81088 2008-02-17  Bruno Haible  <bruno@clisp.org>
81090         Speed up by 25%.
81091         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
81092         'hashcode_cached'.
81093         (entry_create): New function.
81094         (entry_hashcode): Use the cached hashcode if possible.
81095         (read_changelog_file, try_split_merged_entry): Use entry_create.
81097 2008-02-17  Bruno Haible  <bruno@clisp.org>
81099         Speed up from O(n^2) to O(n) for long ChangeLog files.
81100         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
81101         (read_changelog_file): Change implementation of entries_reversed list
81102         to rbtreehash.
81103         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
81105 2008-02-17  Bruno Haible  <bruno@clisp.org>
81107         New option --split-merged-entry.
81108         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
81109         (find_paragraph_end, try_split_merged_entry): New functions.
81110         (long_options): Add option --split-merged-entry.
81111         (usage): Document option --split-merged-entry.
81112         (main): Implement option --split-merged-entry.
81113         Reported by Eric Blake.
81115 2008-02-17  Bruno Haible  <bruno@clisp.org>
81117         * lib/git-merge-changelog.c: Include c-strstr.h.
81118         (main): Support the "git pull --rebase" situation.
81119         * modules/git-merge-changelog (Depends-on): Add c-strstr.
81120         Reported by Eric Blake.
81122 2008-02-16  Eric Blake  <ebb9@byu.net>
81124         Avoid doubling \ in common case of "c-maybe" quoting style.
81125         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
81126         eliding outer quotes.
81127         * lib/quotearg.h: Document this.
81128         * tests/test-quotearg.c (result_strings, inputs, results_g)
81129         (flag_results, locale_results): Test it by adding a new string to
81130         each test group.
81131         (compare_strings): Test new string.
81133 2008-02-13  Eric Blake  <ebb9@byu.net>
81135         Avoid trigraph quoting in default output.
81136         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
81137         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
81138         unless explicitly requested.
81139         * tests/test-quotearg.c (flag_results, main): Add additional tests.
81141 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
81143         Don't rely on signed integer overflowing to negative value.
81144         * lib/getugroups.c (getugroups): Include <limits.h>.
81145         Instead, compare against INT_MAX, and increment only if the test passes.
81147 2008-02-13  Jim Meyering  <meyering@redhat.com>
81148         and Eric Blake  <ebb9@byu.net>
81150         Avoid shadowing warning and compile errors on Linux.
81151         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
81152         forwarding macros on Linux.
81153         (dcgettext): Define a stub, for Linux.
81154         (results_g, main): Avoid warnings.
81156 2008-02-12  Eric Blake  <ebb9@byu.net>
81158         Silence warning in last patch.
81159         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
81161         Quotearg part 4: add tests, fix c-maybe colon quoting.
81162         * lib/quotearg.h: Improve documentation.
81163         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
81164         escapes when adding outer quotes.  When quoting trigraphs, use
81165         valid C notation.  When quoting NUL, omit extra characters if next
81166         character is not digit.  Alter prototype.
81167         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
81168         callers.
81169         * modules/quotearg-tests: New module.
81170         * tests/test-quotearg.c: New test.
81172 2008-02-07  Eric Blake  <ebb9@byu.net>
81174         Quotearg part 3: add flag to control outer quote elision.
81175         * lib/quotearg.h (c_maybe_quoting_style): New style.
81176         (enum quoting_flags): Better documentation of flags.
81177         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
81178         c-maybe style.
81179         (quotearg_buffer_restyled): Handle new flag to elide outer
81180         quotes.
81182         Quotearg part 2: add flag that can control NUL elision.
81183         * lib/quotearg.h (set_quoting_flags): New prototype.
81184         * lib/quotearg.c (struct quoting_options): Add flag field.
81185         (set_quoting_flags): New function.
81186         (quotearg_buffer_restyled): Add flags parameter.
81187         (quotearg_alloc_mem): Set the flag if length cannot be returned.
81188         (quotearg_n_options): Set the flag, since length cannot be
81189         returned.
81190         (quoting_options_from_style): Default flags correctly.
81192         Quotearg part 1: more wrappers, restore quotearg_char state.
81193         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
81194         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
81195         (quotearg_colon_mem): New wrappers.
81196         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
81197         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
81198         functions.
81199         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
81200         (quotearg_colon_mem): New functions.
81202 2008-02-11  Bruno Haible  <bruno@clisp.org>
81204         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
81205         library in the current directory: it does not work with parallel make.
81206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81208 2008-02-11  Bruno Haible  <bruno@clisp.org>
81210         * .gitattributes: New file.
81212 2008-02-11  Jim Meyering  <meyering@redhat.com>
81214         useless-if-before-free: Fix reversed exit values.
81215         * build-aux/useless-if-before-free: Use correct values
81216         for EXIT_MATCH and EXIT_NO_MATCH.
81218         * build-aux/useless-if-before-free: Close stdout carefully.
81220 2008-02-10  Bruno Haible  <bruno@clisp.org>
81222         New module 'git-merge-changelog'.
81223         * modules/git-merge-changelog: New file.
81224         * lib/git-merge-changelog.c: New file.
81226 2008-02-10  Jim Meyering  <meyering@redhat.com>
81228         useless-if-before-free: New option: --list (-l).
81230         useless-if-before-free: Don't exit immediately upon open failure.
81231         * build-aux/useless-if-before-free: Exit 2 for errors.
81232         Upon failure to open a file, don't exit immediately.
81233         Rather, just warn and continue with any remaining files.
81235 2008-02-10  Bruno Haible  <bruno@clisp.org>
81237         New abstract list operation 'node_set_value'.
81238         * lib/gl_list.h (gl_list_node_set_value): New function.
81239         (struct gl_list_implementation): New field node_set_value.
81240         * lib/gl_list.c (gl_list_node_set_value): New function.
81241         * lib/gl_array_list.c (gl_array_node_set_value): New function.
81242         (gl_array_list_implementation): Update.
81243         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
81244         (gl_carray_list_implementation): Update.
81245         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
81246         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
81247         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
81248         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
81249         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
81250         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
81251         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
81252         Update.
81253         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
81254         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
81255         (gl_sublist_list_implementation): Update.
81257 2008-02-10  Bruno Haible  <bruno@clisp.org>
81259         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
81260         Needed when ELEMENT is #defined to 'some_type *'.
81262 2008-02-10  Jim Meyering  <meyering@redhat.com>
81264         New script and module: useless-if-before-free
81265         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
81266         * build-aux/useless-if-before-free: New file.
81267         * modules/useless-if-before-free: New file.
81269         * build-aux/gitlog-to-changelog: Use committer date, not author date.
81271         xstrtol_error: Fix typo.
81272         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
81273         s/exit_failure/exit_status/.
81275 2008-02-09  Jim Meyering  <meyering@redhat.com>
81277         New script and module: gitlog-to-changelog
81278         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
81279         * modules/gitlog-to-changelog: New file.
81280         * build-aux/gitlog-to-changelog: New file.
81282 2008-02-08  Jim Meyering  <meyering@redhat.com>
81284         Avoid two "parameter unused" warnings.
81285         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
81286         Mark "st" as used.
81288         Use "git COMMAND", not "git-COMMAND".
81289         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
81290         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
81291         * build-aux/git-version-gen: Use "git status", not "git-status".
81293 2008-02-07  Bruno Haible  <bruno@clisp.org>
81295         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
81296         Avoids a crash on Windows Vista.
81297         Reported by Adam Strzelecki <ono@java.pl> via
81298         Simon Josefsson <simon@josefsson.org>.
81300 2008-02-06  Bruno Haible  <bruno@clisp.org>
81302         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
81303         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
81304         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
81305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
81306         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81308         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
81309         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
81310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81317         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
81318         left-adjust flag.
81319         * tests/test-snprintf-posix.h (test_function): Likewise.
81320         * tests/test-sprintf-posix.h (test_function): Likewise.
81321         * tests/test-vasprintf-posix.c (test_function): Likewise.
81322         * doc/posix-functions/fprintf.texi: Update.
81323         * doc/posix-functions/printf.texi: Update.
81324         * doc/posix-functions/snprintf.texi: Update.
81325         * doc/posix-functions/sprintf.texi: Update.
81326         * doc/posix-functions/vfprintf.texi: Update.
81327         * doc/posix-functions/vprintf.texi: Update.
81328         * doc/posix-functions/vsnprintf.texi: Update.
81329         * doc/posix-functions/vsprintf.texi: Update.
81330         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81332 2008-02-06  Bruno Haible  <bruno@clisp.org>
81334         Fix bug introduced on 2008-01-26.
81335         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
81337 2008-02-06  Bruno Haible  <bruno@clisp.org>
81339         Fix bug introduced on 2007-06-10.
81340         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
81341         !NEED_PRINTF_FLAG_ZERO.
81343 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
81345         getloadavg: use libperfstat on AIX5
81346         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
81348 2008-02-03  Bruno Haible  <bruno@clisp.org>
81350         * lib/diffseq.h: Add comments about required #includes.
81351         Reported by Michael Biggs <gnulib@doubleplum.net>.
81353 2008-02-01  Bruno Haible  <bruno@clisp.org>
81355         * users.txt: Add gnuit.
81357 2008-01-31  Bruno Haible  <bruno@clisp.org>
81359         * lib/md4.c (set_uint32): Mark as inline.
81360         * lib/md5.c (set_uint32): Likewise.
81361         * lib/sha1.c (set_uint32): Likewise.
81362         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81363         * m4/md5.m4 (gl_MD5): Likewise.
81364         * m4/sha1.m4 (gl_SHA1): Likewise.
81366 2008-01-31  Jim Meyering  <meyering@redhat.com>
81368         Use "sizeof VAR", rather than a literal "4".
81369         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81370         * lib/md4.c (md4_read_ctx): Likewise.
81371         * lib/sha1.c (sha1_read_ctx): Likewise.
81373 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81375         * tests/test-sha1.c: New file, based on test-md5.c.
81377         * modules/crypto/sha1-tests: New file.
81379 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81381         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81383 2008-01-31  Jim Meyering  <meyering@redhat.com>
81385         Prefer "sizeof v" over the equivalent "4".
81386         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81387         * lib/md5.c (set_uint32): Likewise.
81388         * lib/sha1.c (set_uint32): Likewise.
81390 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81392         * lib/sha1.c (set_uint32): Mark function as static.
81394 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81396         md2: clarify comments to say that alignment is not required.
81397         * lib/md2.h: Remove warning about alignment in comment.
81398         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81399         never been required.
81401 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81403         md4: adapt alignment constraint fix from sha1.
81404         * lib/md4.c (set_uint32): New function, from sha1.c
81405         (md4_read_ctx): Use it.
81406         (md4_finish_ctx): Doc fix.
81407         * lib/md4.h: Doc fix.
81409 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81411         md5: adapt alignment constraint fix from sha1.
81412         * lib/md5.c (set_uint32): New function, from sha1.c
81413         (md5_read_ctx): Use it.
81414         (md5_finish_ctx): Doc fix.
81415         * lib/md5.h: Doc fix.
81417 2008-01-30  Peter Palfrader  <weasel@debian.org>
81419         sha1: remove the result buffer alignment constraint
81420         * lib/sha1.c (set_uint32): New function.
81421         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81422         constraint.
81423         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81424         * lib/sha1.h: Likewise.
81426 2008-01-30  Andreas Schwab  <schwab@suse.de>
81427             Bruno Haible  <bruno@clisp.org>
81429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81430         correct definition of LDBL_MIN_EXP.
81432 2008-01-30  Karl Berry  <karl@gnu.org>
81434         * config/srclist-update: try to preserve x bit on updates.
81435         * config/srclistvars.sh: update for karl.
81437 2008-01-29  Jim Meyering  <meyering@redhat.com>
81439         vasnprintf.c: Avoid warning about unused label
81440         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81441         "overflow" label definition and associated code with the
81442         same cpp condition that guards the sole use of that label.
81444 2008-01-26  Bruno Haible  <bruno@clisp.org>
81446         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81447         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81448         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81449         * lib/isnanl-nolibm.h (isnanl): Likewise.
81450         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81452 2008-01-26  Bruno Haible  <bruno@clisp.org>
81454         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81455         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81457 2008-01-26  Bruno Haible  <bruno@clisp.org>
81459         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81460         GCC >= 4.0 built-in.
81461         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81463 2008-01-26  Bruno Haible  <bruno@clisp.org>
81465         Rename isnan, applicable to 'double' only, to isnand.
81466         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81467         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81468         (configure.ac): Update.
81469         (Include): Replace "isnan.h" with "isnand.h".
81470         * m4/isnand.m4: Renamed from m4/isnan.m4.
81471         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81472         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81473         instead of isnan.c.
81474         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81475         instead of HAVE_ISNAN_IN_LIBC.
81476         (isnand): Renamed from isnan.
81477         * lib/isnand.c: New file.
81478         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81479         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81480         (Makefile.am): Update.
81481         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81482         Include isnand.h instead of isnan.h.
81483         (main): Test isnand instead of isnan.
81484         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81485         isnan-nolibm.
81486         * modules/frexp (Depends-on): Likewise.
81487         * modules/frexp-tests (Depends-on): Likewise.
81488         * modules/frexp-nolibm (Depends-on): Likewise.
81489         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81490         * modules/isfinite (Depends-on): Likewise.
81491         * modules/round-tests (Depends-on): Likewise.
81492         * modules/signbit (Depends-on): Likewise.
81493         * modules/signbit-tests (Depends-on): Likewise.
81494         * modules/snprintf-posix (Depends-on): Likewise.
81495         * modules/sprintf-posix (Depends-on): Likewise.
81496         * modules/trunc-tests (Depends-on): Likewise.
81497         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81498         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81499         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81500         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81502         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81503         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81504         * modules/vasnprintf-posix (Depends-on): Likewise.
81505         * modules/vasprintf-posix (Depends-on): Likewise.
81506         * modules/vfprintf-posix (Depends-on): Likewise.
81507         * modules/vsnprintf-posix (Depends-on): Likewise.
81508         * modules/vsprintf-posix (Depends-on): Likewise.
81509         * lib/frexp.c: Include isnand.h instead of isnan.h.
81510         (ISNAN): Set to isnand instead of isnan.
81511         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81512         (gl_isfinited): Use isnand instead of isnan.
81513         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81514         (gl_signbitd): Use isnand instead of isnan.
81515         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81516         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81517         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81518         (main): Use isnand instead of isnan.
81519         * tests/test-round1.c: Include isnand.h.
81520         (main): Use isnand instead of isnan.
81521         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81522         (ISNAN): Set to isnand instead of isnan.
81523         * tests/test-trunc1.c: Include isnand.h.
81524         (main): Use isnand instead of isnan.
81525         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81526         (equal): Use isnand instead of isnan.
81527         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81528         isnand-nolibm.
81529         * NEWS: Mention the change.
81531 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81532             Bruno Haible  <bruno@clisp.org>
81534         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81535         the GCC builtins for signbits are present and set
81536         REPLACE_SIGNBIT_USING_GCC if so.
81537         * lib/math.in.h (signbit): Define using GCC builtins if
81538         REPLACE_SIGNBIT_USING_GCC is set.
81539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81540         REPLACE_SIGNBIT_USING_GCC.
81541         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81543 2008-01-25  Jim Meyering  <meyering@redhat.com>
81545         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81546         * lib/poll.c: Include <config.h>, not "config.h".
81547         * tests/test-getaddrinfo.c: Likewise.
81549 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81551         * modules/sockets-tests: New file.
81553 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81555         * modules/sockets: New module, can be used to call WSA_Startup and
81556         WSA_Cleanup when needed.
81558         * lib/sockets.h, lib/sockets.c: New files.
81560         * m4/sockets.m4: New file.
81562         * tests/test-sockets.c: New file.
81564 2008-01-19  Bruno Haible  <bruno@clisp.org>
81566         * doc/posix-headers: Renamed from doc/headers.
81567         * doc/posix-functions: Renamed from doc/functions.
81568         * doc/gnulib.texi: Update.
81570 2008-01-19  Bruno Haible  <bruno@clisp.org>
81572         * doc/glibc-functions/strcasestr.texi: Include contents of
81573         doc/functions/strcasestr.texi, fixing the list of platforms.
81574         * doc/functions/strcasestr.texi: Remove file.
81576 2008-01-19  Bruno Haible  <bruno@clisp.org>
81578         * doc/glibc-functions/memmem.texi: Include contents of
81579         doc/functions/memmem.texi.
81580         * doc/functions/memmem.texi: Remove file.
81582 2008-01-18  Bruno Haible  <bruno@clisp.org>
81584         * doc/glibc-functions/*.texi: New files.
81585         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81586         to use the new files.
81588 2008-01-17  Bruno Haible  <bruno@clisp.org>
81590         * tests/test-gethostname.c (main): Fix printf statement.
81592 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81594         * modules/gethostname-tests: New file.
81596         * tests/test-gethostname.c: New file.
81598 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81600         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81601         used by the UNAME case.  Reported by Bruno Haible
81602         <bruno@clisp.org>.
81604 2008-01-17  Eric Blake  <ebb9@byu.net>
81606         Convert c-strcasestr to be more efficient.
81607         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81608         (Depends-on): Add c-strcase, remove malloca, strnlen.
81609         * tests/test-c-strcasestr.c (main): Enhance test.
81610         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81612 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81614         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81615         Use it in creating po/Makevars.
81617 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81619         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81620         Applications that requires it should initialize libgcrypt
81621         manually.
81623 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81625         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81627 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81629         Fix problem with getdate on mingw32 reported by Simon Josefsson
81630         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81631         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81632         tzname", when deciding whether to declare tzname.
81633         * lib/strftime.c (tzname): Likewise.
81635 2008-01-15  Bruno Haible  <bruno@clisp.org>
81637         Work around a MacOS X 10.5 bug in frexpl().
81638         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81639         * doc/functions/frexpl.texi: Document the bug.
81640         Reported by Elias Pipping <pipping@gentoo.org>.
81642 2008-01-14  Eric Blake  <ebb9@byu.net>
81644         Touch up previous patch.
81645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81646         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81648         Convert strcasestr module to use Two-Way algorithm.
81649         * modules/strcasestr-simple: New module, based on the old
81650         strcasestr, but with Two-Way rather than KMP.
81651         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81652         * lib/string.in.h (rpl_strcasestr): Declare.
81653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81654         performance.
81655         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81656         * modules/string (Makefile.am): Support strcasestr.
81657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81658         * modules/strcasestr-tests (Depends-on): Check for alarm.
81659         * tests/test-strcasestr.c: Augment test.
81660         * lib/str-two-way.h: Clean up stray macro.
81661         * NEWS: Document new module.
81662         * MODULES.html.sh (string handling): Likewise.
81663         * doc/functions/strcasestr.texi: New file.
81664         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81665         here, since it is not a POSIX function.
81667 2008-01-14  Colin Watson  <cjwatson@debian.org>
81668             Bruno Haible  <bruno@clisp.org>
81670         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81671         works fine; if not, set REPLACE_STRSIGNAL.
81672         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81674         REPLACE_STRSIGNAL.
81675         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81676         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81677         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81679 2008-01-14  Bruno Haible  <bruno@clisp.org>
81681         * modules/strsignal (Include): Change to <string.h>.
81683 2008-01-14  Colin Watson  <cjwatson@debian.org>
81685         * modules/argp (Notice): Add a notice recommending to change
81686         XGETTEXT_OPTIONS.
81687         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81689 2008-01-13  Colin Watson  <cjwatson@debian.org>
81691         * modules/strsignal-tests: New file.
81692         * tests/test-strsignal.c: New file.
81694         * lib/strsignal.c: New file, from glibc with modifications.
81695         * lib/siglist.h: New file, from glibc with modifications.
81696         * lib/string.in.h (strsignal): New declaration.
81697         * m4/strsignal.m4: New file.
81698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81699         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81700         * modules/strsignal: New file.
81701         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81702         HAVE_DECL_STRSIGNAL.
81704 2008-01-13  Bruno Haible  <bruno@clisp.org>
81706         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81707         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81708         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81709         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81711 2008-01-13  Bruno Haible  <bruno@clisp.org>
81713         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81714         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81715         * lib/argp.h (__attribute__): Likewise.
81716         * lib/c-stack.c (__attribute__): Likewise.
81717         * lib/error.h (__attribute__): Likewise.
81718         * lib/fts.c (__attribute__): Likewise.
81719         * lib/openat.h (__attribute__): Likewise.
81720         * lib/stdio.in.h (__attribute__): Likewise.
81721         * lib/string.in.h (__attribute__): Likewise.
81722         * lib/utimens.c (__attribute__): Likewise.
81723         * lib/vasnprintf.h (__attribute__): Likewise.
81724         * lib/xalloc.h (__attribute__): Likewise.
81725         * lib/xprintf.h (__attribute__): Likewise.
81726         * lib/xstrtol.h (__attribute__): Likewise.
81727         * lib/xvasprintf.h (__attribute__): Likewise.
81729 2008-01-12  Bruno Haible  <bruno@clisp.org>
81731         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81732         * doc/glibc-headers/a.out.texi: New file.
81733         * doc/glibc-headers/aliases.texi: New file.
81734         * doc/glibc-headers/alloca.texi: New file.
81735         * doc/glibc-headers/ar.texi: New file.
81736         * doc/glibc-headers/argp.texi: New file.
81737         * doc/glibc-headers/argz.texi: New file.
81738         * doc/glibc-headers/byteswap.texi: New file.
81739         * doc/glibc-headers/crypt.texi: New file.
81740         * doc/glibc-headers/endian.texi: New file.
81741         * doc/glibc-headers/envz.texi: New file.
81742         * doc/glibc-headers/err.texi: New file.
81743         * doc/glibc-headers/error.texi: New file.
81744         * doc/glibc-headers/execinfo.texi: New file.
81745         * doc/glibc-headers/fpu_control.texi: New file.
81746         * doc/glibc-headers/fstab.texi: New file.
81747         * doc/glibc-headers/fts.texi: New file.
81748         * doc/glibc-headers/getopt.texi: New file.
81749         * doc/glibc-headers/ieee754.texi: New file.
81750         * doc/glibc-headers/ifaddrs.texi: New file.
81751         * doc/glibc-headers/libintl.texi: New file.
81752         * doc/glibc-headers/mcheck.texi: New file.
81753         * doc/glibc-headers/mntent.texi: New file.
81754         * doc/glibc-headers/obstack.texi: New file.
81755         * doc/glibc-headers/paths.texi: New file.
81756         * doc/glibc-headers/printf.texi: New file.
81757         * doc/glibc-headers/pty.texi: New file.
81758         * doc/glibc-headers/resolv.texi: New file.
81759         * doc/glibc-headers/shadow.texi: New file.
81760         * doc/glibc-headers/sysexits.texi: New file.
81761         * doc/glibc-headers/ttyent.texi: New file.
81763 2008-01-12  Jim Meyering  <meyering@redhat.com>
81765         announce-gen: emit Gnulib's git-based version string.
81766         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81767         New option --gnulib-version=V, where V is expected to be
81768         the output of running git describe in the gnulib directory.
81769         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81770         not useful, and plan to stop publishing an xdelta file with each
81771         coreutils release.
81773         * build-aux/announce-gen: Also check for lzma-compressed files.
81775 2008-01-11  Bruno Haible  <bruno@clisp.org>
81777         * tests/test-memmem.c (main): Increase maximum allowed time.
81778         * tests/test-strstr.c (main): Likewise.
81780 2008-01-11  Bruno Haible  <bruno@clisp.org>
81782         * doc/functions/memmem.texi: Add more precisions about platforms.
81783         * doc/functions/strstr.texi: Likewise.
81785 2008-01-10  Eric Blake  <ebb9@byu.net>
81787         * m4/strstr.m4: Delete cruft from copy-n-paste.
81788         Reported by Bruno Haible.
81790 2008-01-10  Bruno Haible  <bruno@clisp.org>
81792         Make c-strstr rely on strstr.
81793         * lib/c-strstr.c: Don't include str-kmp.h.
81794         (c_strstr): Define in terms of strstr.
81795         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81796         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81798 2008-01-10  Bruno Haible  <bruno@clisp.org>
81800         * doc/gnulib.texi (String Functions in C Locale): New section.
81801         * doc/c-ctype.texi: New file.
81802         * doc/c-strcase.texi: New file.
81803         * doc/c-strcaseeq.texi: New file.
81804         * doc/c-strcasestr.texi: New file.
81805         * doc/c-strstr.texi: New file.
81806         * doc/c-strtod.texi: New file.
81807         * doc/c-strtold.texi: New file.
81809 2008-01-10  Eric Blake  <ebb9@byu.net>
81811         * lib/relocatable.h: Fix a comment.
81813 2008-01-10  Eric Blake  <ebb9@byu.net>
81815         Share two-way algorithm.
81816         * lib/str-two-way.h: New file, merged from...
81817         * lib/memmem.c: ...here...
81818         * lib/strstr.c: ...and here.
81819         * modules/memmem (Files): Use it.
81820         * modules/strstr (Files): Likewise.
81822         Avoid quadratic strstr implementations.
81823         * lib/strstr.c: New file.
81824         * m4/strstr.m4: Likewise.
81825         * modules/strstr: Likewise.
81826         * modules/strstr-tests: Likewise.
81827         * tests/test-strstr.c: Likewise.
81828         * lib/string.in.h (rpl_strstr): Declare.
81829         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81831         * modules/string (Makefile.am): Likewise.
81832         * MODULES.html.sh (string handling): Mention new module.
81833         * doc/functions/strstr.texi (strstr): Document the bug.
81835 2008-01-10  Bruno Haible  <bruno@clisp.org>
81837         * lib/relocatable.h (relocate): State whether result is freshly
81838         allocated or not.
81839         * lib/relocatable.c (relocate): Return a freshly allocated string
81840         instead of a pointer to a privately held string.
81841         Reported by Sylvain Beucler <beuc@gnu.org>.
81843 2008-01-10  Colin Watson  <cjwatson@debian.org>
81845         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81846         s/S_ISNLK/S_ISLNK/.
81848 2008-01-09  Bruno Haible  <bruno@clisp.org>
81850         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81851         and other files.
81852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81853         if it's only a guess.
81854         * modules/memmem: Simplify by depending on memmem-simple.
81856 2008-01-09  Bruno Haible  <bruno@clisp.org>
81858         Work around OpenBSD 4.0 tdelete() bug.
81859         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81860         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81861         macros and don't redefine the enum values.
81862         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81863         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81864         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81866 2008-01-09  Bruno Haible  <bruno@clisp.org>
81868         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81869         (main): Don't perform the tests if setlocale did not install a UTF-8
81870         locale. Needed on OpenBSD 4.0.
81871         * modules/wcwidth-tests (Depends-on): Add localcharset.
81873 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81875         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81876         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81877         * NEWS: announce this.
81878         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81880 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81881         and Eric Blake  <ebb9@byu.net>
81883         Add memmem-simple module.
81884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81885         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81886         * modules/memmem-simple: New file.
81887         * modules/memmem (Description): Tweak.
81888         * MODULES.html.sh (string handling): Mention new module.
81889         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81890         addressed by memmem-simple.
81891         * NEWS: Document the difference.
81893 2008-01-09  Eric Blake  <ebb9@byu.net>
81895         Give gcc some memmem optimization hints.
81896         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81897         (strcasestr): Declare as pure.
81898         * modules/memmem (Maintainer): Claim my implementation.
81900 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81902         Support AIX 6.1 and higher.
81903         * build-aux/config.libpath: Likewise.
81904         * build-aux/config.rpath: Likewise.
81906 2008-01-08  Jim Meyering  <meyering@redhat.com>
81907             Bruno Haible  <bruno@clisp.org>
81909         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81910         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81911         Reported by Peter Fales in
81912         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81914 2008-01-08  Bruno Haible  <bruno@clisp.org>
81916         * modules/unictype/category-of (Depends-on): Add
81917         unictype/category-none.
81918         * modules/unictype/category-and-tests (Depends-on): Add
81919         unictype/category-{L,N,Lu,Nd}.
81920         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81921         * modules/unictype/category-or-tests (Depends-on): Add
81922         unictype/category-{L,N}.
81923         * modules/unictype/category-name-tests (Depends-on): Add
81924         unictype/category-{Z,Nl}.
81925         Reported by Simon Josefsson.
81927 2008-01-08  Bruno Haible  <bruno@clisp.org>
81929         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81930         convention better.
81931         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81932         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81933         Reported by Peter Miller <millerp@canb.auug.org.au>.
81935 2008-01-08  Eric Blake  <ebb9@byu.net>
81937         Rewrite memmem to guarantee linear complexity without malloc.
81938         * lib/memmem.c (memmem): Use Two-Way rather than
81939         Knuth-Morris-Pratt, to allow O(1) space usage.
81940         (critical_factorization, two_way_short_needle)
81941         (two_way_long_needle): New functions.
81942         (knuth_morris_pratt): Delete.
81943         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81944         Add stdint.
81945         * tests/test-memmem.c (main): Add tests for periodic needle and
81946         sublinear performance.
81947         * doc/functions/memmem.texi (memmem): Document other deficiencies
81948         in cygwin and older glibc.
81950 2008-01-08  Bruno Haible  <bruno@clisp.org>
81952         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81953         augmentation.
81955 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81957         Add a configure time option: --disable-acl.
81958         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81959         AC_ARG_ENABLE(acl).
81961 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81963         * tests/test-localename.c: Don't include obsolete "setenv.h".
81965         * modules/localename-tests (Depends-on): Need unsetenv.
81967 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81969         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81971 2008-01-06  Colin Watson  <cjwatson@debian.org>
81973         * users.txt: Add man-db.
81975 2008-01-07  Bruno Haible  <bruno@clisp.org>
81977         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81978         previous section name.
81980 2008-01-07  Bruno Haible  <bruno@clisp.org>
81982         * lib/progname.c (set_program_name): Don't strip off a leading
81983         "lt-" prefix outside a .libs directory.
81984         Suggested by Paul Eggert.
81986 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81987             Bruno Haible  <bruno@clisp.org>
81989         Improve memory cleanup in 'relocatable' module.
81990         * lib/relocatable.h (compute_curr_prefix): Change return type to
81991         'char *'.
81992         * lib/relocatable.c (compute_curr_prefix): Change return type to
81993         'char *'. Free curr_installdir after use.
81994         (relocate): Free curr_prefix_better after use.
81995         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81997 2008-01-01  Bruno Haible  <bruno@clisp.org>
81999         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
82000         failure on older glibc systems.
82001         Reported by Peter Fales <psfales@alcatel-lucent.com>.
82003 2008-01-05  Eric Blake  <ebb9@byu.net>
82005         Avoid quadratic system memmem.
82006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
82007         Reported by Ralf Wildenhues.
82009         Fix memmem test for mingw.
82010         * modules/memmem-tests (configure.ac): Check for alarm.
82011         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
82012         it.
82013         * doc/functions/memmem.texi: New file.
82014         * doc/gnulib.texi (Function Substitutes): Add memmem.
82015         Reported by Bruno Haible.
82017 2008-01-04  Bruno Haible  <bruno@clisp.org>
82019         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
82020         Require gl_HEADER_STRINGS_H_DEFAULTS, not
82021         gl_HEADER_STRING_H_DEFAULTS.
82023 2008-01-04  Eric Blake  <ebb9@byu.net>
82025         Shorten duration of memmem test.
82026         * tests/test-memmem.c (main): Use alarm to declare failure if test
82027         is taking too long.
82028         Reported by Ralf Wildenhues.
82030 2007-12-21  Simon Josefsson  <simon@josefsson.org>
82032         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
82033         string, needed by strerror.
82035 2008-01-03  Colin Watson  <cjwatson@debian.org>
82036             Bruno Haible  <bruno@clisp.org>
82038         * doc/gnulib-tool.texi (Localization): New section.
82040 2008-01-02  Bruno Haible  <bruno@clisp.org>
82042         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
82043         variables to 'unsigned char *' type.
82044         Reported by Paul Eggert.
82046 2008-01-02  Jim Meyering  <jim@meyering.net>
82048         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
82050 2007-12-31  Jim Meyering  <jim@meyering.net>
82052         Avoid use of private FTS type name.
82053         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
82055 2007-12-30  Karl Berry  <karl@gnu.org>
82057         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
82058         work around defect in Texinfo and/or the standalone Info browser.
82060 2007-12-30  Bruno Haible  <bruno@clisp.org>
82062         Unify 5 copies of the KMP code.
82063         * lib/str-kmp.h: New file.
82064         * lib/c-strcasestr.c: Include str-kmp.h.
82065         (knuth_morris_pratt): Remove function.
82066         (c_strcasestr): Update.
82067         * lib/c-strstr.c: Include str-kmp.h.
82068         (knuth_morris_pratt): Remove function.
82069         (c_strcasestr): Update.
82070         * lib/mbscasestr.c: Include str-kmp.h.
82071         (knuth_morris_pratt_unibyte): Remove function.
82072         * lib/mbsstr.c: Include str-kmp.h.
82073         (knuth_morris_pratt_unibyte): Remove function.
82074         * lib/strcasestr.c: Include str-kmp.h.
82075         (knuth_morris_pratt): Remove function.
82076         (strcasestr): Update.
82077         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
82078         * modules/c-strstr (Files): Likewise.
82079         * modules/mbscasestr (Files): Likewise.
82080         * modules/mbsstr (Files): Likewise.
82081         * modules/strcasestr (Files): Likewise.
82082         Suggested by Paul Eggert.
82084 2007-12-30  Bruno Haible  <bruno@clisp.org>
82086         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
82087         defined.
82089 2007-12-30  Bruno Haible  <bruno@clisp.org>
82091         * lib/xmalloca.h: Include xalloc.h.
82092         (xnmalloca): New macro.
82094 2007-12-30  Bruno Haible  <bruno@clisp.org>
82096         * lib/malloca.h (nmalloca): New macro.
82097         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
82098         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
82099         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
82100         knuth_morris_pratt_multibyte): Likewise.
82101         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
82102         knuth_morris_pratt_multibyte): Likewise.
82103         * lib/memmem.c (knuth_morris_pratt): Likewise.
82104         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
82106 2007-12-25  Bruno Haible  <bruno@clisp.org>
82108         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
82109         * lib/glob.c: Don't include openat.h.
82110         (link_exists2_p): Add back the code that deals with the
82111         !GLOB_ALTDIRFUNC case.
82112         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
82113         let it do the filename concatenation.
82114         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
82115         * modules/glob (Depends-on): Remove openat.
82117 2007-12-31  Bruno Haible  <bruno@clisp.org>
82119         * modules/dirfd (License): Change to LGPLv2+.
82120         Approved by Jim Meyering.
82122 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
82124         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
82125         when multiplying M by sizeof (size_t).
82127 2007-12-10  Martin Lambers  <marlam@marlam.de>
82129         Override getpagesize on mingw.
82130         * lib/getpagesize.c: New file.
82131         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
82132         * modules/getpagesize (Files): Add lib/getpagesize.c.
82133         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
82134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82135         REPLACE_GETPAGESIZE.
82136         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
82138 2007-12-25  Bruno Haible  <bruno@clisp.org>
82140         * modules/localcharset (Notice): New field.
82141         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
82142         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
82144 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
82145             Bruno Haible  <bruno@clisp.org>
82147         Avoid using the syntax symbol() in formatted documentation.
82148         * MODULES.html.sh (func_module): When replacing symbol() with a
82149         hyperlink, remove the parentheses. Show an error if some remain.
82150         Recognize and render the '...' syntax.
82151         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
82152         Rework. Add paragraph about GCC's inlining.
82153         * doc/alloca.texi: Likewise.
82154         * doc/error.texi: Remove parentheses from symbol reference.
82155         * doc/gnulib-intro.texi: Likewise.
82156         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
82157         * modules/fnmatch (Description): Reword to say "the ... function".
82158         * modules/full-read (Description): Likewise.
82159         * modules/full-write (Description): Likewise.
82160         * modules/safe-read (Description): Likewise.
82161         * modules/safe-write (Description): Likewise.
82162         * modules/strchrnul (Description): Likewise.
82163         * modules/trim (Description): Likewise.
82164         * modules/error (Description): Remove parentheses from symbol
82165         references.
82166         * modules/verror (Description): Likewise.
82167         Reported by Karl Berry.
82169 2007-12-25  Bruno Haible  <bruno@clisp.org>
82171         Fixup after 2007-10-16 commit.
82172         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
82174 2007-12-24  Bruno Haible  <bruno@clisp.org>
82176         Make --enable-relocatable work with DESTDIR.
82177         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
82178         to compute installdir from destprog.
82179         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
82180         also set the RELOC_DESTDIR variable.
82181         Reported by Левашев Иван <octagram@bluebottle.com>.
82183 2007-12-24  Bruno Haible  <bruno@clisp.org>
82185         Fix link error due to xalloc_die().
82186         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
82187         of xreadlink.
82188         * lib/relocwrapper.c: Update comments.
82189         * build-aux/install-reloc: Remove xreadlink.c from file list.
82190         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
82191         xreadlink.c.
82192         Reported by Левашев Иван <octagram@bluebottle.com>.
82194 2007-12-24  Bruno Haible  <bruno@clisp.org>
82196         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
82197         * lib/setenv.h: Remove file.
82198         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
82199         lib/setenv.h.
82200         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
82201         (Depends-on): Add stdlib.
82202         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
82203         gl_FUNC_UNSETENV.
82204         (Include): Replace setenv.h with <stdlib.h>.
82205         * modules/unsetenv: New file.
82206         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
82207         * lib/unsetenv.c: Include <stdlib.h> first.
82208         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
82209         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
82210         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
82211         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
82212         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
82213         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
82215         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82216         * doc/functions/unsetenv.texi: Update.
82217         * modules/xsetenv (Depends-on): Add unsetenv.
82218         * modules/getdate (Depends-on): Likewise.
82219         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
82220         * lib/xsetenv.c: Don't include setenv.h.
82221         * lib/getdate.y: Likewise.
82222         * lib/relocwrapper.c: Likewise.
82223         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
82224         (Depends-on): Add stdlib.
82225         * NEWS: Mention the changes.
82226         Reported by Левашев Иван <octagram@bluebottle.com>.
82228 2007-12-23  Bruno Haible  <bruno@clisp.org>
82230         * lib/memmem.c (memmem): Use lowercase variable names. Tab
82231         indentation.
82233 2007-12-23  Bruno Haible  <bruno@clisp.org>
82235         * lib/c-strcasestr.c: Add more comments.
82236         * lib/c-strstr.c: Likewise.
82237         * lib/mbscasestr.c: Likewise.
82238         * lib/mbsstr.c: Likewise.
82239         * lib/strcasestr.c: Likewise.
82240         * lib/memmem.c: Likewise.
82242 2007-12-23  Bruno Haible  <bruno@clisp.org>
82244         * tests/test-memmem.c: Include <string.h> first.
82246 2007-12-22  Bruno Haible  <bruno@clisp.org>
82248         * gnulib-tool (func_create_testdir): Change $auxdir while generating
82249         the contents of $testsbase.
82250         Reported by Ralf Wildenhues.
82252 2007-12-22  Bruno Haible  <bruno@clisp.org>
82254         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
82255         two variables local_ldadd_before, local_ldadd_last.
82257 2007-12-20  Eric Blake  <ebb9@byu.net>
82259         Work around circular library issue when cross-compiling.
82260         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
82261         that progname.o does not need to pull in rpl_memcmp.
82263 2007-12-19  Eric Blake  <ebb9@byu.net>
82265         Fix memmem to avoid O(n^2) worst-case complexity.
82266         * lib/memmem.c (knuth_morris_pratt): New function.
82267         (memmem): Use it if first few naive iterations fail.
82268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
82269         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
82270         * modules/memchr (License): Likewise.
82271         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
82272         malloca.
82273         * tests/test-memmem.c: Rewrite, borrowing ideas from
82274         test-mbsstr1.c; the old version wouldn't even compile!
82275         * modules/memmem-tests: New file.
82276         * lib/string.in.h (rpl_memmem): Add declaration.
82277         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
82278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
82279         REPLACE_MEMMEM.
82281 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
82283         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
82284         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
82285         before any system include files, and undef after them all.  This
82286         should fix a problem on VMS reported by John E. Malmberg in
82287         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
82289 2007-12-17  Eric Blake  <ebb9@byu.net>
82291         Revert addition of verify, for BSD/OS.
82292         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
82293         can't handle large files, for the sake of obsolete platforms.
82294         * modules/fseeko (Depends-on): Remove verify.
82295         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
82296         * doc/functions/ftello.texi (ftello): Likewise.
82297         * doc/functions/fgetpos.texi (fgetpos): Likewise.
82298         Reported by Larry Jones.
82300 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
82302         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
82303         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
82305 2007-12-17  Jim Meyering  <meyering@redhat.com>
82307         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
82308         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
82309         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
82310         * modules/getcwd (Depends-on): Add openat.
82311         Reported by Petr Salinger.
82313 2007-12-17  Bruno Haible  <bruno@clisp.org>
82315         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
82316         avoid a segmentation fault of the configure test on x86_64 systems.
82318 2007-12-15  Jim Meyering  <meyering@redhat.com>
82320         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
82322 2007-12-13  Eric Blake  <ebb9@byu.net>
82324         Another fseek test.
82325         * tests/test-fseek.c (main): Also test ungetc handling.
82326         * tests/test-fseeko.c (main): Likewise.
82327         * modules/fseeko (Depends-on): Add verify.
82328         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
82329         large.
82330         Reported by Larry Jones.
82332         Fix fseeko on mingw.
82333         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
82334         seek.
82336         Beef up fseek tests.
82337         * tests/test-fseek.c (main): Also test eof handling.
82338         * tests/test-fseeko.c (main): Likewise.
82339         Reported by Larry Jones.
82341 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
82343         Fix fseeko on BSD-based platforms.
82344         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
82345         successful seek.
82347 2007-12-12  Eric Blake  <ebb9@byu.net>
82349         Allow circular dependency of separate libtests.a
82350         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
82351         when use_libtests.
82353 2007-12-11  Eric Blake  <ebb9@byu.net>
82355         Fix bug with -0.0L in previous patch.
82356         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82357         * tests/test-isnan.c (main): Also test on zeroes.
82358         * tests/test-isnanf.c (main): Likewise.
82359         * tests/test-isnanl.h (main): Likewise.
82361         Detect pseudo-denormals on x86 even when cross-compiling.
82362         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82363         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82364         invalid bit patterns that happen to satisfy ==.
82366         Avoid link failures with separate libtests.a.
82367         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82368         last, to satisfy circular dependencies.
82370 2007-12-11  Eric Blake  <ebb9@byu.net>
82371         and Bruno Haible  <bruno@clisp.org>
82373         Fix OpenBSD 4.0 <float.h> handling of long double.
82374         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82375         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82376         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82378 2007-12-11  Jim Meyering  <meyering@redhat.com>
82380         * users.txt: Add libvirt.
82382         Support versions of autoconf prior to 2.59c.
82383         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82384         if it is not already defined.
82386 2007-12-09  Bruno Haible  <bruno@clisp.org>
82388         Let 'gnulib-tool --import' collect sources needed for the tests in
82389         tests/ rather than in lib/.
82390         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82391         argument. If true, add rules to generate libtests.a, and put libtests.a
82392         into $(LDADD). Consider source files in subdirectories and set
82393         uses_subdirs.
82394         (func_emit_initmacro_start, func_emit_initmacro_end,
82395         func_emit_initmacro_done): Pass all arguments explicitly.
82396         (func_import): Determine two module lists main_modules,
82397         testsrelated_modules. Determine use_libtests. Determine two variables
82398         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82399         instead of just sed_transform_lib_file. Determine two variables
82400         main_files and testsrelated_files. Compute 'files' as the union of
82401         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82402         func_add_or_update. In the generated gnulib-comp.m4, collect the
82403         object files for tests/ in different variables than those for lib/.
82404         Substitute LIBTESTS_LIBDEPS.
82405         (func_create_testdir): Combine the uses_subdirs results from
82406         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82408 2007-12-09  Bruno Haible  <bruno@clisp.org>
82410         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82411         the build-aux directory.
82413 2007-12-09  Bruno Haible  <bruno@clisp.org>
82415         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82416         introduced on 2006-09-09.
82418 2007-12-07  Jim Meyering  <meyering@redhat.com>
82420         Let these macros work also with autoconf-2.59.
82421         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82422         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82423         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82425 2007-12-06  Jim Meyering  <meyering@redhat.com>
82427         Avoid a configure-time syntax error in gl_FUNC_ACL.
82428         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82429         function in each branch, before testing the cache variable.
82431 2007-12-04  Eric Blake  <ebb9@byu.net>
82433         Make scripts executable.
82434         * build-aux/config.guess: Add execute permissions.
82435         * build-aux/config.sub: Likewise.
82436         * build-aux/gendocs.sh: Likewise.
82438         Fix frexp on mingw.
82439         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82440         cross-compiling.
82441         * doc/functions/frexp.texi (frexp): Document the bug.
82443         Make cygwin fseeko check more reliable.
82444         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82445         version numbers, rather than unrelated feature check.
82446         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82447         * doc/functions/ftello.texi (ftello): Likewise.
82448         Reported by Bruno Haible.
82450         * m4/strerror.m4: Bump version number.
82452 2007-12-03  Bruno Haible  <bruno@clisp.org>
82454         * doc/functions/mprotect.texi: Mention the mingw problem.
82456 2007-12-03  Eric Blake  <ebb9@byu.net>
82458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82459         REPLACE_STRERROR is initialized before this macro.
82461 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82463         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82464         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82465         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82466         put -lsec in even for programs other than 'ls'.  This fixes a problem
82467         for gettext reported by Bruno Haible in
82468         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82469         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82470         Add support for Solaris 10.  This isn't efficient, but should get the
82471         job done for now.
82473 2007-12-03  James Youngman  <jay@gnu.org>
82475         * doc/regexprops-generic.texi: change "an close-group" to "a
82476         close-group" and "illegal" to "not allowed".
82478 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82480         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82481         pr_byname.h. Needed for the rare case when the maintainer has done
82482         "make maintainer-clean" in the source directory and then attempts a
82483         build outside the source directory.
82484         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82485         scripts_byname.h.
82487 2007-12-02  Martin Lambers  <marlam@marlam.de>
82488             Bruno Haible  <bruno@clisp.org>
82490         * lib/getpagesize.h: Remove file.
82491         * lib/unistd.in.h: Include declaration of getpagesize here.
82492         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82493         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82494         HAVE_SYS_PARAM_H.
82495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82496         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82497         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82498         (Depends-on): Add unistd.
82499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82500         (Include): Use <unistd.h> instead of getpagesize.h.
82501         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82502         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82503         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82504         gl_GETPAGESIZE invocation, already handled by module dependency.
82505         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82507 2007-12-02  Bruno Haible  <bruno@clisp.org>
82509         * modules/strings-tests: New file.
82510         * tests/test-strings.c: New file.
82512         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82513         * lib/strings.in.h: New file.
82514         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82515         * m4/strings_h.m4: New file.
82516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82517         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82518         * modules/strings: New file.
82519         * modules/string (Makefile.am): Update.
82520         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82521         Reported by Karl Berry.
82523 2007-12-01  Eric Blake  <ebb9@byu.net>
82525         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82526         accommodate fix in cygwin 1.5.25.
82528 2007-12-01  Jim Meyering  <meyering@redhat.com>
82530         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82531         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82532         that would inhibit utf8-optimization of a regexp containing line-
82533         or buffer-anchors, e.g., `^', `$'.
82535 2007-11-30  Bruno Haible  <bruno@clisp.org>
82537         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82538         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82539         glthread_recursive_lock_init.
82540         * lib/lock.c (glthread_recursive_lock_init)
82541         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82542         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82544 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82546         New function qset_acl, like set_acl but with syscall semantics.
82547         * lib/acl.h (qset_acl): New decl.
82548         * lib/acl.c (qset_acl): New function.
82549         (set_acl): Use new function.  Use more-consistent diagnostics.
82551 2007-11-28  Jim Meyering  <meyering@redhat.com>
82553         * modules/physmem (License): Change from GPL to LGPLv2+.
82555 2007-11-26  Bruno Haible  <bruno@clisp.org>
82557         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82558         'long double' type has excess precision.
82559         Reported by Jim Meyering in
82560         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82562 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82564         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82565         Sync from <http://gnu.org/licenses>.
82566         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82567         with license text from same location.
82568         * doc/maintain.texi, doc/standards.texi:  Sync from
82569         <http://savannah.gnu.org/projects/gnustandards>.
82571 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82572         and Jim Meyering  <meyering@redhat.com>
82574         Adjust getdate' grammar to accept a slightly more regular language.
82575         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82576         Before, the former was rejected.
82577         * lib/getdate.y (digits_to_date_time): New function, factored
82578         out of ...
82579         (number): ...here.  Just call digits_to_date_time.
82580         (hybrid): New non-terminal to handle an <unsigned number,
82581         signed relative offset> sequence consistently.
82583 2007-11-18  Jim Meyering  <meyering@redhat.com>
82585         Pull my changes from coreutils:
82586         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82587         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82588         use of $gnulib_tool_option_extras, so that it's separated from the
82589         preceding argument.
82591         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82592         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82593         parent destination directories before copying a file into place.
82595 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82597         bootstrap: work also with 4-argument variant of AC_INIT
82598         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82600 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82602         Port test-getaddrinfo to Solaris.
82603         Problem reported by Bruno Haible in
82604         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82605         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82606         explanation of setting 'hints'.
82607         Don't reject an implementation merely because it returns EAI_SERVICE.
82608         (EAI_SERVICE): Define to 0 if not defined.
82610 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82612         The license of gnu-make and posix-shell is now "GPLed build tool".
82613         * modules/gnu-make (License): Likewise.
82614         * modules/posix-shell (License): Likewise.
82616         New module posix-shell, for determining a POSIX shell
82617         or perhaps something that is close enough to a POSIX shell.
82618         * m4/posix-shell.m4: New file.
82619         * modules/posix-shell: New file.
82621         * MODULES.html.sh: Mention new module.
82623         New module gnu-make, for determining whether we're using GNU Make.
82624         * m4/gnu-make.m4: New file.
82625         * modules/gnu-make: New file.
82626         * MODULES.html.sh: Mention new module.
82628 2007-11-14  Jim Meyering  <meyering@redhat.com>
82630         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82631         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82632         use this macro to create a function _definition_.
82633         Remove useless "#undef ARGMATCH_DIE".
82635 2007-11-14  Bruno Haible  <bruno@clisp.org>
82637         * lib/config.charset: Update for OpenBSD 4.1.
82638         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82640 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82642         Document 64-bit #if problems in stdint.texi.
82643         * doc/headers/stdint.texi (stdint.h): Mention problems with
82644         64-bit-#if, and how to work around them.
82646         Don't insist on 'long long int' support in the preprocessor.  It
82647         breaks too many things.  For example, PRIdMAX still uses a 'long
82648         long int' format with the latest Sun compiler, even though
82649         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82650         preprocessor problem.  This causes the latest coreutils to dump
82651         core on Solaris 10 sparc with the Sun C compiler.
82652         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82653         the troublesome expressions at configure-time, not at #if-time.
82654         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82655         preprocessor.
82656         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82657         compile-time C checks, done at 'configure'-time.
82658         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82659         * modules/inttypes (Makefile): Substitute the new symbols that
82660         gl_INTTYPES_H now generates.
82661         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82663 2007-11-12  Bruno Haible  <bruno@clisp.org>
82665         Tests for Unicode character classification functions.
82667         * modules/unictype/bidicategory-byname-tests: New file.
82668         * modules/unictype/bidicategory-name-tests: New file.
82669         * modules/unictype/bidicategory-of-tests: New file.
82670         * modules/unictype/bidicategory-test-tests: New file.
82671         * modules/unictype/block-list-tests: New file.
82672         * modules/unictype/block-of-tests: New file.
82673         * modules/unictype/block-test-tests: New file.
82674         * modules/unictype/category-C-tests: New file.
82675         * modules/unictype/category-Cc-tests: New file.
82676         * modules/unictype/category-Cf-tests: New file.
82677         * modules/unictype/category-Cn-tests: New file.
82678         * modules/unictype/category-Co-tests: New file.
82679         * modules/unictype/category-Cs-tests: New file.
82680         * modules/unictype/category-L-tests: New file.
82681         * modules/unictype/category-Ll-tests: New file.
82682         * modules/unictype/category-Lm-tests: New file.
82683         * modules/unictype/category-Lo-tests: New file.
82684         * modules/unictype/category-Lt-tests: New file.
82685         * modules/unictype/category-Lu-tests: New file.
82686         * modules/unictype/category-M-tests: New file.
82687         * modules/unictype/category-Mc-tests: New file.
82688         * modules/unictype/category-Me-tests: New file.
82689         * modules/unictype/category-Mn-tests: New file.
82690         * modules/unictype/category-N-tests: New file.
82691         * modules/unictype/category-Nd-tests: New file.
82692         * modules/unictype/category-Nl-tests: New file.
82693         * modules/unictype/category-No-tests: New file.
82694         * modules/unictype/category-P-tests: New file.
82695         * modules/unictype/category-Pc-tests: New file.
82696         * modules/unictype/category-Pd-tests: New file.
82697         * modules/unictype/category-Pe-tests: New file.
82698         * modules/unictype/category-Pf-tests: New file.
82699         * modules/unictype/category-Pi-tests: New file.
82700         * modules/unictype/category-Po-tests: New file.
82701         * modules/unictype/category-Ps-tests: New file.
82702         * modules/unictype/category-S-tests: New file.
82703         * modules/unictype/category-Sc-tests: New file.
82704         * modules/unictype/category-Sk-tests: New file.
82705         * modules/unictype/category-Sm-tests: New file.
82706         * modules/unictype/category-So-tests: New file.
82707         * modules/unictype/category-Z-tests: New file.
82708         * modules/unictype/category-Zl-tests: New file.
82709         * modules/unictype/category-Zp-tests: New file.
82710         * modules/unictype/category-Zs-tests: New file.
82711         * modules/unictype/category-and-not-tests: New file.
82712         * modules/unictype/category-and-tests: New file.
82713         * modules/unictype/category-byname-tests: New file.
82714         * modules/unictype/category-name-tests: New file.
82715         * modules/unictype/category-none-tests: New file.
82716         * modules/unictype/category-of-tests: New file.
82717         * modules/unictype/category-or-tests: New file.
82718         * modules/unictype/category-test-withtable-tests: New file.
82719         * modules/unictype/combining-class-tests: New file.
82720         * modules/unictype/ctype-alnum-tests: New file.
82721         * modules/unictype/ctype-alpha-tests: New file.
82722         * modules/unictype/ctype-blank-tests: New file.
82723         * modules/unictype/ctype-cntrl-tests: New file.
82724         * modules/unictype/ctype-digit-tests: New file.
82725         * modules/unictype/ctype-graph-tests: New file.
82726         * modules/unictype/ctype-lower-tests: New file.
82727         * modules/unictype/ctype-print-tests: New file.
82728         * modules/unictype/ctype-punct-tests: New file.
82729         * modules/unictype/ctype-space-tests: New file.
82730         * modules/unictype/ctype-upper-tests: New file.
82731         * modules/unictype/ctype-xdigit-tests: New file.
82732         * modules/unictype/decimal-digit-tests: New file.
82733         * modules/unictype/digit-tests: New file.
82734         * modules/unictype/mirror-tests: New file.
82735         * modules/unictype/numeric-tests: New file.
82736         * modules/unictype/property-alphabetic-tests: New file.
82737         * modules/unictype/property-ascii-hex-digit-tests: New file.
82738         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82739         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82740         * modules/unictype/property-bidi-block-separator-tests: New file.
82741         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82742         * modules/unictype/property-bidi-common-separator-tests: New file.
82743         * modules/unictype/property-bidi-control-tests: New file.
82744         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82745         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82746         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82747         * modules/unictype/property-bidi-european-digit-tests: New file.
82748         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82749         * modules/unictype/property-bidi-left-to-right-tests: New file.
82750         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82751         * modules/unictype/property-bidi-other-neutral-tests: New file.
82752         * modules/unictype/property-bidi-pdf-tests: New file.
82753         * modules/unictype/property-bidi-segment-separator-tests: New file.
82754         * modules/unictype/property-bidi-whitespace-tests: New file.
82755         * modules/unictype/property-byname-tests: New file.
82756         * modules/unictype/property-combining-tests: New file.
82757         * modules/unictype/property-composite-tests: New file.
82758         * modules/unictype/property-currency-symbol-tests: New file.
82759         * modules/unictype/property-dash-tests: New file.
82760         * modules/unictype/property-decimal-digit-tests: New file.
82761         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82762         * modules/unictype/property-deprecated-tests: New file.
82763         * modules/unictype/property-diacritic-tests: New file.
82764         * modules/unictype/property-extender-tests: New file.
82765         * modules/unictype/property-format-control-tests: New file.
82766         * modules/unictype/property-grapheme-base-tests: New file.
82767         * modules/unictype/property-grapheme-extend-tests: New file.
82768         * modules/unictype/property-grapheme-link-tests: New file.
82769         * modules/unictype/property-hex-digit-tests: New file.
82770         * modules/unictype/property-hyphen-tests: New file.
82771         * modules/unictype/property-id-continue-tests: New file.
82772         * modules/unictype/property-id-start-tests: New file.
82773         * modules/unictype/property-ideographic-tests: New file.
82774         * modules/unictype/property-ids-binary-operator-tests: New file.
82775         * modules/unictype/property-ids-trinary-operator-tests: New file.
82776         * modules/unictype/property-ignorable-control-tests: New file.
82777         * modules/unictype/property-iso-control-tests: New file.
82778         * modules/unictype/property-join-control-tests: New file.
82779         * modules/unictype/property-left-of-pair-tests: New file.
82780         * modules/unictype/property-line-separator-tests: New file.
82781         * modules/unictype/property-logical-order-exception-tests: New file.
82782         * modules/unictype/property-lowercase-tests: New file.
82783         * modules/unictype/property-math-tests: New file.
82784         * modules/unictype/property-non-break-tests: New file.
82785         * modules/unictype/property-not-a-character-tests: New file.
82786         * modules/unictype/property-numeric-tests: New file.
82787         * modules/unictype/property-other-alphabetic-tests: New file.
82788         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82789         * modules/unictype/property-other-grapheme-extend-tests: New file.
82790         * modules/unictype/property-other-id-continue-tests: New file.
82791         * modules/unictype/property-other-id-start-tests: New file.
82792         * modules/unictype/property-other-lowercase-tests: New file.
82793         * modules/unictype/property-other-math-tests: New file.
82794         * modules/unictype/property-other-uppercase-tests: New file.
82795         * modules/unictype/property-paired-punctuation-tests: New file.
82796         * modules/unictype/property-paragraph-separator-tests: New file.
82797         * modules/unictype/property-pattern-syntax-tests: New file.
82798         * modules/unictype/property-pattern-white-space-tests: New file.
82799         * modules/unictype/property-private-use-tests: New file.
82800         * modules/unictype/property-punctuation-tests: New file.
82801         * modules/unictype/property-quotation-mark-tests: New file.
82802         * modules/unictype/property-radical-tests: New file.
82803         * modules/unictype/property-sentence-terminal-tests: New file.
82804         * modules/unictype/property-soft-dotted-tests: New file.
82805         * modules/unictype/property-space-tests: New file.
82806         * modules/unictype/property-terminal-punctuation-tests: New file.
82807         * modules/unictype/property-test-tests: New file.
82808         * modules/unictype/property-titlecase-tests: New file.
82809         * modules/unictype/property-unassigned-code-value-tests: New file.
82810         * modules/unictype/property-unified-ideograph-tests: New file.
82811         * modules/unictype/property-uppercase-tests: New file.
82812         * modules/unictype/property-variation-selector-tests: New file.
82813         * modules/unictype/property-white-space-tests: New file.
82814         * modules/unictype/property-xid-continue-tests: New file.
82815         * modules/unictype/property-xid-start-tests: New file.
82816         * modules/unictype/property-zero-width-tests: New file.
82817         * modules/unictype/scripts-tests: New file.
82818         * modules/unictype/syntax-c-ident-tests: New file.
82819         * modules/unictype/syntax-c-whitespace-tests: New file.
82820         * modules/unictype/syntax-java-ident-tests: New file.
82821         * modules/unictype/syntax-java-whitespace-tests: New file.
82822         * tests/unictype/test-bidi_byname.c: New file.
82823         * tests/unictype/test-bidi_name.c: New file.
82824         * tests/unictype/test-bidi_of.c: New file.
82825         * tests/unictype/test-bidi_test.c: New file.
82826         * tests/unictype/test-block_list.c: New file.
82827         * tests/unictype/test-block_of.c: New file.
82828         * tests/unictype/test-block_test.c: New file.
82829         * tests/unictype/test-categ_and.c: New file.
82830         * tests/unictype/test-categ_and_not.c: New file.
82831         * tests/unictype/test-categ_byname.c: New file.
82832         * tests/unictype/test-categ_name.c: New file.
82833         * tests/unictype/test-categ_none.c: New file.
82834         * tests/unictype/test-categ_of.c: New file.
82835         * tests/unictype/test-categ_or.c: New file.
82836         * tests/unictype/test-categ_test_withtable.c: New file.
82837         * tests/unictype/test-combining.c: New file.
82838         * tests/unictype/test-decdigit.c: New file.
82839         * tests/unictype/test-digit.c: New file.
82840         * tests/unictype/test-mirror.c: New file.
82841         * tests/unictype/test-numeric.c: New file.
82842         * tests/unictype/test-pr_byname.c: New file.
82843         * tests/unictype/test-pr_test.c: New file.
82844         * tests/unictype/test-predicate-part1.h: New file.
82845         * tests/unictype/test-predicate-part2.h: New file.
82846         * tests/unictype/test-scripts.c: New file.
82847         * tests/unictype/test-sy_c_ident.c: New file.
82848         * tests/unictype/test-sy_java_ident.c: New file.
82850         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82851         for Unicode 5.0.0.
82852         * tests/unictype/test-categ_Cc.c: Likewise.
82853         * tests/unictype/test-categ_Cf.c: Likewise.
82854         * tests/unictype/test-categ_Cn.c: Likewise.
82855         * tests/unictype/test-categ_Co.c: Likewise.
82856         * tests/unictype/test-categ_Cs.c: Likewise.
82857         * tests/unictype/test-categ_L.c: Likewise.
82858         * tests/unictype/test-categ_Ll.c: Likewise.
82859         * tests/unictype/test-categ_Lm.c: Likewise.
82860         * tests/unictype/test-categ_Lo.c: Likewise.
82861         * tests/unictype/test-categ_Lt.c: Likewise.
82862         * tests/unictype/test-categ_Lu.c: Likewise.
82863         * tests/unictype/test-categ_M.c: Likewise.
82864         * tests/unictype/test-categ_Mc.c: Likewise.
82865         * tests/unictype/test-categ_Me.c: Likewise.
82866         * tests/unictype/test-categ_Mn.c: Likewise.
82867         * tests/unictype/test-categ_N.c: Likewise.
82868         * tests/unictype/test-categ_Nd.c: Likewise.
82869         * tests/unictype/test-categ_Nl.c: Likewise.
82870         * tests/unictype/test-categ_No.c: Likewise.
82871         * tests/unictype/test-categ_P.c: Likewise.
82872         * tests/unictype/test-categ_Pc.c: Likewise.
82873         * tests/unictype/test-categ_Pd.c: Likewise.
82874         * tests/unictype/test-categ_Pe.c: Likewise.
82875         * tests/unictype/test-categ_Pf.c: Likewise.
82876         * tests/unictype/test-categ_Pi.c: Likewise.
82877         * tests/unictype/test-categ_Po.c: Likewise.
82878         * tests/unictype/test-categ_Ps.c: Likewise.
82879         * tests/unictype/test-categ_S.c: Likewise.
82880         * tests/unictype/test-categ_Sc.c: Likewise.
82881         * tests/unictype/test-categ_Sk.c: Likewise.
82882         * tests/unictype/test-categ_Sm.c: Likewise.
82883         * tests/unictype/test-categ_So.c: Likewise.
82884         * tests/unictype/test-categ_Z.c: Likewise.
82885         * tests/unictype/test-categ_Zl.c: Likewise.
82886         * tests/unictype/test-categ_Zp.c: Likewise.
82887         * tests/unictype/test-categ_Zs.c: Likewise.
82888         * tests/unictype/test-ctype_alnum.c: Likewise.
82889         * tests/unictype/test-ctype_alpha.c: Likewise.
82890         * tests/unictype/test-ctype_blank.c: Likewise.
82891         * tests/unictype/test-ctype_cntrl.c: Likewise.
82892         * tests/unictype/test-ctype_digit.c: Likewise.
82893         * tests/unictype/test-ctype_graph.c: Likewise.
82894         * tests/unictype/test-ctype_lower.c: Likewise.
82895         * tests/unictype/test-ctype_print.c: Likewise.
82896         * tests/unictype/test-ctype_punct.c: Likewise.
82897         * tests/unictype/test-ctype_space.c: Likewise.
82898         * tests/unictype/test-ctype_upper.c: Likewise.
82899         * tests/unictype/test-ctype_xdigit.c: Likewise.
82900         * tests/unictype/test-decdigit.h: Likewise.
82901         * tests/unictype/test-digit.h: Likewise.
82902         * tests/unictype/test-numeric.h: Likewise.
82903         * tests/unictype/test-pr_alphabetic.c: Likewise.
82904         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82905         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82906         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82907         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82908         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82909         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82910         * tests/unictype/test-pr_bidi_control.c: Likewise.
82911         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82912         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82913         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82914         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82915         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82916         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82917         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82918         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82919         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82920         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82921         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82922         * tests/unictype/test-pr_combining.c: Likewise.
82923         * tests/unictype/test-pr_composite.c: Likewise.
82924         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82925         * tests/unictype/test-pr_dash.c: Likewise.
82926         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82927         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82928         * tests/unictype/test-pr_deprecated.c: Likewise.
82929         * tests/unictype/test-pr_diacritic.c: Likewise.
82930         * tests/unictype/test-pr_extender.c: Likewise.
82931         * tests/unictype/test-pr_format_control.c: Likewise.
82932         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82933         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82934         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82935         * tests/unictype/test-pr_hex_digit.c: Likewise.
82936         * tests/unictype/test-pr_hyphen.c: Likewise.
82937         * tests/unictype/test-pr_id_continue.c: Likewise.
82938         * tests/unictype/test-pr_id_start.c: Likewise.
82939         * tests/unictype/test-pr_ideographic.c: Likewise.
82940         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82941         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82942         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82943         * tests/unictype/test-pr_iso_control.c: Likewise.
82944         * tests/unictype/test-pr_join_control.c: Likewise.
82945         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82946         * tests/unictype/test-pr_line_separator.c: Likewise.
82947         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82948         * tests/unictype/test-pr_lowercase.c: Likewise.
82949         * tests/unictype/test-pr_math.c: Likewise.
82950         * tests/unictype/test-pr_non_break.c: Likewise.
82951         * tests/unictype/test-pr_not_a_character.c: Likewise.
82952         * tests/unictype/test-pr_numeric.c: Likewise.
82953         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82954         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82955         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82956         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82957         * tests/unictype/test-pr_other_id_start.c: Likewise.
82958         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82959         * tests/unictype/test-pr_other_math.c: Likewise.
82960         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82961         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82962         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82963         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82964         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82965         * tests/unictype/test-pr_private_use.c: Likewise.
82966         * tests/unictype/test-pr_punctuation.c: Likewise.
82967         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82968         * tests/unictype/test-pr_radical.c: Likewise.
82969         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82970         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82971         * tests/unictype/test-pr_space.c: Likewise.
82972         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82973         * tests/unictype/test-pr_titlecase.c: Likewise.
82974         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82975         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82976         * tests/unictype/test-pr_uppercase.c: Likewise.
82977         * tests/unictype/test-pr_variation_selector.c: Likewise.
82978         * tests/unictype/test-pr_white_space.c: Likewise.
82979         * tests/unictype/test-pr_xid_continue.c: Likewise.
82980         * tests/unictype/test-pr_xid_start.c: Likewise.
82981         * tests/unictype/test-pr_zero_width.c: Likewise.
82982         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82983         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82985 2007-11-12  Bruno Haible  <bruno@clisp.org>
82987         Unicode character classification functions.
82988         * lib/unictype.h: New file.
82989         * modules/unictype/base: New file.
82990         * modules/unictype/category-L: New file.
82991         * modules/unictype/category-Lu: New file.
82992         * modules/unictype/category-Ll: New file.
82993         * modules/unictype/category-Lt: New file.
82994         * modules/unictype/category-Lm: New file.
82995         * modules/unictype/category-Lo: New file.
82996         * modules/unictype/category-M: New file.
82997         * modules/unictype/category-Mn: New file.
82998         * modules/unictype/category-Mc: New file.
82999         * modules/unictype/category-Me: New file.
83000         * modules/unictype/category-N: New file.
83001         * modules/unictype/category-Nd: New file.
83002         * modules/unictype/category-Nl: New file.
83003         * modules/unictype/category-No: New file.
83004         * modules/unictype/category-P: New file.
83005         * modules/unictype/category-Pc: New file.
83006         * modules/unictype/category-Pd: New file.
83007         * modules/unictype/category-Ps: New file.
83008         * modules/unictype/category-Pe: New file.
83009         * modules/unictype/category-Pi: New file.
83010         * modules/unictype/category-Pf: New file.
83011         * modules/unictype/category-Po: New file.
83012         * modules/unictype/category-S: New file.
83013         * modules/unictype/category-Sm: New file.
83014         * modules/unictype/category-Sc: New file.
83015         * modules/unictype/category-Sk: New file.
83016         * modules/unictype/category-So: New file.
83017         * modules/unictype/category-Z: New file.
83018         * modules/unictype/category-Zs: New file.
83019         * modules/unictype/category-Zl: New file.
83020         * modules/unictype/category-Zp: New file.
83021         * modules/unictype/category-C: New file.
83022         * modules/unictype/category-Cc: New file.
83023         * modules/unictype/category-Cf: New file.
83024         * modules/unictype/category-Cs: New file.
83025         * modules/unictype/category-Co: New file.
83026         * modules/unictype/category-Cn: New file.
83027         * modules/unictype/category-or: New file.
83028         * modules/unictype/category-of: New file.
83029         * modules/unictype/category-test: New file.
83030         * modules/unictype/category-test-withtable: New file.
83031         * modules/unictype/category-byname: New file.
83032         * modules/unictype/category-none: New file.
83033         * modules/unictype/category-and: New file.
83034         * modules/unictype/category-and-not: New file.
83035         * modules/unictype/category-name: New file.
83036         * modules/unictype/combining-class: New file.
83037         * modules/unictype/category-all: New file.
83038         * modules/unictype/bidicategory-all: New file.
83039         * modules/unictype/bidicategory-byname: New file.
83040         * modules/unictype/bidicategory-name: New file.
83041         * modules/unictype/bidicategory-of: New file.
83042         * modules/unictype/bidicategory-test: New file.
83043         * modules/unictype/decimal-digit: New file.
83044         * modules/unictype/digit: New file.
83045         * modules/unictype/numeric: New file.
83046         * modules/unictype/mirror: New file.
83047         * modules/unictype/property-white-space: New file.
83048         * modules/unictype/property-alphabetic: New file.
83049         * modules/unictype/property-other-alphabetic: New file.
83050         * modules/unictype/property-not-a-character: New file.
83051         * modules/unictype/property-default-ignorable-code-point: New file.
83052         * modules/unictype/property-other-default-ignorable-code-point: New
83053         file.
83054         * modules/unictype/property-deprecated: New file.
83055         * modules/unictype/property-logical-order-exception: New file.
83056         * modules/unictype/property-variation-selector: New file.
83057         * modules/unictype/property-private-use: New file.
83058         * modules/unictype/property-unassigned-code-value: New file.
83059         * modules/unictype/property-uppercase: New file.
83060         * modules/unictype/property-other-uppercase: New file.
83061         * modules/unictype/property-lowercase: New file.
83062         * modules/unictype/property-other-lowercase: New file.
83063         * modules/unictype/property-titlecase: New file.
83064         * modules/unictype/property-soft-dotted: New file.
83065         * modules/unictype/property-id-start: New file.
83066         * modules/unictype/property-other-id-start: New file.
83067         * modules/unictype/property-id-continue: New file.
83068         * modules/unictype/property-other-id-continue: New file.
83069         * modules/unictype/property-xid-start: New file.
83070         * modules/unictype/property-xid-continue: New file.
83071         * modules/unictype/property-pattern-white-space: New file.
83072         * modules/unictype/property-pattern-syntax: New file.
83073         * modules/unictype/property-join-control: New file.
83074         * modules/unictype/property-grapheme-base: New file.
83075         * modules/unictype/property-grapheme-extend: New file.
83076         * modules/unictype/property-other-grapheme-extend: New file.
83077         * modules/unictype/property-grapheme-link: New file.
83078         * modules/unictype/property-bidi-control: New file.
83079         * modules/unictype/property-bidi-left-to-right: New file.
83080         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
83081         * modules/unictype/property-bidi-arabic-right-to-left: New file.
83082         * modules/unictype/property-bidi-european-digit: New file.
83083         * modules/unictype/property-bidi-eur-num-separator: New file.
83084         * modules/unictype/property-bidi-eur-num-terminator: New file.
83085         * modules/unictype/property-bidi-arabic-digit: New file.
83086         * modules/unictype/property-bidi-common-separator: New file.
83087         * modules/unictype/property-bidi-block-separator: New file.
83088         * modules/unictype/property-bidi-segment-separator: New file.
83089         * modules/unictype/property-bidi-whitespace: New file.
83090         * modules/unictype/property-bidi-non-spacing-mark: New file.
83091         * modules/unictype/property-bidi-boundary-neutral: New file.
83092         * modules/unictype/property-bidi-pdf: New file.
83093         * modules/unictype/property-bidi-embedding-or-override: New file.
83094         * modules/unictype/property-bidi-other-neutral: New file.
83095         * modules/unictype/property-hex-digit: New file.
83096         * modules/unictype/property-ascii-hex-digit: New file.
83097         * modules/unictype/property-ideographic: New file.
83098         * modules/unictype/property-unified-ideograph: New file.
83099         * modules/unictype/property-radical: New file.
83100         * modules/unictype/property-ids-binary-operator: New file.
83101         * modules/unictype/property-ids-trinary-operator: New file.
83102         * modules/unictype/property-zero-width: New file.
83103         * modules/unictype/property-space: New file.
83104         * modules/unictype/property-non-break: New file.
83105         * modules/unictype/property-iso-control: New file.
83106         * modules/unictype/property-format-control: New file.
83107         * modules/unictype/property-dash: New file.
83108         * modules/unictype/property-hyphen: New file.
83109         * modules/unictype/property-punctuation: New file.
83110         * modules/unictype/property-line-separator: New file.
83111         * modules/unictype/property-paragraph-separator: New file.
83112         * modules/unictype/property-quotation-mark: New file.
83113         * modules/unictype/property-sentence-terminal: New file.
83114         * modules/unictype/property-terminal-punctuation: New file.
83115         * modules/unictype/property-currency-symbol: New file.
83116         * modules/unictype/property-math: New file.
83117         * modules/unictype/property-other-math: New file.
83118         * modules/unictype/property-paired-punctuation: New file.
83119         * modules/unictype/property-left-of-pair: New file.
83120         * modules/unictype/property-combining: New file.
83121         * modules/unictype/property-composite: New file.
83122         * modules/unictype/property-decimal-digit: New file.
83123         * modules/unictype/property-numeric: New file.
83124         * modules/unictype/property-diacritic: New file.
83125         * modules/unictype/property-extender: New file.
83126         * modules/unictype/property-ignorable-control: New file.
83127         * modules/unictype/property-test: New file.
83128         * modules/unictype/property-byname: New file.
83129         * modules/unictype/property-all: New file.
83130         * modules/unictype/scripts: New file.
83131         * modules/unictype/scripts-all: New file.
83132         * modules/unictype/block-of: New file.
83133         * modules/unictype/block-test: New file.
83134         * modules/unictype/block-list: New file.
83135         * modules/unictype/block-all: New file.
83136         * modules/unictype/syntax-c-whitespace: New file.
83137         * modules/unictype/syntax-java-whitespace: New file.
83138         * modules/unictype/syntax-c-ident: New file.
83139         * modules/unictype/syntax-java-ident: New file.
83140         * modules/unictype/ctype-alnum: New file.
83141         * modules/unictype/ctype-alpha: New file.
83142         * modules/unictype/ctype-cntrl: New file.
83143         * modules/unictype/ctype-digit: New file.
83144         * modules/unictype/ctype-graph: New file.
83145         * modules/unictype/ctype-lower: New file.
83146         * modules/unictype/ctype-print: New file.
83147         * modules/unictype/ctype-punct: New file.
83148         * modules/unictype/ctype-space: New file.
83149         * modules/unictype/ctype-upper: New file.
83150         * modules/unictype/ctype-xdigit: New file.
83151         * modules/unictype/ctype-blank: New file.
83152         * lib/unictype/bidi_byname.c: New file.
83153         * lib/unictype/bidi_name.c: New file.
83154         * lib/unictype/bidi_of.c: New file.
83155         * lib/unictype/bidi_test.c: New file.
83156         * lib/unictype/bitmap.h: New file.
83157         * lib/unictype/block_test.c: New file.
83158         * lib/unictype/blocks.c: New file.
83159         * lib/unictype/categ_C.c: New file.
83160         * lib/unictype/categ_Cc.c: New file.
83161         * lib/unictype/categ_Cf.c: New file.
83162         * lib/unictype/categ_Cn.c: New file.
83163         * lib/unictype/categ_Co.c: New file.
83164         * lib/unictype/categ_Cs.c: New file.
83165         * lib/unictype/categ_L.c: New file.
83166         * lib/unictype/categ_Ll.c: New file.
83167         * lib/unictype/categ_Lm.c: New file.
83168         * lib/unictype/categ_Lo.c: New file.
83169         * lib/unictype/categ_Lt.c: New file.
83170         * lib/unictype/categ_Lu.c: New file.
83171         * lib/unictype/categ_M.c: New file.
83172         * lib/unictype/categ_Mc.c: New file.
83173         * lib/unictype/categ_Me.c: New file.
83174         * lib/unictype/categ_Mn.c: New file.
83175         * lib/unictype/categ_N.c: New file.
83176         * lib/unictype/categ_Nd.c: New file.
83177         * lib/unictype/categ_Nl.c: New file.
83178         * lib/unictype/categ_No.c: New file.
83179         * lib/unictype/categ_P.c: New file.
83180         * lib/unictype/categ_Pc.c: New file.
83181         * lib/unictype/categ_Pd.c: New file.
83182         * lib/unictype/categ_Pe.c: New file.
83183         * lib/unictype/categ_Pf.c: New file.
83184         * lib/unictype/categ_Pi.c: New file.
83185         * lib/unictype/categ_Po.c: New file.
83186         * lib/unictype/categ_Ps.c: New file.
83187         * lib/unictype/categ_S.c: New file.
83188         * lib/unictype/categ_Sc.c: New file.
83189         * lib/unictype/categ_Sk.c: New file.
83190         * lib/unictype/categ_Sm.c: New file.
83191         * lib/unictype/categ_So.c: New file.
83192         * lib/unictype/categ_Z.c: New file.
83193         * lib/unictype/categ_Zl.c: New file.
83194         * lib/unictype/categ_Zp.c: New file.
83195         * lib/unictype/categ_Zs.c: New file.
83196         * lib/unictype/categ_and.c: New file.
83197         * lib/unictype/categ_and_not.c: New file.
83198         * lib/unictype/categ_byname.c: New file.
83199         * lib/unictype/categ_name.c: New file.
83200         * lib/unictype/categ_none.c: New file.
83201         * lib/unictype/categ_of.c: New file.
83202         * lib/unictype/categ_or.c: New file.
83203         * lib/unictype/categ_test.c: New file.
83204         * lib/unictype/combining.c: New file.
83205         * lib/unictype/ctype_alnum.c: New file.
83206         * lib/unictype/ctype_alpha.c: New file.
83207         * lib/unictype/ctype_blank.c: New file.
83208         * lib/unictype/ctype_cntrl.c: New file.
83209         * lib/unictype/ctype_digit.c: New file.
83210         * lib/unictype/ctype_graph.c: New file.
83211         * lib/unictype/ctype_lower.c: New file.
83212         * lib/unictype/ctype_print.c: New file.
83213         * lib/unictype/ctype_punct.c: New file.
83214         * lib/unictype/ctype_space.c: New file.
83215         * lib/unictype/ctype_upper.c: New file.
83216         * lib/unictype/ctype_xdigit.c: New file.
83217         * lib/unictype/decdigit.c: New file.
83218         * lib/unictype/digit.c: New file.
83219         * lib/unictype/identsyntaxmap.h: New file.
83220         * lib/unictype/mirror.c: New file.
83221         * lib/unictype/numeric.c: New file.
83222         * lib/unictype/pr_alphabetic.c: New file.
83223         * lib/unictype/pr_ascii_hex_digit.c: New file.
83224         * lib/unictype/pr_bidi_arabic_digit.c: New file.
83225         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
83226         * lib/unictype/pr_bidi_block_separator.c: New file.
83227         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
83228         * lib/unictype/pr_bidi_common_separator.c: New file.
83229         * lib/unictype/pr_bidi_control.c: New file.
83230         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
83231         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
83232         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
83233         * lib/unictype/pr_bidi_european_digit.c: New file.
83234         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
83235         * lib/unictype/pr_bidi_left_to_right.c: New file.
83236         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
83237         * lib/unictype/pr_bidi_other_neutral.c: New file.
83238         * lib/unictype/pr_bidi_pdf.c: New file.
83239         * lib/unictype/pr_bidi_segment_separator.c: New file.
83240         * lib/unictype/pr_bidi_whitespace.c: New file.
83241         * lib/unictype/pr_byname.c: New file.
83242         * lib/unictype/pr_byname.gperf: New file.
83243         * lib/unictype/pr_combining.c: New file.
83244         * lib/unictype/pr_composite.c: New file.
83245         * lib/unictype/pr_currency_symbol.c: New file.
83246         * lib/unictype/pr_dash.c: New file.
83247         * lib/unictype/pr_decimal_digit.c: New file.
83248         * lib/unictype/pr_default_ignorable_code_point.c: New file.
83249         * lib/unictype/pr_deprecated.c: New file.
83250         * lib/unictype/pr_diacritic.c: New file.
83251         * lib/unictype/pr_extender.c: New file.
83252         * lib/unictype/pr_format_control.c: New file.
83253         * lib/unictype/pr_grapheme_base.c: New file.
83254         * lib/unictype/pr_grapheme_extend.c: New file.
83255         * lib/unictype/pr_grapheme_link.c: New file.
83256         * lib/unictype/pr_hex_digit.c: New file.
83257         * lib/unictype/pr_hyphen.c: New file.
83258         * lib/unictype/pr_id_continue.c: New file.
83259         * lib/unictype/pr_id_start.c: New file.
83260         * lib/unictype/pr_ideographic.c: New file.
83261         * lib/unictype/pr_ids_binary_operator.c: New file.
83262         * lib/unictype/pr_ids_trinary_operator.c: New file.
83263         * lib/unictype/pr_ignorable_control.c: New file.
83264         * lib/unictype/pr_iso_control.c: New file.
83265         * lib/unictype/pr_join_control.c: New file.
83266         * lib/unictype/pr_left_of_pair.c: New file.
83267         * lib/unictype/pr_line_separator.c: New file.
83268         * lib/unictype/pr_logical_order_exception.c: New file.
83269         * lib/unictype/pr_lowercase.c: New file.
83270         * lib/unictype/pr_math.c: New file.
83271         * lib/unictype/pr_non_break.c: New file.
83272         * lib/unictype/pr_not_a_character.c: New file.
83273         * lib/unictype/pr_numeric.c: New file.
83274         * lib/unictype/pr_other_alphabetic.c: New file.
83275         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
83276         * lib/unictype/pr_other_grapheme_extend.c: New file.
83277         * lib/unictype/pr_other_id_continue.c: New file.
83278         * lib/unictype/pr_other_id_start.c: New file.
83279         * lib/unictype/pr_other_lowercase.c: New file.
83280         * lib/unictype/pr_other_math.c: New file.
83281         * lib/unictype/pr_other_uppercase.c: New file.
83282         * lib/unictype/pr_paired_punctuation.c: New file.
83283         * lib/unictype/pr_paragraph_separator.c: New file.
83284         * lib/unictype/pr_pattern_syntax.c: New file.
83285         * lib/unictype/pr_pattern_white_space.c: New file.
83286         * lib/unictype/pr_private_use.c: New file.
83287         * lib/unictype/pr_punctuation.c: New file.
83288         * lib/unictype/pr_quotation_mark.c: New file.
83289         * lib/unictype/pr_radical.c: New file.
83290         * lib/unictype/pr_sentence_terminal.c: New file.
83291         * lib/unictype/pr_soft_dotted.c: New file.
83292         * lib/unictype/pr_space.c: New file.
83293         * lib/unictype/pr_terminal_punctuation.c: New file.
83294         * lib/unictype/pr_test.c: New file.
83295         * lib/unictype/pr_titlecase.c: New file.
83296         * lib/unictype/pr_unassigned_code_value.c: New file.
83297         * lib/unictype/pr_unified_ideograph.c: New file.
83298         * lib/unictype/pr_uppercase.c: New file.
83299         * lib/unictype/pr_variation_selector.c: New file.
83300         * lib/unictype/pr_white_space.c: New file.
83301         * lib/unictype/pr_xid_continue.c: New file.
83302         * lib/unictype/pr_xid_start.c: New file.
83303         * lib/unictype/pr_zero_width.c: New file.
83304         * lib/unictype/scripts.c: New file.
83305         * lib/unictype/sy_c_ident.c: New file.
83306         * lib/unictype/sy_c_whitespace.c: New file.
83307         * lib/unictype/sy_java_ident.c: New file.
83308         * lib/unictype/sy_java_whitespace.c: New file.
83310         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
83311         Unicode 5.0.0.
83312         * lib/unictype/blocks.h: Likewise.
83313         * lib/unictype/categ_C.h: Likewise.
83314         * lib/unictype/categ_Cc.h: Likewise.
83315         * lib/unictype/categ_Cf.h: Likewise.
83316         * lib/unictype/categ_Cn.h: Likewise.
83317         * lib/unictype/categ_Co.h: Likewise.
83318         * lib/unictype/categ_Cs.h: Likewise.
83319         * lib/unictype/categ_L.h: Likewise.
83320         * lib/unictype/categ_Ll.h: Likewise.
83321         * lib/unictype/categ_Lm.h: Likewise.
83322         * lib/unictype/categ_Lo.h: Likewise.
83323         * lib/unictype/categ_Lt.h: Likewise.
83324         * lib/unictype/categ_Lu.h: Likewise.
83325         * lib/unictype/categ_M.h: Likewise.
83326         * lib/unictype/categ_Mc.h: Likewise.
83327         * lib/unictype/categ_Me.h: Likewise.
83328         * lib/unictype/categ_Mn.h: Likewise.
83329         * lib/unictype/categ_N.h: Likewise.
83330         * lib/unictype/categ_Nd.h: Likewise.
83331         * lib/unictype/categ_Nl.h: Likewise.
83332         * lib/unictype/categ_No.h: Likewise.
83333         * lib/unictype/categ_P.h: Likewise.
83334         * lib/unictype/categ_Pc.h: Likewise.
83335         * lib/unictype/categ_Pd.h: Likewise.
83336         * lib/unictype/categ_Pe.h: Likewise.
83337         * lib/unictype/categ_Pf.h: Likewise.
83338         * lib/unictype/categ_Pi.h: Likewise.
83339         * lib/unictype/categ_Po.h: Likewise.
83340         * lib/unictype/categ_Ps.h: Likewise.
83341         * lib/unictype/categ_S.h: Likewise.
83342         * lib/unictype/categ_Sc.h: Likewise.
83343         * lib/unictype/categ_Sk.h: Likewise.
83344         * lib/unictype/categ_Sm.h: Likewise.
83345         * lib/unictype/categ_So.h: Likewise.
83346         * lib/unictype/categ_Z.h: Likewise.
83347         * lib/unictype/categ_Zl.h: Likewise.
83348         * lib/unictype/categ_Zp.h: Likewise.
83349         * lib/unictype/categ_Zs.h: Likewise.
83350         * lib/unictype/categ_of.h: Likewise.
83351         * lib/unictype/combining.h: Likewise.
83352         * lib/unictype/ctype_alnum.h: Likewise.
83353         * lib/unictype/ctype_alpha.h: Likewise.
83354         * lib/unictype/ctype_blank.h: Likewise.
83355         * lib/unictype/ctype_cntrl.h: Likewise.
83356         * lib/unictype/ctype_digit.h: Likewise.
83357         * lib/unictype/ctype_graph.h: Likewise.
83358         * lib/unictype/ctype_lower.h: Likewise.
83359         * lib/unictype/ctype_print.h: Likewise.
83360         * lib/unictype/ctype_punct.h: Likewise.
83361         * lib/unictype/ctype_space.h: Likewise.
83362         * lib/unictype/ctype_upper.h: Likewise.
83363         * lib/unictype/ctype_xdigit.h: Likewise.
83364         * lib/unictype/decdigit.h: Likewise.
83365         * lib/unictype/digit.h: Likewise.
83366         * lib/unictype/mirror.h: Likewise.
83367         * lib/unictype/numeric.h: Likewise.
83368         * lib/unictype/pr_alphabetic.h: Likewise.
83369         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83370         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83371         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83372         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83373         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83374         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83375         * lib/unictype/pr_bidi_control.h: Likewise.
83376         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83377         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83378         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83379         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83380         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83381         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83382         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83383         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83384         * lib/unictype/pr_bidi_pdf.h: Likewise.
83385         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83386         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83387         * lib/unictype/pr_combining.h: Likewise.
83388         * lib/unictype/pr_composite.h: Likewise.
83389         * lib/unictype/pr_currency_symbol.h: Likewise.
83390         * lib/unictype/pr_dash.h: Likewise.
83391         * lib/unictype/pr_decimal_digit.h: Likewise.
83392         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83393         * lib/unictype/pr_deprecated.h: Likewise.
83394         * lib/unictype/pr_diacritic.h: Likewise.
83395         * lib/unictype/pr_extender.h: Likewise.
83396         * lib/unictype/pr_format_control.h: Likewise.
83397         * lib/unictype/pr_grapheme_base.h: Likewise.
83398         * lib/unictype/pr_grapheme_extend.h: Likewise.
83399         * lib/unictype/pr_grapheme_link.h: Likewise.
83400         * lib/unictype/pr_hex_digit.h: Likewise.
83401         * lib/unictype/pr_hyphen.h: Likewise.
83402         * lib/unictype/pr_id_continue.h: Likewise.
83403         * lib/unictype/pr_id_start.h: Likewise.
83404         * lib/unictype/pr_ideographic.h: Likewise.
83405         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83406         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83407         * lib/unictype/pr_ignorable_control.h: Likewise.
83408         * lib/unictype/pr_iso_control.h: Likewise.
83409         * lib/unictype/pr_join_control.h: Likewise.
83410         * lib/unictype/pr_left_of_pair.h: Likewise.
83411         * lib/unictype/pr_line_separator.h: Likewise.
83412         * lib/unictype/pr_logical_order_exception.h: Likewise.
83413         * lib/unictype/pr_lowercase.h: Likewise.
83414         * lib/unictype/pr_math.h: Likewise.
83415         * lib/unictype/pr_non_break.h: Likewise.
83416         * lib/unictype/pr_not_a_character.h: Likewise.
83417         * lib/unictype/pr_numeric.h: Likewise.
83418         * lib/unictype/pr_other_alphabetic.h: Likewise.
83419         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83420         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83421         * lib/unictype/pr_other_id_continue.h: Likewise.
83422         * lib/unictype/pr_other_id_start.h: Likewise.
83423         * lib/unictype/pr_other_lowercase.h: Likewise.
83424         * lib/unictype/pr_other_math.h: Likewise.
83425         * lib/unictype/pr_other_uppercase.h: Likewise.
83426         * lib/unictype/pr_paired_punctuation.h: Likewise.
83427         * lib/unictype/pr_paragraph_separator.h: Likewise.
83428         * lib/unictype/pr_pattern_syntax.h: Likewise.
83429         * lib/unictype/pr_pattern_white_space.h: Likewise.
83430         * lib/unictype/pr_private_use.h: Likewise.
83431         * lib/unictype/pr_punctuation.h: Likewise.
83432         * lib/unictype/pr_quotation_mark.h: Likewise.
83433         * lib/unictype/pr_radical.h: Likewise.
83434         * lib/unictype/pr_sentence_terminal.h: Likewise.
83435         * lib/unictype/pr_soft_dotted.h: Likewise.
83436         * lib/unictype/pr_space.h: Likewise.
83437         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83438         * lib/unictype/pr_titlecase.h: Likewise.
83439         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83440         * lib/unictype/pr_unified_ideograph.h: Likewise.
83441         * lib/unictype/pr_uppercase.h: Likewise.
83442         * lib/unictype/pr_variation_selector.h: Likewise.
83443         * lib/unictype/pr_white_space.h: Likewise.
83444         * lib/unictype/pr_xid_continue.h: Likewise.
83445         * lib/unictype/pr_xid_start.h: Likewise.
83446         * lib/unictype/pr_zero_width.h: Likewise.
83447         * lib/unictype/scripts.h: Likewise.
83448         * lib/unictype/scripts_byname.gperf: Likewise.
83449         * lib/unictype/sy_c_ident.h: Likewise.
83450         * lib/unictype/sy_c_whitespace.h: Likewise.
83451         * lib/unictype/sy_java_ident.h: Likewise.
83452         * lib/unictype/sy_java_whitespace.h: Likewise.
83454         * lib/unictype/Makefile: New file.
83455         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83456         glibc.
83457         * lib/unictype/3level.h: New file, copied from glibc.
83458         * lib/unictype/3levelbit.h: New file.
83460 2007-11-11  Bruno Haible  <bruno@clisp.org>
83462         * modules/gperf: New file.
83463         * modules/iconv_open (Depends-on): Add it.
83464         (Makefile.am): Remove the GPERF definition.
83466 2007-11-11  Bruno Haible  <bruno@clisp.org>
83468         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83469         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83471 2007-11-11  Bruno Haible  <bruno@clisp.org>
83473         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83474         (usage): Remove function.
83476 2007-11-11  Bruno Haible  <bruno@clisp.org>
83478         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83479         gl_FUNC_CEILF_LIBS.
83480         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83481         gl_FUNC_CEIL_LIBS.
83482         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83483         gl_FUNC_CEILL_LIBS.
83484         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83485         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83486         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83488 2007-11-11  Bruno Haible  <bruno@clisp.org>
83490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83491         roundf were declared but do not exist on functions.
83492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83493         roundl were declared but do not exist on functions.
83494         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83495         HAVE_FLOORL_AND_CEILL, respectively.
83496         Needed for Sun C on Solaris 10.
83498 2007-11-11  Bruno Haible  <bruno@clisp.org>
83500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83501         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83502         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83503         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83504         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83505         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83506         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83507         HAVE_DECL_ROUNDF.
83508         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83509         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83511         of HAVE_DECL_ROUND*.
83512         * modules/math (Makefile.am): Update.
83514 2007-11-10  Bruno Haible  <bruno@clisp.org>
83516         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83517         ptrdiff_t as m4/intl.m4.
83519 2007-11-10  Jim Meyering  <meyering@redhat.com>
83521         Avoid link failure for the argmatch test.
83522         * tests/test-argmatch.c (usage): Define function to avoid a link
83523         failure: argmatch_die requires a usage function.
83525 2007-11-09  Bruno Haible  <bruno@clisp.org>
83527         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83528         * doc/functions/vsnprintf.texi: Likewise.
83529         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83530         with a size argument < 2.
83532 2007-11-09  Bruno Haible  <bruno@clisp.org>
83534         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83535         buffer. Fixes an inefficiency introduced on 2007-11-03.
83537 2007-11-09  Bruno Haible  <bruno@clisp.org>
83539         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83540         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83542 2007-11-08  Jim Meyering  <meyering@redhat.com>
83544         Change cache variable name prefix "jm_" to "gl_" everywhere.
83545         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83546         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83547         * m4/uptime.m4: s/gl_/jm_/
83549 2007-11-07  Bruno Haible  <bruno@clisp.org>
83551         Update to GNU gettext 0.17.
83552         * m4/intl.m4: Update to GNU gettext 0.17.
83553         * m4/po.m4: Likewise.
83554         * modules/gettext (Files): Remove m4/ulonglong.m4.
83555         (configure.ac): Require gettext infrastructure from version 0.17.
83557 2007-11-06  Bruno Haible  <bruno@clisp.org>
83559         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83560         symbolic values are not defined in a public header.
83561         * lib/freadable.c (freadable) [QNX]: Likewise.
83562         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83563         * lib/freading.c (freading) [QNX]: Likewise.
83564         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83565         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83566         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83567         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83568         Reported by Alain Magloire.
83570         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83572 2007-11-05  Bruno Haible  <bruno@clisp.org>
83574         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83575         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83576         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83577         Reported by Eric Blake.
83579 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83580             Bruno Haible  <bruno@clisp.org>
83582         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83583         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83584         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83585         (malloc): Undefine also before including <stdlib.h>.
83586         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83587         Needed on OSF/1 4.0.
83589 2007-11-05  Jim Meyering  <meyering@redhat.com>
83591         git-version-gen: sync from coreutils.
83592         * build-aux/git-version-gen: Add comments.
83593         Change the first '-' to '.' in the snapshot version string,
83594         e.g., 6.9-377-08144 -> 6.9.377-08144
83595         Remove first parameter.
83596         Don't declare a version "-dirty" merely because a time
83597         stamp has changed.
83599 2007-11-04  Bruno Haible  <bruno@clisp.org>
83601         * lib/lock.h: Protect all macro definitions containing an 'if'
83602         statement through a "do { ... } while (0)".
83603         * lib/tls.h: Likewise.
83605 2007-11-04  Bruno Haible  <bruno@clisp.org>
83607         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83609 2007-11-04  Bruno Haible  <bruno@clisp.org>
83611         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83612         * modules/fprintf-posix (Depends-on): Add nocrash.
83613         * modules/snprintf-posix (Depends-on): Likewise.
83614         * modules/sprintf-posix (Depends-on): Likewise.
83615         * modules/vasnprintf-posix (Depends-on): Likewise.
83616         * modules/vasprintf-posix (Depends-on): Likewise.
83617         * modules/vfprintf-posix (Depends-on): Likewise.
83618         * modules/vsnprintf-posix (Depends-on): Likewise.
83619         * modules/vsprintf-posix (Depends-on): Likewise.
83620         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83621         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83622         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83623         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83624         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83625         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83626         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83628 2007-11-04  Bruno Haible  <bruno@clisp.org>
83630         * modules/nocrash: New file.
83631         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83632         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83634 2007-11-04  Bruno Haible  <bruno@clisp.org>
83636         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83637         precision handling.
83638         * tests/test-vasprintf-posix.c (test_function): Likewise.
83639         * tests/test-snprintf-posix.h (test_function): Likewise.
83640         * tests/test-sprintf-posix.h (test_function): Likewise.
83642         Fix *printf behaviour for large precisions on mingw and BeOS.
83643         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83644         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83646         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83648         gl_PRINTF_PRECISION and test its result. Invoke
83649         gl_PREREQ_VASNPRINTF_PRECISION.
83650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83657         * doc/functions/fprintf.texi: Update.
83658         * doc/functions/printf.texi: Update.
83659         * doc/functions/snprintf.texi: Update.
83660         * doc/functions/sprintf.texi: Update.
83661         * doc/functions/vfprintf.texi: Update.
83662         * doc/functions/vprintf.texi: Update.
83663         * doc/functions/vsnprintf.texi: Update.
83664         * doc/functions/vsprintf.texi: Update.
83666 2007-11-04  Bruno Haible  <bruno@clisp.org>
83668         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83670 2007-11-04  Bruno Haible  <bruno@clisp.org>
83672         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83673         Reported by Sylvain Beucler <beuc@gnu.org>.
83675 2007-11-03  Bruno Haible  <bruno@clisp.org>
83677         * tests/test-fprintf-posix2.sh: New file.
83678         * tests/test-fprintf-posix2.c: New file.
83679         * modules/fprintf-posix-tests (Files): Add them.
83680         (TESTS): Add test-fprintf-posix2.sh.
83681         (configure.ac): Check for getrlimit and setrlimit.
83682         (check_PROGRAMS): Add test-fprintf-posix2.
83684         * tests/test-printf-posix2.sh: New file.
83685         * tests/test-printf-posix2.c: New file.
83686         * modules/printf-posix-tests (Files): Add them.
83687         (TESTS): Add test-printf-posix2.sh.
83688         (configure.ac): Check for getrlimit and setrlimit.
83689         (check_PROGRAMS): Add test-printf-posix2.
83691         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83692         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83693         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83694         (decode_double): New function, copied from decode_long_double.
83695         (scale10_round_decimal_decoded): New function, extracted from
83696         scale10_round_decimal_long_double.
83697         (scale10_round_decimal_long_double): Use it.
83698         (scale10_round_decimal_double): New function.
83699         (floorlog10): New function.
83700         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83702         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83704         gl_PRINTF_ENOMEM and test its result. Invoke
83705         gl_PREREQ_VASNPRINTF_ENOMEM.
83706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83713         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83714         * modules/snprintf-posix (Depends-on): Likewise.
83715         * modules/sprintf-posix (Depends-on): Likewise.
83716         * modules/vasnprintf-posix (Depends-on): Likewise.
83717         * modules/vasprintf-posix (Depends-on): Likewise.
83718         * modules/vfprintf-posix (Depends-on): Likewise.
83719         * modules/vsnprintf-posix (Depends-on): Likewise.
83720         * modules/vsprintf-posix (Depends-on): Likewise.
83721         * doc/functions/fprintf.texi: Update.
83722         * doc/functions/printf.texi: Update.
83723         * doc/functions/snprintf.texi: Update.
83724         * doc/functions/sprintf.texi: Update.
83725         * doc/functions/vfprintf.texi: Update.
83726         * doc/functions/vprintf.texi: Update.
83727         * doc/functions/vsnprintf.texi: Update.
83728         * doc/functions/vsprintf.texi: Update.
83730 2007-11-03  Bruno Haible  <bruno@clisp.org>
83732         * modules/frexp-nolibm-tests: New file.
83734         * modules/frexp-nolibm: New file.
83735         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83737 2007-11-03  Bruno Haible  <bruno@clisp.org>
83739         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83740         value is C99 compliant.
83741         Needed for OSF/1 5.1.
83743 2007-11-03  Bruno Haible  <bruno@clisp.org>
83745         Fix out-of-memory handling of vasnprintf.
83746         * lib/printf-parse.c: Include <errno.h>.
83747         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83748         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83749         is already set.
83751 2007-11-02  Eric Blake  <ebb9@byu.net>
83753         Fix tests on cygwin.
83754         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83756 2007-11-01  Bruno Haible  <bruno@clisp.org>
83758         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83759         warning.
83760         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83761         needed for POSIX compatibility.
83763 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83765         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83766         for compatibility with GNU.
83768 2007-11-01  Bruno Haible  <bruno@clisp.org>
83770         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83771         (putenv): Renamed from rpl_putenv. Change argument type from
83772         'const char *' to 'char *'.
83773         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83774         of defining putenv in config.h, just set REPLACE_PUTENV.
83775         * modules/putenv (Depends-on): Add stdlib.
83776         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83777         (Include): Use <stdlib.h>.
83778         * lib/stdlib.in.h (putenv): New declaration.
83779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83780         REPLACE_PUTENV.
83781         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83782         REPLACE_PUTENV.
83783         Needed for MacOS X 10.5.0.
83784         Reported by Peter O'Gorman <peter@pogma.com>.
83786 2007-11-01  Jim Meyering  <meyering@redhat.com>
83788         Treat an empty date string exactly like "0".
83789         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83790         if the remaining date string (to be parsed) is empty, use "0".
83791         Reported by Mischa Molhoek and discussed in this thread:
83792         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83794 2007-10-31  Bruno Haible  <bruno@clisp.org>
83796         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83797         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83798         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83799         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83800         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83801         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83803 2007-10-31  Bruno Haible  <bruno@clisp.org>
83805         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83806         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83807         (AC_TYPE_LONG_LONG_INT): Use it.
83808         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83809         it as well.
83810         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83811         to m4/longlong.m4.
83812         * modules/stdint (Files): Remove m4/ulonglong.m4.
83813         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83814         m4/ulonglong.m4.
83815         * modules/strtoumax (Files): Likewise.
83817 2007-10-30  Bruno Haible  <bruno@clisp.org>
83819         * modules/xvasprintf-posix: New file.
83820         Suggested by Eric Blake.
83822 2007-10-30  Bruno Haible  <bruno@clisp.org>
83824         * modules/xprintf-posix-tests: New file.
83825         * tests/test-xprintf-posix.sh: New file.
83826         * tests/test-xprintf-posix.c: New file.
83827         * tests/test-xfprintf-posix.c: New file.
83829         * modules/xprintf-posix: New file.
83831 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83833         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83834         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83835         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83837 2007-10-29  Bruno Haible  <bruno@clisp.org>
83839         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83840         contain the special marker '_cv_'.
83841         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83842         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83843         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83844         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83845         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83846         Reported by Ralf Wildenhues.
83848 2007-10-29  Bruno Haible  <bruno@clisp.org>
83850         * gnulib-tool (func_import): When --lgpl is not specified, set
83851         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83852         GPLv3.
83853         Reported by Simon Josefsson.
83855 2007-10-28  Bruno Haible  <bruno@clisp.org>
83857         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83858         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83859         HAVE_DECL_ISFINITE.
83860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83861         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83862         HAVE_DECL_ISFINITE.
83864 2007-10-28  Bruno Haible  <bruno@clisp.org>
83866         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83867         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83869 2007-10-28  Bruno Haible  <bruno@clisp.org>
83871         Fix link errors with Sun C 5.0 on Solaris 10.
83872         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83873         function is declared but not present in the compiler's libm.
83874         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83875         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83876         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83877         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83878         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83879         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83880         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83882         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83883         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83884         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83885         HAVE_DECL_FLOORL.
83887 2007-10-28  Bruno Haible  <bruno@clisp.org>
83889         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83890         gl_FUNC_FLOORL. Cache the result.
83891         (gl_FUNC_FLOORL): Use it.
83892         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83893         gl_FUNC_CEILL. Cache the result.
83894         (gl_FUNC_CEILL): Use it.
83896         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83897         gl_FUNC_FLOOR. Cache the result.
83898         (gl_FUNC_FLOOR): Use it.
83899         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83900         gl_FUNC_CEIL. Cache the result.
83901         (gl_FUNC_CEIL): Use it.
83903         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83904         gl_FUNC_FLOORF. Cache the result.
83905         (gl_FUNC_FLOORF): Use it.
83906         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83907         gl_FUNC_CEILF. Cache the result.
83908         (gl_FUNC_CEILF): Use it.
83910 2007-10-28  Bruno Haible  <bruno@clisp.org>
83912         * gnulib-tool: Allow specifying the LGPL version number through
83913         --lgpl=2 or --lgpl=3.
83914         (func_usage): Document --lgpl with argument.
83915         Handle --lgpl=... arguments.
83916         (func_import): Recognize also gl_LGPL calls with an argument. When
83917         --lgpl=2 is used and the module's license is just LGPL, report an
83918         error. Set sed_transform_lib_file according to the lgpl variable. In
83919         the generated files, use --lgpl or gl_LGPL invocations with argument,
83920         if necessary.
83921         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83922         an LGPv2+ license.
83923         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83924         gl_LGPL macro.
83926 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83927             Bruno Haible  <bruno@clisp.org>
83929         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83930         (u16_uctomb_aux): Likewise.
83931         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83932         !HAVE_INLINE.
83933         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83935 2007-10-28  Bruno Haible  <bruno@clisp.org>
83937         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83938         Invoke AM_GETTEXT_OPTION if it exists.
83939         * modules/vasprintf: Likewise.
83940         * modules/verror: Likewise.
83941         * modules/xprintf: Likewise.
83942         * modules/xvasprintf: Likewise.
83944 2007-10-27  Ben Pfaff  <blp@gnu.org>
83946         * lib/math.in.h: Define isfinite macro and prototypes for
83947         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83948         implementations.
83949         * m4/math_h.m4: New substitutions for isfinite module.
83950         * lib/isfinite.c: New file.
83951         * m4/isfinite.m4: New file.
83952         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83953         * modules/isfinite: New file.
83954         * modules/isfinite-tests: New file.
83955         * tests/tests-isfinite.c: New file.
83956         * doc/functions/isfinite.texi: Mention isfinite module.
83957         * MODULES.html.sh: Mention new module.
83959 2007-10-27  Ben Pfaff  <blp@gnu.org>
83961         Ralf Wildenhues reported that Tru64 4.0D declares the round
83962         functions but does not have definitions.
83963         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83964         cannot be found in any library, set the output variable to
83965         "missing" instead of "".
83966         * m4/round.m4: Also use our substitute if we cannot find round in
83967         any library, even if it is declared.
83968         * m4/roundf.m4: Likewise for roundf.
83969         * m4/roundl.m4: Likewise for roundl.
83970         * lib/math.in.h: Undefine roundf, round, roundl before defining
83971         their replacements, to allow for hypothetical systems where these
83972         may be defined as macros but not available in libraries.
83974 2007-10-27  Bruno Haible  <bruno@clisp.org>
83976         * doc/gnulib.texi: Invoke @firstparagraphindent.
83977         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83978         changes in gnulib.
83979         (Source changes): New section.
83981 2007-10-26  Bruno Haible  <bruno@clisp.org>
83983         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83984         borrowed from autoconf.
83986 2007-10-26  Bruno Haible  <bruno@clisp.org>
83988         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83989         strerror returned the empty string. Needed on HP-UX 11.00.
83991 2007-10-24  Micah Cowan  <micah@cowan.name>
83993         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83994         * build-aux/bootstrap: Remove support for now-unnecessary option,
83995         --cvs-user, and envvars CVS_USER, CVS_RSH.
83997 2007-10-24  Jim Meyering  <meyering@redhat.com>
83999         Avoid diagnostics from sha1sum when there is no cached checksum.
84000         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
84001         if the po.s1 file hasn't been created yet.
84003         * build-aux/bootstrap: Sync from coreutils:
84004         2007-10-24  Jim Meyering  <meyering@redhat.com>
84005         Get gnulib from the git repository, not from an obsolete cvs one.
84006         * build-aux/bootstrap: Suggestion from Micah Cowan.
84007         2007-10-04  Jim Meyering  <jim@meyering.net>
84008         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
84009         (update_po_files): Work also when there are no .po files in po/.
84011 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84013         * README: Append ".git" to git and cg examples.
84014         Problem reported by Benoit Sigoure.
84016 2007-10-23  Micah Cowan  <micah@cowan.name>
84018         * users.txt: Add wget.
84020 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84022         Fix linking of some unistdio tests on FreeBSD.
84023         * modules/unistdio/u16-vsnprintf-tests
84024         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
84025         * modules/unistdio/u16-vsprintf-tests
84026         (test_u16_vsnprintf1_LDADD): Likewise.
84027         * modules/unistdio/u32-vsnprintf-tests
84028         (test_u32_vsnprintf1_LDADD): Likewise.
84029         * modules/unistdio/u32-vsprintf-tests
84030         (test_u32_vsprintf1_LDADD): Likewise.
84031         * modules/unistdio/u8-vsnprintf-tests
84032         (test_u8_vsnprintf1_LDADD): Likewise.
84033         * modules/unistdio/u8-vsprintf-tests
84034         (test_u8_vsprintf1_LDADD): Likewise.
84035         * modules/unistdio/ulc-vsnprintf-tests
84036         (test_ulc_vsnprintf1_LDADD): Likewise.
84037         * modules/unistdio/ulc-vsprintf-tests
84038         (test_ulc_vsprintf1_LDADD): Likewise.
84040         Fix linking of some uniconv tests on FreeBSD.
84041         * modules/uniconv/u16-conv-from-enc-tests
84042         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
84043         * modules/uniconv/u16-conv-to-enc-tests
84044         (test_u16_conv_to_enc_LDADD): Likewise.
84045         * modules/uniconv/u16-strconv-from-enc-tests
84046         (test_u16_strconv_from_enc_LDADD): Likewise.
84047         * modules/uniconv/u16-strconv-to-enc-tests
84048         (test_u16_strconv_to_enc_LDADD): Likewise.
84049         * modules/uniconv/u32-conv-from-enc-tests
84050         (test_u32_conv_from_enc_LDADD): Likewise.
84051         * modules/uniconv/u32-conv-to-enc-tests
84052         (test_u32_conv_to_enc_LDADD): Likewise.
84053         * modules/uniconv/u32-strconv-from-enc-tests
84054         (test_u32_strconv_from_enc_LDADD): Likewise.
84055         * modules/uniconv/u32-strconv-to-enc-tests
84056         (test_u32_strconv_to_enc_LDADD): Likewise.
84057         * modules/uniconv/u8-conv-from-enc-tests
84058         (test_u8_conv_from_enc_LDADD): Likewise.
84059         * modules/uniconv/u8-conv-to-enc-tests
84060         (test_u8_conv_to_enc_LDADD): Likewise.
84061         * modules/uniconv/u8-strconv-from-enc-tests
84062         (test_u8_strconv_from_enc_LDADD): Likewise.
84063         * modules/uniconv/u8-strconv-to-enc-tests
84064         (test_u8_strconv_to_enc_LDADD): Likewise.
84066 2007-10-22  Bruno Haible  <bruno@clisp.org>
84068         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
84069         size.
84071 2007-10-22  Eric Blake  <ebb9@byu.net>
84073         Tweak x*printf documentation.
84074         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
84075         variable name and comments.
84076         Suggested by Bruno Haible.
84078 2007-10-22  Bruno Haible  <bruno@clisp.org>
84080         * lib/acl.c (copy_acl): Fix file name in comment.
84082 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84084         Fix Tru64 problem with stdbool.h.
84085         * lib/stdbool.in.h (false, true):
84086         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
84087         Don't declare as an enum in this situation; it runs afoul of Tru64.
84088         Problem reported by Steven M. Schweda in
84089         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
84091 2007-10-22  Eric Blake  <ebb9@byu.net>
84093         Also wrap vf?printf.
84094         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
84095         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
84096         (xvprintf, xvfprintf): New functions.
84098 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84100         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
84101         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
84103         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
84104         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
84106 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84108         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
84109         by Bruno Haible.
84111 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84113         * lib/getloadavg.c
84114         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
84115         Undef `sys' after including sys/table.h, for Tru64 4.0D.
84117         * tests/test-i-ring.c: Work for C89.
84119 2007-10-22  Bruno Haible  <bruno@clisp.org>
84121         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
84122         -1u, in preprocessor expression, so that we don't test for the bug
84123         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
84124         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
84126 2007-10-22  Eric Blake  <ebb9@byu.net>
84128         * tests/test-yesno.sh: Silence stderr during test.
84130 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84132         * modules/crypto/gc-camellia: New file.
84134         * m4/gc-camellia.m4: New file.
84136         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
84138         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
84140 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84142         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
84143         --help to stdout.  Reported by sms@antinode.org (Steven
84144         M. Schweda).
84146 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84148         * users.txt: Fix link to libksba.
84150 2007-10-21  Ben Pfaff  <blp@gnu.org>
84152         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
84153         round.c roundf implementation that depends on floorf and ceilf to
84154         be tested unconditionally.
84156 2007-10-21  Ben Pfaff  <blp@gnu.org>
84158         * m4/check-libm-func.m4: Removed.
84159         * m4/check-math-lib.m4: New file.
84160         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
84161         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
84162         definition and lack of AC_LIBOBJ([roundf]).
84163         * m4/roundl.m4: Ditto, and similarly for roundl.
84164         * modules/round: Reference new m4 file.
84165         * modules/roundf: Ditto.
84166         * modules/roundl: Ditto.
84167         * tests/test-round2.c (main): Use ROUND instead of round.
84168         Bug report from Bruno Haible.
84170 2007-10-21  Bruno Haible  <bruno@clisp.org>
84172         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
84173         context.
84175 2007-10-21  Bruno Haible  <bruno@clisp.org>
84177         * tests/test-wcwidth.c (main): Allow negative result for some control
84178         characters.
84180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
84181         Needed on OSF/1 5.1.
84183 2007-10-21  Bruno Haible  <bruno@clisp.org>
84185         * tests/test-floorf1.c: Include isnanf.h.
84186         (main): Use isnanf() instead of isnan().
84187         * tests/test-ceilf1.c: Include isnanf.h.
84188         (main): Use isnanf() instead of isnan().
84189         * tests/test-truncf1.c: Include isnanf.h.
84190         (main): Use isnanf() instead of isnan().
84191         * tests/test-roundf1.c: Include isnanf.h.
84192         (main): Use isnanf() instead of isnan().
84194 2007-10-21  Eric Blake  <ebb9@byu.net>
84196         * users.txt: Update URL for m4.
84198 2007-10-21  Bruno Haible  <bruno@clisp.org>
84200         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
84202 2007-10-21  Bruno Haible  <bruno@clisp.org>
84204         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
84205         Git's management files if the CVS files are not present.
84207 2007-10-20  Bruno Haible  <bruno@clisp.org>
84209         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
84210         gcc-3.4.x.
84212 2007-10-20  Ben Pfaff  <blp@gnu.org>
84214         * lib/math.in.h: Declare round, roundf, roundl if we are providing
84215         implementations.
84216         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
84217         * lib/round.c: New file.
84218         * lib/roundf.c: New file.
84219         * lib/roundl.c: New file.
84220         * m4/round.m4: New file.
84221         * m4/roundf.m4: New file.
84222         * m4/roundl.m4: New file.
84223         * m4/check-libm-func-m4: New file.
84224         * modules/math: Replace round, roundf, roundl related @VARS@ in
84225         math.in.h.
84226         * modules/round: New file.
84227         * modules/round-tests: New file.
84228         * modules/roundf: New file.
84229         * modules/roundf-tests: New file.
84230         * modules/roundl: New file.
84231         * modules/roundl-tests: New file.
84232         * tests/test-round1.c: New file.
84233         * tests/test-round2.c: New file.
84234         * tests/test-roundf1.c: New file.
84235         * tests/test-roundf2.c: New file.
84236         * tests/test-roundl.c: New file.
84237         * doc/functions/round.texi: Mention round module.
84238         * doc/functions/roundf.texi: Mention roundf module.
84239         * doc/functions/roundl.texi: Mention roundl module.
84240         * MODULES.html.sh: Mention new modules.
84241         Thanks to Bruno Haible for suggestions.
84243 2007-10-20  Jim Meyering  <meyering@redhat.com>
84245         * lib/xprintf.c: Include <config.h> unconditionally.
84247         Change xprintf's license to GPL.
84248         * modules/xprintf (License): s/LGPL/GPL/, since this module
84249         depends on modules (exit and exitfail) which are GPL.
84250         Suggestion from Bruno Haible.
84252         xprintf fixes.
84253         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
84254         Use a clearer diagnostic.
84255         Patch from Bruno Haible.
84257 2007-10-20  Bruno Haible  <bruno@clisp.org>
84259         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
84260         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
84261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84263 2007-10-20  Bruno Haible  <bruno@clisp.org>
84265         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
84266         precision in the comparison result > x - 1 or similar.
84267         * tests/test-ceilf2.c (correct_result_p): Likewise.
84268         * tests/test-truncf2.c (correct_result_p): Likewise.
84269         * tests/test-trunc2.c (correct_result_p): Likewise.
84270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84272 2007-10-20  Bruno Haible  <bruno@clisp.org>
84274         * modules/ceil: New file.
84275         * m4/ceil.m4: New file.
84276         * doc/functions/ceil.texi: Mention the 'ceil' module.
84278 2007-10-20  Bruno Haible  <bruno@clisp.org>
84280         * modules/floor: New file.
84281         * m4/floor.m4: New file.
84282         * doc/functions/floor.texi: Mention the 'floor' module.
84284 2007-10-20  Bruno Haible  <bruno@clisp.org>
84286         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
84287         of %a.
84288         * modules/floorf-tests (Depends-on): Likewise.
84289         * modules/truncf-tests (Depends-on): Likewise.
84290         * modules/trunc-tests (Depends-on): Likewise.
84291         Reported by Ben Pfaff.
84293 2007-10-19  Jim Meyering  <meyering@redhat.com>
84295         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
84296         Don't bother testing specific errno values.  Just test ferror.
84298         New module: xprintf
84299         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
84301 2007-10-19  Bruno Haible  <bruno@clisp.org>
84303         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
84304         syntax.
84305         * modules/javaexec (Makefile.am): Likewise.
84306         * modules/relocatable-prog (Makefile.am): Likewise.
84307         Suggested by Jim Meyering.
84309 2007-10-18  Bruno Haible  <bruno@clisp.org>
84311         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
84312         Reported by Jim Meyering.
84314 2007-10-18  Eric Blake  <ebb9@byu.net>
84316         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
84318 2007-10-18  Bruno Haible  <bruno@clisp.org>
84320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
84321         the format string into writable memory. Needed in Fortify conditions.
84323 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
84324             Bruno Haible  <bruno@clisp.org>
84326         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
84327         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
84328         * modules/trim (Depends-on): Add mbchar.
84329         (configure.ac): Add gl_FUNC_MBRTOWC.
84330         (Makefile.am): Augment lib_SOURCES.
84332 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84334         Modify glob.c to use fstatat and dirfd, to simplify it.
84335         Suggested by Eric Blake.
84336         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
84337         Don't include <stdbool.h>; not used.
84338         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
84339         (link_exists_p): Simplify implementation, since we can now assume
84340         dirfd and fstatat.
84341         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
84343 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84345         * gnulib-tool (func_get_dependencies): Fix sed script to
84346         match only tests.
84348 2007-10-17  Bruno Haible  <bruno@clisp.org>
84350         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
84351         allow locale names without encoding suffix.
84352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
84353         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84355 2007-10-16  Bruno Haible  <bruno@clisp.org>
84357         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84358         * lib/getgroups.c (getgroups): Likewise.
84359         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84361 2007-10-16  Bruno Haible  <bruno@clisp.org>
84363         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84364         * modules/malloc-posix (License): Likewise.
84365         * modules/realloc-posix (License): Likewise.
84366         * modules/calloc-posix (License): Likewise.
84367         * modules/intprops (License): Change from GPL to LGPL, with
84368         Paul Eggert's approval.
84370 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84372         Merge glibc changes into lib/glob.c.
84374         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84375         2007-10-15 04:59:03 UTC.  Here are the changes:
84377         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84379         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84381         * lib/glob.c: Add some branch prediction throughout.
84383         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84385         [BZ #5103]
84386         * lib/glob.c (glob): Recognize patterns starting \/.
84388         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84390         [BZ #3996]
84391         * lib/glob.c (attribute_hidden): Define if not defined.
84392         (glob): Unescape dirname, filename or username when needed and not
84393         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84394         is NULL.  Handle unescaped [ in pattern without closing ].
84395         Don't pass GLOB_CHECK down to recursive glob for directories.
84396         (__glob_pattern_type): New function.
84397         (__glob_pattern_p): Implement using __glob_pattern_type.
84398         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84399         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84400         Remove unreachable code.
84402         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84404         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84405         explain why there are no leaks.
84407         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84409         [BZ #3253]
84410         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84411         time, rather allocate increasingly bigger arrays of pointers, if
84412         possible with alloca, if too large with malloc.
84414 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84416         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84417         Problem reported by H.Merijn Brand in
84418         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84419         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84420         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84422 2007-10-15  Bruno Haible  <bruno@clisp.org>
84424         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84425         with explicit rpl_ prefix.
84426         * lib/fopen.c (fopen): Likewise.
84427         * lib/freopen.c (freopen): Likewise.
84428         * lib/iconv.c (iconv): Likewise.
84429         * lib/iconv_close.c (iconv_close): Likewise.
84431 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84433         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84435 2007-10-15  Bruno Haible  <bruno@clisp.org>
84437         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84438         <stddef.h> instead of <stdlib.h> since we only need NULL.
84439         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84441 2007-10-15  Bruno Haible  <bruno@clisp.org>
84443         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84444         Replace paragraph talking about LIBOBJS.
84445         Reported by Colin Watson <cjwatson@debian.org>.
84447 2007-10-15  Bruno Haible  <bruno@clisp.org>
84449         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84450         <stdlib.h> before using NULL.
84452 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84454         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84455         Reported by Albert Chin <china@thewrittenword.com>.
84457 2007-10-14  Bruno Haible  <bruno@clisp.org>
84459         * modules/iconv_open-utf-tests: New file.
84460         * tests/test-iconv-utf.c: New file.
84462         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84463         * modules/iconv_open-utf: New file.
84464         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84465         (iconv, iconv_close): New declarations.
84466         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84467         be defined.
84468         (iconv_open): Add special handling of conversion between UTF-8 and
84469         UTF-{16,32}{BE,LE}.
84470         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84471         * lib/iconv_close.c: New file.
84472         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84473         gl_FUNC_ICONV_OPEN.
84474         (gl_FUNC_ICONV_OPEN): Use it.
84475         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84476         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84477         and REPLACE_ICONV_UTF.
84478         * modules/iconv_open (Depends-on): Add c-strcase.
84479         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84480         ICONV_CONST.
84481         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84483 2007-10-13  Albert Chin  <china@thewrittenword.com>
84484             Bruno Haible  <bruno@clisp.org>
84486         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84487         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84489 2007-10-13  Bruno Haible  <bruno@clisp.org>
84491         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84492         defined, use the ISO C99 inline semantics.
84493         * lib/argp.h (ARGP_EI): Likewise.
84495 2007-10-13  Bruno Haible  <bruno@clisp.org>
84497         Handle 'inline' change in gcc 4.3.0.
84498         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84499         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84500         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84501         argp_fmtstream_point): Disable 'extern' declaration if the function
84502         definition is going to be provided inline.
84503         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84504         semantics, not the ISO C99 inline semantics.
84505         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84506         'extern' declaration if the function definition is going to be provided
84507         inline.
84508         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84509         the GNU C inline semantics, not the ISO C99 inline semantics. With
84510         GCC 4.2, avoid a warning.
84512 2007-10-13  Bruno Haible  <bruno@clisp.org>
84514         * lib/freading.h (freading): Enable the use of __freading for
84515         glibc >= 2.7.
84516         * lib/freading.c (freading): Likewise.
84518 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84520         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84521         "warning: C99 inline functions are not supported; using GNU89".
84523 2007-10-12  Bruno Haible  <bruno@clisp.org>
84525         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84526         of 2.
84527         * tests/test-ceilf2.c: New file.
84528         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84530         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84531         * modules/ceilf-tests: Update.
84533 2007-10-12  Bruno Haible  <bruno@clisp.org>
84535         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84536         of 2.
84537         * tests/test-floorf2.c: New file.
84538         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84540         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84541         * modules/floorf-tests: Update.
84543 2007-10-12  Bruno Haible  <bruno@clisp.org>
84545         * tests/test-trunc2.c: New file.
84546         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84548         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84549         * modules/trunc-tests: Update.
84551 2007-10-12  Bruno Haible  <bruno@clisp.org>
84553         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84554         of 2.
84555         * tests/test-truncf2.c: New file.
84556         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84558         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84559         * modules/truncf-tests: Update.
84561 2007-10-11  Eric Blake  <ebb9@byu.net>
84563         Don't claim strerror is broken on Interix.
84564         * doc/functions/strerror.texi (strerror): Known broken systems are
84565         now Solaris 8, and not Interix.
84566         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84567         Interix on cross-compile.
84568         Reported by Martin Koeppe in
84569         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84571 2007-10-11  Bruno Haible  <bruno@clisp.org>
84573         * modules/i-ring-tests: New file.
84574         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84575         instead of assert.
84577 2007-10-11  Bruno Haible  <bruno@clisp.org>
84579         * modules/filenamecat-tests: New file.
84580         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84581         * lib/filenamecat.c: Remove test code.
84583 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84585         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84587         * lib/strerror.c: Include <string.h> always, to test interface,
84588         and to remove the need for the dummy.
84589         Include intprops.h to compute width instead of doing it ourselves
84590         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84591         (strerror): Define it to return NULL if there's no system strerror.
84592         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84593         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84594         ancient pre-strerror Unix systems well any more.  Saying "unknown
84595         system error" is enough.
84596         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84597         simpler strerror.c implementation.
84598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84599         Simplify the tests to reflect the simpler strerror implementation.
84600         * modules/strerror (Depends-on): Add intprops.
84602 2007-10-09  Eric Blake  <ebb9@byu.net>
84604         Silence test-fpending.
84605         * modules/fpending-tests (Files): Add wrapper script.
84606         * tests/test-fpending.sh: New file.
84608 2007-10-09  Bruno Haible  <bruno@clisp.org>
84610         * MODULES.html.sh (func_module): Don't create a hyperlink for
84611         function names like 'printf_frexp'.
84612         (Misc): Add crc, memxor.
84613         (Characteristics of floating types): New section.
84614         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84615         isnanf-nolibm, signbit, trunc, truncf, truncl.
84616         (Enhancements for ISO C 99 functions): New subsection Input/output.
84617         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84618         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84619         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84620         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84621         (Enhancements for POSIX:2001 functions): Add chdir-long.
84622         (File system functions): Add areadlink, chdir-safer, read-file.
84623         Remove cycle-check.
84624         (File system as inode set): New section.
84625         (Date and time): Add gethrxtime.
84626         (Multithreading): Add openmp.
84627         (Internationalization functions): Add localename.
84628         (Unicode string functions): Add unistr/u*-mbsnlen.
84629         (Support for maintaining and releasing projects): Add git-version-gen.
84630         (Lone files): Remove directories.
84632 2007-10-08  Ben Pfaff  <blp@gnu.org>
84634         * lib/xmalloca.h: Fix typo in comment.
84636 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84638         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84639         when avoiding problems with integer overflow.  Use a portable test
84640         instead.
84642 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84644         * modules/dummy (License): Change to LGPLv2+.
84645         * modules/float (License): Likewise
84646         * modules/realloc (License): Likewise
84647         * modules/stdlib (License): Likewise
84649 2007-10-07  Bruno Haible  <bruno@clisp.org>
84651         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84652         * floor.c (TWO_MANT_DIG): Likewise.
84653         * ceil.c (TWO_MANT_DIG): Likewise.
84654         Reported by Ben Pfaff.
84656 2007-10-07  Bruno Haible  <bruno@clisp.org>
84658         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84659         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84660         * lib/frexp.c (FUNC): Likewise.
84661         * lib/printf-frexp.h (printf_frexp): Likewise.
84662         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84663         * lib/printf-frexp.c (FUNC): Likewise.
84664         Suggested by Jim Meyering.
84666 2007-10-07  Jim Meyering  <meyering@redhat.com>
84668         Make xnanosleep's integer overflow test more robust.
84669         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84670         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84672 2007-10-07  Bruno Haible  <bruno@clisp.org>
84674         * NEWS: Mention the license change.
84676         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84677         abbreviations in the modules files.
84679         Change copyright notice from GPLv2+ to GPLv3+.
84680         * README: Change copyright notice.
84681         * MODULES.html.sh: Likewise.
84682         * build-aux/bootstrap.conf: Likewise.
84683         * build-aux/config.libpath: Likewise.
84684         * build-aux/csharpcomp.sh.in: Likewise.
84685         * build-aux/csharpexec.sh.in: Likewise.
84686         * build-aux/install-reloc: Likewise.
84687         * build-aux/javacomp.sh.in: Likewise.
84688         * build-aux/javaexec.sh.in: Likewise.
84689         * build-aux/ldd.sh.in: Likewise.
84690         * build-aux/reloc-ldflags: Likewise.
84691         * build-aux/relocatable.sh.in: Likewise.
84692         * build-aux/x-to-1.in: Likewise.
84693         * check-module: Likewise.
84694         * config/srclistvars.sh: Likewise.
84695         * gnulib-tool: Likewise.
84696         * lib/acl-internal.h: Likewise.
84697         * lib/acl.c: Likewise.
84698         * lib/acl.h: Likewise.
84699         * lib/acl_entries.c: Likewise.
84700         * lib/areadlink-with-size.c: Likewise.
84701         * lib/areadlink.c: Likewise.
84702         * lib/areadlink.h: Likewise.
84703         * lib/argmatch.c: Likewise.
84704         * lib/argmatch.h: Likewise.
84705         * lib/argp-ba.c: Likewise.
84706         * lib/argp-eexst.c: Likewise.
84707         * lib/argp-fmtstream.c: Likewise.
84708         * lib/argp-fmtstream.h: Likewise.
84709         * lib/argp-fs-xinl.c: Likewise.
84710         * lib/argp-help.c: Likewise.
84711         * lib/argp-namefrob.h: Likewise.
84712         * lib/argp-parse.c: Likewise.
84713         * lib/argp-pin.c: Likewise.
84714         * lib/argp-pv.c: Likewise.
84715         * lib/argp-pvh.c: Likewise.
84716         * lib/argp-xinl.c: Likewise.
84717         * lib/argp.h: Likewise.
84718         * lib/at-func.c: Likewise.
84719         * lib/atanl.c: Likewise.
84720         * lib/backupfile.c: Likewise.
84721         * lib/backupfile.h: Likewise.
84722         * lib/basename.c: Likewise.
84723         * lib/binary-io.h: Likewise.
84724         * lib/byteswap.in.h: Likewise.
84725         * lib/c-stack.c: Likewise.
84726         * lib/c-stack.h: Likewise.
84727         * lib/c-strcasestr.c: Likewise.
84728         * lib/c-strcasestr.h: Likewise.
84729         * lib/c-strstr.c: Likewise.
84730         * lib/c-strstr.h: Likewise.
84731         * lib/c-strtod.c: Likewise.
84732         * lib/calloc.c: Likewise.
84733         * lib/canon-host.c: Likewise.
84734         * lib/canon-host.h: Likewise.
84735         * lib/canonicalize-lgpl.c: Likewise.
84736         * lib/canonicalize.c: Likewise.
84737         * lib/canonicalize.h: Likewise.
84738         * lib/ceil.c: Likewise.
84739         * lib/ceilf.c: Likewise.
84740         * lib/ceill.c: Likewise.
84741         * lib/chdir-long.c: Likewise.
84742         * lib/chdir-long.h: Likewise.
84743         * lib/chdir-safer.c: Likewise.
84744         * lib/chdir-safer.h: Likewise.
84745         * lib/chown.c: Likewise.
84746         * lib/classpath.c: Likewise.
84747         * lib/classpath.h: Likewise.
84748         * lib/clean-temp.c: Likewise.
84749         * lib/clean-temp.h: Likewise.
84750         * lib/cloexec.c: Likewise.
84751         * lib/close-stream.c: Likewise.
84752         * lib/closein.c: Likewise.
84753         * lib/closein.h: Likewise.
84754         * lib/closeout.c: Likewise.
84755         * lib/closeout.h: Likewise.
84756         * lib/concat-filename.c: Likewise.
84757         * lib/copy-file.c: Likewise.
84758         * lib/copy-file.h: Likewise.
84759         * lib/count-one-bits.h: Likewise.
84760         * lib/crc.c: Likewise.
84761         * lib/crc.h: Likewise.
84762         * lib/creat-safer.c: Likewise.
84763         * lib/csharpcomp.c: Likewise.
84764         * lib/csharpcomp.h: Likewise.
84765         * lib/csharpexec.c: Likewise.
84766         * lib/csharpexec.h: Likewise.
84767         * lib/cycle-check.c: Likewise.
84768         * lib/cycle-check.h: Likewise.
84769         * lib/diacrit.c: Likewise.
84770         * lib/diacrit.h: Likewise.
84771         * lib/diffseq.h: Likewise.
84772         * lib/dirchownmod.c: Likewise.
84773         * lib/dirent.in.h: Likewise.
84774         * lib/dirfd.c: Likewise.
84775         * lib/dirfd.h: Likewise.
84776         * lib/dirname.c: Likewise.
84777         * lib/dirname.h: Likewise.
84778         * lib/dummy.c: Likewise.
84779         * lib/dup-safer.c: Likewise.
84780         * lib/dup2.c: Likewise.
84781         * lib/eealloc.h: Likewise.
84782         * lib/error.c: Likewise.
84783         * lib/error.h: Likewise.
84784         * lib/euidaccess.c: Likewise.
84785         * lib/exclude.c: Likewise.
84786         * lib/exclude.h: Likewise.
84787         * lib/execute.c: Likewise.
84788         * lib/execute.h: Likewise.
84789         * lib/exitfail.c: Likewise.
84790         * lib/exitfail.h: Likewise.
84791         * lib/expl.c: Likewise.
84792         * lib/fatal-signal.c: Likewise.
84793         * lib/fatal-signal.h: Likewise.
84794         * lib/fbufmode.c: Likewise.
84795         * lib/fbufmode.h: Likewise.
84796         * lib/fchdir.c: Likewise.
84797         * lib/fchmodat.c: Likewise.
84798         * lib/fchownat.c: Likewise.
84799         * lib/fcntl--.h: Likewise.
84800         * lib/fcntl-safer.h: Likewise.
84801         * lib/fcntl.in.h: Likewise.
84802         * lib/fd-safer.c: Likewise.
84803         * lib/fflush.c: Likewise.
84804         * lib/file-has-acl.c: Likewise.
84805         * lib/file-set.c: Likewise.
84806         * lib/file-type.c: Likewise.
84807         * lib/file-type.h: Likewise.
84808         * lib/fileblocks.c: Likewise.
84809         * lib/filemode.c: Likewise.
84810         * lib/filemode.h: Likewise.
84811         * lib/filename.h: Likewise.
84812         * lib/filenamecat.c: Likewise.
84813         * lib/filenamecat.h: Likewise.
84814         * lib/findprog.c: Likewise.
84815         * lib/findprog.h: Likewise.
84816         * lib/float.in.h: Likewise.
84817         * lib/floor.c: Likewise.
84818         * lib/floorf.c: Likewise.
84819         * lib/floorl.c: Likewise.
84820         * lib/fopen-safer.c: Likewise.
84821         * lib/fopen.c: Likewise.
84822         * lib/fpending.c: Likewise.
84823         * lib/fpending.h: Likewise.
84824         * lib/fprintf.c: Likewise.
84825         * lib/fprintftime.h: Likewise.
84826         * lib/fpucw.h: Likewise.
84827         * lib/fpurge.c: Likewise.
84828         * lib/fpurge.h: Likewise.
84829         * lib/freadable.c: Likewise.
84830         * lib/freadable.h: Likewise.
84831         * lib/freadahead.c: Likewise.
84832         * lib/freadahead.h: Likewise.
84833         * lib/freading.c: Likewise.
84834         * lib/freading.h: Likewise.
84835         * lib/free.c: Likewise.
84836         * lib/freopen.c: Likewise.
84837         * lib/frexp.c: Likewise.
84838         * lib/frexpl.c: Likewise.
84839         * lib/fseek.c: Likewise.
84840         * lib/fseterr.c: Likewise.
84841         * lib/fseterr.h: Likewise.
84842         * lib/fstatat.c: Likewise.
84843         * lib/fstrcmp.c: Likewise.
84844         * lib/fstrcmp.h: Likewise.
84845         * lib/fsusage.c: Likewise.
84846         * lib/fsusage.h: Likewise.
84847         * lib/ftell.c: Likewise.
84848         * lib/ftello.c: Likewise.
84849         * lib/fts-cycle.c: Likewise.
84850         * lib/fts.c: Likewise.
84851         * lib/fts_.h: Likewise.
84852         * lib/full-read.c: Likewise.
84853         * lib/full-read.h: Likewise.
84854         * lib/full-write.c: Likewise.
84855         * lib/full-write.h: Likewise.
84856         * lib/fwritable.c: Likewise.
84857         * lib/fwritable.h: Likewise.
84858         * lib/fwriteerror.c: Likewise.
84859         * lib/fwriteerror.h: Likewise.
84860         * lib/fwriting.c: Likewise.
84861         * lib/fwriting.h: Likewise.
84862         * lib/gcd.c: Likewise.
84863         * lib/gcd.h: Likewise.
84864         * lib/getcwd.c: Likewise.
84865         * lib/getdate.h: Likewise.
84866         * lib/getdate.y: Likewise.
84867         * lib/getdomainname.c: Likewise.
84868         * lib/getdomainname.h: Likewise.
84869         * lib/getgroups.c: Likewise.
84870         * lib/gethostname.c: Likewise.
84871         * lib/gethrxtime.c: Likewise.
84872         * lib/gethrxtime.h: Likewise.
84873         * lib/getloadavg.c: Likewise.
84874         * lib/getndelim2.c: Likewise.
84875         * lib/getndelim2.h: Likewise.
84876         * lib/getnline.c: Likewise.
84877         * lib/getnline.h: Likewise.
84878         * lib/getopt.c: Likewise.
84879         * lib/getopt.in.h: Likewise.
84880         * lib/getopt1.c: Likewise.
84881         * lib/getopt_int.h: Likewise.
84882         * lib/getpagesize.h: Likewise.
84883         * lib/getsubopt.c: Likewise.
84884         * lib/gettime.c: Likewise.
84885         * lib/getugroups.c: Likewise.
84886         * lib/getugroups.h: Likewise.
84887         * lib/getusershell.c: Likewise.
84888         * lib/gl_anyavltree_list1.h: Likewise.
84889         * lib/gl_anyavltree_list2.h: Likewise.
84890         * lib/gl_anyhash_list1.h: Likewise.
84891         * lib/gl_anyhash_list2.h: Likewise.
84892         * lib/gl_anylinked_list1.h: Likewise.
84893         * lib/gl_anylinked_list2.h: Likewise.
84894         * lib/gl_anyrbtree_list1.h: Likewise.
84895         * lib/gl_anyrbtree_list2.h: Likewise.
84896         * lib/gl_anytree_list1.h: Likewise.
84897         * lib/gl_anytree_list2.h: Likewise.
84898         * lib/gl_anytree_oset.h: Likewise.
84899         * lib/gl_anytreehash_list1.h: Likewise.
84900         * lib/gl_anytreehash_list2.h: Likewise.
84901         * lib/gl_array_list.c: Likewise.
84902         * lib/gl_array_list.h: Likewise.
84903         * lib/gl_array_oset.c: Likewise.
84904         * lib/gl_array_oset.h: Likewise.
84905         * lib/gl_avltree_list.c: Likewise.
84906         * lib/gl_avltree_list.h: Likewise.
84907         * lib/gl_avltree_oset.c: Likewise.
84908         * lib/gl_avltree_oset.h: Likewise.
84909         * lib/gl_avltreehash_list.c: Likewise.
84910         * lib/gl_avltreehash_list.h: Likewise.
84911         * lib/gl_carray_list.c: Likewise.
84912         * lib/gl_carray_list.h: Likewise.
84913         * lib/gl_linked_list.c: Likewise.
84914         * lib/gl_linked_list.h: Likewise.
84915         * lib/gl_linkedhash_list.c: Likewise.
84916         * lib/gl_linkedhash_list.h: Likewise.
84917         * lib/gl_list.c: Likewise.
84918         * lib/gl_list.h: Likewise.
84919         * lib/gl_oset.c: Likewise.
84920         * lib/gl_oset.h: Likewise.
84921         * lib/gl_rbtree_list.c: Likewise.
84922         * lib/gl_rbtree_list.h: Likewise.
84923         * lib/gl_rbtree_oset.c: Likewise.
84924         * lib/gl_rbtree_oset.h: Likewise.
84925         * lib/gl_rbtreehash_list.c: Likewise.
84926         * lib/gl_rbtreehash_list.h: Likewise.
84927         * lib/gl_sublist.c: Likewise.
84928         * lib/gl_sublist.h: Likewise.
84929         * lib/group-member.c: Likewise.
84930         * lib/group-member.h: Likewise.
84931         * lib/hard-locale.c: Likewise.
84932         * lib/hard-locale.h: Likewise.
84933         * lib/hash-pjw.c: Likewise.
84934         * lib/hash-pjw.h: Likewise.
84935         * lib/hash-triple.c: Likewise.
84936         * lib/hash.c: Likewise.
84937         * lib/hash.h: Likewise.
84938         * lib/human.c: Likewise.
84939         * lib/human.h: Likewise.
84940         * lib/i-ring.c: Likewise.
84941         * lib/i-ring.h: Likewise.
84942         * lib/idcache.c: Likewise.
84943         * lib/imaxabs.c: Likewise.
84944         * lib/imaxdiv.c: Likewise.
84945         * lib/inet_pton.c: Likewise.
84946         * lib/inet_pton.h: Likewise.
84947         * lib/intprops.h: Likewise.
84948         * lib/inttostr.c: Likewise.
84949         * lib/inttostr.h: Likewise.
84950         * lib/inttypes.in.h: Likewise.
84951         * lib/isapipe.c: Likewise.
84952         * lib/isdir.c: Likewise.
84953         * lib/isnan.c: Likewise.
84954         * lib/isnan.h: Likewise.
84955         * lib/isnanf.c: Likewise.
84956         * lib/isnanf.h: Likewise.
84957         * lib/isnanl-nolibm.h: Likewise.
84958         * lib/isnanl.c: Likewise.
84959         * lib/isnanl.h: Likewise.
84960         * lib/javacomp.c: Likewise.
84961         * lib/javacomp.h: Likewise.
84962         * lib/javaexec.c: Likewise.
84963         * lib/javaexec.h: Likewise.
84964         * lib/javaversion.c: Likewise.
84965         * lib/javaversion.h: Likewise.
84966         * lib/javaversion.java: Likewise.
84967         * lib/lbrkprop.h: Likewise.
84968         * lib/lchmod.h: Likewise.
84969         * lib/lchown.c: Likewise.
84970         * lib/ldexpl.c: Likewise.
84971         * lib/linebreak.c: Likewise.
84972         * lib/linebreak.h: Likewise.
84973         * lib/linebuffer.c: Likewise.
84974         * lib/linebuffer.h: Likewise.
84975         * lib/locale.in.h: Likewise.
84976         * lib/logl.c: Likewise.
84977         * lib/long-options.c: Likewise.
84978         * lib/long-options.h: Likewise.
84979         * lib/lstat.c: Likewise.
84980         * lib/lstat.h: Likewise.
84981         * lib/math.in.h: Likewise.
84982         * lib/mbchar.c: Likewise.
84983         * lib/mbchar.h: Likewise.
84984         * lib/mbfile.h: Likewise.
84985         * lib/mbiter.h: Likewise.
84986         * lib/mbscasecmp.c: Likewise.
84987         * lib/mbscasestr.c: Likewise.
84988         * lib/mbschr.c: Likewise.
84989         * lib/mbscspn.c: Likewise.
84990         * lib/mbslen.c: Likewise.
84991         * lib/mbsncasecmp.c: Likewise.
84992         * lib/mbsnlen.c: Likewise.
84993         * lib/mbspbrk.c: Likewise.
84994         * lib/mbspcasecmp.c: Likewise.
84995         * lib/mbsrchr.c: Likewise.
84996         * lib/mbssep.c: Likewise.
84997         * lib/mbsspn.c: Likewise.
84998         * lib/mbsstr.c: Likewise.
84999         * lib/mbstok_r.c: Likewise.
85000         * lib/mbswidth.c: Likewise.
85001         * lib/mbswidth.h: Likewise.
85002         * lib/mbuiter.h: Likewise.
85003         * lib/memcasecmp.c: Likewise.
85004         * lib/memcasecmp.h: Likewise.
85005         * lib/memchr.c: Likewise.
85006         * lib/memcmp.c: Likewise.
85007         * lib/memcoll.c: Likewise.
85008         * lib/memcoll.h: Likewise.
85009         * lib/memcpy.c: Likewise.
85010         * lib/memrchr.c: Likewise.
85011         * lib/mkancesdirs.c: Likewise.
85012         * lib/mkdir-p.c: Likewise.
85013         * lib/mkdir-p.h: Likewise.
85014         * lib/mkdir.c: Likewise.
85015         * lib/mkdirat.c: Likewise.
85016         * lib/mkdtemp.c: Likewise.
85017         * lib/mkstemp-safer.c: Likewise.
85018         * lib/mkstemp.c: Likewise.
85019         * lib/modechange.c: Likewise.
85020         * lib/modechange.h: Likewise.
85021         * lib/mountlist.c: Likewise.
85022         * lib/mountlist.h: Likewise.
85023         * lib/mpsort.c: Likewise.
85024         * lib/nanosleep.c: Likewise.
85025         * lib/obstack.c: Likewise.
85026         * lib/obstack.h: Likewise.
85027         * lib/open-safer.c: Likewise.
85028         * lib/open.c: Likewise.
85029         * lib/openat-die.c: Likewise.
85030         * lib/openat-priv.h: Likewise.
85031         * lib/openat-proc.c: Likewise.
85032         * lib/openat.c: Likewise.
85033         * lib/openat.h: Likewise.
85034         * lib/pagealign_alloc.c: Likewise.
85035         * lib/pagealign_alloc.h: Likewise.
85036         * lib/physmem.c: Likewise.
85037         * lib/physmem.h: Likewise.
85038         * lib/pipe-safer.c: Likewise.
85039         * lib/pipe.c: Likewise.
85040         * lib/pipe.h: Likewise.
85041         * lib/posixtm.c: Likewise.
85042         * lib/posixtm.h: Likewise.
85043         * lib/posixver.c: Likewise.
85044         * lib/printf-frexp.c: Likewise.
85045         * lib/printf-frexp.h: Likewise.
85046         * lib/printf-frexpl.c: Likewise.
85047         * lib/printf-frexpl.h: Likewise.
85048         * lib/printf.c: Likewise.
85049         * lib/progname.c: Likewise.
85050         * lib/progname.h: Likewise.
85051         * lib/progreloc.c: Likewise.
85052         * lib/putenv.c: Likewise.
85053         * lib/quote.c: Likewise.
85054         * lib/quote.h: Likewise.
85055         * lib/quotearg.c: Likewise.
85056         * lib/quotearg.h: Likewise.
85057         * lib/raise.c: Likewise.
85058         * lib/readline.c: Likewise.
85059         * lib/readline.h: Likewise.
85060         * lib/readlink.c: Likewise.
85061         * lib/readtokens.c: Likewise.
85062         * lib/readtokens.h: Likewise.
85063         * lib/readtokens0.c: Likewise.
85064         * lib/readtokens0.h: Likewise.
85065         * lib/readutmp.c: Likewise.
85066         * lib/readutmp.h: Likewise.
85067         * lib/realloc.c: Likewise.
85068         * lib/relocwrapper.c: Likewise.
85069         * lib/rename-dest-slash.c: Likewise.
85070         * lib/rename.c: Likewise.
85071         * lib/rmdir.c: Likewise.
85072         * lib/rpmatch.c: Likewise.
85073         * lib/safe-read.c: Likewise.
85074         * lib/safe-read.h: Likewise.
85075         * lib/safe-write.c: Likewise.
85076         * lib/safe-write.h: Likewise.
85077         * lib/same-inode.h: Likewise.
85078         * lib/same.c: Likewise.
85079         * lib/same.h: Likewise.
85080         * lib/save-cwd.c: Likewise.
85081         * lib/save-cwd.h: Likewise.
85082         * lib/savedir.c: Likewise.
85083         * lib/savedir.h: Likewise.
85084         * lib/savewd.c: Likewise.
85085         * lib/savewd.h: Likewise.
85086         * lib/search.in.h: Likewise.
85087         * lib/setenv.c: Likewise.
85088         * lib/setenv.h: Likewise.
85089         * lib/settime.c: Likewise.
85090         * lib/sh-quote.c: Likewise.
85091         * lib/sh-quote.h: Likewise.
85092         * lib/sig2str.c: Likewise.
85093         * lib/sig2str.h: Likewise.
85094         * lib/signal.in.h: Likewise.
85095         * lib/signbitd.c: Likewise.
85096         * lib/signbitf.c: Likewise.
85097         * lib/signbitl.c: Likewise.
85098         * lib/sigprocmask.c: Likewise.
85099         * lib/sincosl.c: Likewise.
85100         * lib/sleep.c: Likewise.
85101         * lib/sprintf.c: Likewise.
85102         * lib/sqrtl.c: Likewise.
85103         * lib/stat-time.h: Likewise.
85104         * lib/stdio--.h: Likewise.
85105         * lib/stdio-safer.h: Likewise.
85106         * lib/stdlib--.h: Likewise.
85107         * lib/stdlib-safer.h: Likewise.
85108         * lib/stdlib.in.h: Likewise.
85109         * lib/stpcpy.c: Likewise.
85110         * lib/stpncpy.c: Likewise.
85111         * lib/strchrnul.c: Likewise.
85112         * lib/strcspn.c: Likewise.
85113         * lib/strerror.c: Likewise.
85114         * lib/strftime.c: Likewise.
85115         * lib/strftime.h: Likewise.
85116         * lib/striconveh.c: Likewise.
85117         * lib/striconveh.h: Likewise.
85118         * lib/striconveha.c: Likewise.
85119         * lib/striconveha.h: Likewise.
85120         * lib/stripslash.c: Likewise.
85121         * lib/strnlen1.c: Likewise.
85122         * lib/strnlen1.h: Likewise.
85123         * lib/strtod.c: Likewise.
85124         * lib/strtoimax.c: Likewise.
85125         * lib/strtok_r.c: Likewise.
85126         * lib/strtol.c: Likewise.
85127         * lib/strtoll.c: Likewise.
85128         * lib/strtoul.c: Likewise.
85129         * lib/strtoull.c: Likewise.
85130         * lib/sysexits.in.h: Likewise.
85131         * lib/tempname.c: Likewise.
85132         * lib/tempname.h: Likewise.
85133         * lib/timespec.h: Likewise.
85134         * lib/tls.c: Likewise.
85135         * lib/tls.h: Likewise.
85136         * lib/tmpdir.c: Likewise.
85137         * lib/tmpdir.h: Likewise.
85138         * lib/tmpfile-safer.c: Likewise.
85139         * lib/tmpfile.c: Likewise.
85140         * lib/trigl.c: Likewise.
85141         * lib/trigl.h: Likewise.
85142         * lib/trim.c: Likewise.
85143         * lib/trim.h: Likewise.
85144         * lib/trunc.c: Likewise.
85145         * lib/truncf.c: Likewise.
85146         * lib/truncl.c: Likewise.
85147         * lib/tsearch.c: Likewise.
85148         * lib/unicodeio.c: Likewise.
85149         * lib/unicodeio.h: Likewise.
85150         * lib/unistd--.h: Likewise.
85151         * lib/unistd-safer.h: Likewise.
85152         * lib/unistdio/ulc-fprintf.c: Likewise.
85153         * lib/unistdio/ulc-vfprintf.c: Likewise.
85154         * lib/unlinkdir.c: Likewise.
85155         * lib/unlinkdir.h: Likewise.
85156         * lib/unlocked-io.h: Likewise.
85157         * lib/unsetenv.c: Likewise.
85158         * lib/userspec.c: Likewise.
85159         * lib/utime.c: Likewise.
85160         * lib/utimecmp.c: Likewise.
85161         * lib/utimecmp.h: Likewise.
85162         * lib/utimens.c: Likewise.
85163         * lib/verify.h: Likewise.
85164         * lib/verror.c: Likewise.
85165         * lib/verror.h: Likewise.
85166         * lib/version-etc-fsf.c: Likewise.
85167         * lib/version-etc.c: Likewise.
85168         * lib/version-etc.h: Likewise.
85169         * lib/vfprintf.c: Likewise.
85170         * lib/vprintf.c: Likewise.
85171         * lib/vsprintf.c: Likewise.
85172         * lib/w32spawn.h: Likewise.
85173         * lib/wait-process.c: Likewise.
85174         * lib/wait-process.h: Likewise.
85175         * lib/wcwidth.c: Likewise.
85176         * lib/write-any-file.c: Likewise.
85177         * lib/xalloc-die.c: Likewise.
85178         * lib/xalloc.h: Likewise.
85179         * lib/xasprintf.c: Likewise.
85180         * lib/xgetcwd.c: Likewise.
85181         * lib/xgetcwd.h: Likewise.
85182         * lib/xgetdomainname.c: Likewise.
85183         * lib/xgetdomainname.h: Likewise.
85184         * lib/xgethostname.c: Likewise.
85185         * lib/xmalloc.c: Likewise.
85186         * lib/xmalloca.c: Likewise.
85187         * lib/xmalloca.h: Likewise.
85188         * lib/xmemcoll.c: Likewise.
85189         * lib/xnanosleep.c: Likewise.
85190         * lib/xreadlink.c: Likewise.
85191         * lib/xreadlink.h: Likewise.
85192         * lib/xsetenv.c: Likewise.
85193         * lib/xsetenv.h: Likewise.
85194         * lib/xstriconv.c: Likewise.
85195         * lib/xstriconv.h: Likewise.
85196         * lib/xstrndup.c: Likewise.
85197         * lib/xstrndup.h: Likewise.
85198         * lib/xstrtod.c: Likewise.
85199         * lib/xstrtod.h: Likewise.
85200         * lib/xstrtol-error.c: Likewise.
85201         * lib/xstrtol.c: Likewise.
85202         * lib/xstrtol.h: Likewise.
85203         * lib/xtime.h: Likewise.
85204         * lib/xvasprintf.c: Likewise.
85205         * lib/xvasprintf.h: Likewise.
85206         * lib/yesno.c: Likewise.
85207         * lib/yesno.h: Likewise.
85208         * posix-modules: Likewise.
85209         * tests/test-alloca-opt.c: Likewise.
85210         * tests/test-arcfour.c: Likewise.
85211         * tests/test-arctwo.c: Likewise.
85212         * tests/test-argmatch.c: Likewise.
85213         * tests/test-argp-2.sh: Likewise.
85214         * tests/test-argp.c: Likewise.
85215         * tests/test-arpa_inet.c: Likewise.
85216         * tests/test-array_list.c: Likewise.
85217         * tests/test-array_oset.c: Likewise.
85218         * tests/test-atexit.c: Likewise.
85219         * tests/test-avltree_list.c: Likewise.
85220         * tests/test-avltree_oset.c: Likewise.
85221         * tests/test-avltreehash_list.c: Likewise.
85222         * tests/test-base64.c: Likewise.
85223         * tests/test-binary-io.c: Likewise.
85224         * tests/test-byteswap.c: Likewise.
85225         * tests/test-c-ctype.c: Likewise.
85226         * tests/test-c-strcasecmp.c: Likewise.
85227         * tests/test-c-strcasestr.c: Likewise.
85228         * tests/test-c-strncasecmp.c: Likewise.
85229         * tests/test-c-strstr.c: Likewise.
85230         * tests/test-canonicalize-lgpl.c: Likewise.
85231         * tests/test-canonicalize.c: Likewise.
85232         * tests/test-carray_list.c: Likewise.
85233         * tests/test-ceilf.c: Likewise.
85234         * tests/test-ceill.c: Likewise.
85235         * tests/test-count-one-bits.c: Likewise.
85236         * tests/test-crc.c: Likewise.
85237         * tests/test-dirname.c: Likewise.
85238         * tests/test-fbufmode.c: Likewise.
85239         * tests/test-fcntl.c: Likewise.
85240         * tests/test-fflush.c: Likewise.
85241         * tests/test-floorf.c: Likewise.
85242         * tests/test-floorl.c: Likewise.
85243         * tests/test-fopen.c: Likewise.
85244         * tests/test-fprintf-posix.c: Likewise.
85245         * tests/test-fprintf-posix.h: Likewise.
85246         * tests/test-fpurge.c: Likewise.
85247         * tests/test-freadable.c: Likewise.
85248         * tests/test-freadahead.c: Likewise.
85249         * tests/test-freading.c: Likewise.
85250         * tests/test-freopen.c: Likewise.
85251         * tests/test-frexp.c: Likewise.
85252         * tests/test-frexpl.c: Likewise.
85253         * tests/test-fseek.c: Likewise.
85254         * tests/test-fseeko.c: Likewise.
85255         * tests/test-fseterr.c: Likewise.
85256         * tests/test-fstrcmp.c: Likewise.
85257         * tests/test-ftell.c: Likewise.
85258         * tests/test-ftello.c: Likewise.
85259         * tests/test-fwritable.c: Likewise.
85260         * tests/test-fwriting.c: Likewise.
85261         * tests/test-getaddrinfo.c: Likewise.
85262         * tests/test-getpass.c: Likewise.
85263         * tests/test-gettimeofday.c: Likewise.
85264         * tests/test-hmac-md5.c: Likewise.
85265         * tests/test-hmac-sha1.c: Likewise.
85266         * tests/test-iconv.c: Likewise.
85267         * tests/test-iconvme.c: Likewise.
85268         * tests/test-inttypes.c: Likewise.
85269         * tests/test-isnan.c: Likewise.
85270         * tests/test-isnanf.c: Likewise.
85271         * tests/test-isnanl-nolibm.c: Likewise.
85272         * tests/test-isnanl.c: Likewise.
85273         * tests/test-isnanl.h: Likewise.
85274         * tests/test-ldexpl.c: Likewise.
85275         * tests/test-linked_list.c: Likewise.
85276         * tests/test-linkedhash_list.c: Likewise.
85277         * tests/test-locale.c: Likewise.
85278         * tests/test-localename.c: Likewise.
85279         * tests/test-lock.c: Likewise.
85280         * tests/test-lseek.c: Likewise.
85281         * tests/test-malloca.c: Likewise.
85282         * tests/test-math.c: Likewise.
85283         * tests/test-mbscasecmp.c: Likewise.
85284         * tests/test-mbscasestr1.c: Likewise.
85285         * tests/test-mbscasestr2.c: Likewise.
85286         * tests/test-mbscasestr3.c: Likewise.
85287         * tests/test-mbscasestr4.c: Likewise.
85288         * tests/test-mbschr.c: Likewise.
85289         * tests/test-mbscspn.c: Likewise.
85290         * tests/test-mbsncasecmp.c: Likewise.
85291         * tests/test-mbspbrk.c: Likewise.
85292         * tests/test-mbspcasecmp.c: Likewise.
85293         * tests/test-mbsrchr.c: Likewise.
85294         * tests/test-mbsspn.c: Likewise.
85295         * tests/test-mbsstr1.c: Likewise.
85296         * tests/test-mbsstr2.c: Likewise.
85297         * tests/test-mbsstr3.c: Likewise.
85298         * tests/test-md5.c: Likewise.
85299         * tests/test-memmem.c: Likewise.
85300         * tests/test-netinet_in.c: Likewise.
85301         * tests/test-open.c: Likewise.
85302         * tests/test-printf-frexp.c: Likewise.
85303         * tests/test-printf-frexpl.c: Likewise.
85304         * tests/test-printf-posix.c: Likewise.
85305         * tests/test-printf-posix.h: Likewise.
85306         * tests/test-rbtree_list.c: Likewise.
85307         * tests/test-rbtree_oset.c: Likewise.
85308         * tests/test-rbtreehash_list.c: Likewise.
85309         * tests/test-read-file.c: Likewise.
85310         * tests/test-rijndael.c: Likewise.
85311         * tests/test-search.c: Likewise.
85312         * tests/test-signbit.c: Likewise.
85313         * tests/test-sleep.c: Likewise.
85314         * tests/test-snprintf-posix.c: Likewise.
85315         * tests/test-snprintf-posix.h: Likewise.
85316         * tests/test-snprintf.c: Likewise.
85317         * tests/test-sprintf-posix.c: Likewise.
85318         * tests/test-sprintf-posix.h: Likewise.
85319         * tests/test-stat-time.c: Likewise.
85320         * tests/test-stdbool.c: Likewise.
85321         * tests/test-stdint.c: Likewise.
85322         * tests/test-stdio.c: Likewise.
85323         * tests/test-stdlib.c: Likewise.
85324         * tests/test-stpncpy.c: Likewise.
85325         * tests/test-strcasestr.c: Likewise.
85326         * tests/test-striconv.c: Likewise.
85327         * tests/test-striconveh.c: Likewise.
85328         * tests/test-striconveha.c: Likewise.
85329         * tests/test-string.c: Likewise.
85330         * tests/test-sys_select.c: Likewise.
85331         * tests/test-sys_socket.c: Likewise.
85332         * tests/test-sys_stat.c: Likewise.
85333         * tests/test-sys_time.c: Likewise.
85334         * tests/test-sysexits.c: Likewise.
85335         * tests/test-time.c: Likewise.
85336         * tests/test-tls.c: Likewise.
85337         * tests/test-trunc.c: Likewise.
85338         * tests/test-truncf.c: Likewise.
85339         * tests/test-truncl.c: Likewise.
85340         * tests/test-unistd.c: Likewise.
85341         * tests/test-vasnprintf-posix.c: Likewise.
85342         * tests/test-vasnprintf-posix2.c: Likewise.
85343         * tests/test-vasnprintf.c: Likewise.
85344         * tests/test-vasprintf-posix.c: Likewise.
85345         * tests/test-vasprintf.c: Likewise.
85346         * tests/test-verify.c: Likewise.
85347         * tests/test-vfprintf-posix.c: Likewise.
85348         * tests/test-vprintf-posix.c: Likewise.
85349         * tests/test-vsnprintf-posix.c: Likewise.
85350         * tests/test-vsnprintf.c: Likewise.
85351         * tests/test-vsprintf-posix.c: Likewise.
85352         * tests/test-wchar.c: Likewise.
85353         * tests/test-wctype.c: Likewise.
85354         * tests/test-wcwidth.c: Likewise.
85355         * tests/test-xstrtol.c: Likewise.
85356         * tests/test-xvasprintf.c: Likewise.
85357         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85358         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85359         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85360         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85361         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85362         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85363         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85364         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85365         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85366         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85367         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85368         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85369         * tests/uniname/test-uninames.c: Likewise.
85370         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85371         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85372         * tests/unistdio/test-u16-printf1.h: Likewise.
85373         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85374         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85375         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85376         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85377         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85378         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85379         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85380         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85381         * tests/unistdio/test-u32-printf1.h: Likewise.
85382         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85383         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85384         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85385         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85386         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85387         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85388         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85389         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85390         * tests/unistdio/test-u8-printf1.h: Likewise.
85391         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85392         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85393         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85394         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85395         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85396         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85397         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85398         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85399         * tests/unistdio/test-ulc-printf1.h: Likewise.
85400         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85401         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85402         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85403         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85404         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85405         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85406         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85407         * tests/uniwidth/test-u16-width.c: Likewise.
85408         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85409         * tests/uniwidth/test-u32-width.c: Likewise.
85410         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85411         * tests/uniwidth/test-u8-width.c: Likewise.
85412         * tests/uniwidth/test-uc_width.c: Likewise.
85413         * config/srclist-update: Likewise.
85414         (fixlicense): Update to GPLv3+.
85416         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85417         * tests/test-tsearch.c: Change copyright notice.
85419         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85420         * lib/c-strcaseeq.h: Change copyright notice.
85421         * lib/streq.h: Likewise.
85422         * lib/uniconv.h: Likewise.
85423         * lib/uniconv/u-conv-from-enc.h: Likewise.
85424         * lib/uniconv/u-conv-to-enc.h: Likewise.
85425         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85426         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85427         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85428         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85429         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85430         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85431         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85432         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85433         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85434         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85435         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85436         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85437         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85438         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85439         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85440         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85441         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85442         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85443         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85444         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85445         * lib/uniname.h: Likewise.
85446         * lib/uniname/uniname.c: Likewise.
85447         * lib/unistdio.h: Likewise.
85448         * lib/unistdio/u-asnprintf.h: Likewise.
85449         * lib/unistdio/u-asprintf.h: Likewise.
85450         * lib/unistdio/u-printf-args.c: Likewise.
85451         * lib/unistdio/u-printf-args.h: Likewise.
85452         * lib/unistdio/u-printf-parse.h: Likewise.
85453         * lib/unistdio/u-snprintf.h: Likewise.
85454         * lib/unistdio/u-sprintf.h: Likewise.
85455         * lib/unistdio/u-vasprintf.h: Likewise.
85456         * lib/unistdio/u-vsnprintf.h: Likewise.
85457         * lib/unistdio/u-vsprintf.h: Likewise.
85458         * lib/unistdio/u16-asnprintf.c: Likewise.
85459         * lib/unistdio/u16-asprintf.c: Likewise.
85460         * lib/unistdio/u16-printf-parse.c: Likewise.
85461         * lib/unistdio/u16-snprintf.c: Likewise.
85462         * lib/unistdio/u16-sprintf.c: Likewise.
85463         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85464         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85465         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85466         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85467         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85468         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85469         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85470         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85471         * lib/unistdio/u16-vasnprintf.c: Likewise.
85472         * lib/unistdio/u16-vasprintf.c: Likewise.
85473         * lib/unistdio/u16-vsnprintf.c: Likewise.
85474         * lib/unistdio/u16-vsprintf.c: Likewise.
85475         * lib/unistdio/u32-asnprintf.c: Likewise.
85476         * lib/unistdio/u32-asprintf.c: Likewise.
85477         * lib/unistdio/u32-printf-parse.c: Likewise.
85478         * lib/unistdio/u32-snprintf.c: Likewise.
85479         * lib/unistdio/u32-sprintf.c: Likewise.
85480         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85481         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85482         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85483         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85484         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85485         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85486         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85487         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85488         * lib/unistdio/u32-vasnprintf.c: Likewise.
85489         * lib/unistdio/u32-vasprintf.c: Likewise.
85490         * lib/unistdio/u32-vsnprintf.c: Likewise.
85491         * lib/unistdio/u32-vsprintf.c: Likewise.
85492         * lib/unistdio/u8-asnprintf.c: Likewise.
85493         * lib/unistdio/u8-asprintf.c: Likewise.
85494         * lib/unistdio/u8-printf-parse.c: Likewise.
85495         * lib/unistdio/u8-snprintf.c: Likewise.
85496         * lib/unistdio/u8-sprintf.c: Likewise.
85497         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85498         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85499         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85500         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85501         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85502         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85503         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85504         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85505         * lib/unistdio/u8-vasnprintf.c: Likewise.
85506         * lib/unistdio/u8-vasprintf.c: Likewise.
85507         * lib/unistdio/u8-vsnprintf.c: Likewise.
85508         * lib/unistdio/u8-vsprintf.c: Likewise.
85509         * lib/unistdio/ulc-asnprintf.c: Likewise.
85510         * lib/unistdio/ulc-asprintf.c: Likewise.
85511         * lib/unistdio/ulc-printf-parse.c: Likewise.
85512         * lib/unistdio/ulc-snprintf.c: Likewise.
85513         * lib/unistdio/ulc-sprintf.c: Likewise.
85514         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85515         * lib/unistdio/ulc-vasprintf.c: Likewise.
85516         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85517         * lib/unistdio/ulc-vsprintf.c: Likewise.
85518         * lib/unistr.h: Likewise.
85519         * lib/unistr/u-cpy-alloc.h: Likewise.
85520         * lib/unistr/u-cpy.h: Likewise.
85521         * lib/unistr/u-endswith.h: Likewise.
85522         * lib/unistr/u-move.h: Likewise.
85523         * lib/unistr/u-set.h: Likewise.
85524         * lib/unistr/u-startswith.h: Likewise.
85525         * lib/unistr/u-stpcpy.h: Likewise.
85526         * lib/unistr/u-stpncpy.h: Likewise.
85527         * lib/unistr/u-strcat.h: Likewise.
85528         * lib/unistr/u-strcpy.h: Likewise.
85529         * lib/unistr/u-strcspn.h: Likewise.
85530         * lib/unistr/u-strdup.h: Likewise.
85531         * lib/unistr/u-strlen.h: Likewise.
85532         * lib/unistr/u-strncat.h: Likewise.
85533         * lib/unistr/u-strncpy.h: Likewise.
85534         * lib/unistr/u-strnlen.h: Likewise.
85535         * lib/unistr/u-strpbrk.h: Likewise.
85536         * lib/unistr/u-strspn.h: Likewise.
85537         * lib/unistr/u-strstr.h: Likewise.
85538         * lib/unistr/u-strtok.h: Likewise.
85539         * lib/unistr/u16-check.c: Likewise.
85540         * lib/unistr/u16-chr.c: Likewise.
85541         * lib/unistr/u16-cmp.c: Likewise.
85542         * lib/unistr/u16-cpy-alloc.c: Likewise.
85543         * lib/unistr/u16-cpy.c: Likewise.
85544         * lib/unistr/u16-endswith.c: Likewise.
85545         * lib/unistr/u16-mblen.c: Likewise.
85546         * lib/unistr/u16-mbsnlen.c: Likewise.
85547         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85548         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85549         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85550         * lib/unistr/u16-mbtouc.c: Likewise.
85551         * lib/unistr/u16-mbtoucr.c: Likewise.
85552         * lib/unistr/u16-move.c: Likewise.
85553         * lib/unistr/u16-next.c: Likewise.
85554         * lib/unistr/u16-prev.c: Likewise.
85555         * lib/unistr/u16-set.c: Likewise.
85556         * lib/unistr/u16-startswith.c: Likewise.
85557         * lib/unistr/u16-stpcpy.c: Likewise.
85558         * lib/unistr/u16-stpncpy.c: Likewise.
85559         * lib/unistr/u16-strcat.c: Likewise.
85560         * lib/unistr/u16-strchr.c: Likewise.
85561         * lib/unistr/u16-strcmp.c: Likewise.
85562         * lib/unistr/u16-strcpy.c: Likewise.
85563         * lib/unistr/u16-strcspn.c: Likewise.
85564         * lib/unistr/u16-strdup.c: Likewise.
85565         * lib/unistr/u16-strlen.c: Likewise.
85566         * lib/unistr/u16-strmblen.c: Likewise.
85567         * lib/unistr/u16-strmbtouc.c: Likewise.
85568         * lib/unistr/u16-strncat.c: Likewise.
85569         * lib/unistr/u16-strncmp.c: Likewise.
85570         * lib/unistr/u16-strncpy.c: Likewise.
85571         * lib/unistr/u16-strnlen.c: Likewise.
85572         * lib/unistr/u16-strpbrk.c: Likewise.
85573         * lib/unistr/u16-strrchr.c: Likewise.
85574         * lib/unistr/u16-strspn.c: Likewise.
85575         * lib/unistr/u16-strstr.c: Likewise.
85576         * lib/unistr/u16-strtok.c: Likewise.
85577         * lib/unistr/u16-to-u32.c: Likewise.
85578         * lib/unistr/u16-to-u8.c: Likewise.
85579         * lib/unistr/u16-uctomb-aux.c: Likewise.
85580         * lib/unistr/u16-uctomb.c: Likewise.
85581         * lib/unistr/u32-check.c: Likewise.
85582         * lib/unistr/u32-chr.c: Likewise.
85583         * lib/unistr/u32-cmp.c: Likewise.
85584         * lib/unistr/u32-cpy-alloc.c: Likewise.
85585         * lib/unistr/u32-cpy.c: Likewise.
85586         * lib/unistr/u32-endswith.c: Likewise.
85587         * lib/unistr/u32-mblen.c: Likewise.
85588         * lib/unistr/u32-mbsnlen.c: Likewise.
85589         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85590         * lib/unistr/u32-mbtouc.c: Likewise.
85591         * lib/unistr/u32-mbtoucr.c: Likewise.
85592         * lib/unistr/u32-move.c: Likewise.
85593         * lib/unistr/u32-next.c: Likewise.
85594         * lib/unistr/u32-prev.c: Likewise.
85595         * lib/unistr/u32-set.c: Likewise.
85596         * lib/unistr/u32-startswith.c: Likewise.
85597         * lib/unistr/u32-stpcpy.c: Likewise.
85598         * lib/unistr/u32-stpncpy.c: Likewise.
85599         * lib/unistr/u32-strcat.c: Likewise.
85600         * lib/unistr/u32-strchr.c: Likewise.
85601         * lib/unistr/u32-strcmp.c: Likewise.
85602         * lib/unistr/u32-strcpy.c: Likewise.
85603         * lib/unistr/u32-strcspn.c: Likewise.
85604         * lib/unistr/u32-strdup.c: Likewise.
85605         * lib/unistr/u32-strlen.c: Likewise.
85606         * lib/unistr/u32-strmblen.c: Likewise.
85607         * lib/unistr/u32-strmbtouc.c: Likewise.
85608         * lib/unistr/u32-strncat.c: Likewise.
85609         * lib/unistr/u32-strncmp.c: Likewise.
85610         * lib/unistr/u32-strncpy.c: Likewise.
85611         * lib/unistr/u32-strnlen.c: Likewise.
85612         * lib/unistr/u32-strpbrk.c: Likewise.
85613         * lib/unistr/u32-strrchr.c: Likewise.
85614         * lib/unistr/u32-strspn.c: Likewise.
85615         * lib/unistr/u32-strstr.c: Likewise.
85616         * lib/unistr/u32-strtok.c: Likewise.
85617         * lib/unistr/u32-to-u16.c: Likewise.
85618         * lib/unistr/u32-to-u8.c: Likewise.
85619         * lib/unistr/u32-uctomb.c: Likewise.
85620         * lib/unistr/u8-check.c: Likewise.
85621         * lib/unistr/u8-chr.c: Likewise.
85622         * lib/unistr/u8-cmp.c: Likewise.
85623         * lib/unistr/u8-cpy-alloc.c: Likewise.
85624         * lib/unistr/u8-cpy.c: Likewise.
85625         * lib/unistr/u8-endswith.c: Likewise.
85626         * lib/unistr/u8-mblen.c: Likewise.
85627         * lib/unistr/u8-mbsnlen.c: Likewise.
85628         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85629         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85630         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85631         * lib/unistr/u8-mbtouc.c: Likewise.
85632         * lib/unistr/u8-mbtoucr.c: Likewise.
85633         * lib/unistr/u8-move.c: Likewise.
85634         * lib/unistr/u8-next.c: Likewise.
85635         * lib/unistr/u8-prev.c: Likewise.
85636         * lib/unistr/u8-set.c: Likewise.
85637         * lib/unistr/u8-startswith.c: Likewise.
85638         * lib/unistr/u8-stpcpy.c: Likewise.
85639         * lib/unistr/u8-stpncpy.c: Likewise.
85640         * lib/unistr/u8-strcat.c: Likewise.
85641         * lib/unistr/u8-strchr.c: Likewise.
85642         * lib/unistr/u8-strcmp.c: Likewise.
85643         * lib/unistr/u8-strcpy.c: Likewise.
85644         * lib/unistr/u8-strcspn.c: Likewise.
85645         * lib/unistr/u8-strdup.c: Likewise.
85646         * lib/unistr/u8-strlen.c: Likewise.
85647         * lib/unistr/u8-strmblen.c: Likewise.
85648         * lib/unistr/u8-strmbtouc.c: Likewise.
85649         * lib/unistr/u8-strncat.c: Likewise.
85650         * lib/unistr/u8-strncmp.c: Likewise.
85651         * lib/unistr/u8-strncpy.c: Likewise.
85652         * lib/unistr/u8-strnlen.c: Likewise.
85653         * lib/unistr/u8-strpbrk.c: Likewise.
85654         * lib/unistr/u8-strrchr.c: Likewise.
85655         * lib/unistr/u8-strspn.c: Likewise.
85656         * lib/unistr/u8-strstr.c: Likewise.
85657         * lib/unistr/u8-strtok.c: Likewise.
85658         * lib/unistr/u8-to-u16.c: Likewise.
85659         * lib/unistr/u8-to-u32.c: Likewise.
85660         * lib/unistr/u8-uctomb-aux.c: Likewise.
85661         * lib/unistr/u8-uctomb.c: Likewise.
85662         * lib/unitypes.h: Likewise.
85663         * lib/uniwidth.h: Likewise.
85664         * lib/uniwidth/cjk.h: Likewise.
85665         * lib/uniwidth/u16-strwidth.c: Likewise.
85666         * lib/uniwidth/u16-width.c: Likewise.
85667         * lib/uniwidth/u32-strwidth.c: Likewise.
85668         * lib/uniwidth/u32-width.c: Likewise.
85669         * lib/uniwidth/u8-strwidth.c: Likewise.
85670         * lib/uniwidth/u8-width.c: Likewise.
85671         * lib/uniwidth/width.c: Likewise.
85673 2007-10-07  Bruno Haible  <bruno@clisp.org>
85675         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85676         The file is still under LGPL (see modules/inttypes).
85678 2007-10-06  Bruno Haible  <bruno@clisp.org>
85680         * modules/trunc (Dependencies): Add 'extensions'.
85681         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85682         Reported by Ben Pfaff <blp@gnu.org>.
85684 2007-10-06  Bruno Haible  <bruno@clisp.org>
85686         * modules/freopen-tests: New file.
85687         * tests/test-freopen.c: New file.
85689         * modules/fopen-tests: New file.
85690         * tests/test-fopen.c: New file.
85692         * modules/fopen: New file.
85693         * lib/fopen.c: New file.
85694         * m4/fopen.m4: New file.
85695         * modules/freopen: New file.
85696         * lib/freopen.c: New file.
85697         * m4/freopen.m4: New file.
85698         * lib/stdio.in.h (fopen, freopen): New declarations.
85699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85700         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85701         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85702         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85703         * doc/functions/fopen.texi: Mention the 'fopen' module.
85704         * doc/functions/freopen.texi: Mention the 'freopen' module.
85706 2007-10-06  Bruno Haible  <bruno@clisp.org>
85708         * modules/open-tests: New file.
85709         * tests/test-open.c: New file.
85711         * modules/open: New file.
85712         * lib/open.c: New file.
85713         * m4/open.m4: New file.
85714         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85715         lib/open.c does.
85716         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85717         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85718         macros.
85719         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85720         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85721         REPLACE_OPEN.
85722         * doc/functions/open.texi: Mention the 'open' module.
85724 2007-10-04  Bruno Haible  <bruno@clisp.org>
85726         * modules/ceill-tests: New file.
85727         * tests/test-ceill.c: New file.
85729         * modules/ceill: New file.
85730         * lib/ceill.c: Replace entire file.
85731         * m4/ceill.m4: New file.
85732         * lib/math.in.h (ceill): Replace declaration.
85733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85734         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85735         * doc/functions/ceill.texi: Mention the 'ceill' module.
85736         * modules/mathl (Files): Remove lib/ceill.c.
85737         (Depends-on): Add ceill.
85739 2007-10-04  Bruno Haible  <bruno@clisp.org>
85741         * modules/ceilf-tests: New file.
85742         * tests/test-ceilf.c: New file.
85744         * modules/ceilf: New file.
85745         * lib/ceil.c: New file.
85746         * lib/ceilf.c: New file.
85747         * m4/ceilf.m4: New file.
85748         * lib/math.in.h (ceilf): New declaration.
85749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85750         HAVE_DECL_CEILF.
85751         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85752         HAVE_DECL_CEILF.
85753         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85755 2007-10-04  Bruno Haible  <bruno@clisp.org>
85757         * modules/floorl-tests: New file.
85758         * tests/test-floorl.c: New file.
85760         * modules/floorl: New file.
85761         * lib/floorl.c: Replace entire file.
85762         * m4/floorl.m4: New file.
85763         * lib/math.in.h (floorl): Replace declaration.
85764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85765         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85766         * doc/functions/floorl.texi: Mention the 'floorl' module.
85767         * modules/mathl (Files): Remove lib/floorl.c.
85768         (Depends-on): Add floorl.
85770 2007-10-04  Bruno Haible  <bruno@clisp.org>
85772         * modules/floorf-tests: New file.
85773         * tests/test-floorf.c: New file.
85775         * modules/floorf: New file.
85776         * lib/floor.c: New file.
85777         * lib/floorf.c: New file.
85778         * m4/floorf.m4: New file.
85779         * lib/math.in.h (floorf): New declaration.
85780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85781         HAVE_DECL_FLOORF.
85782         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85783         HAVE_DECL_FLOORF.
85784         * doc/functions/floorf.texi: Mention the 'floorf' module.
85786 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85787             Bruno Haible  <bruno@clisp.org>
85789         Advertise for the Git server instead of the CVS server.
85790         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85791         repository instead of the CVS one.
85792         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85793         about all VCS systems generically.
85794         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85796 2007-10-04  Bruno Haible  <bruno@clisp.org>
85798         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85799         means.
85800         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85802 2007-10-04  Bruno Haible  <bruno@clisp.org>
85804         * modules/truncl-tests: New file.
85805         * tests/test-truncl.c: New file.
85807         * modules/truncl: New file.
85808         * lib/truncl.c: New file.
85809         * m4/truncl.m4: New file.
85810         * lib/math.in.h (truncl): New declaration.
85811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85812         HAVE_DECL_TRUNCL.
85813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85814         HAVE_DECL_TRUNCL.
85815         * doc/functions/truncl.texi: Mention the 'truncl' module.
85817 2007-10-04  Bruno Haible  <bruno@clisp.org>
85819         * modules/truncf-tests: New file.
85820         * tests/test-truncf.c: New file.
85822         * modules/truncf: New file.
85823         * lib/trunc.c: Make paramerizable through USE_* macros.
85824         * lib/truncf.c: New file.
85825         * m4/truncf.m4: New file.
85826         * lib/math.in.h (truncf): New declaration.
85827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85828         HAVE_DECL_TRUNCF.
85829         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85830         HAVE_DECL_TRUNCF.
85831         * doc/functions/truncf.texi: Mention the 'truncf' module.
85833 2007-10-03  Bruno Haible  <bruno@clisp.org>
85835         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85836         augmentation also for tests modules.
85837         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85838         * modules/atexit-tests (Makefile.am): Likewise.
85839         * modules/binary-io-tests (Makefile.am): Likewise.
85840         * modules/c-strcase-tests (Makefile.am): Likewise.
85841         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85842         * modules/canonicalize-tests (Makefile.am): Likewise.
85843         * modules/closein-tests (Makefile.am): Likewise.
85844         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85845         * modules/freadahead-tests (Makefile.am): Likewise.
85846         * modules/fseek-tests (Makefile.am): Likewise.
85847         * modules/fseeko-tests (Makefile.am): Likewise.
85848         * modules/ftell-tests (Makefile.am): Likewise.
85849         * modules/ftello-tests (Makefile.am): Likewise.
85850         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85851         * modules/isnanl-tests (Makefile.am): Likewise.
85852         * modules/lseek-tests (Makefile.am): Likewise.
85853         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85854         * modules/mbscasestr-tests (Makefile.am): Likewise.
85855         * modules/mbschr-tests (Makefile.am): Likewise.
85856         * modules/mbscspn-tests (Makefile.am): Likewise.
85857         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85858         * modules/mbspbrk-tests (Makefile.am): Likewise.
85859         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85860         * modules/mbsrchr-tests (Makefile.am): Likewise.
85861         * modules/mbsspn-tests (Makefile.am): Likewise.
85862         * modules/mbsstr-tests (Makefile.am): Likewise.
85863         * modules/printf-posix-tests (Makefile.am): Likewise.
85864         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85865         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85866         * modules/tsearch-tests (Makefile.am): Likewise.
85867         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85868         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85869         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85870         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85871         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85872         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85873         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85874         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85875         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85876         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85877         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85878         * modules/xstrtol-tests (Makefile.am): Likewise.
85879         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85880         * modules/yesno-tests (Makefile.am): Likewise.
85882 2007-10-03  Bruno Haible  <bruno@clisp.org>
85884         * modules/trunc-tests: New file.
85885         * tests/test-trunc.c: New file.
85887         * modules/trunc: New file.
85888         * lib/trunc.c: New file.
85889         * m4/trunc.m4: New file.
85890         * lib/math.in.h (trunc): New declaration.
85891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85892         HAVE_DECL_TRUNC.
85893         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85894         HAVE_DECL_TRUNC.
85895         * doc/functions/trunc.texi: Mention the 'trunc' module.
85897 2007-10-03  Bruno Haible  <bruno@clisp.org>
85899         * tests/test-fpending.c: New file, mostly copied
85900         from coreutils/lib/t-fpending.c.
85901         * modules/fpending-tests: New file.
85903 2007-10-03  Bruno Haible  <bruno@clisp.org>
85905         Port the stdio extensions to QNX (untested).
85906         * lib/fseterr.c (fseterr): Add support for QNX.
85907         * lib/fbufmode.c (fbufmode): Likewise.
85908         * lib/freadable.c (freadable): Likewise.
85909         * lib/fwritable.c (fwritable): Likewise.
85910         * lib/freading.c (freading): Likewise.
85911         * lib/fwriting.c (fwriting): Likewise.
85912         * lib/freadahead.c (freadahed): Likewise.
85913         * lib/fpurge.c (fpurge): Likewise.
85914         * lib/fseeko.c (rpl_fseeko): Likewise.
85916 2007-10-03  Bruno Haible  <bruno@clisp.org>
85917             Jim Meyering  <jim@meyering.net>
85918             Eric Blake  <ebb9@byu.net>
85920         * doc/relocatable.texi: Use @command instead of @program.
85922 2007-10-02  Jim Meyering  <jim@meyering.net>
85924         Perform one more "_.h" -> ".in.h" substitution.
85925         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85926         instead of unistd_.h here, too.
85928 2007-10-01  Bruno Haible  <bruno@clisp.org>
85930         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85931         Needed for the alloca-opt module.
85933 2007-09-30  Bruno Haible  <bruno@clisp.org>
85935         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85936         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85937         alloca_.h.
85938         * lib/argz.in.h: Renamed from lib/argz_.h.
85939         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85940         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85941         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85942         byteswap_.h.
85943         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85944         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85945         dirent_.h.
85946         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85947         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85948         fcntl_.h.
85949         * lib/float.in.h: Renamed from lib/float_.h.
85950         * modules/float (Files, Makefile.am): Use float.in.h instead of
85951         float_.h.
85952         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85953         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85954         fnmatch_.h.
85955         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85956         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85957         getopt_.h.
85958         * lib/glob.in.h: Renamed from lib/glob_.h.
85959         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85960         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85961         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85962         iconv_.h.
85963         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85964         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85965         inttypes_.h.
85966         * lib/locale.in.h: Renamed from lib/locale_.h.
85967         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85968         locale_.h.
85969         * lib/math.in.h: Renamed from lib/math_.h.
85970         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85971         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85972         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85973         of netinet_in_.h. Add dependency.
85974         * lib/poll.in.h: Renamed from lib/poll_.h.
85975         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85976         * lib/search.in.h: Renamed from lib/search_.h.
85977         * modules/search (Files, Makefile.am): Use search.in.h instead of
85978         search_.h.
85979         * lib/signal.in.h: Renamed from lib/signal_.h.
85980         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85981         _signal.h.
85982         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85983         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85984         stdbool_.h.
85985         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85986         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85987         stdint_.h.
85988         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85989         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85990         stdio_.h.
85991         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85992         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85993         stdlib_.h.
85994         * lib/string.in.h: Renamed from lib/string_.h.
85995         * modules/string (Files, Makefile.am): Use string.in.h instead of
85996         string_.h.
85997         * doc/gnulib-tool.texi (Initial import): Update.
85998         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85999         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
86000         of sys_select_.h. Add dependency.
86001         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
86002         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
86003         of sys_socket_.h.
86004         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
86005         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
86006         sys_stat_.h.
86007         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
86008         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
86009         sys_time_.h.
86010         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
86011         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
86012         sysexits_.h.
86013         * lib/time.in.h: Renamed from lib/time_.h.
86014         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
86015         * lib/unistd.in.h: Renamed from lib/unistd_.h.
86016         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
86017         unistd_.h.
86018         * lib/wchar.in.h: Renamed from lib/wchar_.h.
86019         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
86020         wchar_.h.
86021         * lib/wctype.in.h: Renamed from lib/wctype_.h.
86022         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
86023         wctype_.h.
86024         * build-aux/bootstrap (slurp): Update.
86025         * lib/.cppi-disable: Update.
86027 2007-09-30  Bruno Haible  <bruno@clisp.org>
86029         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
86030         Needed on BeOS.
86032 2007-09-30  Bruno Haible  <bruno@clisp.org>
86034         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
86036 2007-09-29  Bruno Haible  <bruno@clisp.org>
86038         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
86040 2007-09-29  Bruno Haible  <bruno@clisp.org>
86042         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
86043         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
86044         * build-aux/install-reloc: Compile also areadlink.c.
86045         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
86047 2007-09-29  Bruno Haible  <bruno@clisp.org>
86049         * gnulib-tool (func_emit_initmacro_done): Indentation.
86051 2007-09-29  Bruno Haible  <bruno@clisp.org>
86053         * README: Add CVS checkout update instructions.
86054         Info from Bob Proulx <bob@proulx.com>.
86056 2007-09-28  Eric Blake  <ebb9@byu.net>
86058         Provide move-if-change.
86059         * build-aux/move-if-change: New file, based on best practice
86060         rather than any canonical upstream location.
86062 2007-09-28  Jim Meyering  <jim@meyering.net>
86064         Fix canonicalize loop-detection corner case.
86065         Do not attempt to stat the symlink values stored via seen_triple.
86066         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
86067         on linux-2.6.18, (but not 2.6.22).
86068         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
86069         triple_compare.  The former compares dev,ino,filename, while the latter
86070         would actually stat dirname(filename) when dev and ino were equal.
86071         * lib/hash-triple.c: Install <string.h>.
86072         (STREQ): Define.
86073         (triple_compare_ino_str): New function.
86074         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
86076 2007-09-28  Eric Blake  <ebb9@byu.net>
86078         Enforce that AC_REPLACE_FUNCS files exist.
86079         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
86080         override check for typos.
86082         Fix test-closein on Solaris 10.
86083         * tests/test-closein.c (main): Don't assume stdin can be inherited
86084         closed on all systems.
86085         * tests/test-closein.sh: Likewise.
86086         Reported by Piotr Tarnowski.
86088 2007-09-28  Jim Meyering  <jim@meyering.net>
86090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
86092 2007-09-27  Jim Meyering  <jim@meyering.net>
86094         canonicalize: Avoid a false-positive cycle failure.
86095         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
86096         Sort.  Remove cycle-check.
86097         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
86098         not cycle-check.h.
86099         (seen_triple): New function.
86100         (canonicalize_filename_mode): Use it instead of cycle-check.
86101         * tests/test-canonicalize.c: Add a test for this bug.
86102         * tests/test-canonicalize.sh: Set up and run the test.
86104         New module, file-set, from coreutils.
86105         * modules/file-set: Define it.
86106         * lib/file-set.c, lib/file-set.h: Implement.
86108         New module, hash-triple, from coreutils.
86109         * modules/hash-triple: Define it.
86110         * lib/hash-triple.c, lib/hash-triple.h: Implement.
86112 2007-09-25  Eric Blake  <ebb9@byu.net>
86114         Fix strerror on Interix.
86115         * lib/string_.h (strerror): Declare replacement.
86116         * doc/functions/strerror.texi (strerror): Document the Interix
86117         shortcoming.
86118         * modules/string (Makefile.am): Support new hooks.
86119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
86120         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
86121         gl_FUNC_STRERROR_SEPARATE.
86122         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
86123         * lib/strerror.c (rpl_strerror): Provide replacement.
86124         * modules/strerror (Depends-on): Add string.
86125         (configure.ac): Detect use of module.
86126         * tests/test-strerror.c: New file.
86127         * modules/strerror-tests: New test module.
86128         * modules/argp (Depends-on): Add strerror.
86129         * modules/error (Depends-on): Likewise.
86130         Reported by Martin Koeppe.
86132 2007-09-24  Bruno Haible  <bruno@clisp.org>
86134         * README: Update git instructions.
86136 2007-09-24  Eric Blake  <ebb9@byu.net>
86138         Revert fpending breakage from 2007-09-08.
86139         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
86140         __fpending.c.
86142 2007-09-24  Jim Meyering  <jim@meyering.net>
86144         filenamecat.c: Add a test.
86145         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
86146         showing how the function works when DIR is the empty string.
86148 2007-09-21  Simon Josefsson  <simon@josefsson.org>
86150         * tests/test-canonicalize.sh: Turn on executable bit.
86152 2007-09-19  Eric Blake  <ebb9@byu.net>
86154         * README: Update CVS instructions.
86156 2007-09-18  Bruno Haible  <bruno@clisp.org>
86158         * modules/areadlink: New file.
86159         * lib/areadlink.h (areadlink): New declaration.
86160         * lib/areadlink.c: New file, based on lib/xreadlink.c.
86162 2007-09-17  Jim Meyering  <jim@meyering.net>
86164         * lib/savewd.c (ESTALE) [!defined]: Define.
86165         Reported to be required on Interix by Martin Koeppe.
86167 2007-09-17  Bruno Haible  <bruno@clisp.org>
86169         * gnulib-tool (func_version): Use $version.
86171 2007-09-16  Bruno Haible  <bruno@clisp.org>
86173         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
86174         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
86175         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
86176         Reported by Greg Schafer <gschafer@zip.com.au>.
86178 2007-09-15  Bruno Haible  <bruno@clisp.org>
86180         * gnulib-tool (sed): Try a little harder to make bash understand the
86181         alias.
86182         Reported by Bruce Korb <bruce.korb@gmail.com>.
86184 2007-09-13  Eric Blake  <ebb9@byu.net>
86186         * ChangeLog: Remove conflict markers.
86188 2007-09-13  Simon Josefsson  <simon@josefsson.org>
86190         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
86191         Reported by Bruno Haible <bruno@clisp.org>.
86193 2007-09-12  Bruno Haible  <bruno@clisp.org>
86195         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
86196         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
86197         is not defined.
86199 2007-09-12  Eric Blake  <ebb9@byu.net>
86201         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
86202         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
86203         Autoconf definition.
86204         * modules/euidaccess (Depends-on): Add extensions, for
86205         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
86206         * modules/fnmatch (Depends-on): Likewise.
86207         * modules/getaddrinfo (Depends-on): Likewise.
86208         * modules/getdelim (Depends-on): Likewise.
86209         * modules/getline (Depends-on): Likewise.
86210         * modules/getsubopt (Depends-on): Likewise.
86211         * modules/gettext (Depends-on): Likewise.
86212         * modules/group-member (Depends-on): Likewise.
86213         * modules/mbchar (Depends-on): Likewise.
86214         * modules/memmem (Depends-on): Likewise.
86215         * modules/mempcpy (Depends-on): Likewise.
86216         * modules/memrchr (Depends-on): Likewise.
86217         * modules/pagealign_alloc (Depends-on): Likewise.
86218         * modules/readutmp (Depends-on): Likewise.
86219         * modules/stpcpy (Depends-on): Likewise.
86220         * modules/stpncpy (Depends-on): Likewise.
86221         * modules/strchrnul (Depends-on): Likewise.
86222         * modules/strndup (Depends-on): Likewise.
86223         * modules/strsep (Depends-on): Likewise.
86224         * modules/strverscmp (Depends-on): Likewise.
86225         * modules/vasprintf (Depends-on): Likewise.
86226         * modules/wcwidth (Depends-on): Likewise.
86227         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
86228         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
86229         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
86230         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
86231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
86232         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86233         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
86234         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
86235         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
86236         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
86237         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
86238         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86239         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86240         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
86241         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
86242         * m4/readutmp.m4 (gl_READUTMP): Likewise.
86243         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86244         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86246         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86247         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86248         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86249         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86250         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
86251         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
86252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86253         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
86254         so that lock.m4 can be used in gettext without extensions module.
86256 2007-09-11  Bruno Haible  <bruno@clisp.org>
86258         * m4/isc-posix.m4: Remove file.
86259         Suggested by Eric Blake.
86261 2007-09-11  Eric Blake  <ebb9@byu.net>
86263         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
86265 2007-09-10  Bruno Haible  <bruno@clisp.org>
86267         * posix-modules: Fix typo in error message.
86268         Reported by Matt <mkraai@beckman.com>.
86270 2007-09-09  Bruno Haible  <bruno@clisp.org>
86272         * doc/functions/getdelim.texi: Update list of platforms lacking the
86273         function.
86274         * doc/functions/getline.texi: Likewise.
86276 2007-09-09  Jim Meyering  <jim@meyering.net>
86278         * lib/hash.c (hash_initialize): Detect calloc failure.
86279         Reported by Bruno Haible.
86281 2007-09-09  Bruno Haible  <bruno@clisp.org>
86283         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
86284         malloc or realloc fails.
86286 2007-09-09  Bruno Haible  <bruno@clisp.org>
86288         * modules/getcwd (Depends-on): Add malloc-posix.
86289         * modules/glob (Depends-on): Likewise.
86290         * modules/putenv (Depends-on): Likewise.
86291         * modules/strdup (Depends-on): Likewise.
86292         * modules/getdelim (Depends-on): Add realloc-posix.
86293         * modules/read-file (Depends-on): Likewise.
86295 2007-09-09  Bruno Haible  <bruno@clisp.org>
86297         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
86298         (gl_FUNC_MALLOC_POSIX): Require it.
86299         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
86300         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
86301         * modules/realloc (Files): Add m4/malloc.m4.
86302         * modules/calloc (Files): Likewise.
86304 2007-09-09  Bruno Haible  <bruno@clisp.org>
86306         * modules/malloc-posix: New file.
86307         * modules/malloc (Depends-on): Add malloc-posix.
86308         * lib/malloc.c: Include errno.h.
86309         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
86310         and a POSIX-compatible malloc into a single function. Set ENOMEM
86311         when returning NULL.
86312         * m4/malloc.m4: New file.
86313         * doc/functions/malloc.texi: Mention the malloc-posix module.
86314         * lib/stdlib_.h (malloc): New declaration.
86315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86316         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
86317         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
86318         and HAVE_MALLOC_POSIX.
86320 2007-09-09  Bruno Haible  <bruno@clisp.org>
86322         * modules/realloc-posix: New file.
86323         * modules/realloc (Depends-on): Add realloc-posix.
86324         * lib/realloc.c: Include errno.h.
86325         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
86326         and a POSIX-compatible realloc into a single function. Set ENOMEM
86327         when returning NULL.
86328         * m4/realloc.m4: New file.
86329         * doc/functions/realloc.texi: Mention the realloc-posix module.
86330         * lib/stdlib_.h (realloc): New declaration.
86331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86332         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
86333         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
86334         and HAVE_REALLOC_POSIX.
86336 2007-09-09  Bruno Haible  <bruno@clisp.org>
86338         * modules/calloc-posix: New file.
86339         * modules/calloc (Depends-on): Add calloc-posix.
86340         * lib/calloc.c: Include errno.h.
86341         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
86342         and a POSIX-compatible calloc into a single function. Set ENOMEM
86343         when returning NULL.
86344         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
86345         * doc/functions/calloc.texi: Mention the calloc-posix module.
86346         * lib/stdlib_.h (calloc): New declaration.
86347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86348         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
86349         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
86350         and HAVE_CALLOC_POSIX.
86352 2007-09-09  Bruno Haible  <bruno@clisp.org>
86354         Allow for modules to show an arbitrary notice.
86355         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
86356         * gnulib-tool: New option --extract-notice.
86357         (func_usage): Document it.
86358         (sed_extract_prog): Update.
86359         (func_get_notice): New function.
86360         (func_modules_notice): New function.
86361         (func_import, func_create_testdir): Invoke it.
86362         Suggested by Jim Meyering.
86364 2007-09-09  Bruno Haible  <bruno@clisp.org>
86366         * gnulib-tool: New options --verbose, --quiet.
86367         (func_usage): Document them.
86368         (verbose): New variable.
86369         (func_execute_command): New function.
86370         (func_import): Don't show the module list and the file list if
86371         $verbose < 0.
86372         (func_create_testdir): Likewise. Use func_execute_command.
86373         (func_create_megatestdir): Use func_execute_command.
86375 2007-09-08  Bruno Haible  <bruno@clisp.org>
86377         * gnulib-tool (func_import): Prefer rsync over wget when available,
86378         for fetching the PO files.
86380 2007-09-08  Bruno Haible  <bruno@clisp.org>
86382         * posix-modules: New file. Portions copied from gnulib-tool.
86383         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86385 2007-09-08  Jim Meyering  <jim@meyering.net>
86387         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86388         * lib/fpending.h: Rename from __fpending.h.
86389         * lib/fpending.c: Rename from __fpending.c.
86390         Include "fpending.h", not "__fpending.h".
86391         * lib/__fpending.h, lib/__fpending.c: Remove files.
86392         * modules/fpending (Files): Reflect new file names.
86393         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86395 2007-09-08  Bruno Haible  <bruno@clisp.org>
86397         * m4/inttypes-h.m4: Remove stub file.
86399 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86401         * doc/headers/stdint.texi: Discuss #include_next issue.
86403 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86405         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86407 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86409         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86410         in variable name.
86412 2007-09-03  Jim Meyering  <jim@meyering.net>
86414         New module: git-version-gen.
86415         * modules/git-version-gen: New file.
86417         Import changes from coreutils for bootstrap script.
86419         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86421         bootstrap: uses rsync to download the .po files
86422         * build-aux/bootstrap (po_download_command_format): New global.
86423         (download_po_files): Use rsync.
86424         (update_po_files): Don't remove .po files after download,
86425         so future rsync runs can take advantage of the copies.
86427         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86429         Solve the unnecessary-.po-file-regeneration problem once and for all.
86430         * build-aux/bootstrap (download_po_files): New function, renamed from
86431         get_translations.  Now, downloads, but doesn't update LINGUAS.
86432         (update_po_files): New function.
86434         bootstrap: Ignore more.
86435         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86436         uniwidth to e.g., lib/.gitignore.
86437         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86439         * build-aux/bootstrap: New setting: vc_ignore.
86440         (insert_sorted_if_absent): Create $file if absent.
86441         Adapt to new, possibly empty, list: $vc_ignore.
86443         bootstrap: generate more ignorable names
86444         * build-aux/bootstrap (slurp): When generating ignorable names,
86445         also map .sin to .sed, .gperf to .c, and .y to .c.
86447 2007-09-03  Jim Meyering  <jim@meyering.net>
86449         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86450         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86452 2007-09-02  Bruno Haible  <bruno@clisp.org>
86454         Fix mis-recognition of 'mcs' on QNX 6.
86455         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86456         output contains the string "Mono".
86457         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86458         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86460 2007-09-01  Bruno Haible  <bruno@clisp.org>
86462         Fix collision between uniwidth/* and linebreak modules.
86463         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86464         u32_width): Remove declarations.
86465         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86466         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86467         streq3, streq2, streq1, streq0): Remove functions.
86468         (STREQ): Remove macro.
86469         (is_cjk_encoding): Remove function.
86470         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86471         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86472         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86473         * NEWS: Document the change.
86475 2007-09-01  Bruno Haible  <bruno@clisp.org>
86477         * lib/streq.h: Add double-inclusion guard.
86479 2007-09-01  Karl Berry  <karl@gnu.org>
86481         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86483 2007-08-28  Jim Meyering  <jim@meyering.net>
86485         Rename mreadlink_with_size to areadlink_with_size.
86486         * NEWS: Document the change.
86487         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86488         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86489         * lib/mreadlink.h: Rename this to...
86490         * lib/areadlink.h: ...this.
86491         * modules/mreadlink-with-size: Rename this to...
86492         * modules/areadlink-with-size: ...this.
86493         * lib/canonicalize.c: Reflect the renaming.
86494         * modules/canonicalize: Likewise.
86496 2007-08-26  Bruno Haible  <bruno@clisp.org>
86498         * gnulib-tool (func_import): When deciding which files to remove,
86499         consider also dangling symbolic links.
86500         Reported by Eric Blake.
86502 2007-08-26  Bruno Haible  <bruno@clisp.org>
86504         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86506 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86508         * lib/readline.c: Don't include getline.h, the prototype is now
86509         found in stdio.h.
86511 2007-08-23  Jim Meyering  <jim@meyering.net>
86513         Getdelim touchup.
86514         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86515         around the funlockfile call, since funlockfile never sets errno.
86516         Don't set errno upon failed realloc.
86518 2007-08-22  Eric Blake  <ebb9@byu.net>
86520         Getline touchups.
86521         * lib/getdelim.c (getdelim): Revert regression that required *n to
86522         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86523         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86524         getdelim, rather than whether implementation is missing.
86525         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86526         * lib/stdio_.h (getline): Also declare if replacement is
86527         required.
86528         * doc/functions/getdelim.texi: New file.
86529         * doc/functions/getline.texi: Likewise.
86530         * doc/gnulib.texi (Function Substitutes): Add new files.
86531         Reported by Bruno Haible.
86533 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86535         * users.txt: Add Guile.
86537 2007-08-22  Eric Blake  <ebb9@byu.net>
86539         * tests/test-getdelim.c (main): Use remove, not unlink.
86540         * tests/test-getline.c (main): Likewise.
86542         Move getline and getdelim into stdio.h, per POSIX 200x.
86543         * modules/getline (Files): Remove getline.h.
86544         (Depends-on): Add stdio.
86545         (configure.ac): Add module indicator.
86546         * modules/getdelim (Files): Remove getdelim.h.
86547         (Depends-on): Add stdio.
86548         (configure.ac): Add module indicator.
86549         * modules/stdio (Makefile.am): Work with new indicators.
86550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86551         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86552         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86553         * lib/getdelim.h: Delete.
86554         * lib/getline.h: Delete.
86555         * lib/stdio_.h (getdelim, getline): Declare.
86556         * modules/getdelim-tests: New module.
86557         * modules/getline-tests: Likewise.
86558         * tests/test-getdelim.c: New file.
86559         * tests/test-getline.c: Likewise.
86560         * NEWS: Document the change.
86561         * lib/getline.c: Update choice of header.
86562         * lib/csharpcomp.c: Likewise.
86563         * lib/getpass.c: Likewise.
86564         * lib/javacomp.c: Likewise.
86565         * lib/javaversion.c: Likewise.
86566         * lib/yesno.c: Likewise.
86567         * lib/getdelim.c: Likewise.
86568         (getdelim): Set errno on failure, and avoid memory leak.
86570 2007-08-19  Bruno Haible  <bruno@clisp.org>
86572         * modules/closein (Depends-on): Add freadahead.
86573         * lib/closein.c: Include freadahead.h.
86574         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86575         is zero.
86577 2007-08-19  Bruno Haible  <bruno@clisp.org>
86579         * modules/freadahead-tests: New file.
86580         * tests/test-freadahead.sh: New file.
86581         * tests/test-freadahead.c: New file.
86583         * modules/freadahead: New file.
86584         * lib/freadahead.h: New file.
86585         * lib/freadahead.c: New file.
86586         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86587         fbufmode, fpurge, freadable, fwritable.
86589 2007-08-19  Eric Blake  <ebb9@byu.net>
86591         Test yesno in combination with closein.
86592         * lib/yesno.c (yesno): Document use of stdin.
86593         * modules/yesno-tests (Files): New module.
86594         * tests/test-yesno.c (main): New file.
86595         * tests/test-yesno.sh: Likewise.
86597 2007-08-19  Bruno Haible  <bruno@clisp.org>
86599         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86600         * lib/fseeko.c (rpl_fseeko): Likewise.
86601         * lib/fseterr.c (fseterr): Likewise.
86603 2007-08-19  Bruno Haible  <bruno@clisp.org>
86605         * tests/test-lseek.c (main): Disable a test for BeOS.
86606         * doc/functions/lseek.texi: Document the BeOS bug.
86608 2007-08-19  Bruno Haible  <bruno@clisp.org>
86609             Eric Blake  <ebb9@byu.net>
86611         * lib/lseek.c: Include <sys/stat.h>.
86612         (rpl_lseek): Add workaround code also for Unix platforms.
86613         Needed for BeOS.
86614         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86615         * doc/functions/lseek.texi: Document BeOS definiency.
86617 2007-08-18  Bruno Haible  <bruno@clisp.org>
86619         * modules/fstrcmp-tests: New file.
86620         * tests/test-fstrcmp.c: New file.
86622 2007-08-18  Bruno Haible  <bruno@clisp.org>
86624         * modules/fstrcmp: New file, from GNU gettext with modifications.
86625         * lib/fstrcmp.h: New file, from GNU gettext.
86626         * lib/fstrcmp.c: New file, from GNU gettext.
86627         * MODULES.html.sh (String handling): Add fstrcmp.
86629 2007-08-18  Bruno Haible  <bruno@clisp.org>
86631         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86632         'bool'.
86633         (diag, compareseq): Remove const from the ctxt argument.
86634         (USE_HEURISTIC): Undefine at the end.
86636 2007-08-18  Jim Meyering  <jim@meyering.net>
86638         New file: lib/idcache.h
86639         * NEWS: Mention the addition.
86640         * modules/idcache (Files): Add lib/idcache.h
86641         * lib/idcache.c: Include "idcache.h".
86642         Don't include <sys/types.h>.
86643         Add a FIXME comment.
86644         Move file-scoped "static" declarations to the top.
86645         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86647 2007-08-17  Bruno Haible  <bruno@clisp.org>
86648         and Paul Eggert  <eggert@cs.ucla.edu>
86650         * MODULES.html.sh: Add diffseq.
86651         * modules/diffseq: New file.
86652         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86653         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86655 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86657         Import changes from coreutils for bootstrap script.
86659         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86661         * build-aux/bootstrap (slurp): Work even in environments where
86662         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86663         current code does not slurp files whose names start with ".", and
86664         this looks like it might be a troublesome area.
86666         2007-07-11  Jim Meyering  <jim@meyering.net>
86668         If there's a GPL vN copyright comment, require that N == 3.
86670         2007-07-08  Jim Meyering  <jim@meyering.net>
86672         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86673         * build-aux/bootstrap (mam_template): Move definition out of loop.
86675         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86677         * build-aux/bootstrap (symlink_to_dir): Rename function from
86678         symlink_to_gnulib.  Add a directory parameter.  Update all
86679         callers.
86680         (cp_mark_as_generated): Also check for -- and link to -- files in
86681         gl/.
86683         2007-07-08  Jim Meyering  <jim@meyering.net>
86685         Adapt to deeper hierarchy in gnulib.
86686         * build-aux/bootstrap (symlink_to_dir): If the destination
86687         directory doesn't exist, create it. This is required at least for
86688         "lib/uniwidth/cjk.h".
86690         2007-05-15  Jim Meyering  <jim@meyering.net>
86692         * build-aux/bootstrap: Now that generated Makefile.am files
86693         are no longer under version control, they must be created at
86694         bootstrap time.
86696 2007-08-14  Ben Pfaff  <blp@gnu.org>
86698         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86700 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86702         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86703         given the changes below.
86704         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86705         even on hosts that have padding bits beyond the supported 64.
86707 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86709         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86710         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86711         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86712         depends on it.
86713         (xstrtol_error): Remove.
86714         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86715         but with a different signature.
86716         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86717         * lib/xstrtol-error.c: Include exitfail.h.
86718         (xstrtol_fatal): New function, with a different signature from the
86719         old xstrtol_error, so that the caller need not worry about passing
86720         in an exit status, or about storage management of the option argument.
86721         (xstrtol_error): Now a static function.  Redo signature to
86722         implement xstrtol_fatal.  Output the correct number of hyphens in
86723         front of the option so that the caller need not worry about
86724         storage management.
86725         (N_): New macro.
86726         (_): Remove; not used now.
86727         * modules/xstrtol: Depend on getopt.
86728         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86729         of old STRTOL_FATAL_ERROR macro.
86730         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86731         of test program.
86732         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86733         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86735 2007-08-08  Eric Blake  <ebb9@byu.net>
86737         * lib/xstrtol-error.c: Add missing include.
86739         Move xstrtol messages into gnulib domain, when --pobase is used.
86740         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86741         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86742         * modules/xstrtol (Files): Distribute new file.
86743         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86744         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86745         * tests/test-xstrtol.c: ...into new file.
86746         * tests/test-xstrtoul.c: Also test xstrtoul.
86747         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86748         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86749         * tests/test-xstrtol.sh: Drive the tests.
86750         * tests/test-xstrtoimax.sh: Likewise.
86751         * tests/test-xstrtoumax.sh: Likewise.
86752         * modules/xstrtol-tests: New module.
86753         * modules/xstrtoimax-tests: Likewise.
86754         * modules/xstrtoumax-tests: Likewise.
86756 2007-08-08  Jim Meyering  <jim@meyering.net>
86758         New function: mfile_name_concat.
86759         * lib/filenamecat.c (mfile_name_concat): New function, just like
86760         file_name_concat, but return NULL upon failure rather than exiting
86761         with a diagnostic.
86762         * lib/filenamecat.h: Declare it.
86764 2007-08-07  Bruno Haible  <bruno@clisp.org>
86766         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86767         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86768         warning from gcc.
86769         Reported by Eric Blake.
86771 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86773         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86774         * modules/crypto/arcfour (License): Likewise.
86775         * modules/crypto/des-tests (License): Likewise.
86776         * modules/crypto/gc-arctwo-tests (License): Likewise.
86777         * modules/crypto/gc-des-tests (License): Likewise.
86778         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86779         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86780         * modules/crypto/gc-md2-tests (License): Likewise.
86781         * modules/crypto/gc-md4-tests (License): Likewise.
86782         * modules/crypto/gc-md5-tests (License): Likewise.
86783         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86784         * modules/crypto/gc-rijndael-tests (License): Likewise.
86785         * modules/crypto/gc-sha1-tests (License): Likewise.
86786         * modules/crypto/gc-tests (License): Likewise.
86787         * modules/crypto/hmac-md5 (License): Likewise.
86788         * modules/crypto/hmac-sha1 (License): Likewise.
86789         * modules/crypto/md2-tests (License): Likewise.
86790         * modules/crypto/md4-tests (License): Likewise.
86791         * modules/crypto/md5 (License): Likewise.
86792         * modules/crypto/rijndael (License): Likewise.
86793         * modules/crypto/sha1 (License): Likewise.
86794         * modules/memxor (License): Likewise.
86796 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86797         and Bruno Haible  <bruno@clisp.org>
86799         * NEWS: Describe interface changes to human, xstrtol.
86800         * lib/human.h: Include <xstrtol.h>.
86801         (human_options): Return enum strtol_error, not int.  Remove
86802         bool arg; take int * instead.
86803         * lib/human.c: Don't include "gettext.h".
86804         (_): Remove; no longer used.
86805         Don't include <xstrtol.h>, since human.h does it.
86806         (human_options): Adjust to abovementioned interface changes.
86807         Do not report error to stderr; that's now the caller's
86808         responsibility.
86809         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86810         interface change.
86811         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86812         Str, Argument_type_string.  All uses changed.  Put " argument"
86813         in diagnostics to make them clearer.  Change wording of suffix
86814         message for clarity.
86815         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86816         Argument_type_string.
86817         (STRTOL_FATAL_WARN): Remove; no longer used.
86818         * modules/human (Depends-on): Remove gettext-h.
86820 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86822         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86824 2007-07-31  Bruno Haible  <bruno@clisp.org>
86826         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86827         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86828         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86830 2007-07-31  Bruno Haible  <bruno@clisp.org>
86832         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86833         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86835 2007-07-30  Bruno Haible  <bruno@clisp.org>
86837         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86838         * modules/c-ctype (License): Likewise.
86839         * modules/c-strcase (License): Likewise.
86840         * modules/check-version (License): Likewise.
86841         * modules/iconv (License): Likewise.
86842         * modules/iconv_open (License): Likewise.
86843         * modules/read-file (License): Likewise.
86844         * modules/striconv (License): Likewise.
86845         * modules/strverscmp (License): Likewise.
86846         * modules/vasprintf (License): Likewise.
86847         * modules/crypto/des (License): Likewise.
86848         * modules/crypto/gc (License): Likewise.
86849         * modules/crypto/gc-arcfour (License): Likewise.
86850         * modules/crypto/gc-arctwo (License): Likewise.
86851         * modules/crypto/gc-des (License): Likewise.
86852         * modules/crypto/gc-hmac-md5 (License): Likewise.
86853         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86854         * modules/crypto/gc-md2 (License): Likewise.
86855         * modules/crypto/gc-md4 (License): Likewise.
86856         * modules/crypto/gc-md5 (License): Likewise.
86857         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86858         * modules/crypto/gc-random (License): Likewise.
86859         * modules/crypto/gc-rijndael (License): Likewise.
86860         * modules/crypto/gc-sha1 (License): Likewise.
86861         * modules/crypto/md2 (License): Likewise.
86862         * modules/crypto/md4 (License): Likewise.
86864 2007-07-30  Jim Meyering  <jim@meyering.net>
86866         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86867         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86868         it has valid stat data.  This bug would cause du not to count the
86869         sizes of inaccessible directories.
86870         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86871         in <http://bugzilla.redhat.com/250077>.
86873 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86874             Bruno Haible  <bruno@clisp.org>
86876         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86877         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86878         #include_next, gives a diagnostic about it, but reports no error in
86879         the exit code.
86880         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86882 2007-07-24  Ben Pfaff  <blp@gnu.org>
86884         Improve name: "count-one-bits" is better than "popcount".
86885         * MODULES.html.sh: Update name.
86886         * lib/popcount.h: Renamed lib/count-one-bits.h.
86887         (popcount): Renamed count_one_bits.
86888         (popcountl): Renamed count_one_bits_l.
86889         (popcountll): Renamed count_one_bits_ll.
86890         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86891         * modules/popcount: Renamed module/count-one-bits.
86892         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86893         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86895 2007-07-23  Ben Pfaff  <blp@gnu.org>
86897         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86898         better code generation, and add U to large constants to avoid
86899         warnings, in non-GCC case.
86900         Suggested by Bruno Haible.
86902 2007-07-23  Ben Pfaff  <blp@gnu.org>
86904         * lib/popcount.h: Use verify_true instead of if...abort.
86905         * modules/popcount: Depend on verify module.
86906         Suggested by Jim Meyering.
86908 2007-07-23  Bruno Haible  <bruno@clisp.org>
86910         * gnulib-tool (func_import): Create a .cvsignore file also when the
86911         directory is not yet in CVS but the toplevel directory is. When
86912         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86913         Reported by Karl Berry.
86915 2007-07-22  Ben Pfaff  <blp@gnu.org>
86917         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86918         case.
86919         Suggested by Eric Blake.
86921 2007-07-22  Ben Pfaff  <blp@gnu.org>
86923         New module: popcount.
86924         * MODULES.html.sh: Add popcount.
86925         * modules/popcount: New file.
86926         * modules/popcount-tests: New file.
86927         * tests/test-popcount.c: New file.
86928         * lib/popcount.h: New file.
86929         * m4/popcount.m4: New file.
86931 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86933         * build-aux/announce-gen: Update to GPLv3.
86935         * build-aux/config.guess: Update from config.
86937 2007-07-21  Bruno Haible  <bruno@clisp.org>
86939         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86940         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86942 2007-07-20  Jim Meyering  <jim@meyering.net>
86944         * check-module: Diagnose a self-dependency.
86946 2007-07-19  Bruno Haible  <bruno@clisp.org>
86948         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86949         empty.
86950         Reported by Eric Blake.
86952 2007-07-18  Bruno Haible  <bruno@clisp.org>
86954         * gnulib-tool: New options --po-base, --po-domain.
86955         (func_usage): Document them.
86956         (pobase, po_domain): New variables.
86957         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86958         DEFAULT_TEXT_DOMAIN.
86959         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86960         (func_import): Consider pobase and po_domain. Create a po/ directory.
86961         (func_create_testdir): Set pobase and po_domain to empty.
86962         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86963         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86965 2007-07-18  Bruno Haible  <bruno@clisp.org>
86967         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86968         EXTRA_DIST augmentation for files in build-aux/.
86970 2007-07-16  Bruno Haible  <bruno@clisp.org>
86972         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86973         * modules/getdelim (License): Likewise.
86975 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86977         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86978         * modules/d-type (License): Likewise.
86979         * modules/extensions (License): Likewise.
86980         * modules/fnmatch (License): Likewise.
86981         * modules/fseeko (License): Likewise.
86982         * modules/getaddrinfo (License): Likewise.
86983         * modules/getline (License): Likewise.
86984         * modules/getlogin_r (License): Likewise.
86985         * modules/getpass (License): Likewise.
86986         * modules/gettimeofday (License): Likewise.
86987         * modules/glob (License): Likewise.
86988         * modules/inet_ntop (License): Likewise.
86989         * modules/malloc (License): Likewise.
86990         * modules/malloca (License): Likewise.
86991         * modules/memmem (License): Likewise.
86992         * modules/mempcpy (License): Likewise.
86993         * modules/memset (License): Likewise.
86994         * modules/minmax (License): Likewise.
86995         * modules/mktime (License): Likewise.
86996         * modules/netinet_in (License): Likewise.
86997         * modules/pathmax (License): Likewise.
86998         * modules/poll (License): Likewise.
86999         * modules/regex (License): Likewise.
87000         * modules/snprintf (License): Likewise.
87001         * modules/stdbool (License): Likewise.
87002         * modules/stdint (License): Likewise.
87003         * modules/stdio (License): Likewise.
87004         * modules/strcase (License): Likewise.
87005         * modules/strcasestr (License): Likewise.
87006         * modules/strdup (License): Likewise.
87007         * modules/string (License): Likewise.
87008         * modules/strndup (License): Likewise.
87009         * modules/strnlen (License): Likewise.
87010         * modules/strpbrk (License): Likewise.
87011         * modules/strptime (License): Likewise.
87012         * modules/strsep (License): Likewise.
87013         * modules/sys_select (License): Likewise.
87014         * modules/sys_socket (License): Likewise.
87015         * modules/sys_stat (License): Likewise.
87016         * modules/sys_time (License): Likewise.
87017         * modules/time (License): Likewise.
87018         * modules/time_r (License): Likewise.
87019         * modules/timegm (License): Likewise.
87020         * modules/unistd (License): Likewise.
87021         * modules/vsnprintf (License): Likewise.
87022         * modules/wctype (License): Likewise.
87024 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87026         * modules/argz (License): LGPLv2+.
87028 2007-07-15  Karl Berry  <karl@gnu.org>
87030         * doc/gnulib.texi: revise node structure per new fdl.texi.
87032 2007-07-14  Bruno Haible  <bruno@clisp.org>
87034         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
87035         the output file.
87036         * lib/uniname/uninames.h: Regenerated.
87038 2007-07-14  Karl Berry  <karl@gnu.org>
87040         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
87041         omitting sectioning and index commands.
87043 2007-07-13  Bruno Haible  <bruno@clisp.org>
87045         New gnulib-tool option --more-symlinks.
87046         * gnulib-tool (func_usage): Document --more-symlinks.
87047         (do_copyrights): New variable.
87048         Recognize option --more-symlinks.
87049         (func_import): Don't add a copyright notice transform to
87050         sed_transform_lib_file if do_copyrights is empty.
87052 2007-07-13  Bruno Haible  <bruno@clisp.org>
87054         * lib/vasnprintf.c (decimal_point_char): Define also if
87055         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
87056         && !NEED_PRINTF_DIRECTIVE_A.
87057         Reported by Clemens Koller <clemens.koller@anagramm.de> via
87058         Gary V. Vaughan <gary@gnu.org>.
87060 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
87062         * lib/inttypes_.h: Undo previous change, since it was fixed
87063         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
87065 2007-07-13  Bruno Haible  <bruno@clisp.org>
87067         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
87068         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
87070 2007-07-13  Jim Meyering  <jim@meyering.net>
87072         df: Don't fail for Tru64's "file-on-file mount".
87073         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
87074         so we fall through and use statfs instead.  Details here:
87075         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
87076         Reported by Albert Chin.
87078 2007-07-13  Bruno Haible  <bruno@clisp.org>
87080         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
87081         * modules/configmake (License): Likewise.
87082         * modules/gettext (License): Likewise.
87083         * modules/gettext-h (License): Likewise.
87084         * modules/include_next (License): Likewise.
87085         * modules/link-warning (License): Likewise.
87086         * modules/localcharset (License): Likewise.
87087         * modules/localename (License): Likewise.
87088         * modules/lock (License): Likewise.
87089         * modules/relocatable-lib-lgpl (License): Likewise.
87090         * modules/size_max (License): Likewise.
87091         * modules/vasnprintf (License): Likewise.
87092         * modules/wchar (License): Likewise.
87093         * modules/xsize (License): Likewise.
87095 2007-07-13  Bruno Haible  <bruno@clisp.org>
87097         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
87098         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
87100 2007-07-12  Bruno Haible  <bruno@clisp.org>
87102         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
87103         in the modules files.
87105 2007-07-11  Karl Berry  <karl@gnu.org>
87107         * MODULES.html.sh (func_module): use
87108          sed -e '\|^'"${includefile}"'$|d'
87109          instead of /.../d, to avoid errors on $includefile's containing /.
87111 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
87113         * gnulib-tool (func_import): Avoid duplication of --avoid
87114         statements
87115         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
87116         names to `_' in variable names.
87118 2007-07-10  Eric Blake  <ebb9@byu.net>
87120         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
87121         * NEWS: Document this change.
87123 2007-07-08  Bruno Haible  <bruno@clisp.org>
87125         Update to Unicode 5.0.
87126         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
87127         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
87128         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
87129         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
87130         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
87131         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
87132         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
87133         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
87134         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
87135         U+10A3F, U+1D242..U+1D244.
87136         (nonspacing_table_ind): Update.
87137         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
87138         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
87140 2007-07-08  Bruno Haible  <bruno@clisp.org>
87142         Update to Unicode 5.0.
87143         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
87144         code transform. Extend the name index field of unicode_name_to_code and
87145         unicode_code_to_name from 16 to 24 bits.
87146         * lib/uniname/uniname.c (unicode_character_name,
87147         unicode_name_character): Add the range 0x12xxx to the code transform.
87148         * lib/uniname/uninames.h: Regenerated.
87149         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
87151 2007-07-07  Bruno Haible  <bruno@clisp.org>
87153         * modules/wcwidth-tests: New file.
87154         * tests/test-wcwidth.c: New file.
87156         Work around MacOS X wcwidth() bug.
87157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
87158         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
87159         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
87160         original wcwidth in non-UTF-8 locales.
87161         * modules/wcwidth (Depends-on): Add localcharset, streq,
87162         uniwidth/width.
87163         * doc/functions/wcwidth.texi: Update.
87165 2007-07-07  Bruno Haible  <bruno@clisp.org>
87167         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
87168         (wcwidth): New declaration.
87169         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
87170         macros.
87171         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
87172         here. Prepare for creating <wchar.h> unconditionally.
87173         * modules/wchar (Depends-on): Add link-warning.
87174         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
87175         REPLACE_WCWIDTH, and GL_LINK_WARNING.
87176         * lib/wcwidth.h: Remove file.
87177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
87178         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
87179         * modules/wcwidth (Files): Remove lib/wcwidth.h.
87180         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
87181         (Include): Replace wcwidth.h with <wchar.h>.
87182         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
87183         * lib/mbchar.h: Don't include wcwidth.h.
87184         * lib/mbswidth.c: Likewise.
87185         * NEWS: Mention the change.
87187 2007-07-07  Bruno Haible  <bruno@clisp.org>
87189         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
87190         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
87191         definition with an external declaration.
87192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
87193         defined as a function. Remove AC_C_INLINE requirement.
87194         * modules/wcwidth (Files): Add lib/wcwidth.c.
87195         (Makefile.am): Remove redundant statement.
87197 2007-07-07  Bruno Haible  <bruno@clisp.org>
87199         * MODULES.html.sh (Unicode string functions): Add the new modules.
87201         * tests/uniwidth/test-u32-strwidth.c: New file.
87202         * modules/uniwidth/u32-strwidth-tests: New file.
87204         * lib/uniwidth/u32-strwidth.c: New file.
87205         * modules/uniwidth/u32-strwidth: New file.
87207         * tests/uniwidth/test-u16-strwidth.c: New file.
87208         * modules/uniwidth/u16-strwidth-tests: New file.
87210         * lib/uniwidth/u16-strwidth.c: New file.
87211         * modules/uniwidth/u16-strwidth: New file.
87213         * tests/uniwidth/test-u8-strwidth.c: New file.
87214         * modules/uniwidth/u8-strwidth-tests: New file.
87216         * lib/uniwidth/u8-strwidth.c: New file.
87217         * modules/uniwidth/u8-strwidth: New file.
87219         * tests/uniwidth/test-u32-width.c: New file.
87220         * modules/uniwidth/u32-width-tests: New file.
87222         * lib/uniwidth/u32-width.c: New file.
87223         * modules/uniwidth/u32-width: New file.
87225         * tests/uniwidth/test-u16-width.c: New file.
87226         * modules/uniwidth/u16-width-tests: New file.
87228         * lib/uniwidth/u16-width.c: New file.
87229         * modules/uniwidth/u16-width: New file.
87231         * tests/uniwidth/test-u8-width.c: New file.
87232         * modules/uniwidth/u8-width-tests: New file.
87234         * lib/uniwidth/u8-width.c: New file.
87235         * modules/uniwidth/u8-width: New file.
87237         * tests/uniwidth/test-uc_width.c: New file.
87238         * modules/uniwidth/width-tests: New file.
87240         * lib/uniwidth/width.c: New file, from GNU libiconv.
87241         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
87242         * modules/uniwidth/width: New file.
87244         * lib/uniwidth.h: New file, from GNU libiconv.
87245         * modules/uniwidth/base: New file.
87247 2007-07-07  Bruno Haible  <bruno@clisp.org>
87249         * lib/uniname.h: New file, from GNU gettext.
87250         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
87251         * lib/uniname/uninames.h: New file, from GNU gettext.
87252         * lib/uniname/uniname.c: New file, from GNU gettext.
87253         * tests/uniname/test-uninames.sh: New file.
87254         * tests/uniname/test-uninames.c: New file, from GNU gettext.
87255         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
87256         * modules/uniname/base: New file.
87257         * modules/uniname/uniname: New file.
87258         * modules/uniname/uniname-tests: New file.
87259         * MODULES.html.sh (Unicode string functions): Add the new modules.
87261 2007-07-06  Bruno Haible  <bruno@clisp.org>
87263         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
87265 2007-07-06  Bruno Haible  <bruno@clisp.org>
87267         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
87268         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
87269         includes <cygwin/sys_time.h> which includes <sys/select.h> which
87270         include <sys/time.h>.
87271         Reported by Eric Blake.
87273 2007-07-06  Eric Blake  <ebb9@byu.net>
87275         Fix testing canonicalize on cygwin.
87276         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87277         Revert patch from 2007-06-19.
87278         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
87279         canonicalize module is also in use.
87280         * tests/test-canonicalize.c: New file.
87281         * tests/test-canonicalize.sh: Likewise.
87282         * modules/canonicalize-tests: Likewise.
87284 2007-07-06  Jim Meyering  <jim@meyering.net>
87286         * lib/getugroups.c (getugroups): Detect getgrent failure.
87287         Adjust comment to reflect reality: this function may return -1.
87289 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
87291         * build-aux/bootstrap (TP_URL,get_translations): Update to use
87292         the new TP address.
87293         (usage): Fix typo
87294         (gnulib_mk): New variable.
87296 2007-07-05  Jim Meyering  <jim@meyering.net>
87298         Don't let endgrent clobber errno, no matter how improbable.
87299         * lib/getugroups.c (getugroups): Save and restore errno around
87300         endgrent call.
87302         Close the group DB even when failing with 2^31 or more members.
87303         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
87305 2007-07-04  Jim Meyering  <jim@meyering.net>
87307         * lib/getugroups.h: New file.
87308         * lib/getugroups.c: Include "getugroups.h".
87309         Remove uses of "register" keyword.
87310         Move local variable, "cp", down into scope where used.
87311         Give "username" parameter the "const" attribute.
87312         * modules/getugroups (Files): Add lib/getugroups.h
87314 2007-07-04  Karl Berry  <karl@gnu.org>
87316         * MODULES.html.sh (func_all_modules): Complete rename of
87317         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
87319 2007-07-02  Bruno Haible  <bruno@clisp.org>
87321         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
87322         mode, when inttypes.h comes from gnulib.
87323         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87325 2007-07-02  Simon Josefsson  <simon@josefsson.org>
87327         * NEWS: Mention lgpl module name change.
87329         * modules/lgpl-2.1: Renamed from lgpl.
87331         * NEWS: Mention gpl module name change.
87333         * modules/gpl-3.0: New file, based on gpl-2.0.
87335         * modules/gpl-2.0: Renamed from gpl.
87337         * modules/gpl: Fix filename, doc/gpl.texi is now found at
87338         doc/gpl-2.0.texi.
87340 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
87342         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
87343         #define __STDC_LIMIT_MACROS temporarily while including
87344         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
87345         Problem reported by Joel E. Denny in
87346         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
87348 2007-07-01  Bruno Haible  <bruno@clisp.org>
87350         * lib/unistdio.h: New file.
87351         * lib/unistdio/u-asnprintf.h: New file.
87352         * lib/unistdio/u-asprintf.h: New file.
87353         * lib/unistdio/u-printf-args.c: New file.
87354         * lib/unistdio/u-printf-args.h: New file.
87355         * lib/unistdio/u-printf-parse.h: New file.
87356         * lib/unistdio/u-snprintf.h: New file.
87357         * lib/unistdio/u-sprintf.h: New file.
87358         * lib/unistdio/u-vasprintf.h: New file.
87359         * lib/unistdio/u-vsnprintf.h: New file.
87360         * lib/unistdio/u-vsprintf.h: New file.
87361         * lib/unistdio/ulc-asnprintf.c: New file.
87362         * lib/unistdio/ulc-asprintf.c: New file.
87363         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87364         * lib/unistdio/ulc-printf-parse.c: New file.
87365         * lib/unistdio/ulc-snprintf.c: New file.
87366         * lib/unistdio/ulc-sprintf.c: New file.
87367         * lib/unistdio/ulc-vasnprintf.c: New file.
87368         * lib/unistdio/ulc-vasprintf.c: New file.
87369         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87370         * lib/unistdio/ulc-vsnprintf.c: New file.
87371         * lib/unistdio/ulc-vsprintf.c: New file.
87372         * lib/unistdio/u8-asnprintf.c: New file.
87373         * lib/unistdio/u8-asprintf.c: New file.
87374         * lib/unistdio/u8-printf-parse.c: New file.
87375         * lib/unistdio/u8-snprintf.c: New file.
87376         * lib/unistdio/u8-sprintf.c: New file.
87377         * lib/unistdio/u8-vasnprintf.c: New file.
87378         * lib/unistdio/u8-vasprintf.c: New file.
87379         * lib/unistdio/u8-vsnprintf.c: New file.
87380         * lib/unistdio/u8-vsprintf.c: New file.
87381         * lib/unistdio/u8-u8-asnprintf.c: New file.
87382         * lib/unistdio/u8-u8-asprintf.c: New file.
87383         * lib/unistdio/u8-u8-snprintf.c: New file.
87384         * lib/unistdio/u8-u8-sprintf.c: New file.
87385         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87386         * lib/unistdio/u8-u8-vasprintf.c: New file.
87387         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87388         * lib/unistdio/u8-u8-vsprintf.c: New file.
87389         * lib/unistdio/u16-asnprintf.c: New file.
87390         * lib/unistdio/u16-asprintf.c: New file.
87391         * lib/unistdio/u16-printf-parse.c: New file.
87392         * lib/unistdio/u16-snprintf.c: New file.
87393         * lib/unistdio/u16-sprintf.c: New file.
87394         * lib/unistdio/u16-vasnprintf.c: New file.
87395         * lib/unistdio/u16-vasprintf.c: New file.
87396         * lib/unistdio/u16-vsnprintf.c: New file.
87397         * lib/unistdio/u16-vsprintf.c: New file.
87398         * lib/unistdio/u16-u16-asnprintf.c: New file.
87399         * lib/unistdio/u16-u16-asprintf.c: New file.
87400         * lib/unistdio/u16-u16-snprintf.c: New file.
87401         * lib/unistdio/u16-u16-sprintf.c: New file.
87402         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87403         * lib/unistdio/u16-u16-vasprintf.c: New file.
87404         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87405         * lib/unistdio/u16-u16-vsprintf.c: New file.
87406         * lib/unistdio/u32-asnprintf.c: New file.
87407         * lib/unistdio/u32-asprintf.c: New file.
87408         * lib/unistdio/u32-printf-parse.c: New file.
87409         * lib/unistdio/u32-snprintf.c: New file.
87410         * lib/unistdio/u32-sprintf.c: New file.
87411         * lib/unistdio/u32-vasnprintf.c: New file.
87412         * lib/unistdio/u32-vasprintf.c: New file.
87413         * lib/unistdio/u32-vsnprintf.c: New file.
87414         * lib/unistdio/u32-vsprintf.c: New file.
87415         * lib/unistdio/u32-u32-asnprintf.c: New file.
87416         * lib/unistdio/u32-u32-asprintf.c: New file.
87417         * lib/unistdio/u32-u32-snprintf.c: New file.
87418         * lib/unistdio/u32-u32-sprintf.c: New file.
87419         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87420         * lib/unistdio/u32-u32-vasprintf.c: New file.
87421         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87422         * lib/unistdio/u32-u32-vsprintf.c: New file.
87423         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87424         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87425         * tests/unistdio/test-ulc-printf1.h: New file.
87426         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87427         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87428         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87429         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87430         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87431         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87432         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87433         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87434         * tests/unistdio/test-u8-asnprintf1.c: New file.
87435         * tests/unistdio/test-u8-asnprintf1.h: New file.
87436         * tests/unistdio/test-u8-printf1.h: New file.
87437         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87438         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87439         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87440         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87441         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87442         * tests/unistdio/test-u8-vasprintf1.c: New file.
87443         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87444         * tests/unistdio/test-u8-vsprintf1.c: New file.
87445         * tests/unistdio/test-u16-asnprintf1.c: New file.
87446         * tests/unistdio/test-u16-asnprintf1.h: New file.
87447         * tests/unistdio/test-u16-printf1.h: New file.
87448         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87449         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87450         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87451         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87452         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87453         * tests/unistdio/test-u16-vasprintf1.c: New file.
87454         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87455         * tests/unistdio/test-u16-vsprintf1.c: New file.
87456         * tests/unistdio/test-u32-asnprintf1.c: New file.
87457         * tests/unistdio/test-u32-asnprintf1.h: New file.
87458         * tests/unistdio/test-u32-printf1.h: New file.
87459         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87460         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87461         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87462         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87463         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87464         * tests/unistdio/test-u32-vasprintf1.c: New file.
87465         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87466         * tests/unistdio/test-u32-vsprintf1.c: New file.
87467         * modules/unistdio/base: New file.
87468         * modules/unistdio/u-printf-args: New file.
87469         * modules/unistdio/ulc-asnprintf: New file.
87470         * modules/unistdio/ulc-asprintf: New file.
87471         * modules/unistdio/ulc-fprintf: New file.
87472         * modules/unistdio/ulc-printf-parse: New file.
87473         * modules/unistdio/ulc-snprintf: New file.
87474         * modules/unistdio/ulc-sprintf: New file.
87475         * modules/unistdio/ulc-vasnprintf: New file.
87476         * modules/unistdio/ulc-vasprintf: New file.
87477         * modules/unistdio/ulc-vfprintf: New file.
87478         * modules/unistdio/ulc-vsnprintf: New file.
87479         * modules/unistdio/ulc-vsprintf: New file.
87480         * modules/unistdio/u8-asnprintf: New file.
87481         * modules/unistdio/u8-asprintf: New file.
87482         * modules/unistdio/u8-printf-parse: New file.
87483         * modules/unistdio/u8-snprintf: New file.
87484         * modules/unistdio/u8-sprintf: New file.
87485         * modules/unistdio/u8-vasnprintf: New file.
87486         * modules/unistdio/u8-vasprintf: New file.
87487         * modules/unistdio/u8-vsnprintf: New file.
87488         * modules/unistdio/u8-vsprintf: New file.
87489         * modules/unistdio/u8-u8-asnprintf: New file.
87490         * modules/unistdio/u8-u8-asprintf: New file.
87491         * modules/unistdio/u8-u8-snprintf: New file.
87492         * modules/unistdio/u8-u8-sprintf: New file.
87493         * modules/unistdio/u8-u8-vasnprintf: New file.
87494         * modules/unistdio/u8-u8-vasprintf: New file.
87495         * modules/unistdio/u8-u8-vsnprintf: New file.
87496         * modules/unistdio/u8-u8-vsprintf: New file.
87497         * modules/unistdio/u16-asnprintf: New file.
87498         * modules/unistdio/u16-asprintf: New file.
87499         * modules/unistdio/u16-printf-parse: New file.
87500         * modules/unistdio/u16-snprintf: New file.
87501         * modules/unistdio/u16-sprintf: New file.
87502         * modules/unistdio/u16-vasnprintf: New file.
87503         * modules/unistdio/u16-vasprintf: New file.
87504         * modules/unistdio/u16-vsnprintf: New file.
87505         * modules/unistdio/u16-vsprintf: New file.
87506         * modules/unistdio/u16-u16-asnprintf: New file.
87507         * modules/unistdio/u16-u16-asprintf: New file.
87508         * modules/unistdio/u16-u16-snprintf: New file.
87509         * modules/unistdio/u16-u16-sprintf: New file.
87510         * modules/unistdio/u16-u16-vasnprintf: New file.
87511         * modules/unistdio/u16-u16-vasprintf: New file.
87512         * modules/unistdio/u16-u16-vsnprintf: New file.
87513         * modules/unistdio/u16-u16-vsprintf: New file.
87514         * modules/unistdio/u32-asnprintf: New file.
87515         * modules/unistdio/u32-asprintf: New file.
87516         * modules/unistdio/u32-printf-parse: New file.
87517         * modules/unistdio/u32-snprintf: New file.
87518         * modules/unistdio/u32-sprintf: New file.
87519         * modules/unistdio/u32-vasnprintf: New file.
87520         * modules/unistdio/u32-vasprintf: New file.
87521         * modules/unistdio/u32-vsnprintf: New file.
87522         * modules/unistdio/u32-vsprintf: New file.
87523         * modules/unistdio/u32-u32-asnprintf: New file.
87524         * modules/unistdio/u32-u32-asprintf: New file.
87525         * modules/unistdio/u32-u32-snprintf: New file.
87526         * modules/unistdio/u32-u32-sprintf: New file.
87527         * modules/unistdio/u32-u32-vasnprintf: New file.
87528         * modules/unistdio/u32-u32-vasprintf: New file.
87529         * modules/unistdio/u32-u32-vsnprintf: New file.
87530         * modules/unistdio/u32-u32-vsprintf: New file.
87531         * modules/unistdio/ulc-asnprintf-tests: New file.
87532         * modules/unistdio/ulc-vasnprintf-tests: New file.
87533         * modules/unistdio/ulc-vasprintf-tests: New file.
87534         * modules/unistdio/ulc-vsnprintf-tests: New file.
87535         * modules/unistdio/ulc-vsprintf-tests: New file.
87536         * modules/unistdio/u8-asnprintf-tests: New file.
87537         * modules/unistdio/u8-vasnprintf-tests: New file.
87538         * modules/unistdio/u8-vasprintf-tests: New file.
87539         * modules/unistdio/u8-vsnprintf-tests: New file.
87540         * modules/unistdio/u8-vsprintf-tests: New file.
87541         * modules/unistdio/u16-asnprintf-tests: New file.
87542         * modules/unistdio/u16-vasnprintf-tests: New file.
87543         * modules/unistdio/u16-vasprintf-tests: New file.
87544         * modules/unistdio/u16-vsnprintf-tests: New file.
87545         * modules/unistdio/u16-vsprintf-tests: New file.
87546         * modules/unistdio/u32-asnprintf-tests: New file.
87547         * modules/unistdio/u32-vasnprintf-tests: New file.
87548         * modules/unistdio/u32-vasprintf-tests: New file.
87549         * modules/unistdio/u32-vsnprintf-tests: New file.
87550         * modules/unistdio/u32-vsprintf-tests: New file.
87551         * MODULES.html.sh (Unicode string functions): Add the new modules.
87553 2007-07-01  Bruno Haible  <bruno@clisp.org>
87555         * lib/sprintf.c (sprintf): Limit the available length estimation,
87556         to avoid address wraparound.
87557         * lib/vsprintf.c (vsprintf): Likewise.
87558         * modules/sprintf-posix (Dependencies): Add stdint.
87559         * modules/vsprintf-posix (Dependencies): Likewise.
87561 2007-07-01  Bruno Haible  <bruno@clisp.org>
87563         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87564         Windows PATH as well. Conservative double-quoting. Comments.
87566 2007-07-01  Bruno Haible  <bruno@clisp.org>
87567             Eric Blake  <ebb9@byu.net>
87568             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87570         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87571         empty components in $PATH, denoting '.'.
87573 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87575         * gnulib-tool: Fix indentation.
87576         (func_create_megatestdir): Likewise.
87577         Report by Bruno Haible.
87579 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87581         Sync from Automake.
87582         * build-aux/gnupload: Fix shell portability issues with for loops.
87583         Report by Karl Berry.
87585 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87587         * build-aux/maint.mk (POURL): Use translationproject.org.
87589 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87590             Bruno Haible  <bruno@clisp.org>
87592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87593         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87594         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87595         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87596         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87598 2007-06-27  Bruno Haible  <bruno@clisp.org>
87600         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87601         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87603 2007-06-26  Karl Berry  <karl@gnu.org>
87605         * MODULES.html.sh: remove xreadlink-with-size.
87607 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87609         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87610         method that I hope also handles the double-include problem noted
87611         by Bruno Haible in
87612         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87614 2007-06-23  Bruno Haible  <bruno@clisp.org>
87616         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87617         Don't let the 'mostlyclean' target fail if the last subdirectory could
87618         not be removed.
87619         Reported by Karl Berry.
87621 2007-06-23  Bruno Haible  <bruno@clisp.org>
87623         * gnulib-tool (echo): Add a speedier workaround for ksh.
87624         * tests/test-echo.sh: Likewise.
87626 2007-06-23  Bruno Haible  <bruno@clisp.org>
87628         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87629         * tests/test-echo.sh: Likewise.
87631 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87633         * gnulib-tool (IFS): Initialize early, so we don't set it to
87634         empty later.
87635         (self_abspathname): Rewrite algorithm to set it, reindent.
87636         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87637         (func_create_megatestdir): Merge some sed scripts.
87639 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87641         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87642         exposed by Sun Studio 11 cc on Solaris 8.
87644 2007-06-22  Bruno Haible  <bruno@clisp.org>
87646         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87647         backslashes.
87648         * tests/test-echo.sh: New file.
87650 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87652         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87653         simplify `sed_replace_build_aux' scripts, they are portable but
87654         echoing them with `echo' is not.
87655         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87657 2007-06-21  Karl Berry  <karl@gnu.org>
87659         * config/srclist.txt: guess we can't handle the licenses via
87660         srclist at the moment.
87662 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87664         * MODULES.html.sh: Add include_next.
87665         * modules/include_next: New file.
87667 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87669         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87670         INCLUDE_NEXT.
87671         (gl_CHECK_NEXT_HEADERS): New macro.
87672         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87673         the obsolescent gl_ABSOLUTE_HEADER.
87674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87675         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87676         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87677         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87678         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87679         * m4/math_h.m4 (gl_MATH_H): Likewise.
87680         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87681         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87682         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87683         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87684         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87685         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87688         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87689         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87690         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87691         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87692         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87693         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87694         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87695         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87696         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87697         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87698         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87699         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87700         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87701         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87702         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87703         * lib/float_.h: Likewise.
87704         * lib/inttypes_.h: Likewise.
87705         * lib/math_.h: Likewise.
87706         * lib/search_.h: Likewise.
87707         * lib/signal_.h: Likewise.
87708         * lib/stdint_.h: Likewise.
87709         * lib/stdio_.h: Likewise.
87710         * lib/stdlib_.h: Likewise.
87711         * lib/string_.h: Likewise.
87712         * lib/sys_stat_.h: Likewise.
87713         * lib/sys_time_.h: Likewise.
87714         * lib/time_.h: Likewise.
87715         * lib/unistd_.h: Likewise.
87716         * lib/wchar_.h: Likewise.
87717         * lib/wctype_.h: Likewise.
87718         * lib/dirent_.h: Likewise.
87719         * lib/iconv_.h: Likewise.
87720         * lib/locale_.h: Likewise.
87721         * lib/netinet_in_.h: Likewise.
87722         * lib/sys_select_.h: Likewise.
87723         * lib/sys_socket_.h: Likewise.
87724         * lib/sysexits_.h: Likewise.
87725         * modules/fcntl (Depends-on): Depend on include_next, not
87726         absolute_header.
87727         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87728         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87729         * modules/fchdir: Likewise.
87730         * modules/float: Likewise.
87731         * modules/iconv_open: Likewise.
87732         * modules/inttypes: Likewise.
87733         * modules/locale: Likewise.
87734         * modules/math: Likewise.
87735         * modules/netinet_in: Likewise.
87736         * modules/search: Likewise.
87737         * modules/signal: Likewise.
87738         * modules/stdint: Likewise.
87739         * modules/stdio: Likewise.
87740         * modules/stdlib: Likewise.
87741         * modules/string: Likewise.
87742         * modules/sys_select: Likewise.
87743         * modules/sys_socket: Likewise.
87744         * modules/sys_stat: Likewise.
87745         * modules/sys_time: Likewise.
87746         * modules/sysexits: Likewise.
87747         * modules/time: Likewise.
87748         * modules/unistd: Likewise.
87749         * modules/wchar: Likewise.
87750         * modules/wctype: Likewise.
87751         * modules/sys_stat: Change maintainer to "all".
87752         * modules/unistd: Likewise.
87754 2007-06-20  Karl Berry  <karl@gnu.org>
87756         * config/srclist.txt: track www changes in license files.
87758 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87760         * build-aux/bootstrap: Remove stray dot.
87761         Make sure build_aux settings are honored when linking
87762         gnulib_extra_files.
87764 2007-06-19  Eric Blake  <ebb9@byu.net>
87766         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87767         Allow compilation on cygwin.
87769 2007-06-19  Jim Meyering  <jim@meyering.net>
87771         xreadlink-with-size: Remove module.  No longer used.
87772         Ex-callers now use xreadlink or mreadlink-with-size.
87773         * modules/xreadlink-with-size: Remove module.
87774         * lib/xreadlink-with-size.c: Remove file.
87775         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87776         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87777         just before the function definition *is* accurate.
87779         Eliminate one way canonicalize_filename_mode could exit.
87780         * lib/canonicalize.c (canonicalize_filename_mode):
87781         Use mreadlink_with_size, not xreadlink_with_size.
87783 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87785         Detect porting problems to FreeBSD/arm, which has time_t wider than
87786         long int.  Original problem reported for GNU diff by Xin Li in
87787         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87788         * modules/getdate (Depends-on): Add intprops, verify.
87789         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87790         is an integer type no wider than long int.
87792 2007-06-18  Jim Meyering  <jim@meyering.net>
87794         New module: mreadlink-with-size.
87795         * MODULES.html.sh: Add mreadlink-with-size.
87796         * modules/mreadlink-with-size: New module
87797         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87798         not xreadlink-with-size.
87799         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87801 2007-06-16  Bruno Haible  <bruno@clisp.org>
87803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87804         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87805         Reported by Gary V. Vaughan <gary@gnu.org>.
87807 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87809         Revamp lchown so that it lives in unistd.h where it belongs.
87810         * lib/lchown.h: Remove.
87811         * lib/dirchownmod.c: Don't include lib/lchown.h.
87812         * lib/fchownat.c: Likewise.
87813         * lib/openat.c: Likewise.
87814         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87815         does not follow symlinks.
87816         (EOPNOTSUPP): Define if not defined.
87817         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87818         is defined to 0.
87819         (lchown): New decl.
87820         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87821         Do not check for lchown decl.
87822         Set REPLACE_LCHOWN.
87823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87824         REPLACE_LCHOWN.
87825         * modules/chown: Make it clear it follows symlinks.
87826         * modules/lchown: Make it clear it doesn't follow symlinks.
87827         (Files): Remove lib/lchown.h
87828         (Depends-on): Add unistd.
87829         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87830         (Include): Include <unistd.h>, not "lchown.h".
87831         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87832         REPLACE_LCHOWN.
87834 2007-06-15  Jim Meyering  <jim@meyering.net>
87836         Change license (GPL to LGPL) of fsusage and dependents.
87837         * modules/fsusage (License): Change to LGPL.
87838         * modules/full-read (License): Likewise.
87839         * modules/full-write (License): Likewise.
87840         * modules/safe-read (License): Likewise.
87841         * modules/safe-write (License): Likewise.
87843 2007-06-14  Ben Pfaff  <blp@gnu.org>
87845         Missing part of allocsa -> malloca transition.
87846         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87847         gl_MALLOCA.
87849 2007-06-12  Bruno Haible  <bruno@clisp.org>
87851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87852         to ia64, x86_64, i386.
87853         Reported by Eric Blake.
87855 2007-06-12  Bruno Haible  <bruno@clisp.org>
87857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87858         cross-compiling to x86_64.
87860 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87863         glitch reported by Ralf Wildenhues in
87864         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87866         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87867         Vin Shelton.
87869 2007-06-11  Bruno Haible  <bruno@clisp.org>
87871         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87872         replacement string.
87873         Reported by Eric Blake.
87875 2007-06-10  Bruno Haible  <bruno@clisp.org>
87877         Prepare vasnprintf code for use with Unicode strings.
87878         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87879         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87880         TYPE_U32_STRING.
87881         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87882         a_u32_string variants.
87883         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87884         * lib/printf-args.c: Don't include config.h and the specification
87885         header if PRINTF_FETCHARGS is already defined.
87886         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87887         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87888         TYPE_U16_STRING, TYPE_U32_STRING.
87889         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87890         u16_directive, u16_directives, u32_directive, u32_directives): New
87891         types.
87892         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87893         New declarations.
87894         * lib/printf-parse.c: Don't include config.h and the specification
87895         header if PRINTF_PARSE is already defined. Eliminate the set of
87896         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87897         them now. Include c-ctype.h.
87898         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87899         directive and CHAR_T_ONLY_ASCII.
87900         * lib/vasnprintf.c: Don't include config.h and the specification header
87901         if VASNPRINTF is already defined.
87902         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87903         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87904         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87905         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87906         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87907         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87908         code accordingly.
87909         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87910         pad_ourselves also in this case, with the 'c' and 's' directives, and
87911         with a different notion of "width".
87912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87914 2007-06-10  Bruno Haible  <bruno@clisp.org>
87916         * modules/unistr/u32-mbsnlen: New file.
87917         * lib/unistr/u32-mbsnlen.c: New file.
87919         * modules/unistr/u16-mbsnlen: New file.
87920         * lib/unistr/u16-mbsnlen.c: New file.
87922         * modules/unistr/u8-mbsnlen: New file.
87923         * lib/unistr/u8-mbsnlen.c: New file.
87925         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87926         declarations.
87928 2007-06-10  Bruno Haible  <bruno@clisp.org>
87930         * lib/string_.h (mbsnlen): New declaration.
87931         * lib/mbsnlen.c: New file.
87932         * m4/mbsnlen.m4: New file.
87933         * modules/mbsnlen: New file.
87934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87935         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87936         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87938 2007-06-10  Bruno Haible  <bruno@clisp.org>
87940         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87942 2007-06-10  Bruno Haible  <bruno@clisp.org>
87944         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87945         * lib/mbuiter.h: Likewise.
87947 2007-06-10  Bruno Haible  <bruno@clisp.org>
87949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87950         declaration.
87952 2007-06-10  Karl Berry  <karl@gnu.org>
87954         * config/srclist.txt: remove gettext entries, Bruno prefers
87955         to update individually.
87957 2007-06-10  Bruno Haible  <bruno@clisp.org>
87959         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87960         'maxlen'. Ensure only length + width bytes are allocated, not
87961         length + 1 + width.
87963 2007-06-09  Bruno Haible  <bruno@clisp.org>
87965         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87966         (CHAR_T): Remove macro.
87967         (VASNPRINTF): Update.
87969 2007-06-09  Bruno Haible  <bruno@clisp.org>
87971         * MODULES.html.sh (Unicode string functions): Add the new modules.
87973         * modules/uniconv/u32-conv-to-enc: New file.
87974         * lib/uniconv/u32-conv-to-enc.c: New file.
87975         * modules/uniconv/u32-conv-to-enc-tests: New file.
87976         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87978         * modules/uniconv/u16-conv-to-enc: New file.
87979         * lib/uniconv/u16-conv-to-enc.c: New file.
87980         * lib/uniconv/u-conv-to-enc.h: New file.
87981         * modules/uniconv/u16-conv-to-enc-tests: New file.
87982         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87984         * modules/uniconv/u8-conv-to-enc: New file.
87985         * lib/uniconv/u8-conv-to-enc.c: New file.
87986         * modules/uniconv/u8-conv-to-enc-tests: New file.
87987         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87989         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87990         u32_conv_to_encoding): New declarations.
87992 2007-06-09  Bruno Haible  <bruno@clisp.org>
87994         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87996 2007-06-09  Bruno Haible  <bruno@clisp.org>
87998         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87999         * modules/malloca: Renamed from modules/allocsa, updated.
88000         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
88001         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
88002         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
88003         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
88004         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
88005         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
88006         * modules/xmalloca: Renamed from modules/xallocsa, updated.
88007         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
88008         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
88009         * modules/c-strcasestr (Depends-on): Update.
88010         * lib/c-strcasestr.c: Update.
88011         * modules/c-strstr (Depends-on): Update.
88012         * lib/c-strstr.c: Update.
88013         * modules/canonicalize-lgpl (Depends-on): Update.
88014         * lib/canonicalize-lgpl.c: Update.
88015         * modules/clean-temp (Depends-on): Update.
88016         * lib/clean-temp.c: Update.
88017         * modules/csharpcomp (Depends-on): Update.
88018         * lib/csharpcomp.c: Update.
88019         * modules/csharpexec (Depends-on): Update.
88020         * lib/csharpexec.c: Update.
88021         * modules/javacomp (Depends-on): Update.
88022         * lib/javacomp.c: Update.
88023         * modules/javaexec (Depends-on): Update.
88024         * lib/javaexec.c: Update.
88025         * modules/mbscasestr (Depends-on): Update.
88026         * lib/mbscasestr.c: Update.
88027         * modules/mbsstr (Depends-on): Update.
88028         * lib/mbsstr.c: Update.
88029         * modules/setenv (Depends-on): Update.
88030         * lib/setenv.c: Update.
88031         * modules/strcasestr (Depends-on): Update.
88032         * lib/strcasestr.c: Update.
88033         * modules/striconveha (Depends-on): Update.
88034         * lib/striconveha.c: Update.
88035         * modules/relocatable-prog-wrapper (Files): Update.
88036         * lib/relocwrapper.c: Update.
88037         * build-aux/install-reloc: Update.
88038         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
88040 2007-06-08  Bruno Haible  <bruno@clisp.org>
88042         Port to uClibc.
88043         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
88044         * lib/fpurge.c (fpurge): Likewise.
88045         * lib/freading.c (freading): Likewise.
88046         * lib/fseeko.c (rpl_fseeko): Likewise.
88047         * lib/fseterr.c (fseterr): Likewise.
88048         * lib/fwriting.c (fwriting): Likewise.
88049         * tests/test-fflush.c (main): Avoid a failure on uClibc.
88051 2007-06-08  Bruno Haible  <bruno@clisp.org>
88053         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
88054         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
88055         * modules/gettext (Files): Add m4/intlmacosx.m4.
88057 2007-06-07  Bruno Haible  <bruno@clisp.org>
88059         * modules/localename-tests: New file.
88060         * tests/test-localename.c: New file.
88062         New module 'localename'.
88063         * lib/localename.h: New file.
88064         * lib/localename.c: New file, from GNU gettext.
88065         * m4/localename.m4: New file.
88066         * modules/localename: New file.
88068 2007-06-07  Bruno Haible  <bruno@clisp.org>
88070         Work around the lack of <wchar.h> on some builds of uClibc.
88071         * doc/headers/wchar.texi: Update.
88072         * lib/wchar_.h: Include <wchar.h> only if it exists.
88073         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
88074         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
88075         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
88076         doesn't exist.
88077         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
88078         * modules/mbfile (Depends-on): Add wchar.
88079         * modules/mbiter (Depends-on): Likewise.
88080         * modules/mbuiter (Depends-on): Likewise.
88081         Reported by Simon Josefsson.
88083 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88085         Work around problem reported by Steven M. Schweda in
88086         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
88087         Tru64 5.1B with the Compaq compiler environment installed declares
88088         an 'isblank' function but does not define it in the C library.
88089         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
88090         * lib/regex_internal.h (isblank): Likewise.
88091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
88092         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
88094 2007-06-05  Bruno Haible  <bruno@clisp.org>
88096         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
88097         ia64.
88098         * modules/printf-safe: New file.
88099         * modules/fprintf-posix (Depends-on): Add printf-safe.
88100         * modules/printf-posix (Depends-on): Likewise.
88101         * modules/snprintf-posix (Depends-on): Likewise.
88102         * modules/sprintf-posix (Depends-on): Likewise.
88103         * modules/vasnprintf-posix (Depends-on): Likewise.
88104         * modules/vasprintf-posix (Depends-on): Likewise.
88105         * modules/vfprintf-posix (Depends-on): Likewise.
88106         * modules/vprintf-posix (Depends-on): Likewise.
88107         * modules/vsnprintf-posix (Depends-on): Likewise.
88108         * modules/vsprintf-posix (Depends-on): Likewise.
88109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
88110         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
88111         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
88112         "no" on i386, x86_64, ia64.
88113         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
88114         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88115         on i386, x86_64, ia64.
88116         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
88117         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88118         on i386, x86_64, ia64.
88119         * tests/test-vasnprintf-posix.c: Include float.h.
88120         (LDBL80_WORDS): New macro.
88121         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88122         on i386, x86_64, ia64.
88123         * tests/test-vasprintf-posix.c: Include float.h.
88124         (LDBL80_WORDS): New macro.
88125         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88126         on i386, x86_64, ia64.
88127         * tests/test-snprintf-posix.c: Include float.h.
88128         * tests/test-sprintf-posix.c: Likewise.
88129         * tests/test-vsnprintf-posix.c: Likewise.
88130         * tests/test-vsprintf-posix.c: Likewise.
88132 2007-06-05  Bruno Haible  <bruno@clisp.org>
88134         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
88135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
88136         non-IEEE numbers on i386, x86_64, ia64.
88137         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
88138         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
88139         * tests/test-isnanl.h: Include float.h.
88140         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
88142 2007-06-05  Bruno Haible  <bruno@clisp.org>
88144         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
88145         also the %a / %A. Handle the %a / %A code before this extra handling.
88147 2007-06-05  Bruno Haible  <bruno@clisp.org>
88149         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
88150         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
88152 2007-06-05  Bruno Haible  <bruno@clisp.org>
88154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
88155         typo in variable name.
88157 2007-06-05  Eric Blake  <ebb9@byu.net>
88159         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
88160         Reported by Simon Josefsson.
88162 2007-06-04  Bruno Haible  <bruno@clisp.org>
88164         Avoid test failures on some PowerPC platforms.
88165         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
88166         Define differently for PowerPC.
88167         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
88168         Reported by Gary V. Vaughan <gary@gnu.org>.
88170 2007-06-02  Bruno Haible  <bruno@clisp.org>
88172         Fix test-stdint failure on FreeBSD/ia64.
88173         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
88174         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
88175         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
88176         * doc/headers/stdint.texi: Update.
88178 2007-06-01  Bruno Haible  <bruno@clisp.org>
88180         * tests/test-binary-io.c (main): Pass a third argument to open().
88181         Reported by Gary V. Vaughan <gary@gnu.org>.
88183 2007-06-01  Bruno Haible  <bruno@clisp.org>
88185         * doc/functions/frexpl.texi: Update for mingw.
88187 2007-06-01  Bruno Haible  <bruno@clisp.org>
88189         * tests/test-lseek.c (main): Disable test of errno for invalid third
88190         argument.
88191         * doc/functions/lseek.texi: Update.
88192         Reported by Gary V. Vaughan <gary@gnu.org>.
88194 2007-05-28  Bruno Haible  <bruno@clisp.org>
88196         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
88198 2007-05-31  Eric Blake  <ebb9@byu.net>
88200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
88201         cross compiling.
88203 2007-05-30  Eric Blake  <ebb9@byu.net>
88204         and Bruno Haible  <bruno@clisp.org>
88206         Work around mingw test failures exposed by m4-1.4.9b.
88207         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
88208         * tests/test-unistd.c: Disable uid_t and git_t tests for the
88209         moment.
88211 2007-05-30  Bruno Haible  <bruno@clisp.org>
88213         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
88214         assuming that they are closed. Needed on HP-UX 11.
88216 2007-05-29  Bruno Haible  <bruno@clisp.org>
88218         Fix a problem with #include_next.
88219         * lib/dirent_.h: Split the double-inclusion guard.
88220         * lib/fcntl_.h: Likewise.
88221         * lib/float_.h: Likewise.
88222         * lib/iconv_.h: Likewise.
88223         * lib/inttypes_.h: Likewise.
88224         * lib/locale_.h: Likewise.
88225         * lib/math_.h: Likewise.
88226         * lib/netinet_in_.h: Likewise.
88227         * lib/search_.h: Likewise.
88228         * lib/signal_.h: Likewise.
88229         * lib/stdint_.h: Likewise.
88230         * lib/stdio_.h: Likewise.
88231         * lib/stdlib_.h: Likewise.
88232         * lib/string_.h: Likewise.
88233         * lib/sys_select_.h: Likewise.
88234         * lib/sys_socket_.h: Likewise.
88235         * lib/sys_stat_.h: Likewise.
88236         * lib/sys_time_.h: Likewise.
88237         * lib/sysexits_.h: Likewise.
88238         * lib/time_.h: Likewise.
88239         * lib/unistd_.h: Likewise.
88240         * lib/wchar_.h: Likewise.
88241         * lib/wctype_.h: Likewise.
88243 2007-05-29  Bruno Haible  <bruno@clisp.org>
88245         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
88246         for the moment.
88248 2007-05-29  Bruno Haible  <bruno@clisp.org>
88250         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
88251         invocation.
88252         Reported by Eric Blake.
88254 2007-05-29  Bruno Haible  <bruno@clisp.org>
88256         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
88257         compiling case.
88259 2007-05-29  Eric Blake  <ebb9@byu.net>
88260             Bruno Haible  <bruno@clisp.org>
88262         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
88263         cross compiles.
88265 2007-05-28  Eric Blake  <ebb9@byu.net>
88267         * modules/closein-tests (test_closein_LDADD): Support test on
88268         cygwin with libtool.
88270 2007-05-28  Bruno Haible  <bruno@clisp.org>
88272         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
88273         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
88274         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
88275         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
88276         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
88277         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
88278         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
88279         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
88280         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
88282 2007-05-28  Eric Blake  <ebb9@byu.net>
88284         Unconditionally include <config.h> in unit tests.
88285         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
88286         * tests/test-allocsa.c, tests/test-arcfour.c,
88287         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
88288         tests/test-array_list.c, tests/test-array_oset.c,
88289         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
88290         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
88291         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
88292         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
88293         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
88294         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
88295         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
88296         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
88297         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
88298         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
88299         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
88300         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
88301         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
88302         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
88303         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
88304         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
88305         test-md5.c, test-memmem.c, test-printf-posix.c,
88306         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
88307         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
88308         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
88309         test-strcasestr.c, test-striconv.c, test-striconveh.c,
88310         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
88311         test-vasnprintf-posix2.c, test-vasnprintf.c,
88312         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
88313         test-vfprintf-posix.c, test-vprintf-posix.c,
88314         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
88315         test-xvasprintf.c: Likewise.
88317 2007-05-28  Bruno Haible  <bruno@clisp.org>
88319         * gnulib-tool (func_import): Remember the --with-tests command-line
88320         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
88321         Reported by Eric Blake.
88323 2007-05-28  Bruno Haible  <bruno@clisp.org>
88325         * modules/ftell-tests: New file.
88326         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
88327         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
88329         * lib/ftell.c: New file.
88330         * modules/ftell: New file.
88331         * m4/ftell.m4: New file.
88332         * doc/functions/ftell.texi: Update.
88333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
88334         REPLACE_FTELL.
88335         * lib/stdio_.h (rpl_ftell): New declaration.
88336         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
88337         REPLACE_FTELL.
88339 2007-05-28  Eric Blake  <ebb9@byu.net>
88341         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
88343 2007-05-28  Bruno Haible  <bruno@clisp.org>
88345         * modules/fseek-tests: New file.
88346         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
88347         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
88349         * lib/fseek.c: New file.
88350         * modules/fseek: New file.
88351         * m4/fseek.m4: New file.
88352         * doc/functions/fseek.texi: Update.
88353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
88354         REPLACE_FSEEK.
88355         * lib/stdio_.h (rpl_fseek): New declaration.
88356         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88357         REPLACE_FSEEK.
88359 2007-05-28  Bruno Haible  <bruno@clisp.org>
88361         * lib/stdio_.h (fflush): More comments.
88363 2007-05-28  Bruno Haible  <bruno@clisp.org>
88365         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88366         runtime test.
88368 2007-05-28  Eric Blake  <ebb9@byu.net>
88370         Improve lseek module.
88371         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88372         * lib/unistd_.h (lseek): Scale back link warning message.
88373         * tests/test-lseek.c: Beef up test.
88374         * tests/test-lseek.sh: Exercise more facets of lseek.
88375         Reported by Bruno Haible.
88377 2007-05-28  Bruno Haible  <bruno@clisp.org>
88379         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88380         to define.
88382 2007-05-27  Bruno Haible  <bruno@clisp.org>
88384         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88386 2007-05-27  Bruno Haible  <bruno@clisp.org>
88388         * modules/openmp: New file.
88389         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88390         Noah Misch.
88392 2007-05-26  Bruno Haible  <bruno@clisp.org>
88394         * modules/chdir-long (Depends-on): Add fchdir.
88395         * modules/chdir-safer (Depends-on): Likewise.
88396         * modules/fts (Depends-on): Likewise.
88397         * modules/fts-lgpl (Depends-on): Likewise.
88398         * modules/openat (Depends-on): Likewise.
88399         * modules/savewd (Depends-on): Likewise.
88401 2007-05-24  Eric Blake  <ebb9@byu.net>
88403         Fix lseek on mingw.
88404         * modules/lseek: New module.
88405         * m4/lseek.m4: New file.
88406         * lib/lseek.c: New file.
88407         * modules/lseek-tests: New file.
88408         * tests/test-lseek.c: New file.
88409         * tests/test-lseek.sh: New file.
88410         * MODULES.html.sh: Document lseek module.
88411         * modules/fflush (Depends-on): Add lseek, fseeko.
88412         * modules/fseeko (Depends-on): Likewise.
88413         * modules/ftello (Depends-on): Likewise.
88414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88415         broken.
88416         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88417         broken.
88418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88419         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88420         * lib/ftello.c (rpl_ftello): Likewise.
88421         * tests/test-fseeko.c (main): Test this.
88422         * tests/test-fseeko.sh: Likewise.
88423         * tests/test-ftello.c (main): Likewise.
88424         * tests/test-ftello.sh: Likewise.
88425         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88426         implies replacing fseek.
88427         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88428         HAVE_FTELLO.
88429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88430         * modules/unistd (Makefile.am): Likewise.
88431         * lib/unistd_.h (lseek): Declare a replacement.
88432         * doc/functions/lseek.texi (lseek): Document this fix.
88433         * doc/functions/fseek.texi (fseek): Likewise.
88434         * doc/functions/ftell.texi (ftell): Likewise.
88436 2007-05-24  Bruno Haible  <bruno@clisp.org>
88438         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88439         in the printed representation of a NaN.
88440         * tests/test-vasprintf-posix.c (test_function): Likewise.
88441         * tests/test-snprintf-posix.h (test_function): Likewise.
88442         * tests/test-sprintf-posix.h (test_function): Likewise.
88443         Reported by Eric Blake.
88445 2007-05-23  Eric Blake  <ebb9@byu.net>
88447         Fix fseeko/ftello on cygwin 1.5.24.
88448         * doc/functions/fseeko.texi (fseeko): Document the fix.
88449         * doc/functions/ftello.texi (ftello): Document the fix.
88450         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88451         * doc/functions/stdout.text (stdout): New file.
88452         * doc/functions/stderr.text (stderr): New file.
88453         * doc/gnulib.texi (Function Substitutes): Use new files.
88454         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88455         prior to 1.7.0.
88456         * tests/test-ftello.c (main): Likewise for ftello.
88457         * tests/test-fseeko.sh: New file.
88458         * tests/test-ftello.sh: New file.
88459         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88460         with seekable stdin.
88461         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88462         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88463         (gl_REPLACE_FSEEKO): New macro.
88464         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88465         * modules/fseeko (Files): Distribute fseeko.c.
88466         * modules/ftello (Files): Distribute ftello.c.
88467         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88468         mode.
88469         * lib/ftello.c (rpl_ftello): New file.
88470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88471         fseeko, ftello.
88472         (gl_STDIN_LARGE_OFFSET): New macro.
88473         * modules/stdio (Makefile.am): Perform the replacement.
88474         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88476 2007-05-23  Bruno Haible  <bruno@clisp.org>
88478         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88479         GNULIB_POSIXCHECK is defined.
88481 2007-05-21  Bruno Haible  <bruno@clisp.org>
88483         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88484         Check also the output for NaN arguments. When cross-compiling, guess
88485         no on IRIX.
88486         * lib/vasnprintf.c: Update comments.
88487         * tests/test-vasnprintf-posix.c (strisnan): New function.
88488         (test_function): Use it.
88489         * tests/test-vasprintf-posix.c (strisnan): New function.
88490         (test_function): Use it.
88491         * tests/test-snprintf-posix.h (strisnan): New function.
88492         (test_function): Use it.
88493         * tests/test-sprintf-posix.h (strisnan): New function.
88494         (test_function): Use it.
88495         Reported by Eric Blake.
88497 2007-05-20  Bruno Haible  <bruno@clisp.org>
88499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88500         numbers that fails on BeOS.
88501         * doc/functions/frexpl.texi: Update.
88503 2007-05-20  Jim Meyering  <jim@meyering.net>
88505         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88506         forced upon us by glibc-2.6.
88508 2007-05-20  Bruno Haible  <bruno@clisp.org>
88510         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88511         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88512         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88513         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88514         NEED_PRINTF_INFINITE.
88515         (is_infinitel): New function.
88516         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88518         gl_PREREQ_VASNPRINTF_INFINITE.
88519         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88520         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88521         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88522         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88523         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88524         gl_PREREQ_VASNPRINTF_INFINITE.
88525         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88526         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88528         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88532         * doc/functions/fprintf.texi: Update.
88533         * doc/functions/printf.texi: Update.
88534         * doc/functions/snprintf.texi: Update.
88535         * doc/functions/sprintf.texi: Update.
88536         * doc/functions/vfprintf.texi: Update.
88537         * doc/functions/vprintf.texi: Update.
88538         * doc/functions/vsnprintf.texi: Update.
88539         * doc/functions/vsprintf.texi: Update.
88541 2007-05-20  Bruno Haible  <bruno@clisp.org>
88543         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88544         was not found in libc.
88545         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88547 2007-05-20  Bruno Haible  <bruno@clisp.org>
88549         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88550         printed as "-nan" instead of "nan".
88551         * tests/test-vasprintf-posix.c (test_function): Likewise.
88552         * tests/test-snprintf-posix.h (test_function): Likewise.
88553         * tests/test-sprintf-posix.h (test_function): Likewise.
88554         Needed for HP-UX 11.
88556 2007-05-20  Jim Meyering  <jim@meyering.net>
88558         Fix buggy test for the fchownat-deref bug.
88559         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88560         symlink required for the run-test.  Without it, this test would
88561         always declare that fchownat doesn't work, and client code would
88562         unnecessarily use the replacement function with fixed libc.
88563         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88564         Reported by Greg Schafer.
88566 2007-05-19  Bruno Haible  <bruno@clisp.org>
88568         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88569         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88570         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88571         Needed for IRIX 6.5 and Solaris 2.5.1.
88573 2007-05-19  Bruno Haible  <bruno@clisp.org>
88575         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88576         (test_function): Skip tests involving -0.0 on platforms where
88577         -0.0 = 0.0.
88578         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88579         (test_function): Skip tests involving -0.0 on platforms where
88580         -0.0 = 0.0.
88581         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88582         (test_function): Skip tests involving -0.0 on platforms where
88583         -0.0 = 0.0.
88584         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88585         (test_function): Skip tests involving -0.0 on platforms where
88586         -0.0 = 0.0.
88587         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88588         tests.
88589         * tests/test-printf-posix.h (test_function): Likewise.
88590         * tests/test-printf-posix.output: Remove all -0.0 related results.
88591         Needed for IRIX 6.5.
88593 2007-05-19  Bruno Haible  <bruno@clisp.org>
88595         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88596         printed as "nan0x7fffffff" instead of "nan".
88597         * tests/test-vasprintf-posix.c (test_function): Likewise.
88598         * tests/test-snprintf-posix.h (test_function): Likewise.
88599         * tests/test-sprintf-posix.h (test_function): Likewise.
88600         * tests/test-fprintf-posix.h (NaN): Remove macro.
88601         (test_function): Remove all NaN related tests.
88602         * tests/test-printf-posix.h (NaN): Remove macro.
88603         (test_function): Remove all NaN related tests.
88604         * tests/test-printf-posix.output: Remove all NaN related results.
88605         Needed for IRIX 6.5.
88607 2007-05-19  Bruno Haible  <bruno@clisp.org>
88609         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88612 2007-05-19  Bruno Haible  <bruno@clisp.org>
88614         * lib/float_.h: New file.
88615         * m4/float_h.m4: New file.
88616         * modules/float: New file.
88617         * modules/isnanl (Dependencies): Add float.
88618         * modules/isnanl-nolibm (Dependencies): Likewise.
88619         * modules/mathl (Dependencies): Likewise.
88620         * modules/printf-frexpl (Dependencies): Likewise.
88621         * modules/signbit (Dependencies): Likewise.
88622         * modules/vasnprintf (Dependencies): Likewise.
88623         * doc/headers/float.texi: Update.
88625 2007-05-19  Jim Meyering  <jim@meyering.net>
88627         * lib/utimens.c (gl_futimens): Rename from futimens,
88628         now that glibc-2.6 declares futimens.
88629         * lib/utimens.h: Likewise.
88631 2007-05-19  Bruno Haible  <bruno@clisp.org>
88633         Avoid test failures on mingw.
88634         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88635         * tests/test-printf-posix.sh: Likewise.
88636         * tests/test-vfprintf-posix.sh: Likewise.
88637         * tests/test-vprintf-posix.sh: Likewise.
88639 2007-05-19  Bruno Haible  <bruno@clisp.org>
88641         Fix *printf result for NaN, Inf, -0.0 on mingw.
88642         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88643         * lib/vasnprintf.c: Include math.h and isnan.h.
88644         (is_infinite_or_zero): New function.
88645         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88646         values in the %f, %F, %e, %E, %g, %G directives.
88647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88649         gl_PRINTF_INFINITE and test its result. Invoke
88650         gl_PREREQ_VASNPRINTF_INFINITE.
88651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88653         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88658         * doc/functions/fprintf.texi: Update.
88659         * doc/functions/printf.texi: Update.
88660         * doc/functions/snprintf.texi: Update.
88661         * doc/functions/sprintf.texi: Update.
88662         * doc/functions/vfprintf.texi: Update.
88663         * doc/functions/vprintf.texi: Update.
88664         * doc/functions/vsnprintf.texi: Update.
88665         * doc/functions/vsprintf.texi: Update.
88667 2007-05-19  Bruno Haible  <bruno@clisp.org>
88669         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88670         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88671         Instead of multiplying with 10^k, set extra_zeroes to k.
88672         (scale10_round_long_double): Remove function.
88674 2007-05-18  Bruno Haible  <bruno@clisp.org>
88676         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88677         introduced on 2007-05-06.
88679 2007-05-18  Bruno Haible  <bruno@clisp.org>
88681         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88682         %g directives.
88683         * tests/test-vasprintf-posix.c (test_function): Likewise.
88684         * tests/test-snprintf-posix.h (test_function): Likewise.
88685         * tests/test-sprintf-posix.h (test_function): Likewise.
88687 2007-05-18  Bruno Haible  <bruno@clisp.org>
88689         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88690         (strmatch): New function.
88691         (test_function): Test the %f directive on numbers of various exponents.
88692         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88693         (strmatch): New function.
88694         (test_function): Test the %f directive on numbers of various exponents.
88695         * tests/test-snprintf-posix.h (strmatch): New function.
88696         (test_function): Test the %f directive on numbers of various exponents.
88697         * tests/test-sprintf-posix.h (strmatch): New function.
88698         (test_function): Test the %f directive on numbers of various exponents.
88699         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88700         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88701         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88702         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88704 2007-05-18  Bruno Haible  <bruno@clisp.org>
88706         Add support for 'long double' number output.
88707         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88708         * lib/vasnprintf.c: Include math.h and float+.h.
88709         (mp_limb_t): New type.
88710         (GMP_LIMB_BITS): New macro.
88711         (mp_twolimb_t): New type.
88712         (GMP_TWOLIMB_BITS): New macro.
88713         (mpn_t): New type.
88714         (multiply, divide, convert_to_decimal, decode_long_double,
88715         scale10_round_long_double, scale10_round_decimal_long_double,
88716         floorlog10l): New functions.
88717         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88718         for the %f, %F, %e, %E, %g, %G directives.
88719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88720         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88721         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88722         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88723         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88726         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88730         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88731         * modules/snprintf-posix (Depends-on): Likewise.
88732         * modules/sprintf-posix (Depends-on): Likewise.
88733         * modules/vasnprintf-posix (Depends-on): Likewise.
88734         * modules/vasprintf-posix (Depends-on): Likewise.
88735         * modules/vfprintf-posix (Depends-on): Likewise.
88736         * modules/vsnprintf-posix (Depends-on): Likewise.
88737         * modules/vsprintf-posix (Depends-on): Likewise.
88738         * modules/vasnprintf (Files): Add lib/float+.h.
88739         * doc/functions/fprintf.texi: Update.
88740         * doc/functions/printf.texi: Update.
88741         * doc/functions/snprintf.texi: Update.
88742         * doc/functions/sprintf.texi: Update.
88743         * doc/functions/vfprintf.texi: Update.
88744         * doc/functions/vprintf.texi: Update.
88745         * doc/functions/vsnprintf.texi: Update.
88746         * doc/functions/vsprintf.texi: Update.
88748 2007-05-18  Bruno Haible  <bruno@clisp.org>
88750         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88752 2007-05-18  Bruno Haible  <bruno@clisp.org>
88754         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88755         for printing 64-bit integers. Needed for mingw.
88757 2007-05-18  Bruno Haible  <bruno@clisp.org>
88759         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88760         gl_FUNC_FREXPL_WORKS.
88761         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88763 2007-05-18  Bruno Haible  <bruno@clisp.org>
88765         * modules/frexpl-nolibm-tests: New file.
88767         * modules/frexpl-nolibm: New file.
88768         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88770 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88772         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88773         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88774         GCC 4.2, which otherwise issues a lot of warnings.
88775         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88776         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88777         Likewise.
88778         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88779         * modules/iconv_open (iconv.h): Likewise.
88780         * modules/locale (locale.h): Likewise.
88781         * modules/netinet_in (netinet/in.h): Likewise.
88782         * modules/sys_select (sys_select.h): Likewise.
88783         * modules/sys_socket (sys/socket.h): Likewise.
88784         * modules/sys_stat (sys/stat.h): Likewise.
88785         * modules/sysexits (sysexits.h): Likewise.
88786         * modules/unistd (unistd.h): Likewise.
88788 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88790         * modules/closein-tests (Makefile.am): Distribute
88791         `test-closein.sh'.
88793 2007-05-17  Bruno Haible  <bruno@clisp.org>
88795         * tests/test-printf-posix.output: Renamed from
88796         tests/test-fprintf-posix.out.
88797         * modules/fprintf-posix-tests: Update.
88798         * modules/printf-posix-tests: Update.
88799         * modules/vfprintf-posix-tests: Update.
88800         * modules/vprintf-posix-tests: Update.
88801         * tests/test-fprintf-posix.sh: Update.
88802         * tests/test-printf-posix.sh: Update.
88803         * tests/test-vfprintf-posix.sh: Update.
88804         * tests/test-vprintf-posix.sh: Update.
88805         Reported by Ralf Wildenhues.
88807 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88809         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88810         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88811         GCC 4.2, which otherwise issues a lot of warnings.
88812         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88813         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88814         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88815         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88816         it should no longer be needed.
88817         * lib/string_.h: Likewise.
88818         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88819         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88820         * modules/inttypes (inttypes.h): Likewise.
88821         * modules/math (math.h): Likewise.
88822         * modules/search (search.h): Likewise.
88823         * modules/signal (signal.h): Likewise.
88824         * modules/stdint (stdint.h): Likewise.
88825         * modules/stdio (stdio.h): Likewise.
88826         * modules/stdlib (stdlib.h): Likewise.
88827         * modules/string (string.h): Likewise.
88828         * modules/sys_time (sys/time.h): Likewise.
88829         * modules/time (time.h): Likewise.
88830         * modules/wchar (wchar.h): Likewise.
88831         * modules/wctype (wtype.h): Likewise.
88833 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88835         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88837 2007-05-13  Bruno Haible  <bruno@clisp.org>
88839         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88840         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88841         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88842         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88843         (gl_PREREQ_STRTOK_R): Don't require it here.
88845 2007-05-13  Bruno Haible  <bruno@clisp.org>
88847         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88848         when used in C++ mode.
88850 2007-05-12  Bruno Haible  <bruno@clisp.org>
88852         * lib/linebuffer.h: Tweak doc.
88853         * lib/linebuffer.c: Likewise.
88855 2007-05-12  James Youngman  <jay@gnu.org>
88857         * lib/linebuffer.c (readlinebuffer_delim): New function,
88858         like readlinebuffer, but use a caller-specified delimiter.
88859         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88860         as the delimiter.
88861         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88863 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88865         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88866         * modules/openat (Files): Remove openat-die.c.
88867         (Depends-on): Add openat-die.
88868         * modules/openat-die: New module.
88870 2007-05-06  Bruno Haible  <bruno@clisp.org>
88872         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88873         Update with info about Cygwin.
88874         * doc/functions/fprintf.texi: Update.
88875         * doc/functions/printf.texi: Update.
88876         * doc/functions/snprintf.texi: Update.
88877         * doc/functions/sprintf.texi: Update.
88878         * doc/functions/vfprintf.texi: Update.
88879         * doc/functions/vprintf.texi: Update.
88880         * doc/functions/vsnprintf.texi: Update.
88881         * doc/functions/vsprintf.texi: Update.
88882         Reported by Eric Blake.
88884 2007-05-06  Bruno Haible  <bruno@clisp.org>
88886         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88887         padding ourselves for the floating-point directives.
88888         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88891         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88892         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88897         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88899         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88900         * tests/test-snprintf-posix.h (test_function): Also check the width
88901         and some flags in the %f directive.
88902         * tests/test-sprintf-posix.h (test_function): Likewise.
88903         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88904         * tests/test-vasprintf-posix.c (test_function): Likewise.
88905         * doc/functions/fprintf.texi: Update.
88906         * doc/functions/printf.texi: Update.
88907         * doc/functions/snprintf.texi: Update.
88908         * doc/functions/sprintf.texi: Update.
88909         * doc/functions/vfprintf.texi: Update.
88910         * doc/functions/vprintf.texi: Update.
88911         * doc/functions/vsnprintf.texi: Update.
88912         * doc/functions/vsprintf.texi: Update.
88914 2007-05-06  Bruno Haible  <bruno@clisp.org>
88916         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88917         pass the ' flag character to sprintf or snprintf.
88918         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88921         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88922         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88926         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88930         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88931         flag.
88932         * tests/test-sprintf-posix.h (test_function): Likewise.
88933         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88934         * tests/test-vasprintf-posix.c (test_function): Likewise.
88935         * doc/functions/fprintf.texi: Update.
88936         * doc/functions/printf.texi: Update.
88937         * doc/functions/snprintf.texi: Update.
88938         * doc/functions/sprintf.texi: Update.
88939         * doc/functions/vfprintf.texi: Update.
88940         * doc/functions/vprintf.texi: Update.
88941         * doc/functions/vsnprintf.texi: Update.
88942         * doc/functions/vsprintf.texi: Update.
88944 2007-05-01  Bruno Haible  <bruno@clisp.org>
88946         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88948 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88950         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88951         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88953 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88955         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88956         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88957         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88959 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88961         * lib/argp-help.c (struct hol_entry): New member `ord'.
88962         (HOL_ENTRY_PTRCMP): Use ord for comparison
88963         (hol_sort): Initialize ord.
88965 2007-05-01  Bruno Haible  <bruno@clisp.org>
88967         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88968         Reported by Eric Blake.
88969         * doc/gnulib.texi (Function Substitutes): Update.
88971 2007-05-01  Bruno Haible  <bruno@clisp.org>
88973         * doc/functions.texi: Remove file, now redundant through
88974         doc/functions/*.texi.
88976 2007-05-01  Bruno Haible  <bruno@clisp.org>
88978         * modules/argp (Depends-on): Add sleep.
88980 2007-05-01  Bruno Haible  <bruno@clisp.org>
88982         * modules/sleep-tests: New file.
88983         * tests/test-sleep.c: New file.
88985         * modules/sleep: New file.
88986         * lib/sleep.c: New file.
88987         * m4/sleep.m4: New file.
88988         * lib/unistd_.h (sleep): New declaration.
88989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88990         HAVE_SLEEP.
88991         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88992         * doc/functions/sleep.texi: Document the sleep module.
88994 2007-05-01  Bruno Haible  <bruno@clisp.org>
88996         * lib/sigprocmask.h: Remove file.
88997         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88998         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88999         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
89000         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
89001         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
89002         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
89003         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
89004         HAVE_SIGSET_T as a shell variable.
89005         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
89006         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
89007         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
89008         (Depends-on): Add signal. Remove verify.
89009         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
89010         (Include): Mention <signal.h> instead of sigprocmask.h.
89011         * NEWS: Mention the change.
89012         * lib/fatal-signal.c: Don't include sigprocmask.h.
89014 2007-05-01  Bruno Haible  <bruno@clisp.org>
89016         * modules/signal: New file.
89017         * lib/signal_.h: New file.
89018         * m4/signal_h.m4: New file.
89020 2007-05-01  Bruno Haible  <bruno@clisp.org>
89022         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
89023         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
89024         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
89025         HAVE_WCTYPE_CTMP_BUG into wctype.h.
89027 2007-05-01  Bruno Haible  <bruno@clisp.org>
89029         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
89030         configure time.
89031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
89032         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
89033         * modules/sys_stat (Makefile.am): Substitute their values into
89034         sys/stat.h.
89036 2007-05-01  Bruno Haible  <bruno@clisp.org>
89038         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
89039         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
89040         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
89042 2007-05-01  Bruno Haible  <bruno@clisp.org>
89044         * doc/header/assert.texi: Undo last change: don't mention the gnulib
89045         'assert' module here.
89047 2007-05-01  Bruno Haible  <bruno@clisp.org>
89049         * doc/functions/*.texi: New files.
89050         * doc/functions/google-ranking.txt: New file.
89051         * doc/gnulib.texi (Function Substitutes): New chapter.
89052         (ctime, inet_ntoa): Remove sections.
89053         * doc/ctime.texi: Remove file.
89054         * doc/inet_ntoa.texi: Remove file.
89055         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
89056         dependencies.
89057         (%.info): New rule, specifying a --reference-limit.
89059 2007-05-01  Bruno Haible  <bruno@clisp.org>
89061         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
89063 2007-05-01  Bruno Haible  <bruno@clisp.org>
89065         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
89066         the portability of 'mkdir' to mingw systems.
89068 2007-05-01  Bruno Haible  <bruno@clisp.org>
89070         * doc/headers/google-ranking.txt: New file.
89072 2007-04-30  Eric Blake  <ebb9@byu.net>
89074         Prefer fseeko to fseek.
89075         * modules/getpass (Depends-on): Add fseeko.
89076         * lib/getpass.c (getpass): Use fseeko, not fseek.
89078 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
89080         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
89081         assumes the sorting is stable, while most qsort implementations
89082         are not.  Use argument addresses to ensure they never compare as
89083         equal.
89085         * tests/test-argp-2.sh (usage-indent test): Fix output
89086         (func_compare): Restore diff options
89087         * tests/test-argp.c: Restore #include "progname.h"
89089 2007-04-29  Bruno Haible  <bruno@clisp.org>
89091         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
89092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89093         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
89094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89095         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
89096         (configure.ac): Define CHECK_SNPRINTF_POSIX.
89097         (TESTS, check_PROGRAMS): Add test-snprintf.
89098         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
89099         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
89100         (TESTS, check_PROGRAMS): Add test-vsnprintf.
89101         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
89102         assertions that fail on HP-UX, OSF/1, or IRIX.
89103         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
89105 2007-04-29  Bruno Haible  <bruno@clisp.org>
89107         * MODULES.html.sh (posix_functions): Remove 'contents'.
89109 2007-04-29  Karl Berry  <karl@gnu.org>
89111         * config/srclist.txt (gendocs_template_min): new entry.
89113 2007-04-29  Bruno Haible  <bruno@clisp.org>
89115         Work around fpurge bug on BSD systems.
89116         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
89117         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
89118         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
89119         fpurge to rpl_fpurge if the system already has this function.
89120         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
89121         the case where the system already has this function. Correct invariants
89122         on BSD systems.
89123         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
89124         BSD systems.
89126 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
89128         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
89129         proposed by Sven Verdoolaege.
89131         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
89132         options.
89133         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
89134         (usage and help tests): Update
89136 2007-04-29  Bruno Haible  <bruno@clisp.org>
89138         * tests/test-fflush.c (main): Use a file of size 17, not 10.
89139         Print more information in case of failure. Disable a test on BeOS.
89141 2007-04-29  Bruno Haible  <bruno@clisp.org>
89143         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
89144         This helps debugging on systems on which no gdb is available.
89146 2007-04-29  Bruno Haible  <bruno@clisp.org>
89148         * lib/freading.h: Improve comments.
89149         * lib/fwriting.h: Likewise.
89150         * tests/test-freading.c (main): Don't check freading immediately after
89151         repositioning. Needed for glibc.
89153 2007-04-29  Bruno Haible  <bruno@clisp.org>
89155         * lib/freading.c (freading): Trivial simplification.
89157 2007-04-28  Bruno Haible  <bruno@clisp.org>
89159         * tests/test-fwriting.c (main): Also test the interaction between
89160         fflush and fwriting.
89161         * modules/fwriting-tests (Depends-on): Add fflush.
89163         * tests/test-freading.c (main): Also test the interaction between
89164         fflush and freading.
89165         * modules/freading-tests (Depends-on): Add fflush.
89167 2007-04-28  Bruno Haible  <bruno@clisp.org>
89169         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
89170         fseeko and ftello.
89171         Suggested by Eric Blake.
89173 2007-04-28  Jim Meyering  <jim@meyering.net>
89175         Avoid false-negative in gl_STDINT_H's C99 conformance test.
89176         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
89177         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
89179 2007-04-27  Eric Blake  <ebb9@byu.net>
89181         * doc/headers/assert.texi (assert.h): Document assert module use.
89183 2007-04-27  Bruno Haible  <bruno@clisp.org>
89185         * doc/headers/*.texi: New files.
89186         * doc/gnulib.texi (Header File Substitutes): New chapter.
89187         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
89188         dependencies.
89189         (standards.info ,standards.html, standards.dvi): Update dependencies.
89190         (mostlyclean, clean): New targets.
89192 2007-04-27  Bruno Haible  <bruno@clisp.org>
89194         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
89195         * modules/sysexits (Files, Makefile.am): Update.
89197         * lib/sys_socket_.h: Renamed from lib/socket_.h.
89198         * modules/sys_socket (Files, Makefile.am): Update.
89200         * lib/sys_stat_.h: Renamed from lib/stat_.h.
89201         * modules/sys_stat (Files, Makefile.am): Update.
89203 2007-04-27  Eric Blake  <ebb9@byu.net>
89205         * lib/freading.h: Improve comments.
89206         * lib/fwriting.h: Likewise.
89207         * lib/fflush.c: Likewise.
89209         Fix closein for mingw.
89210         * modules/closein-tests: Add tests for closein.
89211         * tests/test-closein.c: New file.
89212         * tests/test-closein.sh: Likewise.
89213         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
89214         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
89216 2007-04-27  Bruno Haible  <bruno@clisp.org>
89218         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
89219         version is < 6.
89220         * lib/math_.h [__DECC]: Likewise.
89221         * lib/stdio_.h [__DECC]: Likewise.
89222         * lib/stdlib_.h [__DECC]: Likewise.
89223         * lib/string_.h [__DECC]: Likewise.
89224         * lib/time_.h [__DECC]: Likewise.
89225         * lib/wchar_.h [__DECC]: Likewise.
89226         * lib/wctype_.h [__DECC]: Likewise.
89228 2007-04-27  Bruno Haible  <bruno@clisp.org>
89230         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
89232 2007-04-27  Bruno Haible  <bruno@clisp.org>
89234         * lib/fflush.c: Add comments.
89235         * modules/fpurge-tests (Depends-on): Add fflush.
89236         * modules/freadable-tests (Depends-on): Likewise.
89237         * modules/fwritable-tests (Depends-on): Likewise.
89239 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
89241         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
89242         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
89243         Report by Bruno Haible <bruno@clisp.org>.
89245 2007-04-26  Eric Blake  <ebb9@byu.net>
89247         Fix fflush on mingw.
89248         * modules/fflush (Depends-on): Add freading.
89249         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
89250         but unread data.
89252 2007-04-26  Eric Blake  <ebb9@byu.net>
89253         and Bruno Haible  <bruno@clisp.org>
89255         Implement freading and fwriting.
89256         * lib/freading.c: New file.
89257         * lib/freading.h: Likewise.
89258         * m4/freading.m4: Likewise.
89259         * modules/freading: Likewise.
89260         * modules/freading-tests: Likewise.
89261         * tests/test-freading.c: Likewise.
89262         * lib/fwriting.c: New file.
89263         * lib/fwriting.h: Likewise.
89264         * m4/fwriting.m4: Likewise.
89265         * modules/fwriting: Likewise.
89266         * modules/fwriting-tests: Likewise.
89267         * tests/test-fwriting.c: Likewise.
89268         * MODULES.html.sh (File stream based Input/Output): Mention them.
89270 2007-04-26  Bruno Haible  <bruno@clisp.org>
89272         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
89273         'long' when we assume it.
89274         Suggested by Eric Blake.
89276 2007-04-26  Bruno Haible  <bruno@clisp.org>
89278         Ensure fseeko, ftello are declared on glibc systems.
89279         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
89280         * modules/fseeko (configure.ac-early): Likewise.
89281         * modules/ftello (configure.ac-early): Likewise.
89282         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
89283         AC_FUNC_FSEEKO for this.
89284         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
89285         (gl_CHECK_FSEEKO): Remove macro.
89287 2007-04-26  Bruno Haible  <bruno@clisp.org>
89289         * tests/test-fflush.c (main): Also check the ftell result after
89290         fflush and fseek/fseeko.
89291         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
89292         file descriptor position cache in the stream.
89293         * lib/fseeko.c (rpl_fseeko): Likewise.
89295 2007-04-26  Bruno Haible  <bruno@clisp.org>
89297         * modules/fflush-tests (Depends-on): Add fseeko.
89299 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
89300             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89302         * lib/argz_.h: ensure error_t definition is obtained in same
89303         mechanism system argz.h would have.
89304         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
89305         argz facilities are known bad.  Err on the side of caution if
89306         cross-compiling.
89308 2007-04-25  Eric Blake  <ebb9@byu.net>
89310         * lib/fpurge.c (includes): Use stdlib.h for free.
89311         * tests/test-fflush.c (main): Also test fflush-fseeko.
89313 2007-04-25  Bruno Haible  <bruno@clisp.org>
89315         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
89316         * lib/fseeko.c: New file.
89317         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
89318         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
89319         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
89320         gl_FUNC_FSEEKO.
89321         (gl_FUNC_FSEEKO): Invoke it.
89322         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
89323         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
89324         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
89326 2007-04-25  Bruno Haible  <bruno@clisp.org>
89328         * modules/fflush (Depends-on): Add ftello.
89330 2007-04-25  Bruno Haible  <bruno@clisp.org>
89332         * modules/ftello-tests: New file.
89333         * tests/test-ftello.c: New file.
89335         * modules/ftello: New file.
89336         * m4/ftello.m4: New file.
89337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
89338         HAVE_FTELLO.
89339         * lib/stdio_.h (ftello): New declaration.
89340         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
89341         HAVE_FTELLO.
89343 2007-04-25  Bruno Haible  <bruno@clisp.org>
89345         * modules/fseeko-tests: New file.
89346         * tests/test-fseeko.c: New file.
89348         * modules/fseeko: New file.
89349         * m4/fseeko.m4: New file.
89350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
89351         HAVE_FSEEKO.
89352         * lib/stdio_.h (fseeko): New declaration.
89353         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
89354         HAVE_FSEEKO.
89356 2007-04-25  Bruno Haible  <bruno@clisp.org>
89358         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89360 2007-04-25  Bruno Haible  <bruno@clisp.org>
89362         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89363         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89364         * tests/test-unistd.c: Likewise.
89365         * tests/test-fcntl.c: Likewise.
89367 2007-04-23  Eric Blake  <ebb9@byu.net>
89369         * lib/fflush.c: Fix missing include.
89370         Reported by Bruno Haible.
89372 2007-04-23  Bruno Haible  <bruno@clisp.org>
89374         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89375         Reported by Eric Blake.
89377 2007-04-23  Bruno Haible  <bruno@clisp.org>
89379         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89381 2007-04-23  Bruno Haible  <bruno@clisp.org>
89383         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89385 2007-04-23  Bruno Haible  <bruno@clisp.org>
89387         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89388         Needed on HP-UX 11.
89390 2007-04-16  Eric Blake  <ebb9@byu.net>
89392         Make fflush rely on fpurge.
89393         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89394         open coding all variants.
89395         * modules/fflush (Depends-on): Add fpurge and unistd.
89396         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89399         Fix --with-tests compilation on cygwin.
89400         * modules/argmatch-tests (Makefile.am): List gnulib library first
89401         in LDADD.
89402         * modules/argp-tests (Makefile.am): Likewise.
89403         * modules/array-list-tests (Makefile.am): Likewise.
89404         * modules/array-oset-tests (Makefile.am): Likewise.
89405         * modules/avltree-list-tests (Makefile.am): Likewise.
89406         * modules/avltree-oset-tests (Makefile.am): Likewise.
89407         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89408         * modules/carray-list-tests (Makefile.am): Likewise.
89409         * modules/dirname-tests (Makefile.am): Likewise.
89410         * modules/frexp-tests (Makefile.am): Likewise.
89411         * modules/isnanl-tests (Makefile.am): Likewise.
89412         * modules/linked-list-tests (Makefile.am): Likewise.
89413         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89414         * modules/lock-tests (Makefile.am): Likewise.
89415         * modules/rbtree-list-tests (Makefile.am): Likewise.
89416         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89417         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89418         * modules/tls-tests (Makefile.am): Likewise.
89419         * modules/tsearch-tests (Makefile.am): Likewise.
89420         * modules/xvasprintf-tests (Makefile.am): Likewise.
89422         Fix fpurge for cygwin.
89423         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89424         value.
89425         * modules/fpurge-tests (Depends-on): Clean up trash.
89427 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89429         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89431         * m4/autobuild.m4: Re-indent.
89433 2007-04-13  Bruno Haible  <bruno@clisp.org>
89435         * modules/fpurge-tests: New file.
89436         * tests/test-fpurge.c: New file.
89438         * modules/fpurge: New file.
89439         * lib/fpurge.h: New file.
89440         * lib/fpurge.c: New file.
89441         * m4/fpurge.m4: New file.
89443 2007-04-13  Bruno Haible  <bruno@clisp.org>
89445         * modules/fbufmode-tests: New file.
89446         * tests/test-fbufmode.c: New file.
89448         * modules/fbufmode: New file.
89449         * lib/fbufmode.h: New file.
89450         * lib/fbufmode.c: New file.
89451         * m4/fbufmode.m4: New file.
89453 2007-04-13  Bruno Haible  <bruno@clisp.org>
89455         * modules/fwritable-tests: New file.
89456         * tests/test-fwritable.c: New file.
89458         * modules/fwritable: New file.
89459         * lib/fwritable.h: New file.
89460         * lib/fwritable.c: New file.
89461         * m4/fwritable.m4: New file.
89463 2007-04-13  Bruno Haible  <bruno@clisp.org>
89465         * modules/freadable-tests: New file.
89466         * tests/test-freadable.c: New file.
89468         * modules/freadable: New file.
89469         * lib/freadable.h: New file.
89470         * lib/freadable.c: New file.
89471         * m4/freadable.m4: New file.
89473 2007-04-13  Bruno Haible  <bruno@clisp.org>
89475         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89476         MOSTLYCLEANFILES.
89478 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89480         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89481         gzip bootstrap.conf to avoid dragging in i18n machinery.
89482         (gnulib_tool_option): Use it.
89484 2007-04-13  Bruno Haible  <bruno@clisp.org>
89486         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89487         %F directives.
89488         * tests/test-vasprintf-posix.c (test_function): Likewise.
89489         * tests/test-snprintf-posix.h (test_function): Likewise.
89490         * tests/test-sprintf-posix.h (test_function): Likewise.
89491         * tests/test-fprintf-posix.h (test_function): Likewise.
89492         * tests/test-printf-posix.h (test_function): Likewise.
89493         * tests/test-fprintf-posix.out: Likewise.
89495 2007-04-13  Bruno Haible  <bruno@clisp.org>
89497         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89498         * modules/tls-tests (configure.ac): Likewise.
89499         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89501 2007-04-13  Bruno Haible  <bruno@clisp.org>
89503         * lib/tls.c (glthread_tls_get): Fix return type.
89504         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89506 2007-04-12  Eric Blake  <ebb9@byu.net>
89508         * modules/gettime (Depends-on): Remove gettime.
89509         Reported by Dmitry V. Levin.
89511 2007-04-12  Bruno Haible  <bruno@clisp.org>
89513         * modules/fflush (Include): Mention <stdio.h>.
89514         * modules/strtoimax (Include): Mention <inttypes.h>.
89515         * modules/strtoumax (Include): Likewise.
89517 2007-04-12  Eric Blake  <ebb9@byu.net>
89519         * .cvsignore: New file.
89520         * .gitignore: Likewise.
89522 2007-04-12  Bruno Haible  <bruno@clisp.org>
89524         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89525         not before, since $(LDADD) often contains libgnu.a.
89526         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89527         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89528         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89529         Needed on Cygwin.
89531 2007-04-12  Eric Blake  <ebb9@byu.net>
89533         Work around glibc's failure to flush stdin on fclose.
89534         * lib/closein.c (close_stdin): Flush stdin before closing.
89536         Work around glibc's failure to reset seekable stdin on exit.
89537         * modules/closein: New module.
89538         * lib/closein.c: New file.
89539         * lib/closein.h: Likewise.
89540         * m4/closein.m4: Likewise.
89541         * MODULES.html.sh (File stream based Input/Output): Document it.
89543 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89545         * gnulib-tool: Rename generated 'autobuild' script to
89546         'do-autobuild' in --create-megatestdir output.
89548         * doc/gnulib.texi (Build robot for gnulib): Fix.
89550 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89552         * modules/sysexits (Depends-on): Add absolute-header.
89554 2007-04-12  Eric Blake  <ebb9@byu.net>
89556         No need to preserve errno on success.
89557         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89558         Reported by Bruno Haible.
89560 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89562         * MODULES.html.sh (Support for maintaining and releasing
89563         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89565 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89567         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89569 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89571         * modules/autobuild: New module.
89573         * m4/autobuild.m4: New file.
89575 2007-04-11  Bruno Haible  <bruno@clisp.org>
89577         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89578         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89582         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89583         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89593         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89594         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89595         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89597         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89598         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89600         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89601         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89603         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89604         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89605         Reported by Eric Blake.
89607 2007-04-11  Bruno Haible  <bruno@clisp.org>
89609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89611 2007-04-10  Bruno Haible  <bruno@clisp.org>
89613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89614         for NaN and Infinity. Needed on FreeBSD 6.1.
89615         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89616         regarding results for "%010a" of Infinity and NaN.
89617         * tests/test-vasprintf-posix.c (test_function): Likewise.
89618         * tests/test-snprintf-posix.h (test_function): Likewise.
89619         * tests/test-sprintf-posix.h (test_function): Likewise.
89620         * tests/test-fprintf-posix.h (test_function): Likewise.
89621         * tests/test-printf-posix.h (test_function): Likewise.
89622         * tests/test-fprintf-posix.out: Likewise.
89624 2007-04-10  Bruno Haible  <bruno@clisp.org>
89626         * modules/locale-tests: New file.
89627         * tests/test-locale.c: New file.
89629         * modules/locale: New file.
89630         * lib/locale_.h: New file.
89631         * m4/locale_h.m4: New file.
89633 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89634             Bruno Haible  <bruno@clisp.org>
89636         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89637         be determined, test for availability of the copysignf, copysign,
89638         copysignl functions.
89639         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89640         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89641         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89643 2007-04-09  Eric Blake  <ebb9@byu.net>
89645         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89646         * modules/stdio (Makefile.am): Support fflush.
89647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89648         * modules/fflush: New file.
89649         * lib/fflush.c: Likewise.
89650         * m4/fflush.m4: Likewise.
89651         * modules/fflush-tests: New test.
89652         * tests/test-fflush.c: Likewise.
89653         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89655 2007-04-06  Bruno Haible  <bruno@clisp.org>
89657         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89658         (VASNPRINTF): Use signbit for faster determination whether to print a
89659         minus sign.
89660         * modules/vasnprintf (Files): Remove lib/float+.h.
89661         * modules/fprintf-posix (Depends-on): Add signbit.
89662         * modules/snprintf-posix (Depends-on): Likewise.
89663         * modules/sprintf-posix (Depends-on): Likewise.
89664         * modules/vasnprintf-posix (Depends-on): Likewise.
89665         * modules/vasprintf-posix (Depends-on): Likewise.
89666         * modules/vfprintf-posix (Depends-on): Likewise.
89667         * modules/vsnprintf-posix (Depends-on): Likewise.
89668         * modules/vsprintf-posix (Depends-on): Likewise.
89670 2007-04-06  Bruno Haible  <bruno@clisp.org>
89672         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89673         * tests/test-frexpl.c (main): Likewise.
89674         * tests/test-ldexpl.c (main): Likewise.
89675         * modules/frexp-tests (Depends-on): Add signbit.
89676         * modules/frexpl-tests (Depdends-on): Likewise.
89677         * modules/ldexpl-tests (Depdends-on): Likewise.
89679 2007-04-06  Bruno Haible  <bruno@clisp.org>
89681         * modules/signbit-tests: New file.
89682         * tests/test-signbit.c: New file.
89684         * modules/signbit: New file.
89685         * lib/signbitf.c: New file.
89686         * lib/signbitd.c: New file.
89687         * lib/signbitl.c: New file.
89688         * m4/signbit.m4: New file.
89689         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89690         (signbit): New macro.
89691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89692         REPLACE_SIGNBIT.
89693         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89694         REPLACE_FREXPL into math.h.
89696 2007-04-06  Bruno Haible  <bruno@clisp.org>
89698         * modules/isnanf-nolibm-tests: New file.
89699         * tests/test-isnanf.c: New file.
89701         * modules/isnanf-nolibm: New file.
89702         * lib/isnanf.h: New file.
89703         * lib/isnanf.c: New file.
89704         * lib/isnan.c: Consider the USE_FLOAT macro.
89705         * m4/isnanf.m4: New file.
89707 2007-04-06  Bruno Haible  <bruno@clisp.org>
89709         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89710         (Link): New section.
89712         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89714 2007-04-06  Bruno Haible  <bruno@clisp.org>
89716         Assume the 'long double' type.
89717         * m4/longdouble.m4: Remove file.
89718         * config/srclist.txt: Don't mention longdouble.m4.
89719         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89720         * lib/float+.h: Likewise.
89721         * lib/frexp.c: Likewise.
89722         * lib/printf-args.h: Likewise.
89723         * lib/printf-args.c: Likewise.
89724         * lib/printf-frexp.c: Likewise.
89725         * lib/printf-parse.c: Likewise.
89726         * lib/vasnprintf.c: Likewise.
89727         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89728         * m4/intl.m4: Likewise.
89729         * m4/isnanl.m4: Likewise.
89730         * m4/printf.m4: Likewise.
89731         * m4/printf-frexpl.m4: Likewise.
89732         * m4/vasnprintf.m4: Likewise.
89733         * modules/allocsa (Files): Remove m4/longdouble.m4.
89734         * modules/gettext (Files): Likewise.
89735         * modules/relocatable-prog-wrapper (Files): Likewise.
89736         * modules/vasnprintf (Files): Likewise.
89737         * modules/isnanl (Files): Likewise.
89738         (Include): Simplify.
89739         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89740         (Include): Simplify.
89741         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89742         (Include): Simplify.
89743         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89744         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89745         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89746         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89747         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89748         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89749         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89750         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89751         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89752         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89753         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89754         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89755         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89756         * tests/test-isnanl.c: Likewise.
89757         * tests/test-snprintf-posix.h: Likewise.
89758         * tests/test-sprintf-posix.h: Likewise.
89759         * tests/test-vasnprintf-posix.c: Likewise.
89760         * tests/test-vasnprintf-posix2.c: Likewise.
89761         * tests/test-vasprintf-posix.c: Likewise.
89763 2007-04-06  Bruno Haible  <bruno@clisp.org>
89765         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89766         * lib/math_.h [__DECC]: Include the overridden include file through
89767         #include_next, outside the double-inclusion guard.
89768         * lib/stdio_.h [__DECC]: Likewise.
89769         * lib/stdlib_.h [__DECC]: Likewise.
89770         * lib/string_.h [__DECC]: Likewise.
89771         * lib/time_.h [__DECC]: Likewise.
89772         * lib/wchar_.h [__DECC]: Likewise.
89773         * lib/wctype_.h [__DECC]: Likewise.
89774         * lib/inttypes_.h [__DECC]: Likewise.
89775         Reported by Albert Chin <china@thewrittenword.com> in
89776         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89778 2007-04-04  Eric Blake  <ebb9@byu.net>
89780         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89781         1.5.x.
89783 2007-04-04  Bruno Haible  <bruno@clisp.org>
89785         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89786         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89788 2007-04-04  Bruno Haible  <bruno@clisp.org>
89790         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89791         results for "%010a" of Infinity and NaN.
89792         * tests/test-vasprintf-posix.c (test_function): Likewise.
89793         * tests/test-snprintf-posix.h (test_function): Likewise.
89794         * tests/test-sprintf-posix.h (test_function): Likewise.
89795         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89796         * tests/test-printf-posix.h (test_function): Likewise.
89797         * tests/test-fprintf-posix.out: Update.
89798         Needed for FreeBSD 6.1.
89800 2007-04-04  Bruno Haible  <bruno@clisp.org>
89802         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89803         directly used by the gnulib modules nor by gnulib-tool.
89805 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89807         * DEPENDENCIES: Give overall description of version dependency
89808         desirability.  Use more-typical names for apps.
89809         Add shell, coreutils, diffutils, grep, tar, gzip.
89811 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89813         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89815 2007-04-04  Karl Berry  <karl@gnu.org>
89817         * MODULES.html.sh (func_module): missing '.
89819 2007-04-03  Bruno Haible  <bruno@clisp.org>
89821         * modules/argmatch-tests (Makefile.am): New variable
89822         test_argmatch_LDADD.
89823         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89824         * modules/array-list-tests (Makefile.am): New variable
89825         test_array_list_LDADD.
89826         * modules/array-oset-tests (Makefile.am): New variable
89827         test_array_oset_LDADD.
89828         * modules/avltree-list-tests (Makefile.am): New variable
89829         test_avltree_list_LDADD.
89830         * modules/avltree-oset-tests (Makefile.am): New variable
89831         test_avltree_oset_LDADD.
89832         * modules/avltreehash-list-tests (Makefile.am): New variable
89833         test_avltreehash_list_LDADD.
89834         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89835         test_canonicalize_lgpl_LDADD.
89836         * modules/carray-list-tests (Makefile.am): New variable
89837         test_carray_list_LDADD.
89838         * modules/dirname-tests (Makefile.am): New variable
89839         test_dirname_LDADD.
89840         * modules/linked-list-tests (Makefile.am): New variable
89841         test_linked_list_LDADD.
89842         * modules/linkedhash-list-tests (Makefile.am): New variable
89843         test_linkedhash_list_LDADD.
89844         * modules/rbtree-list-tests (Makefile.am): New variable
89845         test_rbtree_list_LDADD.
89846         * modules/rbtree-oset-tests (Makefile.am): New variable
89847         test_rbtree_oset_LDADD.
89848         * modules/rbtreehash-list-tests (Makefile.am): New variable
89849         test_rbtreehash_list_LDADD.
89850         * modules/xvasprintf-tests (Makefile.am): New variable
89851         test_xvasprintf_LDADD.
89852         Reported by Eric Blake.
89854 2007-04-03  Eric Blake  <ebb9@byu.net>
89856         * DEPENDENCIES: Weaken m4 requirements.
89858 2007-04-03  Bruno Haible  <bruno@clisp.org>
89860         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89861         * modules/isnanl-tests (configure.ac): Likewise.
89863 2007-04-03  Ben Pfaff  <blp@gnu.org>
89865         * modules/iconv_open: Add $(srcdir)/ to source directory
89866         references in Makefile fragments that call gperf, to fix VPATH
89867         builds.
89869 2007-04-03  Bruno Haible  <bruno@clisp.org>
89871         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89872         * lib/ldexpl.c: Undo last change.
89874 2007-04-03  Bruno Haible  <bruno@clisp.org>
89876         * modules/printf-frexpl (Depends-on): Undo last change.
89877         (Files): Add m4/ldexpl.m4.
89879 2007-04-03  Bruno Haible  <bruno@clisp.org>
89881         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89882         * modules/isnanl (Link): New section.
89884         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89885         * modules/frexp (Link): New section.
89887         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89888         * modules/frexpl (Link): New section.
89890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89891         * modules/ldexpl (Link): New section.
89893 2007-04-03  Bruno Haible  <bruno@clisp.org>
89895         * modules/TEMPLATE-EXTENDED: New file.
89896         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89898 2007-04-03  Bruno Haible  <bruno@clisp.org>
89900         * DEPENDENCIES: New file.
89901         Suggested by Simon Josefsson.
89903 2007-04-03  Bruno Haible  <bruno@clisp.org>
89905         * doc/gnulib.texi: Escape @.
89907 2007-04-03  James Youngman  <jay@gnu.org>
89908         and Paul Eggert  <eggert@cs.ucla.edu>
89910         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89911         birthtime on all systems that have birthtime, not just those which
89912         use st_birthtimensec rather than st_birthtim.  Putting zero in
89913         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89914         that the birth time is not available for files on an NFS mount.
89916 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89918         * modules/memxor: Move back from crypto/, suggested by Bruno.
89919         * modules/crypto/hmac-sha1: Fix memxor dependency.
89921         * modules/crypto/gc: Moved from ../.
89923 2007-04-02  Eric Blake  <ebb9@byu.net>
89925         * lib/ldexpl.c (includes): Avoid libm.
89927         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89929 2007-04-02  Bruno Haible  <bruno@clisp.org>
89931         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89932         on IRIX.
89934 2007-04-02  Bruno Haible  <bruno@clisp.org>
89936         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89937         x86 or x86_64 platforms running MacOS X.
89938         Reported by Ryan Schmidt <@ryandesign.com>.
89940 2007-04-02  Bruno Haible  <bruno@clisp.org>
89942         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89943         i386.
89945 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89947         * modules/crypto/arcfour: Moved from ../.
89948         * modules/crypto/arcfour-tests: Moved from ../.
89949         * modules/crypto/arctwo: Moved from ../.
89950         * modules/crypto/arctwo-tests: Moved from ../.
89951         * modules/crypto/des: Moved from ../.
89952         * modules/crypto/des-tests: Moved from ../.
89953         * modules/crypto/gc-arcfour: Moved from ../.
89954         * modules/crypto/gc-arcfour-tests: Moved from ../.
89955         * modules/crypto/gc-arctwo: Moved from ../.
89956         * modules/crypto/gc-arctwo-tests: Moved from ../.
89957         * modules/crypto/gc-des: Moved from ../.
89958         * modules/crypto/gc-des-tests: Moved from ../.
89959         * modules/crypto/gc-hmac-md5: Moved from ../.
89960         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89961         * modules/crypto/gc-hmac-sha1: Moved from ../.
89962         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89963         * modules/crypto/gc-md2: Moved from ../.
89964         * modules/crypto/gc-md2-tests: Moved from ../.
89965         * modules/crypto/gc-md4: Moved from ../.
89966         * modules/crypto/gc-md4-tests: Moved from ../.
89967         * modules/crypto/gc-md5: Moved from ../.
89968         * modules/crypto/gc-md5-tests: Moved from ../.
89969         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89970         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89971         * modules/crypto/gc-random: Moved from ../.
89972         * modules/crypto/gc-rijndael: Moved from ../.
89973         * modules/crypto/gc-rijndael-tests: Moved from ../.
89974         * modules/crypto/gc-sha1: Moved from ../.
89975         * modules/crypto/gc-sha1-tests: Moved from ../.
89976         * modules/crypto/gc-tests: Moved from ../.
89977         * modules/crypto/hmac-md5: Moved from ../.
89978         * modules/crypto/hmac-md5-tests: Moved from ../.
89979         * modules/crypto/hmac-sha1: Moved from ../.
89980         * modules/crypto/hmac-sha1-tests: Moved from ../.
89981         * modules/crypto/md2: Moved from ../.
89982         * modules/crypto/md2-tests: Moved from ../.
89983         * modules/crypto/md4: Moved from ../.
89984         * modules/crypto/md4-tests: Moved from ../.
89985         * modules/crypto/md5: Moved from ../.
89986         * modules/crypto/md5-tests: Moved from ../.
89987         * modules/crypto/memxor: Moved from ../.
89988         * modules/crypto/rijndael: Moved from ../.
89989         * modules/crypto/rijndael-tests: Moved from ../.
89990         * modules/crypto/sha1: Moved from ../.
89992 2007-03-30  James Youngman  <jay@gnu.org>
89994         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89995         rename() to change the ctime of a file (because ctime is unaffected
89996         by rename on jfs2 on AIX 5.1).
89997         (main): Start by doing cleanup, in case a previous run failed leaving
89998         test files behind.
90000 2007-03-31  Bruno Haible  <bruno@clisp.org>
90002         Support old proprietary implementations of iconv.
90003         * modules/iconv_open: New file.
90004         * lib/iconv_.h: New file.
90005         * m4/iconv_h.m4: New file.
90006         * lib/iconv_open.c: New file.
90007         * lib/iconv_open-aix.gperf: New file.
90008         * lib/iconv_open-hpux.gperf: New file.
90009         * lib/iconv_open-irix.gperf: New file.
90010         * lib/iconv_open-osf.gperf: New file.
90011         * m4/iconv_open.m4: New file.
90012         * modules/linebreak (Depends-on): Add iconv_open.
90013         * modules/striconv (Depends-on): Likewise.
90014         * modules/striconveh (Depends-on): Likewise.
90015         * modules/unicodeio (Depends-on): Likewise.
90016         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
90017         (iconv_t)(-1).
90018         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
90019         conversion if cd is (iconv_t)(-1).
90020         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
90021         is not possible.
90023 2007-03-31  Bruno Haible  <bruno@clisp.org>
90025         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
90026         work on Solaris either. Protect also second use of "autodetect_jp".
90028 2007-03-31  Bruno Haible  <bruno@clisp.org>
90030         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
90031         the function is not present.
90033 2007-03-31  Bruno Haible  <bruno@clisp.org>
90035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
90036         the function is not present.
90038 2007-03-31  Bruno Haible  <bruno@clisp.org>
90040         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
90041         a bug in HP-UX iconv_open().
90043 2007-03-31  Bruno Haible  <bruno@clisp.org>
90045         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
90046         (Mathematics <math.h>): New section, add fpieee.
90047         (Input/output <stdio.h>): Add fseterr.
90048         (Mathematics <math.h>): New section, add printf-frexp.
90049         (Container data structures): Add sublist.
90050         (Core language properties): Add fpucw, inline.
90051         (Functions for greatest-width integer types <inttypes.h>): Add
90052         imaxabs, imaxdiv, inttypes.
90053         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
90054         isnanl-nolibm, ldexp.
90055         (Mathematics <math.h>): New section, add printf-frexpl.
90056         (Support for systems lacking POSIX:2001): Add fprintf-posix,
90057         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
90058         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
90059         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
90060         (Unicode string functions): Add unistr/u*-mbtoucr.
90061         (Java): Add javacomp-script, javaexec-script.
90062         (C#): Add csharpcomp-script, csharpexec-script.
90063         (Support for building libraries and executables): Add havelib,
90064         relocatable-*.
90065         (Support for maintaining and releasing projects): Renamed from
90066         'Support for maintaining and release projects'. Add announce-gen.
90068 2007-03-31  Bruno Haible  <bruno@clisp.org>
90070         * README: Talk primarily about git.
90071         (git and CVS): Renamed from CVS.
90072         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
90073         gnulib is available through git.
90074         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
90076 2007-03-30  Bruno Haible  <bruno@clisp.org>
90078         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
90079         * lib/poll_.h: Likewise.
90080         * lib/stat_.h: Likewise.
90081         * lib/sys_time_.h: Likewise.
90082         * lib/sysexit_.h: Likewise.
90083         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
90084         * lib/stdbool_.h: Likewise.
90085         * lib/byteswap_.h: Add double-inclusion guard.
90087 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
90089         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
90091 2007-03-30  Karl Berry  <karl@gnu.org>
90093         * config/srclist-update: double space after USA in the license
90094         substitution, since that's how it's usually (?) written.
90096 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
90098         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
90099         reported by Bruno Haible.
90101 2007-03-29  Bruno Haible  <bruno@clisp.org>
90103         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
90104         a bug in AIX iconv().
90106 2007-03-29  Bruno Haible  <bruno@clisp.org>
90108         * modules/ldexpl-tests: New file.
90109         * tests/test-ldexpl.c: New file.
90111 2007-03-29  Bruno Haible  <bruno@clisp.org>
90113         * lib/ldexpl.c: Include fpucw.h.
90114         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
90115         multiplication.
90116         * modules/ldexpl (Depends-on): Add fpucw.
90118 2007-03-29  Bruno Haible  <bruno@clisp.org>
90120         * modules/ldexpl: New file.
90121         * m4/ldexpl.m4: New file.
90122         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
90123         set.
90124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
90125         REPLACE_LDEXPL.
90126         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
90127         REPLACE_LDEXPL.
90128         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
90129         gl_FUNC_LDEXPL_WORKS.
90130         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
90131         * modules/mathl (Files): Remove lib/ldexpl.c.
90132         (Depends-on): Add ldexpl.
90134 2007-03-29  Bruno Haible  <bruno@clisp.org>
90136         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
90138 2007-03-29  Bruno Haible  <bruno@clisp.org>
90140         * tests/test-striconveh.c (main): Don't assume that a direct conversion
90141         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
90142         and possibly also HP-UX.
90143         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
90144         work on AIX, IRIX, HP-UX, OSF/1.
90145         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
90146         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
90147         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
90148         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
90149         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
90150         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
90152 2007-03-29  Bruno Haible  <bruno@clisp.org>
90154         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
90156 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90158         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
90159         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
90161 2007-03-29  Eric Blake  <ebb9@byu.net>
90163         * lib/acl-internal.h: Remove redundant include.
90164         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
90165         Cygwin when a file is locked.
90167 2007-03-29  Bruno Haible  <bruno@clisp.org>
90169         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
90170         file.
90171         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
90173 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90175         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
90176         try to remove a parent directory if the child couldn't be removed
90177         (except for the first rmdir, which could fail because the child
90178         doesn't exist).  Problem reported by Jeff Blaine in
90179         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
90181 2007-03-28  Bruno Haible  <bruno@clisp.org>
90183         * lib/striconveh.c (utf8conv_carefully): New function.
90184         (mem_cd_iconveh_internal): Invoke it.
90186 2007-03-28  Bruno Haible  <bruno@clisp.org>
90188         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
90189         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
90190         input.
90191         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
90192         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
90193         unistr/u8-uctomb.
90195 2007-03-28  Bruno Haible  <bruno@clisp.org>
90197         * modules/unistr/u8-mbtoucr: New file.
90198         * lib/unistr/u8-mbtoucr.c: New file.
90199         * modules/unistr/u16-mbtoucr: New file.
90200         * lib/unistr/u16-mbtoucr.c: New file.
90201         * modules/unistr/u16-mbtoucr: New file.
90202         * lib/unistr/u16-mbtoucr.c: New file.
90203         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
90205 2007-03-27  Simon Josefsson  <simon@josefsson.org>
90206             Bruno Haible  <bruno@clisp.org>
90208         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
90209         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
90210         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
90212         * m4/stdio_h.m4: Add stubs for vasprintf too.
90214         * modules/stdio: Support vasprintf in sed command.
90216         * modules/vasprintf: Depend on stdio for prototypes.  Remove
90217         vasprintf.h.  Add stdio module indicator.
90219         * lib/stdio_.h: Declare asprintf and vasprintf, based on
90220         vasprintf.h.
90222         * lib/vasprintf.h: File removed.
90224         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
90225         * lib/vasprintf.c: Ditto.
90226         * lib/xvasprintf.c: Ditto.
90227         * tests/test-vasprintf-posix.c: Ditto.
90228         * tests/test-vasprintf.c: Ditto.
90230 2007-03-27  Bruno Haible  <bruno@clisp.org>
90232         Make vasnprintf multithread-safe.
90233         * lib/vasnprintf.c (decimal_point_char): New function.
90234         (VASNPRINTF): Use it.
90235         Suggested by Simon Josefsson.
90237 2007-03-27  Eric Blake  <ebb9@byu.net>
90239         Support sub-second birthtime on cygwin.
90240         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
90241         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
90242         (get_stat_birthtime): Also work with st_birthtim.
90244 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
90246         * lib/stat-time.h (USE_BIRTHTIME): Remove.
90247         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
90248         (get_stat_birthtime_ns): Do not try to use "spare" fields.
90249         (get_stat_birthtime_ns): Simplify compile-time tests.
90250         (get_stat_birthtime): Change the API to look like
90251         get_stat_mtime etc., except return a negative tv_nsec on error.
90252         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
90253         Don't check for "spare" fields.
90254         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
90255         or for struct stat.st_birthtime, as these tests aren't used.
90256         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
90258 2007-03-27  Bruno Haible  <bruno@clisp.org>
90260         * lib/stat-time.h: Include <sys/stat.h>.
90262 2007-03-27  James Youngman  <jay@gnu.org>
90264         * lib/stat-time.h (get_stat_birthtime): New function for
90265           retrieving st_birthtime as provided by UFS2 (hence *BSD).
90266         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
90267           and its variants.
90268         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
90269         * modules/stat-time-test: New file.
90270         * tests/test-stat-time.c: New test, devised by Bruno Haible.
90272 2007-03-26  Bruno Haible  <bruno@clisp.org>
90274         Better support of signalling NaNs.
90275         * lib/atanl.c: Include isnanl.h.
90276         (atanl): Perform test for NaN at the beginning of the function and
90277         through a call to isnanl.
90278         * lib/cosl.c: Include isnanl.h.
90279         (cosl): Perform test for NaN at the beginning of the function and
90280         through a call to isnanl.
90281         * lib/ldexpl.c: Include isnanl.h.
90282         (ldexpl): Perform test for NaN through a call to isnanl.
90283         * lib/logl.c: Include isnanl.h.
90284         (logl): Perform test for NaN at the beginning of the function and
90285         through a call to isnanl.
90286         * lib/sinl.c: Include isnanl.h.
90287         (sinl): Perform test for NaN at the beginning of the function and
90288         through a call to isnanl.
90289         * lib/sqrtl.c: Include isnanl.h.
90290         (sqrtl): Perform test for NaN at the beginning of the function and
90291         through a call to isnanl.
90292         * lib/tanl.c: Include isnanl.h.
90293         (tanl): Perform test for NaN at the beginning of the function and
90294         through a call to isnanl.
90295         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
90296         * modules/mathl (Depends-on): Add isnanl.
90298 2007-03-26  Eric Blake  <ebb9@byu.net>
90300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
90301         regression in logic sense of previous patch.
90303 2007-03-26  Bruno Haible  <bruno@clisp.org>
90305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
90306         unportable shell command "if ! ...".
90307         Reported by Ralf Wildenhues.
90309 2007-03-25  Bruno Haible  <bruno@clisp.org>
90311         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
90312         <sysexits.h> file, and only add EX_CONFIG.
90313         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
90314         absolute file name and whether it is sufficient. Substitute also
90315         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
90316         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
90317         ABSOLUTE_SYSEXITS_H into sysexits.h.
90319 2007-03-25  Bruno Haible  <bruno@clisp.org>
90321         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
90322         hints is NULL.
90324 2007-03-25  Bruno Haible  <bruno@clisp.org>
90326         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
90327         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
90329 2007-03-25  Bruno Haible  <bruno@clisp.org>
90331         * lib/vasnprintf.c: Include langinfo.h.
90332         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
90333         multithread-safe.
90334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
90335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
90336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
90342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90343         Reported by Simon Josefsson.
90345 2007-03-25  Bruno Haible  <bruno@clisp.org>
90347         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
90348         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
90349         * modules/vasnprintf (Depends-on): Add stdint.
90351 2007-03-25  Bruno Haible  <bruno@clisp.org>
90353         * modules/fpieee: New file.
90354         * m4/fpieee.m4: New file.
90355         * modules/isnan-nolibm (Depends-on): Add fpieee.
90356         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90357         * modules/isnanl (Depends-on): Add fpieee.
90359 2007-03-25  Bruno Haible  <bruno@clisp.org>
90361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90363 2007-03-25  Bruno Haible  <bruno@clisp.org>
90365         Avoid test failures on IRIX 6.5.
90366         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90367         (main): Use it.
90368         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90369         macros.
90370         (main): Use them.
90372 2007-03-25  Bruno Haible  <bruno@clisp.org>
90374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90375         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90376         exists but doesn't work.
90377         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90378         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90380         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90381         math.h.
90383 2007-03-25  Bruno Haible  <bruno@clisp.org>
90385         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90386         returns inf. Needed on IRIX 6.5.
90388 2007-03-25  Bruno Haible  <bruno@clisp.org>
90390         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90391         (main): Use isnanl instead of x != x idiom.
90392         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90394         * tests/test-frexp.c: Include isnan.h.
90395         (main): Use isnan instead of x != x idiom.
90396         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90398 2007-03-25  Bruno Haible  <bruno@clisp.org>
90400         * tests/test-frexp.c (NaN): New function/macro.
90401         (main): Use it instead of 0.0 / 0.0.
90402         * tests/test-isnan.c (NaN): New function/macro.
90403         (main): Use it instead of 0.0 / 0.0.
90404         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90405         (test_function): Use it instead of 0.0 / 0.0.
90406         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90407         (test_function): Use it instead of 0.0 / 0.0.
90408         * tests/test-snprintf-posix.h (NaN): New function/macro.
90409         (test_function): Use it instead of 0.0 / 0.0.
90410         * tests/test-sprintf-posix.h (NaN): New function/macro.
90411         (test_function): Use it instead of 0.0 / 0.0.
90412         * tests/test-fprintf-posix.h (NaN): New function/macro.
90413         (test_function): Use it instead of 0.0 / 0.0.
90414         * tests/test-printf-posix.h (NaN): New function/macro.
90415         (test_function): Use it instead of 0.0 / 0.0.
90417         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90419 2007-03-25  Bruno Haible  <bruno@clisp.org>
90421         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90423 2007-03-25  Bruno Haible  <bruno@clisp.org>
90425         * lib/regexec.c (merge_state_with_log): Make static.
90427 2007-03-25  Bruno Haible  <bruno@clisp.org>
90429         * lib/trigl.c (kernel_rem_pio2): Make static.
90431 2007-03-25  Bruno Haible  <bruno@clisp.org>
90433         * lib/sincosl.c (sincosl_table): Make static.
90435 2007-03-25  Bruno Haible  <bruno@clisp.org>
90437         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90438         if the compiler does not support C99.
90440 2007-03-25  Bruno Haible  <bruno@clisp.org>
90442         * modules/time (Makefile.am): Ensure all rule action lines start with a
90443         tab.
90445 2007-03-24  Bruno Haible  <bruno@clisp.org>
90447         * modules/tsearch-tests: New file.
90448         * tests/test-tsearch.sh: New file.
90449         * tests/test-tsearch.c: New file, mostly copied from glibc.
90451         * modules/search-tests: New file.
90452         * tests/test-search.c: New file.
90454         * modules/search: New file.
90455         * lib/search_.h: New file, incorporating lib/tsearch.h.
90456         * m4/search_h.m4: New file.
90457         * lib/tsearch.h: Remove file.
90458         * lib/tsearch.c: Include search.h instead of tsearch.h.
90459         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90460         HAVE_TSEARCH.
90461         * modules/tsearch (Files): Remove lib/tsearch.h.
90462         (Depends-on): Add search.
90463         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90464         (Include): Change tsearch.h into search.h.
90466 2007-03-24  Bruno Haible  <bruno@clisp.org>
90468         * modules/fpucw: New file.
90469         * lib/fpucw.h: New file.
90470         * lib/frexp.c: Include fpucw.h.
90471         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90472         (FUNC): Use them.
90473         * lib/printf-frexp.c: Include fpucw.h.
90474         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90475         (FUNC): Use them.
90476         * lib/vasnprintf.c: Include fpucw.h.
90477         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90478         'long double' calculations.
90479         * tests/test-frexpl.c: Include fpucw.h.
90480         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90481         * tests/test-printf-frexpl.c: Include fpucw.h.
90482         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90483         * modules/frexpl (Depends-on): Add fpucw.
90484         * modules/printf-frexpl (Depends-on): Likewise.
90485         * modules/fprintf-posix (Depends-on): Likewise.
90486         * modules/snprintf-posix (Depends-on): Likewise.
90487         * modules/sprintf-posix (Depends-on): Likewise.
90488         * modules/vasnprintf-posix (Depends-on): Likewise.
90489         * modules/vasprintf-posix (Depends-on): Likewise.
90490         * modules/vfprintf-posix (Depends-on): Likewise.
90491         * modules/vsnprintf-posix (Depends-on): Likewise.
90492         * modules/vsprintf-posix (Depends-on): Likewise.
90493         * modules/frexpl-tests (Depends-on): Likewise.
90494         * modules/printf-frexpl-tests (Depends-on): Likewise.
90496 2007-03-24  Bruno Haible  <bruno@clisp.org>
90498         * lib/float+.h: New file.
90499         * lib/isnan.c: Include float+.h.
90500         (SIZE): New macro.
90501         (FUNC): Compare only SIZE bytes of the value.
90502         * lib/vasnprintf.c: Include float+.h.
90503         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90504         SIZEOF_LDBL or SIZEOF_DBL bytes.
90505         * modules/isnan-nolibm (Files): Add lib/float+.h.
90506         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90507         * modules/isnanl (Files): Add lib/float+.h.
90508         * modules/vasnprintf (Files): Add lib/float+.h.
90510 2007-03-24  Bruno Haible  <bruno@clisp.org>
90512         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90513         include isnanl-nolibm.h.
90515 2007-03-24  Bruno Haible  <bruno@clisp.org>
90517         * tests/test-read-file.c (main): Don't produce spurious output for
90518         expected situations. Make the test fail if it encountered unexpected
90519         results.
90521 2007-03-24  Bruno Haible  <bruno@clisp.org>
90523         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90524         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90526 2007-03-24  Bruno Haible  <bruno@clisp.org>
90528         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90530 2007-03-24  Bruno Haible  <bruno@clisp.org>
90532         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90533         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90535         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90536         * modules/utf8-ucs4: Turn into a symbolic link to module
90537         unistr/u8-mbtouc.
90539         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90540         utf8-ucs4-unsafe.
90541         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90542         unistr/u8-mbtouc-unsafe.
90544         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90545         * modules/utf16-ucs4: Turn into a symbolic link to module
90546         unistr/u16-mbtouc.
90548         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90549         utf16-ucs4-unsafe.
90550         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90551         unistr/u16-mbtouc-unsafe.
90553         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90554         * modules/ucs4-utf8: Turn into a symbolic link to module
90555         unistr/u8-ubtomb.
90557         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90558         * modules/ucs4-utf16: Turn into a symbolic link to module
90559         unistr/u16-ubtomb.
90561 2007-03-24  Bruno Haible  <bruno@clisp.org>
90563         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90564         Enable the function only if HAVE_INLINE.
90565         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90566         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90567         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90568         Enable the function only if HAVE_INLINE.
90569         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90570         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90571         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90572         Enable the function only if HAVE_INLINE.
90573         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90574         Enable the function only if HAVE_INLINE.
90575         * modules/utf8-ucs4: Update.
90576         * modules/utf8-ucs4-unsafe: Update.
90577         * modules/utf16-ucs4: Update.
90578         * modules/utf16-ucs4-unsafe: Update.
90579         * modules/ucs4-utf8: Update.
90580         * modules/ucs4-utf16: Update.
90582 2007-03-24  Bruno Haible  <bruno@clisp.org>
90584         * lib/utf8-ucs4.h: Remove file.
90585         * lib/utf8-ucs4-unsafe.h: Remove file.
90586         * lib/utf16-ucs4.h: Remove file.
90587         * lib/utf16-ucs4-unsafe.h: Remove file.
90588         * lib/ucs4-utf8.h: Remove file.
90589         * lib/ucs4-utf16.h: Remove file.
90590         * lib/unistr.h: Include their previous contents.
90591         * m4/utf-ucs4.m4: Remove file.
90592         * m4/ucs4-utf.m4: Remove file.
90593         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90594         (Depends-on): Add unistr/base.
90595         (configure.ac): Remove gl_UTF_UCS4.
90596         (Makefile.am): Update.
90597         (Include): Change to unistr.h.
90598         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90599         (Depends-on): Add unistr/base.
90600         (configure.ac): Remove gl_UTF_UCS4.
90601         (Makefile.am): Update.
90602         (Include): Change to unistr.h.
90603         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90604         (Depends-on): Add unistr/base.
90605         (configure.ac): Remove gl_UTF_UCS4.
90606         (Makefile.am): Update.
90607         (Include): Change to unistr.h.
90608         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90609         (Depends-on): Add unistr/base.
90610         (configure.ac): Remove gl_UTF_UCS4.
90611         (Makefile.am): Update.
90612         (Include): Change to unistr.h.
90613         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90614         (Depends-on): Add unistr/base.
90615         (configure.ac): Remove gl_UCS4_UTF.
90616         (Makefile.am): Update.
90617         (Include): Change to unistr.h.
90618         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90619         (Depends-on): Add unistr/base.
90620         (configure.ac): Remove gl_UCS4_UTF.
90621         (Makefile.am): Update.
90622         (Include): Change to unistr.h.
90623         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90624         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90625         utf8-ucs4-unsafe.h.
90626         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90627         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90628         utf16-ucs4-unsafe.h.
90629         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90630         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90631         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90632         * lib/unistr/u8-strchr.c: Likewise.
90633         * lib/unistr/u8-strrchr.c: Likewise.
90634         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90635         * lib/unistr/u16-strchr.c: Likewise.
90636         * lib/unistr/u16-strrchr.c: Likewise.
90637         * lib/striconveh.c: Update.
90638         * lib/linebreak.c: Update.
90640 2007-03-24  Bruno Haible  <bruno@clisp.org>
90642         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90643         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90645 2007-03-22  Bruno Haible  <bruno@clisp.org>
90647         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90649 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90651         * MODULES.html.sh (File system functions): New module write-any-file.
90652         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90653         * m4/write-any-file.m4: New files.
90655 2007-03-23  Eric Blake  <ebb9@byu.net>
90657         * gnulib-tool: Rearrange space-tab sequences, since some editors
90658         like to eat them.
90660 2007-03-23  Eric Blake  <ebb9@byu.net>
90662         * lib/version-etc.c (version_etc_va): Update license wording to
90663         be more concise.  Recommended by Richard Stallman.
90665 2007-03-22  Bruno Haible  <bruno@clisp.org>
90667         * lib/poll.c (MSG_PEEK): New fallback definition.
90669 2007-03-22  Bruno Haible  <bruno@clisp.org>
90671         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90672         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90673         (main): Update.
90674         Fixes a compilation error on BeOS.
90676 2007-03-22  Bruno Haible  <bruno@clisp.org>
90678         * modules/frexpl-tests: New file.
90679         * tests/test-frexpl.c: New file.
90681         * modules/frexpl: New file.
90682         * m4/frexpl.m4: New file.
90683         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90684         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90686         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90687         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90688         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90690 2007-03-22  Bruno Haible  <bruno@clisp.org>
90692         * lib/frexpl.c: Share code with lib/frexp.c.
90693         * modules/mathl (Files): Add lib/frexp.c.
90694         (Depends-on): Add isnanl-nolibm.
90696 2007-03-22  Bruno Haible  <bruno@clisp.org>
90698         * modules/printf-frexp (Files): Add m4/frexp.m4.
90699         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90700         only if the found frexp function actually works.
90702 2007-03-22  Bruno Haible  <bruno@clisp.org>
90704         * lib/frexp.c: Remove older implementation that uses divisions.
90706 2007-03-21  Bruno Haible  <bruno@clisp.org>
90708         * modules/frexp-tests: New file.
90709         * tests/test-frexp.c: New file.
90711         * modules/frexp: New file.
90712         * lib/frexp.c: New file.
90713         * m4/frexp.m4: New file.
90714         * lib/math_.h (frexp): New declaration.
90715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90716         REPLACE_FREXP.
90717         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90719 2007-03-21  Bruno Haible  <bruno@clisp.org>
90721         * modules/isnanl-tests: New file.
90722         * tests/test-isnanl.c: New file.
90724         * modules/isnanl: New file.
90725         * lib/isnanl.h: New file.
90726         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90727         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90728         gl_FUNC_ISNANL_WORKS.
90729         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90730         New macros.
90732 2007-03-21  Bruno Haible  <bruno@clisp.org>
90734         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90735         lib/isnanl.h.
90736         (Include): Update.
90737         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90738         * lib/vasnprintf.c: Update.
90739         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90740         tests/test-isnanl.h, remove tests/test-isnanl.c.
90741         (Makefile.am): Update.
90742         * tests/test-isnanl-nolibm.c: New file.
90743         * tests/test-isnanl.h: New file.
90744         * tests/test-isnanl.c: Remove file.
90746 2007-03-21  Jim Meyering  <jim@meyering.net>
90748         When trying to open ".", treat ESTALE like EACCES.
90749         * lib/savewd.c (savewd_save): Resort to forking not just upon
90750         failure with EACCES, but also when errno is ESTALE.
90752 2007-03-20  Bruno Haible  <bruno@clisp.org>
90754         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90755         Needed on AIX 5.1. Reported by Matthew Woehlke.
90757 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90759         Suggestions by Bruno Haible:
90760         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90761         our own.
90762         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90763         * modules/acl (Depends-on): Add gettext.
90765 2007-03-19  Bruno Haible  <bruno@clisp.org>
90767         * modules/iconvme: Remove file.
90768         * lib/iconvme.h: Remove file.
90769         * lib/iconvme.c: Remove file.
90770         * m4/iconvme.m4: Remove file.
90772 2007-03-19  Bruno Haible  <bruno@clisp.org>
90774         * doc/relocatable-maint.texi: Break long shell script line.
90775         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90777 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90779         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90780         handle file_has_acl.
90781         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90782         * lib/acl.c: Move header inclusions and related macro defns into
90783         lib/acl-internal.h.
90784         (S_ISLNK): Remove defn, since that's now done for us.
90785         (file_has_acl): Move to lib/file-has-acl.c.
90786         Call acl_trivial if available.  This is the crucial part of the fix.
90787         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90788         shared within the library.  Rewrite a bit, partly to make it compatible
90789         with the GNU coding style.
90790         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90791         Remove unnecessary double-quotes.
90792         Don't test for acl_to_text; the build will catch that.
90793         Replace acl_entries if it doesn't exist and it is needed.
90794         Check for -lsec and acl_trivial (as used on Solaris 10).
90795         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90796         lib/file-has-acl.c.
90797         (Depends-on): Add sys_stat, for S_ISLNK.
90799 2007-03-19  Ben Pfaff  <blp@gnu.org>
90801         * doc/gnulib.texi: Fix typos.
90802         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90804 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90806         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90807         If size is zero here, buf must be zero.
90809 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90811         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90812         <bruno@clisp.org>.
90814 2007-03-18  Bruno Haible  <bruno@clisp.org>
90816         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90817         Suggested by Eric Blake.
90819 2007-03-18  Ben Pfaff  <blp@gnu.org>
90821         * doc/relocatable.texi: Recommend using as prefix a directory
90822         that does not exist and will never be created.  Based on
90823         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90824         and others.
90826 2007-03-17  Bruno Haible  <bruno@clisp.org>
90828         * lib/fchownat.c: Include lchown.h.
90830 2007-03-17  Bruno Haible  <bruno@clisp.org>
90832         Fix endless loop when the given allocated size was > INT_MAX.
90833         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90834         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90835         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90836         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90837         * lib/sprintf.c (sprintf): Likewise.
90839 2007-03-17  Bruno Haible  <bruno@clisp.org>
90841         * tests/test-argp-2.sh (func_compare): Output a context diff.
90843 2007-03-17  Bruno Haible  <bruno@clisp.org>
90845         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90846         locale's decimal-point character.
90848 2007-03-17  Bruno Haible  <bruno@clisp.org>
90850         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90851         before comparing it. Needed because on some platforms (e.g. x86) a
90852         'long double' occupies less bytes than sizeof (long double).
90854 2007-03-17  Bruno Haible  <bruno@clisp.org>
90856         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90857         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90858         * tests/test-getaddrinfo.c (simple): Likewise.
90859         * tests/test-read-file.c (main): Likewise.
90861 2007-03-17  Bruno Haible  <bruno@clisp.org>
90863         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90865 2007-03-17  Bruno Haible  <bruno@clisp.org>
90867         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90868         unused variable.
90870 2007-03-17  Bruno Haible  <bruno@clisp.org>
90872         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90873         * tests/test-c-strncasecmp.c: Likewise.
90875 2007-03-17  Bruno Haible  <bruno@clisp.org>
90877         * modules/stdlib (Depends-on): Add unistd.
90878         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90879         Needed for MacOS X 10.3.
90881 2007-03-17  Bruno Haible  <bruno@clisp.org>
90883         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90885 2007-03-17  Bruno Haible  <bruno@clisp.org>
90887         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90889 2007-03-17  Bruno Haible  <bruno@clisp.org>
90891         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90892         to reflect files copied from gnulib (with or without modifications).
90893         Suggested by Jim Meyering.
90895 2007-03-17  Eric Blake  <ebb9@byu.net>
90897         * NEWS: Document stdlib change from 2007-02-18.
90899 2007-03-17  Jim Meyering  <jim@meyering.net>
90901         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90902         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90903         someone uses a name containing shell meta-characters.
90904         Reported by Alfred M. Szmidt.
90906         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90908 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90910         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90911         and copy gettext configuration files only if configure.ac contains
90912         a use of AM_GNU_GETTEXT_VERSION.
90914 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90916         * build-aux/bootstrap (gnulib_name): New variable.
90917         (gnulib_tool_options): Use it.
90919 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90921         * tests/test-des.c: Use new namespace.
90923 2007-03-15  Bruno Haible  <bruno@clisp.org>
90925         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90926         Reported by James Youngman <jay@gnu.org>.
90928 2007-03-15  Bruno Haible  <bruno@clisp.org>
90930         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90931         declared prototype. Needed with cc on OSF/1 5.1.
90933 2007-03-15  Bruno Haible  <bruno@clisp.org>
90935         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90936         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90937         (struct gl_list_implementation): Add dispose_fn argument to the
90938         'create_empty', 'create' methods.
90939         (struct gl_list_impl_base): Add field 'dispose_fn'.
90940         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90941         argument.
90942         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90943         dispose_fn argument.
90944         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90945         dispose_fn on the dropped values.
90946         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90947         dispose_fn argument.
90948         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90949         dropped values.
90950         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90951         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90952         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90953         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90954         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90955         argument.
90956         (gl_tree_list_free): Call dispose_fn on the dropped values.
90957         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90958         the dropped values.
90959         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90960         Add dispose_fn argument.
90961         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90962         Call dispose_fn on the dropped values.
90963         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90964         Add dispose_fn argument.
90965         (gl_sublist_create): Initialize the 'dispose_fn' field.
90966         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90967         * tests/test-array_list.c (main): Update.
90968         * tests/test-carray_list.c (main): Update.
90969         * tests/test-avltree_list.c (main): Update.
90970         * tests/test-rbtree_list.c (main): Update.
90971         * tests/test-avltreehash_list.c (main): Update.
90972         * tests/test-rbtreehash_list.c (main): Update.
90973         * tests/test-linked_list.c (main): Update.
90974         * tests/test-linkedhash_list.c (main): Update.
90975         * tests/test-array_oset.c (main): Update.
90977 2007-03-15  Bruno Haible  <bruno@clisp.org>
90979         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90980         (gl_oset_create_empty): Add dispose_fn argument.
90981         (struct gl_oset_implementation): Add dispose_fn argument to
90982         'create_empty' method.
90983         (struct gl_oset_impl_base): Add dispose_fn field.
90984         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90985         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90986         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90987         values.
90988         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90989         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90990         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90991         dropped value.
90992         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90993         dropped value.
90994         * tests/test-array_oset.c (main): Update.
90995         * tests/test-avltree_oset.c (main): Update.
90996         * tests/test-rbtree_oset.c (main): Update.
90997         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90999 2007-03-13  Bruno Haible  <bruno@clisp.org>
91001         * tests/test-stdbool.c (i): Update after last patch.
91003 2007-03-12  Bruno Haible  <bruno@clisp.org>
91005         * lib/quotearg.c: Include <wctype.h> early, before the definition of
91006         the iswprint macro. Needed on Solaris 2.5.1.
91008 2007-03-12  Bruno Haible  <bruno@clisp.org>
91010         * tests/test-printf-frexp.c (main): Declare x as volatile.
91012 2007-03-12  Simon Josefsson  <simon@josefsson.org>
91014         * doc/gnulib.texi (Build robot for gnulib): New section.
91016 2007-03-12  Jim Meyering  <jim@meyering.net>
91018         * build-aux/bootstrap: New file.
91019         * build-aux/bootstrap.conf: New file, from coreutils.
91021 2007-03-11  Bruno Haible  <bruno@clisp.org>
91023         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
91025 2007-03-12  Simon Josefsson  <simon@josefsson.org>
91027         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
91028         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
91029         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
91031 2007-03-11  Bruno Haible  <bruno@clisp.org>
91033         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
91034         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
91036 2007-03-11  Bruno Haible  <bruno@clisp.org>
91038         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
91039         formula. Needed for SunPRO C 5.0.
91041 2007-03-11  Bruno Haible  <bruno@clisp.org>
91043         * modules/long-options (Depends-on): Add getopt.
91045 2007-03-11  Bruno Haible  <bruno@clisp.org>
91047         * modules/modechange (Depends-on): Add stdbool.
91049 2007-03-11  Bruno Haible  <bruno@clisp.org>
91051         * modules/i-ring (Depends-on): Add stdbool.
91053 2007-03-11  Bruno Haible  <bruno@clisp.org>
91055         * modules/gc-des (Depends-on): Add stdbool.
91057 2007-03-11  Bruno Haible  <bruno@clisp.org>
91059         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
91061 2007-03-11  Bruno Haible  <bruno@clisp.org>
91063         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
91065 2007-03-11  Bruno Haible  <bruno@clisp.org>
91067         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
91069 2007-03-11  Bruno Haible  <bruno@clisp.org>
91071         * lib/vasnprintf.c (sprintf): Undefine.
91073 2007-03-11  Bruno Haible  <bruno@clisp.org>
91075         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
91076         initializers in SunPRO C and Compaq C compilers.
91078 2007-03-11  Bruno Haible  <bruno@clisp.org>
91080         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
91081         decrementing code ANSI C compliant.
91083 2007-03-11  Bruno Haible  <bruno@clisp.org>
91085         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
91086         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
91088 2007-03-11  Bruno Haible  <bruno@clisp.org>
91090         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
91091         <stdbool.h> substitute doesn't pass.
91093 2007-03-11  Bruno Haible  <bruno@clisp.org>
91095         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
91097 2007-03-11  Bruno Haible  <bruno@clisp.org>
91099         * gnulib-tool (func_create_megatestdir): Create also an autobuild
91100         script, for submission to autobuild.josefsson.org.
91102 2007-03-10  Bruno Haible  <bruno@clisp.org>
91104         * modules/canonicalize-lgpl-tests: New file.
91105         * tests/test-canonicalize-lgpl.sh: New file.
91106         * tests/test-canonicalize-lgpl.c: New file.
91108         * modules/c-strcase-tests: New file.
91109         * tests/test-c-strcase.sh: New file.
91110         * tests/test-c-strcasecmp.c: New file.
91111         * tests/test-c-strncasecmp.c: New file.
91113         * modules/atexit-tests: New file.
91114         * tests/test-atexit.sh: New file.
91115         * tests/test-atexit.c: New file.
91117 2007-03-10  Bruno Haible  <bruno@clisp.org>
91119         * tests/test-binary-io.sh: Use temporary filenames that are not so
91120         likely to clash with those of other tests (in a parallel make).
91121         * tests/test-binary-io.c: Likewise.
91123 2007-03-10  Bruno Haible  <bruno@clisp.org>
91125         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
91126         fallback; use #error instead.
91127         Suggested by Simon Josefsson.
91129 2007-03-10  Bruno Haible  <bruno@clisp.org>
91131         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
91132         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
91133         first and the last.
91135 2007-03-10  Bruno Haible  <bruno@clisp.org>
91137         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
91139 2007-03-10  Bruno Haible  <bruno@clisp.org>
91141         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
91142         "make distcheck".
91143         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
91144         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
91145         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
91147 2007-03-10  Bruno Haible  <bruno@clisp.org>
91149         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
91150         variable.
91151         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
91152         variable.
91154 2007-03-09  Eric Blake  <ebb9@byu.net>
91155         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
91157         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
91158         types are not being provided by gnulib.
91159         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
91160         types are supported.
91162 2007-03-10  Bruno Haible  <bruno@clisp.org>
91164         * lib/stdio_.h (__attribute__): New macro.
91165         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
91166         vsprintf): Specify __attribute__ __format__ for GCC.
91167         Suggested by Eric Blake.
91169 2007-03-09  Bruno Haible  <bruno@clisp.org>
91171         * modules/printf-posix-tests: New file.
91172         * tests/test-printf-posix.sh: New file.
91173         * tests/test-printf-posix.c: New file.
91175         * modules/printf-posix: New file.
91176         * lib/printf.c: New file.
91177         * m4/printf-posix-rpl.m4: New file.
91178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
91179         REPLACE_PRINTF.
91180         * lib/stdio_.h (printf): New declaration.
91181         (format, __format__, ____printf____, ____scanf____, ____strftime____,
91182         ____strfmon____): New macros.
91183         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
91184         REPLACE_PRINTF.
91186 2007-03-09  Bruno Haible  <bruno@clisp.org>
91188         * tests/test-vasnprintf-posix2.sh: New file.
91189         * tests/test-vasnprintf-posix2.c: New file.
91190         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
91191         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
91192         (Makefile.am): Activate test-vasnprintf-posix2.sh.
91194         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
91195         a locale dependent decimal point, rather than always '.'.
91197 2007-03-09  Eric Blake  <ebb9@byu.net>
91199         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
91200         spite of platforms like Tandem/NSK that define it to -1.
91202 2007-03-08  Bruno Haible  <bruno@clisp.org>
91204         * modules/vprintf-posix-tests: New file.
91205         * tests/test-vprintf-posix.sh: New file.
91206         * tests/test-vprintf-posix.c: New file.
91207         * tests/test-printf-posix.h: New file.
91209         * modules/vprintf-posix: New file.
91210         * lib/vprintf.c: New file.
91211         * m4/vprintf-posix.m4: New file.
91212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
91213         REPLACE_VPRINTF.
91214         * lib/stdio_.h (vprintf): New declaration.
91215         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
91216         REPLACE_VPRINTF.
91218 2007-03-08  Bruno Haible  <bruno@clisp.org>
91220         * modules/fprintf-posix-tests: New file.
91221         * tests/test-fprintf-posix.sh: New file.
91222         * tests/test-fprintf-posix.c: New file.
91224         * modules/fprintf-posix: New file.
91225         * lib/fprintf.c: New file.
91226         * m4/fprintf-posix.m4: New file.
91227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
91228         REPLACE_FPRINTF.
91229         * lib/stdio_.h (fprintf): New declaration.
91230         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
91231         REPLACE_FPRINTF.
91233 2007-03-08  Bruno Haible  <bruno@clisp.org>
91235         * modules/vfprintf-posix-tests: New file.
91236         * tests/test-vfprintf-posix.sh: New file.
91237         * tests/test-vfprintf-posix.c: New file.
91238         * tests/test-fprintf-posix.h: New file.
91239         * tests/test-fprintf-posix.out: New file.
91241         * modules/vfprintf-posix: New file.
91242         * lib/vfprintf.c: New file.
91243         * m4/vfprintf-posix.m4: New file.
91244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
91245         REPLACE_VFPRINTF.
91246         * lib/stdio_.h (vfprintf): New declaration.
91247         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
91248         REPLACE_VFPRINTF.
91250 2007-03-08  Bruno Haible  <bruno@clisp.org>
91252         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
91254 2007-03-08  Bruno Haible  <bruno@clisp.org>
91256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
91257         instead of 'expr' invocations.
91258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91263         Suggested by Paul Eggert.
91265 2007-03-08  Bruno Haible  <bruno@clisp.org>
91267         * modules/fseterr-tests: New file.
91268         * tests/test-fseterr.c: New file.
91270         * modules/fseterr: New file.
91271         * lib/fseterr.h: New file.
91272         * lib/fseterr.c: New file.
91274 2007-03-08  Bruno Haible  <bruno@clisp.org>
91276         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
91277         * lib/getopt_.h: Likewise.
91278         * lib/mbswidth.h: Likewise.
91279         * lib/setenv.h: Likewise.
91280         * lib/vasnprintf.h: Likewise.
91281         * lib/vasprintf.h: Likewise.
91282         * lib/verror.h: Likewise.
91283         * lib/xsetenv.h: Likewise.
91284         * lib/xvasprintf.h: Likewise.
91286 2007-03-08  Jim Meyering  <jim@meyering.net>
91288         * users.txt: Add parted.
91290         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
91292 2007-03-07  Bruno Haible  <bruno@clisp.org>
91294         * m4/printf.m4: Make the shell script snippets copy&pastable.
91296 2007-03-02  Bruno Haible  <bruno@clisp.org>
91298         * lib/netinet_in_.h: New file.
91299         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
91300         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
91301         * modules/netinet_in (Files): Add lib/netinet_in_.h.
91302         (Depends-on): Add absolute-header.
91303         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
91304         into netinet/in.h.
91306 2007-03-03  Bruno Haible  <bruno@clisp.org>
91308         * lib/sys_select_.h: New file.
91309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
91310         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
91311         * modules/sys_select (Files): Add lib/sys_select_.h.
91312         (Depends-on): Add absolute-header.
91313         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
91314         into sys/select.h.
91316 2007-03-02  Bruno Haible  <bruno@clisp.org>
91318         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
91319         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
91320         values.
91321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
91322         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91323         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
91324         * modules/sys_socket (Depends-on): Add absolute-header.
91325         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
91326         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
91327         (Include): Remove requirement of inclusion of <sys/types.h>.
91329 2007-03-02  Bruno Haible  <bruno@clisp.org>
91331         * lib/byteswap_.h (bswap_32): Fix formula.
91333 2007-03-06  Bruno Haible  <bruno@clisp.org>
91335         * modules/sprintf-posix-tests: New file.
91336         * tests/test-sprintf-posix.c: New file.
91338         * modules/sprintf-posix: New file.
91339         * lib/sprintf.c: New file.
91340         * m4/sprintf-posix.m4: New file.
91341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
91342         REPLACE_SPRINTF.
91343         * lib/stdio_.h (sprintf): New declaration.
91344         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
91345         REPLACE_SPRINTF.
91347 2007-03-06  Bruno Haible  <bruno@clisp.org>
91349         * modules/vsprintf-posix-tests: New file.
91350         * tests/test-vsprintf-posix.c: New file.
91351         * tests/test-sprintf-posix.h: New file.
91353         * modules/vsprintf-posix: New file.
91354         * lib/vsprintf.c: New file.
91355         * m4/vsprintf-posix.m4: New file.
91356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91357         REPLACE_VSPRINTF.
91358         * lib/stdio_.h (vsprintf): New declaration.
91359         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91360         REPLACE_VSPRINTF.
91362 2007-03-06  Bruno Haible  <bruno@clisp.org>
91364         * modules/vsnprintf (Depend-on): Remove minmax.
91366 2007-03-06  Bruno Haible  <bruno@clisp.org>
91368         * modules/snprintf-posix-tests: New file.
91369         * tests/test-snprintf-posix.c: New file.
91371         * modules/snprintf-posix: New file.
91372         * m4/snprintf-posix.m4: New file.
91373         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91374         gl_FUNC_SNPRINTF.
91375         (gl_FUNC_SNPRINTF): Invoke it.
91376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91377         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91378         is set.
91379         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91381 2007-03-06  Bruno Haible  <bruno@clisp.org>
91383         * modules/vsnprintf-posix-tests: New file.
91384         * tests/test-vsnprintf-posix.c: New file.
91385         * tests/test-snprintf-posix.h: New file.
91387         * modules/vsnprintf-posix: New file.
91388         * m4/vsnprintf-posix.m4: New file.
91389         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91390         gl_FUNC_VSNPRINTF.
91391         (gl_FUNC_VSNPRINTF): Invoke it.
91392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91393         * lib/stdio_.h (vsnprintf): Define as a replacement if
91394         REPLACE_VSNPRINTF is set.
91395         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91397 2007-03-06  Bruno Haible  <bruno@clisp.org>
91399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91402 2007-03-06  Bruno Haible  <bruno@clisp.org>
91404         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91405         (asinl): Declare also if HAVE_DECL_ASINL is set.
91406         (atanl): Declare also if HAVE_DECL_ATANL is set.
91407         (ceill): Declare also if HAVE_DECL_CEILL is set.
91408         (cosl): Declare also if HAVE_DECL_COSL is set.
91409         (expl): Declare also if HAVE_DECL_EXPL is set.
91410         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91411         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91412         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91413         (logl): Declare also if HAVE_DECL_LOGL is set.
91414         (sinl): Declare also if HAVE_DECL_SINL is set.
91415         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91416         (tanl): Declare also if HAVE_DECL_TANL is set.
91417         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91420         declaration of frexpl, ldexpl.
91421         * modules/printf-frexpl (Depends-on): Add math.
91422         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91424 2007-03-05  Bruno Haible  <bruno@clisp.org>
91426         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91427         frexpl and ldexpl are declared.
91428         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91430 2007-03-05  Bruno Haible  <bruno@clisp.org>
91432         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91433         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91435 2007-03-05  Bruno Haible  <bruno@clisp.org>
91437         * lib/stdio_.h: Include <stddef.h>.
91439 2007-03-05  Bruno Haible  <bruno@clisp.org>
91441         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91443 2007-03-05  Bruno Haible  <bruno@clisp.org>
91445         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91446         NetBSD 4, from Ralf Wildenhues.
91448 2007-03-04  Bruno Haible  <bruno@clisp.org>
91450         * lib/vasprintf.h: Update #if logic for the case when the functions
91451         exist but are overridden.
91453 2007-03-04  Bruno Haible  <bruno@clisp.org>
91455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91456         implementations: glibc-2.4 and MacOS X 10.3.
91457         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91458         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91459         * tests/test-vasprintf-posix.c (test_function): Likewise.
91461 2007-03-04  Bruno Haible  <bruno@clisp.org>
91463         * modules/vasprintf-posix-tests: New file.
91464         * tests/test-vasprintf-posix.c: New file.
91466         * modules/vasprintf-posix: New file.
91467         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91468         defined.
91469         * m4/vasprintf-posix.m4: New file.
91470         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91471         gl_FUNC_VASPRINTF.
91472         (gl_FUNC_VASPRINTF): Invoke it.
91473         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91474         here.
91475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91477 2007-03-04  Bruno Haible  <bruno@clisp.org>
91479         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91480         REPLACE_GETTIMEOFDAY.
91481         * modules/sys_time (Makefile.am): Likewise.
91482         * m4/sys_time_h.m4: Likewise.
91483         * m4/gettimeofday.m4: Likewise.
91485 2007-03-04  Bruno Haible  <bruno@clisp.org>
91487         * modules/vasnprintf-posix-tests: New file.
91488         * tests/test-vasnprintf-posix.c: New file.
91490         * modules/vasnprintf-posix: New file.
91491         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91492         printf-frexpl.h.
91493         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91494         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91495         REPLACE_VASNPRINTF is defined.
91496         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91497         gl_FUNC_VASNPRINTF.
91498         (gl_FUNC_VASNPRINTF): Invoke it.
91499         * m4/vasnprintf-posix.m4: New file.
91500         * m4/printf.m4: New file.
91502 2007-03-04  Bruno Haible  <bruno@clisp.org>
91504         Compile progreloc.c only if --enable-relocatable is specified.
91505         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91506         if --enable-relocatable was specified.
91507         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91508         lib_SOURCES.
91510 2007-03-04  Jim Meyering  <jim@meyering.net>
91512         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91513         Use it consistently, rather than enumerating errno constants.
91515 2007-03-04  Bruno Haible  <bruno@clisp.org>
91517         * modules/xvasprintf-tests: New file.
91518         * tests/test-xvasprintf.c: New file.
91520         * modules/vasprintf-tests: New file.
91521         * tests/test-vasprintf.c: New file.
91523         * modules/vasnprintf-tests: New file.
91524         * tests/test-vasnprintf.c: New file.
91526         * modules/vsnprintf-tests: New file.
91527         * tests/test-vsnprintf.c: New file.
91529         * modules/snprintf-tests: New file.
91530         * tests/test-snprintf.c: New file.
91532 2007-03-04  Bruno Haible  <bruno@clisp.org>
91534         Compile relocatable.c only if --enable-relocatable is specified.
91535         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91536         gl_RELOCATABLE_LIBRARY.
91537         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91538         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91539         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91540         gl_RELOCATABLE_LIBRARY.
91541         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91542         (Makefile.am): Remove lib_SOURCES.
91543         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91544         gl_RELOCATABLE_LIBRARY.
91545         (Makefile.am): Remove lib_SOURCES.
91546         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91547         always.
91548         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91549         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91551 2007-03-04  Bruno Haible  <bruno@clisp.org>
91553         * modules/argmatch-tests: New file.
91554         * tests/test-argmatch.c: New file.
91556         * tests/test-allocsa.c (main): Halve the number of loop runs.
91558         * modules/alloca-opt-tests: New file.
91559         * tests/test-alloca-opt.c: New file.
91561 2007-03-04  Jim Meyering  <jim@meyering.net>
91563         Work around difference between Linux ACLs and Solaris 10 ZFS.
91564         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91565         for EINVAL.
91567 2007-03-03  Bruno Haible  <bruno@clisp.org>
91569         * modules/relocatable-prog (Depends-on): Add back progreloc's
91570         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91572 2007-03-03  Bruno Haible  <bruno@clisp.org>
91574         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91575         * modules/relocatable-lib: New file.
91577 2007-03-03  Bruno Haible  <bruno@clisp.org>
91579         * modules/relocatable-prog: Renamed from modules/relocatable.
91580         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91582 2007-03-03  Bruno Haible  <bruno@clisp.org>
91584         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91585         m4/relocatable-lib.m4.
91586         (Depends-on): Remove 'relocatable'.
91587         (configure.ac): Add gl_RELOCATABLE_NOP.
91589 2007-03-03  Bruno Haible  <bruno@clisp.org>
91591         * modules/relocatable-prog-wrapper: New file.
91592         * modules/relocatable (Depends-on): Add it. Remove all other
91593         dependencies except progname.
91594         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91596         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91597         (gl_FUNC_STRERROR): Nop.
91598         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91600         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91601         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91603         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91604         (gl_FUNC_READLINK): Update.
91606         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91608 2007-03-03  Bruno Haible  <bruno@clisp.org>
91610         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91611         * modules/xreadlink (Depends-on): Add unistd.
91612         * modules/xreadlink-with-size (Depends-on): Likewise.
91614 2007-03-03  Bruno Haible  <bruno@clisp.org>
91616         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91617         extracted from gt_FUNC_SETENV.
91618         (gt_FUNC_SETENV): Remove macro.
91619         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91620         remove gt_FUNC_SETENV.
91622 2007-03-03  Bruno Haible  <bruno@clisp.org>
91624         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91625         ENABLE_RELOCATABLE here.
91626         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91628 2007-03-03  Bruno Haible  <bruno@clisp.org>
91630         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91631         * tests/test-rbtreehash_list.c: Include progname.h.
91632         (main): Call set_program_name.
91634         * modules/rbtree-oset-tests (Depends-on): Add progname.
91635         * tests/test-rbtree_oset.c: Include progname.h.
91636         (main): Call set_program_name.
91638         * modules/rbtree-list-tests (Depends-on): Add progname.
91639         * tests/test-rbtree_list.c: Include progname.h.
91640         (main): Call set_program_name.
91642         * modules/linked-list-tests (Depends-on): Add progname.
91643         * tests/test-linked_list.c: Include progname.h.
91644         (main): Call set_program_name.
91646 2007-03-03  Bruno Haible  <bruno@clisp.org>
91648         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91649         All uses of __restrict changed to _Restrict_.
91650         * lib/glob_.h (__restrict): Remove macro.
91652 2007-03-02  Bruno Haible  <bruno@clisp.org>
91654         * modules/gettext (configure.ac): Require gettext infrastructure
91655         from version 0.16.1.
91657 2007-03-02  Bruno Haible  <bruno@clisp.org>
91659         * modules/linkedhash-list-tests (Depends-on): Add progname.
91660         * tests/test-linkedhash_list.c: Include progname.h.
91661         (main): Call set_program_name.
91663         * modules/carray-list-tests (Depends-on): Add progname.
91664         * tests/test-carray_list.c: Include progname.h.
91665         (main): Call set_program_name.
91667         * modules/avltreehash-list-tests (Depends-on): Add progname.
91668         * tests/test-avltreehash_list.c: Include progname.h.
91669         (main): Call set_program_name.
91671         * modules/avltree-oset-tests (Depends-on): Add progname.
91672         * tests/test-avltree_oset.c: Include progname.h.
91673         (main): Call set_program_name.
91675         * modules/avltree-list-tests (Depends-on): Add progname.
91676         * tests/test-avltree_list.c: Include progname.h.
91677         (main): Call set_program_name.
91679         * modules/array-oset-tests (Depends-on): Add progname.
91680         * tests/test-array_oset.c: Include progname.h.
91681         (main): Call set_program_name.
91683         * modules/array-list-tests (Depends-on): Add progname.
91684         * tests/test-array_list.c: Include progname.h.
91685         (main): Call set_program_name.
91687         * modules/argp-tests (Depends-on): Add progname.
91688         * tests/test-argp.c: Include argp.h first. Include progname.h.
91689         (main): Call set_program_name.
91691 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91693         * doc/gnulib-tool.texi (Initial import): Reword description of
91694         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91695         limited effect even if defined after the first system include.
91697 2007-03-01  Bruno Haible  <bruno@clisp.org>
91699         * build-aux/config.libpath: Update to libtool-1.5.22.
91700         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91702 2007-03-01  Bruno Haible  <bruno@clisp.org>
91704         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91705         foo_CFLAGS.
91706         Reported by Ralf Wildenhues.
91708 2007-03-01  Bruno Haible  <bruno@clisp.org>
91710         * build-aux/install-reloc: Remove object files left over by some
91711         compilers.
91712         Reported by Ralf Wildenhues.
91714 2007-03-01  Bruno Haible  <bruno@clisp.org>
91716         * build-aux/install-reloc: Break long lines.
91718 2007-03-01  Bruno Haible  <bruno@clisp.org>
91720         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91721         Reported by Ralf Wildenhues.
91723 2007-03-01  Bruno Haible  <bruno@clisp.org>
91725         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91726         include ordering constraints.
91728 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91730         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91731         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91732         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91733         as another example.
91734         * lib/time_.h: Fix misspelling.
91735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91736         Require gl_HEADER_TIME_H_DEFAULTS.
91737         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91738         * m4/time_r.m4 (gl_TIME_R): Likewise.
91739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91741 2007-03-01  Bruno Haible  <bruno@clisp.org>
91743         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91744         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91746 2007-03-01  Jim Meyering  <jim@meyering.net>
91748         * modules/xreadlink (Maintainer): Add my name.
91749         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91751 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91752             Bruno Haible  <bruno@clisp.org>
91754         * build-aux/install-reloc: Compile also c-ctype.c.
91755         * build-aux/relocatable.sh.in: New file.
91756         * doc/relocatable.texi: New file.
91757         * doc/relocatable-maint.texi: New file.
91758         * doc/gnulib.texi: Include relocatable-maint.texi.
91759         * lib/progreloc.c: Include unistd.h unconditionally.
91760         * lib/relocwrapper.c: Include unistd.h unconditionally.
91761         Include c-ctype.h.
91762         (add_dotbin): Use c_tolower.
91763         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91764         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91765         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91766         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91767         to m4/relocatable-lib.m4.
91768         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91769         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91770         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91771         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91772         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91773         * modules/relocatable: New file.
91774         * modules/relocatable-lib: New file.
91775         * modules/relocatable-script: New file.
91777 2007-02-28  Bruno Haible  <bruno@clisp.org>
91779         Import --enable-relocatable infrastructure.
91780         * build-aux/config.libpath: New file, from GNU gettext.
91781         * build-aux/install-reloc: New file, from GNU gettext.
91782         * build-aux/reloc-ldflags: New file, from GNU gettext.
91783         * lib/relocatable.h: New file, from GNU gettext.
91784         * lib/relocatable.c: New file, from GNU gettext.
91785         * lib/relocwrapper.c: New file, from GNU gettext.
91786         * m4/relocatable.m4: New file, from GNU gettext.
91788 2007-02-28  Bruno Haible  <bruno@clisp.org>
91790         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91792         * modules/xreadlink: New file, from GNU gettext with modifications.
91793         * lib/xreadlink.c: New file, from GNU gettext.
91794         * lib/xreadlink.h: Add comments.
91795         (xreadlink): New declaration.
91797         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91798         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91799         lib/xreadlink-with-size.c.
91800         (configure.ac): Remove gl_XREADLINK invocation.
91801         (Makefile.am): Augment lib_SOURCES.
91802         * m4/xreadlink.m4: Remove file.
91803         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91804         (xreadlink_with_size): Renamed from xreadink.
91805         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91806         * modules/canonicalize (Depends-on): Replace xreadlink with
91807         xreadlink-with-size.
91808         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91810 2007-02-25  Jim Meyering  <jim@meyering.net>
91812         * build-aux/announce-gen: When complaining about excess arguments,
91813         list them.
91815 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91817         * README: Document signed integer overflow situation more
91818         accurately.
91820 2007-02-25  Bruno Haible  <bruno@clisp.org>
91822         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91823         'a' or 'A' conversion.
91825 2007-02-25  Bruno Haible  <bruno@clisp.org>
91827         * modules/filename: Renamed from modules/pathname.
91828         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91829         lib/concatpath.c with lib/concat-filename.c.
91830         (Makefile.am): Update.
91831         (Include): Replace pathname.h with filename.h.
91832         * lib/filename.h: Renamed from lib/pathname.h.
91833         (concatenated_filename): Renamed from concatenated_pathname.
91834         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91835         (concatenated_filename): Renamed from concatenated_pathname.
91836         * lib/findprog.c: Include filename.h instead of pathname.h.
91837         (find_in_path): Update.
91838         * lib/javacomp.c: Include filename.h instead of pathname.h.
91839         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91840         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91841         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91842         is_oldgcj_14_13_usable, is_javac_usable): Update.
91843         * lib/javaexec.c: Include filename.h instead of pathname.h.
91844         (execute_java_class): Update.
91845         * modules/findprog: Update.
91846         * modules/javacomp: Update.
91847         * modules/javaexec: Update.
91848         * MODULES.html.sh (File system functions): Add 'filename', remove
91849         'pathname'.
91851 2007-02-25  Bruno Haible  <bruno@clisp.org>
91853         * modules/printf-frexpl-tests: New file.
91854         * tests/test-printf-frexpl.c: New file.
91856         * modules/printf-frexpl: New file.
91857         * lib/printf-frexpl.h: New file.
91858         * lib/printf-frexpl.c: New file.
91859         * m4/printf-frexpl.m4: New file.
91861 2007-02-25  Bruno Haible  <bruno@clisp.org>
91863         * modules/printf-frexp-tests: New file.
91864         * tests/test-printf-frexp.c: New file.
91866         * modules/printf-frexp: New file.
91867         * lib/printf-frexp.h: New file.
91868         * lib/printf-frexp.c: New file.
91869         * m4/printf-frexp.m4: New file.
91871 2007-02-25  Bruno Haible  <bruno@clisp.org>
91873         Assume automake >= 1.10 for the tests.
91874         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91875         * modules/arctwo-tests: Likewise.
91876         * modules/argp-tests: Likewise.
91877         * modules/avltree-list-tests: Likewise.
91878         * modules/avltree-oset-tests: Likewise.
91879         * modules/avltreehash-list-tests: Likewise.
91880         * modules/carray-list-tests: Likewise.
91881         * modules/crc-tests: Likewise.
91882         * modules/des-tests: Likewise.
91883         * modules/gc-arcfour-tests: Likewise.
91884         * modules/gc-arctwo-tests: Likewise.
91885         * modules/gc-des-tests: Likewise.
91886         * modules/gc-hmac-md5-tests: Likewise.
91887         * modules/gc-hmac-sha1-tests: Likewise.
91888         * modules/gc-md2-tests: Likewise.
91889         * modules/gc-md4-tests: Likewise.
91890         * modules/gc-md5-tests: Likewise.
91891         * modules/gc-pbkdf2-sha1-tests: Likewise.
91892         * modules/gc-rijndael-tests: Likewise.
91893         * modules/gc-sha1-tests: Likewise.
91894         * modules/gc-tests: Likewise.
91895         * modules/getaddrinfo-tests: Likewise.
91896         * modules/hmac-md5-tests: Likewise.
91897         * modules/hmac-sha1-tests: Likewise.
91898         * modules/linked-list-tests: Likewise.
91899         * modules/linkedhash-list-tests: Likewise.
91900         * modules/lock-tests: Likewise.
91901         * modules/md2-tests: Likewise.
91902         * modules/md4-tests: Likewise.
91903         * modules/md5-tests: Likewise.
91904         * modules/rbtree-list-tests: Likewise.
91905         * modules/rbtree-oset-tests: Likewise.
91906         * modules/rbtreehash-list-tests: Likewise.
91907         * modules/read-file-tests: Likewise.
91908         * modules/rijndael-tests: Likewise.
91909         * modules/stdint-tests: Likewise.
91910         * modules/tls-tests: Likewise.
91912 2007-02-24  Bruno Haible  <bruno@clisp.org>
91914         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91915         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91916         function; instead check whether isnan with a double argument links.
91917         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91918         function; instead check whether isnan with a 'long double' argument
91919         links.
91920         Reported by Eric Blake <ebb9@byu.net>.
91922 2007-02-24  Bruno Haible  <bruno@clisp.org>
91924         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91925         defined.
91926         * lib/isnanl.c: Remove all code. Just include isnan.c.
91927         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91929 2007-02-25  Jim Meyering  <jim@meyering.net>
91931         Avoid conflicting types for 'unsetenv' on FreeBSD.
91932         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91933         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91934         in stdlib.h.
91936 2007-02-24  Bruno Haible  <bruno@clisp.org>
91938         * modules/isnanl-nolibm-tests: New file.
91939         * tests/test-isnanl.c: New file.
91941         * modules/isnanl-nolibm: New file.
91942         * lib/isnanl.h: New file.
91943         * lib/isnanl.c: New file.
91944         * m4/isnanl.m4: New file.
91946 2007-02-24  Bruno Haible  <bruno@clisp.org>
91948         * modules/isnan-nolibm-tests: New file.
91949         * tests/test-isnan.c: New file.
91951         * modules/isnan-nolibm: New file.
91952         * lib/isnan.h: New file.
91953         * lib/isnan.c: New file.
91954         * m4/isnan.m4: New file.
91956 2007-02-24  Bruno Haible  <bruno@clisp.org>
91958         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91959         assume that an exponent fits in 20 bits.
91961 2007-02-24  Jim Meyering  <jim@meyering.net>
91963         * m4/regex.m4: Update the description of the configure-time option,
91964         --without-included-regex, to state accurately what the defaults are,
91965         and perhaps to give people an idea why using this option is risky.
91967 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91970         loops on small arguments.  This attempts to avoid the problem
91971         Bruno Haible reported for AIX 4.3.2 in
91972         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91974 2007-02-23  Bruno Haible  <bruno@clisp.org>
91976         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91977         Needed for help2man.
91979 2007-02-23  Karl Berry  <karl@gnu.org>
91981         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91982         exists, foo.h should be cvs-ignored, not committed.
91984 2007-02-23  Eric Blake  <ebb9@byu.net>
91986         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91987         * lib/stat-time.h (includes): Likewise.
91988         * lib/utimecmp.c (includes): Likewise.
91989         * lib/utimens.h (includes): Likewise.
91990         * lib/getdate.y (includes): Also include "timespec.h" for use
91991         internal to the module.
91992         * modules/utimens (Depends-on): Revert yesterday's patch.
91993         * modules/nanosleep (Depends-on): Add missing dependency.
91995 2007-02-22  Bruno Haible  <bruno@clisp.org>
91997         * lib/glob.c: Don't include getlogin_r.h.
91999 2007-02-22  Jim Meyering  <jim@meyering.net>
92001         * modules/utimens (Depends-on): Add timespec, required for
92002         utimens.h's inclusion of timespec.h.
92004 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
92006         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
92007         long unreadable paths in GNU/Linux.  Problem reported by Andreas
92008         Schwab in
92009         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
92010         I'll try to think of a better way to fix the Solaris problem.
92012         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
92013         like glibc; on Solaris 10, it fails with errno == EINVAL.
92014         POSIX says the behavior is unspecified if the first argument is NULL,
92015         so play it safe and never pass NULL to the system getcwd.
92017 2007-02-21  Jim Meyering  <jim@meyering.net>
92019         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
92020         of gettimeofday.  It would conflict with the one now always
92021         provided via sys_time_.h.  Reported by Matthew Woehlke, as
92022         an IRIX 6.5 build failure.
92024 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
92026         Minor fixups to port to Solaris 10 with Sun C 5.8.
92027         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
92028         * modules/getcwd (Depends-on): Add dirfd.
92029         * lib/putenv.c (putenv): #undef it.
92030         (rpl_putenv): New decl.
92031         (malloc, free): Include <stdlib.h> rather than prototyping separately.
92033 2007-02-20  Bruno Haible  <bruno@clisp.org>
92035         * modules/stdio-tests: New file.
92036         * tests/test-stdio.c: New file.
92038         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
92039         (Depends-on): Add stdio.
92040         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
92041         (Include): Use <stdio.h> instead of vsnprintf.h.
92042         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
92043         HAVE_DECL_VSNPRINTF.
92044         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
92046         * modules/snprintf (Files): Remove lib/snprintf.h.
92047         (Depends-on): Add stdio.
92048         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
92049         (Include): Use <stdio.h> instead of snprintf.h.
92050         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
92051         HAVE_DECL_SNPRINTF.
92052         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
92053         * lib/getaddrinfo.c: Likewise.
92055         * modules/stdio: New file.
92056         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
92057         * lib/snprintf.h: Remove file.
92058         * lib/vsnprintf.h: Remove file.
92059         * lib/.cppi-disable: Remove snprintf.h.
92060         * m4/stdio_h.m4: New file.
92061         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
92063 2007-02-20  Jim Meyering  <jim@meyering.net>
92065         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
92066         used by e.g., mingw.  From Bruno Haible.
92068 2007-02-19  Bruno Haible  <bruno@clisp.org>
92070         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
92071         warnings.
92072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92074 2007-02-19  Bruno Haible  <bruno@clisp.org>
92076         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
92077         from mingw users.
92079 2007-02-19  Bruno Haible  <bruno@clisp.org>
92081         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
92082         warnings.
92083         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
92085 2007-02-19  Jim Meyering  <jim@meyering.net>
92087         Don't use FD after a successful "fdopendir (fd)".
92088         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
92089         Reset it by calling dirfd on the just-obtained DIR*.
92091         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
92092         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
92094 2007-02-18  Bruno Haible  <bruno@clisp.org>
92096         * lib/readlink.c: Include <unistd.h>.
92097         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
92098         HAVE_READLINK.
92099         * modules/readlink (Depends-on): Add unistd.
92100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92101         (Include): Add <unistd.h>.
92103         * lib/getlogin_r.h: Remove file.
92104         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
92105         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
92106         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
92107         HAVE_DECL_GETLOGIN_R.
92108         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
92109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92110         (Include): Use <unistd.h> instead of getlogin_r.h.
92112         * lib/getcwd.h: Remove file.
92113         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
92114         * lib/xgetcwd.c: Likewise.
92115         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
92116         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
92117         * modules/getcwd (Files): Remove lib/getcwd.h.
92118         (Depends-on): Add unistd.
92119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92120         (Include): Use <unistd.h> instad of getcwd.h.
92122         * lib/ftruncate.c: Include <unistd.h> first.
92123         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
92124         Set HAVE_FTRUNCATE.
92125         * modules/ftruncate (Depends-on): Add unistd.
92126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92128         * lib/fchdir.c: Include <unistd.h> first.
92129         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
92130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
92131         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
92132         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92133         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
92135         * lib/dup2.c: Include <unistd.h> first.
92136         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
92137         HAVE_DUP2.
92138         * modules/dup2 (Depends-on): Add unistd.
92139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92141         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
92142         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
92143         REPLACE_CHOWN. Don't define chown as a macro here.
92144         * modules/chown (Depends-on): Add unistd.
92145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92147         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
92148         Add definition for GL_LINK_WARNING.
92149         (chown, dup2): New declarations.
92150         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
92151         link warning.
92152         (ftruncate): New declaration.
92153         (getcwd): New declaration, taken from old getcwd.h.
92154         (getlogin_r): New declaration, taken from old getlogin_r.h.
92155         (readlink): New declaration.
92156         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
92157         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
92158         (gl_PREREQ_UNISTD): Remove macro.
92159         (gl_UNISTD_MODULE_INDICATOR): New macro.
92160         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
92161         many new variables. Don't set UNISTD_H.
92162         * modules/unistd (Description): Change.
92163         (Depends-on): Add link-warning.
92164         (configure.ac): Update.
92165         (Makefile.am): Create unistd.h always. Substitute many new variables
92166         into it.
92168 2007-02-18  Bruno Haible  <bruno@clisp.org>
92170         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
92171         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
92172         HAVE_GETSUBOPT.
92173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
92174         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
92175         * lib/getsubopt.h: Remove file.
92176         * modules/getsubopt (Files): Remove lib/getsubopt.h.
92177         (Depends-on): Add stdlib.
92178         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92179         (Includes): Use <stdlib.h> instead of getsubopt.h.
92180         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
92181         Set HAVE_GETSUBOPT.
92182         * lib/getsubopt.c: Don't include getsubopt.h.
92184 2007-02-18  Bruno Haible  <bruno@clisp.org>
92186         * modules/fchdir (Depends-on): Add dup2.
92188 2007-02-18  Bruno Haible  <bruno@clisp.org>
92190         * lib/stdlib_.h: Handle glibc's special invocation convention
92191         specially.
92193 2007-02-18  Bruno Haible  <bruno@clisp.org>
92195         * modules/stdlib-tests: New file.
92196         * tests/test-stdlib.c: New file.
92198         * modules/mkstemp (Files): Remove lib/mkstemp.h.
92199         (Depends-on): Add stdlib.
92200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92201         (Includes): Use <stdlib.h> instead of mkstemp.h.
92202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92203         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
92204         * lib/mkstemp.c: Don't include mkstemp.h.
92205         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
92206         * lib/stdlib--.h: Don't include mkstemp.h.
92208         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
92209         (Depends-on): Add stdlib.
92210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92211         (Includes): Use <stdlib.h> instead of mkdtemp.h.
92212         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92213         HAVE_MKDTEMP.
92214         * lib/mkdtemp.c: Don't include mkdtemp.h.
92215         * lib/clean-temp.c: Don't include mkdtemp.h.
92217         * modules/exit (Files): Remove lib/exit.h.
92218         (Depends-on): Add stdlib.
92219         (Makefile.am): Remove lib_SOURCES.
92220         (Include): Use <stdlib.h> instead of exit.h.
92221         * lib/argmatch.c: Don't include exit.h.
92222         * lib/execute.c: Likewise.
92223         * lib/pagealign_alloc.c: Likewise.
92224         * lib/pipe.c: Likewise.
92225         * lib/wait-process.c: Likewise.
92226         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
92227         * lib/exitfail.c: Likewise.
92228         * lib/savewd.c: Likewise.
92229         * lib/xsetenv.c: Likewise.
92231         * modules/stdlib: New file.
92232         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
92233         and extra comments about mkstemp().
92234         * lib/exit.h: Remove file.
92235         * lib/mkdtemp.h: Remove file.
92236         * lib/mkstemp.h: Remove file.
92237         * m4/stdlib_h.m4: New file.
92238         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
92240 2007-02-18  Bruno Haible  <bruno@clisp.org>
92242         * modules/math-tests: New file.
92243         * tests/test-math.c: New file.
92245         * modules/math: New file.
92246         * modules/mathl (Files): Remove lib/mathl.h.
92247         (Depends-on): Add math.
92248         (Makefile.am): Don't mention mathl.h.
92249         (Include): Use <math.h> instead of mathl.h.
92250         * lib/math_.h: New file.
92251         * lib/mathl.h: Remove file.
92252         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
92253         mathl.h.
92254         * lib/asinl.c: Likewise.
92255         * lib/atanl.c: Likewise.
92256         * lib/ceill.c: Likewise.
92257         * lib/cosl.c: Likewise.
92258         * lib/expl.c: Likewise.
92259         * lib/floorl.c: Likewise.
92260         * lib/frexpl.c: Likewise.
92261         * lib/ldexpl.c: Likewise.
92262         * lib/logl.c: Likewise.
92263         * lib/sincosl.c: Likewise.
92264         * lib/sinl.c: Likewise.
92265         * lib/sqrtl.c: Likewise.
92266         * lib/tanl.c: Likewise.
92267         * lib/trigl.c: Likewise.
92268         * m4/math_h.m4: New file.
92269         * MODULES.html.sh (Mathematics): Add math.
92271 2007-02-17  Bruno Haible  <bruno@clisp.org>
92273         * modules/wctype-tests: New file.
92274         * tests/test-wctype.c: New file.
92276         * modules/wchar-tests: New file.
92277         * tests/test-wchar.c: New file.
92279         * modules/unistd-tests: New file.
92280         * tests/test-unistd.c: New file.
92282         * modules/time-tests: New file.
92283         * tests/test-time.c: New file.
92285         * modules/sysexits-tests: New file.
92286         * tests/test-sysexits.c: New file.
92288         * modules/sys_time-tests: New file.
92289         * tests/test-sys_time.c: New file.
92291         * modules/sys_stat-tests: New file.
92292         * tests/test-sys_stat.c: New file.
92294         * modules/sys_socket-tests: New file.
92295         * tests/test-sys_socket.c: New file.
92297         * modules/sys_select-tests: New file.
92298         * tests/test-sys_select.c: New file.
92300         * modules/string-tests: New file.
92301         * tests/test-string.c: New file.
92303         * modules/stdbool-tests: New file.
92304         * tests/test-stdbool.c: New file.
92306         * modules/netinet_in-tests: New file.
92307         * tests/test-netinet_in.c: New file.
92309         * modules/inttypes-tests: New file.
92310         * tests/test-inttypes.c: New file.
92312         * modules/fcntl-tests: New file.
92313         * tests/test-fcntl.c: New file.
92315         * modules/byteswap-tests: New file.
92316         * tests/test-byteswap.c: New file.
92318         * modules/arpa_inet-tests: New file.
92319         * tests/test-arpa_inet.c: New file.
92321 2007-02-17  Bruno Haible  <bruno@clisp.org>
92323         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
92324         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
92325         if the corresponding module is not enabled. Emit link warnings if
92326         the function is used nevertheless.
92327         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
92328         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
92329         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
92330         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92331         * modules/inttypes (Depends-on): Add link-warning.
92332         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92333         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
92334         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
92335         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
92336         * modules/imaxdiv (configure.ac): Likewise.
92337         * modules/strtoimax (configure.ac): Likewise.
92338         * modules/strtoumax (configure.ac): Likewise.
92340 2007-02-17  Bruno Haible  <bruno@clisp.org>
92342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
92343         gl_STRING_MODULE_INDICATOR_DEFAULTS.
92344         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
92345         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
92347 2007-02-17  Bruno Haible  <bruno@clisp.org>
92349         * modules/link-warning: New file.
92350         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
92351         * lib/string_.h (GL_LINK_WARNING): Remove definition.
92352         * modules/string (Depends-on): Add link-warning.
92353         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92354         string.h.
92355         * MODULES.html.sh (Support for building libraries and executables): Add
92356         link-warning.
92358 2007-02-17  Bruno Haible  <bruno@clisp.org>
92360         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92361         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92362         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92363         long lines.
92365 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92366             Bruno Haible  <bruno@clisp.org>
92368         * modules/tmpfile: New file.
92369         * lib/tmpfile.c: New file.
92370         * m4/tmpfile.m4: New file.
92371         * MODULES.html.sh (func_all_modules): New section "Input/output".
92373 2007-02-15  Bruno Haible  <bruno@clisp.org>
92375         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92376         (supports_delete_on_close): New function.
92377         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92379 2007-02-14  Bruno Haible  <bruno@clisp.org>
92381         * modules/mbspcasecmp-tests: New file.
92382         * tests/test-mbspcasecmp.sh: New file.
92383         * tests/test-mbspcasecmp.c: New file.
92385         New module mbspcasecmp.
92386         * modules/mbspcasecmp: New file.
92387         * lib/mbspcasecmp.c: New file.
92388         * lib/string_.h (strncasecmp): Change warning message.
92389         (mbspcasecmp): New declaration.
92390         * m4/mbspcasecmp.m4: New file.
92391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92392         GNULIB_MBSPCASECMP.
92393         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92394         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92396 2007-02-14  Bruno Haible  <bruno@clisp.org>
92398         * modules/mbsncasecmp-tests: New file.
92399         * tests/test-mbsncasecmp.sh: New file.
92400         * tests/test-mbsncasecmp.c: New file.
92402         New module mbsncasecmp.
92403         * modules/mbsncasecmp: New file.
92404         * lib/mbsncasecmp.c: New file.
92405         * lib/string_.h (mbsncasecmp): New declaration.
92406         * m4/mbsncasecmp.m4: New file.
92407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92408         GNULIB_MBSNCASECMP.
92409         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92410         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92412 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92414         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92415         Verify that it doesn't overlap with our flags.
92416         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92417         do not have the desired effect in multibyte locales; instead, use
92418         mbscasecmp.
92419         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92420         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92421         we don't require GNU fnmatch ourselves (if our users require it, they
92422         should do so explicitly).
92424         Fix regex code so it doesn't rely on strcasecmp.
92425         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92426         Otherwise, include gnulib's langinfo.h.
92427         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92428         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92429         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92430         * modules/regex (FILES): Remove m4/codeset.m4.
92431         (Depends-on): Add localcharset.  Remove strcase.
92433 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92435         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92436         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92438 2007-02-13  Bruno Haible  <bruno@clisp.org>
92440         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92443 2007-02-12  Bruno Haible  <bruno@clisp.org>
92445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92446         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92447         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92448         time warning rather than a link error.
92450 2007-02-12  Bruno Haible  <bruno@clisp.org>
92452         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92453         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92454         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92456 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92458         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92459         args, not 2.
92461 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92463         New module 'time', so that apps can include <time.h> as per
92464         POSIX and GNU instead of separate include files like time_r.h
92465         and timegm.h.  This implementation tries out a simpler approach
92466         for replacing decls in standard include files (as compared to
92467         the string module), somewhat as an experiment.
92469         * config/srclist.txt: Comment out mktime.c for now.
92470         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92471         since it doesn't apply any more.  Use generic wording instead.
92472         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92473         'time'.
92474         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92475         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92476         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92477         Don't include <sys/types.h>; no longer needed since we assume C89.
92478         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92479         * lib/strftime.c: Likewise.
92480         * lib/time_r.c: Likewise.
92481         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92482         * lib/nanosleep.c: Include <time.h> first, to check interface.
92483         * lib/strptime.c: Likewise.
92484         * lib/time_r.c: Likewise.
92485         * lib/timegm.c: Likewise.
92486         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92487         needed.
92488         * lib/timegm.c: Don't include timegm.h; no longer needed.
92489         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92490         time.h now handles any problems in that area.
92491         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92492         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92493         that time.h defines struct timespec.
92494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92495         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92496         handles that.
92497         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92498         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92499         needed.  Set REPLACE_LOCALTIME.
92500         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92501         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92502         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92503         nanosleep; time_h.m4 now does that.  Don't require
92504         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92505         module handles this now.
92506         * modules/getdate (Depends-on): Remove timespec.  Add time.
92507         * modules/nanosleep (Depends-on): Likewise.
92508         * modules/stat-time (Depends-on): Likewise.
92509         * modules/nanosleep (Include): Include time.h, not timespec.h.
92510         * modules/strptime (Files): Remove lib/strptime.h.
92511         (Depends-on): Add extensions, time.
92512         (Include): Include time.h, not strptime.h.
92513         * modules/time_r (Files): Remove lib/time_r.h.
92514         (Depends-on): Add time.
92515         (Include): Include time.h, not time_r.h.
92516         * modules/timegm: Likewise.
92517         * modules/timespec (Description): Now does timespec-related decls
92518         of our own, instead of struct timespec itself.
92519         (Depends-on): Add time; remove extensions.
92520         (Maintainer): Add self.
92521         * modules/utimecmp (Depends-on): Add time; remove timespec.
92522         * modules/utimens (Depends-on): Likewise.
92523         * modules/xnanosleep (Depends-on): Likewise.
92525 2007-02-11  Bruno Haible  <bruno@clisp.org>
92527         * lib/c-strstr.c: Include allocsa.h.
92528         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92529         * lib/c-strcasestr.c: Include allocsa.h.
92530         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92531         * lib/strcasestr.c: Include allocsa.h.
92532         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92533         * lib/mbsstr.c: Include allocsa.h.
92534         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92535         allocsa/freesa instead of malloc/free.
92536         * lib/mbscasestr.c: Include allocsa.h.
92537         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92538         allocsa/freesa instead of malloc/free.
92539         * modules/c-strstr (Depends-on): Add allocsa.
92540         * modules/c-strcasestr (Depends-on): Likewise.
92541         * modules/strcasestr (Depends-on): Likewise.
92542         * modules/mbsstr (Depends-on): Likewise.
92543         * modules/mbscasestr (Depends-on): Likewise.
92545 2007-02-11  Bruno Haible  <bruno@clisp.org>
92547         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92549         * modules/mbsspn-tests: New file.
92550         * tests/test-mbsspn.sh: New file.
92551         * tests/test-mbsspn.c: New file.
92553 2007-02-11  Bruno Haible  <bruno@clisp.org>
92555         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92557         * modules/mbspbrk-tests: New file.
92558         * tests/test-mbspbrk.sh: New file.
92559         * tests/test-mbspbrk.c: New file.
92561 2007-02-11  Bruno Haible  <bruno@clisp.org>
92563         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92564         unneeded cast.
92566         * modules/mbscspn-tests: New file.
92567         * tests/test-mbscspn.sh: New file.
92568         * tests/test-mbscspn.c: New file.
92570 2007-02-11  Bruno Haible  <bruno@clisp.org>
92572         * modules/mbscasecmp-tests: New file.
92573         * tests/test-mbscasecmp.sh: New file.
92574         * tests/test-mbscasecmp.c: New file.
92576 2007-02-11  Bruno Haible  <bruno@clisp.org>
92578         Ensure O(n) worst-case complexity of mbscasestr.
92579         * lib/mbscasestr.c: Include stdbool.h.
92580         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92581         functions.
92582         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92583         the bookkeeping indicates that it's worth it.
92584         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92586         * modules/mbscasestr-tests: New file.
92587         * tests/test-mbscasestr1.c: New file.
92588         * tests/test-mbscasestr2.sh: New file.
92589         * tests/test-mbscasestr2.c: New file.
92590         * tests/test-mbscasestr3.sh: New file.
92591         * tests/test-mbscasestr3.c: New file.
92592         * tests/test-mbscasestr4.sh: New file.
92593         * tests/test-mbscasestr4.c: New file.
92594         * m4/locale-tr.m4: New file.
92596 2007-02-11  Bruno Haible  <bruno@clisp.org>
92598         Ensure O(n) worst-case complexity of mbsstr.
92599         * lib/mbsstr.c: Include stdbool.h.
92600         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92601         functions.
92602         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92603         bookkeeping indicates that it's worth it.
92604         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92606         * modules/mbsstr-tests: New file.
92607         * tests/test-mbsstr1.c: New file.
92608         * tests/test-mbsstr2.sh: New file.
92609         * tests/test-mbsstr2.c: New file.
92610         * tests/test-mbsstr3.sh: New file.
92611         * tests/test-mbsstr3.c: New file.
92612         * m4/locale-fr.m4: New file.
92614 2007-02-11  Bruno Haible  <bruno@clisp.org>
92616         * lib/mbsrchr.c (mbsrchr): Fix bug.
92618         * modules/mbsrchr-tests: New file.
92619         * tests/test-mbsrchr.sh: New file.
92620         * tests/test-mbsrchr.c: New file.
92622 2007-02-11  Bruno Haible  <bruno@clisp.org>
92624         * lib/mbschr.c (mbschr): Fix bug.
92626         * modules/mbschr-tests: New file.
92627         * tests/test-mbschr.sh: New file.
92628         * tests/test-mbschr.c: New file.
92629         * m4/locale-zh.m4: New file.
92631 2007-02-11  Bruno Haible  <bruno@clisp.org>
92633         Support for copying multibyte string iterators.
92634         * lib/mbiter.h: Include <string.h>.
92635         (mbiter_multi_copy): New function.
92636         (mbi_copy): New macro.
92637         * lib/mbuiter.h: Include <string.h>.
92638         (mbuiter_multi_copy): New function.
92639         (mbui_copy): New macro.
92641 2007-02-11  Bruno Haible  <bruno@clisp.org>
92643         New module mbslen.
92644         * modules/mbslen: New file.
92645         * lib/mbslen.c: New file.
92646         * lib/string_.h (mbslen): New declaration.
92647         * m4/mbslen.m4: New file.
92648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92649         GNULIB_MBSLEN.
92650         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92651         * MODULES.html.sh (Internationalization functions): Add mbslen.
92653 2007-02-11  Bruno Haible  <bruno@clisp.org>
92655         Ensure O(n) worst-case complexity of strcasestr substitute.
92656         * lib/strcasestr.c: Include stdbool.h.
92657         (knuth_morris_pratt): New function.
92658         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92659         bookkeeping indicates that it's worth it.
92660         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92662         * modules/strcasestr-tests: New file.
92663         * tests/test-strcasestr.c: New file.
92665 2007-02-11  Bruno Haible  <bruno@clisp.org>
92667         Ensure O(n) worst-case complexity of c_strcasestr.
92668         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92669         (knuth_morris_pratt): New function.
92670         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92671         the bookkeeping indicates that it's worth it.
92672         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92674         * modules/c-strcasestr-tests: New file.
92675         * tests/test-c-strcasestr.c: New file.
92677 2007-02-11  Bruno Haible  <bruno@clisp.org>
92679         Ensure O(n) worst-case complexity of c_strstr.
92680         * lib/c-strstr.c: Include stdbool.h, string.h.
92681         (knuth_morris_pratt): New function.
92682         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92683         bookkeeping indicates that it's worth it.
92684         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92686         * lib/c-strstr.c: Complete rewrite for maintainability.
92688         * modules/c-strstr-tests: New file.
92689         * tests/test-c-strstr.c: New file.
92691 2007-02-11  Bruno Haible  <bruno@clisp.org>
92693         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92694         5.2.1 and earlier, whereby \055 was treated just like the range
92695         delimiter '-'.
92696         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92698 2007-02-08  Bruno Haible  <bruno@clisp.org>
92700         * modules/regex (Depends-on): Add stdbool.
92701         Reported by Dalibor Topic <robilad@kaffe.org>.
92703 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92705         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92706         Prefer returning from main to exiting from it.
92707         Remove unnecessary parens after sizeof.
92709 2007-02-05  Bruno Haible  <bruno@clisp.org>
92711         New module mbssep.
92712         * modules/mbssep: New file.
92713         * lib/mbssep.c: New file.
92714         * lib/string_.h (strsep): Add a conditional link warning.
92715         (mbssep): New declaration.
92716         * m4/mbssep.m4: New file.
92717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92718         GNULIB_MBSSEP.
92719         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92720         * MODULES.html.sh (Internationalization functions): Add mbssep.
92722 2007-02-05  Bruno Haible  <bruno@clisp.org>
92724         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92725         Optimize search in case of 1 delimiter.
92727 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92729         * lib/acl.h: Include sys/types.h before sys/acl.h.
92731 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92733         Merge upstream fix for glibc bugzilla #3957:
92735         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92737         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92738         bit for RE_HAT_LISTS_NOT_NEWLINE.
92739         (build_charclass_op): Remove bogus comment.
92741 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92743         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92745 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92747         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92748         * lib/memmem.c [!defined _LIBC]: Include config.h.
92750 2007-02-04  Bruno Haible  <bruno@clisp.org>
92752         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92753         warning message.
92755 2007-02-04  Bruno Haible  <bruno@clisp.org>
92757         New module mbstok_r.
92758         * modules/mbstok_r: New file.
92759         * lib/mbstok_r.c: New file.
92760         * lib/string_.h (strtok_r): Change argument names to match the
92761         comments. Add a conditional link warning.
92762         (mbstok_r): New declaration.
92763         * m4/mbstok_r.m4: New file.
92764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92765         GNULIB_MBSTOK_R.
92766         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92767         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92769 2007-02-04  Bruno Haible  <bruno@clisp.org>
92771         New module mbsspn.
92772         * modules/mbsspn: New file.
92773         * lib/mbsspn.c: New file.
92774         * lib/string_.h (strspn): Add a conditional link warning.
92775         (mbsspn): New declaration.
92776         * m4/mbsspn.m4: New file.
92777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92778         GNULIB_MBSSPN.
92779         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92780         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92782 2007-02-04  Bruno Haible  <bruno@clisp.org>
92784         New module mbspbrk.
92785         * modules/mbspbrk: New file.
92786         * lib/mbspbrk.c: New file.
92787         * lib/string_.h (strpbrk): Add a conditional link warning.
92788         (mbspbrk): New declaration.
92789         * m4/mbspbrk.m4: New file.
92790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92791         GNULIB_MBSPBRK.
92792         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92793         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92795 2007-02-04  Bruno Haible  <bruno@clisp.org>
92797         New module mbscspn.
92798         * modules/mbscspn: New file.
92799         * lib/mbscspn.c: New file.
92800         * lib/string_.h (strcspn): Add a conditional link warning.
92801         (mbscspn): New declaration.
92802         * m4/mbscspn.m4: New file.
92803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92804         GNULIB_MBSCSPN.
92805         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92806         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92808 2007-02-04  Bruno Haible  <bruno@clisp.org>
92810         New module mbscasestr, reduced goal of strcasestr.
92811         * modules/mbscasestr: New file.
92812         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92813         (mbscasestr): Renamed from strcasestr.
92814         * lib/strcasestr.c: Don't include mbuiter.h.
92815         (strcasestr): Remove support for multibyte locales.
92816         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92817         Change the conditional link warning.
92818         (mbscasestr): New declaration.
92819         * m4/mbscasestr.m4: New file.
92820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92821         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92822         REPLACE_STRCASESTR.
92823         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92825         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92826         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92827         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92828         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92829         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92830         (Depends-on): Remove mbuiter.
92831         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92833 2007-02-04  Bruno Haible  <bruno@clisp.org>
92835         Simplify handling of strncasecmp.
92836         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92837         the conditional link warning.
92838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92839         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92840         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92841         * modules/strcase (configure.ac): Don't invoke
92842         gl_STRING_MODULE_INDICATOR.
92843         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92845 2007-02-04  Bruno Haible  <bruno@clisp.org>
92847         New module mbscasecmp, reduced goal of strcasecmp.
92848         * modules/mbscasecmp: New file.
92849         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92850         (mbscasecmp): Renamed from strcasecmp.
92851         * lib/strcasecmp.c: Don't include mbuiter.h.
92852         (strcasecmp): Remove support for multibyte locales.
92853         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92854         Change the conditional link warning.
92855         (mbscasecmp): New declaration.
92856         * m4/mbscasecmp.m4: New file.
92857         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92858         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92859         REPLACE_STRCASECMP.
92860         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92862         GNULIB_MBSCASECMP.
92863         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92864         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92865         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92866         (Depends-on): Remove mbuiter.
92867         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92869 2007-02-04  Bruno Haible  <bruno@clisp.org>
92871         New module mbsstr. Remove module strstr.
92872         * modules/mbsstr: New file.
92873         * modules/strstr: Remove file.
92874         * lib/mbsstr.c: Renamed from lib/strstr.c.
92875         (mbsstr): Renamed from strstr.
92876         * lib/string_.h (strstr): Remove declaration. Change the conditional
92877         link warning.
92878         (mbsstr): New declaration.
92879         * m4/mbsstr.m4: New file.
92880         * m4/strstr.m4: Remove file.
92881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92882         REPLACE_STRSTR.
92883         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92884         Don't initialize GNULIB_STRSTR.
92885         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92886         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92887         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92888         (Support for systems lacking ANSI C 89): Remove strstr.
92890 2007-02-04  Bruno Haible  <bruno@clisp.org>
92892         New module mbsrchr.
92893         * modules/mbsrchr: New file.
92894         * lib/mbsrchr.c: New file.
92895         * lib/string_.h (strrchr): Add a conditional link warning.
92896         (mbsrchr): New declaration.
92897         * m4/mbsrchr.m4: New file.
92898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92899         GNULIB_MBSRCHR.
92900         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92901         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92903 2007-02-04  Bruno Haible  <bruno@clisp.org>
92905         New module mbschr.
92906         * modules/mbschr: New file.
92907         * lib/mbschr.c: New file.
92908         * lib/string_.h (strchr): Add a conditional link warning.
92909         (mbschr): New declaration.
92910         * m4/mbschr.m4: New file.
92911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92912         GNULIB_MBSCHR.
92913         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92914         * MODULES.html.sh (Internationalization functions): Add mbschr.
92916 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92918         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92920         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92922 2007-02-04  Bruno Haible  <bruno@clisp.org>
92924         New module description section 'configure.ac-early'.
92925         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92926         (func_get_autoconf_early_snippet): New function.
92927         (func_import, func_create_testdir): Use it. Remove special cases for
92928         modules 'extensions' and 'lock'.
92929         * modules/extensions (configure.ac-early): Require
92930         gl_USE_SYSTEM_EXTENSIONS.
92931         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92933 2007-02-04  Bruno Haible  <bruno@clisp.org>
92935         Make use of gcj-4.3's -fsource and -ftarget option.
92936         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92937         and if so try the options -fsource and -ftarget.
92938         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92939         source_version, ftarget_option, target_version arguments.
92940         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92941         (is_envjavac_oldgcj_14_14_usable): Renamed from
92942         is_envjavac_gcj_14_14_usable.
92943         (is_envjavac_oldgcj_14_13_usable): Renamed from
92944         is_envjavac_gcj_14_13_usable.
92945         (is_gcj_present): Update.
92946         (is_gcj_43, is_gcj43_usable): New functions.
92947         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92948         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92949         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92950         try the options -fsource and -ftarget.
92952 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92954         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92955         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92956         larger value.
92958 2007-02-03  Jim Meyering  <jim@meyering.net>
92960         Give tools a better chance to allocate space for very large buffers.
92961         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92963         Make pwd and readlink work also when run with an unreadable parent dir
92964         on systems with openat support.
92965         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92966         provided getcwd function, even when we have openat support.
92967         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92969 2007-02-02  Bruno Haible  <bruno@clisp.org>
92971         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92972         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92973         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92974         portability problems if one of these functions is only used on specific
92975         platforms.
92976         Reported by Paul Eggert.
92978 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92980         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92981         is causing more trouble than it's curing.
92982         * lib/regex_internal.h (__mempcpy): Remove.
92983         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92984         (and make the code a tad smaller to boot).
92985         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92987 2007-02-02  Jim Meyering  <jim@meyering.net>
92989         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92990         section, not in the Makefile.am: one.
92992 2007-02-02  Eric Blake  <ebb9@byu.net>
92994         * lib/strchrnul.c: Always include config.h first.
92996         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92997         gnulib strstr is not necessary here.
92999 2007-02-02  Simon Josefsson  <simon@josefsson.org>
93001         * m4/socklen.m4: Fix typo.
93003 2007-02-02  Eric Blake  <ebb9@byu.net>
93005         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
93006         * modules/netinet_in (Makefile.am): Likewise.
93008 2007-02-01  Bruno Haible  <bruno@clisp.org>
93010         * lib/string_.h (GL_LINK_WARNING): New macro.
93011         (strcasecmp, strstr, strcasestr): If provided by the system,
93012         conditionally define as a macro that leads to a warning instead of to
93013         an error.
93014         (strncasecmp): Conditionally define as a macro that leads to a warning.
93016 2007-02-01  Karl Berry  <karl@gnu.org>
93018         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
93020 2007-02-01  Bruno Haible  <bruno@clisp.org>
93022         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
93023         renamings.
93025 2007-02-01  Eric Blake  <ebb9@byu.net>
93027         * modules/regex (Depends-on): Revert dependence on mempcpy.
93028         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
93029         module's definition of mempcpy.
93030         Reported by Paul Eggert.
93032 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
93034         * lib/string_.h: If the gnulib module XYZ is not present, undefine
93035         the symbol XYZ before redefining it.  This fixes a problem with
93036         programs that don't use XYZ, when compiled on systems that define
93037         XYZ to something else.
93039 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
93041         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
93042         occurs when "mkdir -m foo" creates a setgid directory that is (1)
93043         writeable to group or other and (2) is intended to have a special
93044         mode bit that is set or cleared.  In such a case, the directory
93045         should be neither group- nor other-writeable until the special
93046         mode bits are right.
93048 2007-01-31  Eric Blake  <ebb9@byu.net>
93050         * modules/mountlist (Depends-on): Add strstr.
93052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
93053         bug.
93054         * modules/string (Makefile.am): Remove redundant replacement.
93055         * modules/regex (Depends-on): Add mempcpy.
93057 2007-01-31  Bruno Haible  <bruno@clisp.org>
93059         New module description field 'Link'.
93060         * gnulib-tool (func_usage): Document --extract-link-directive.
93061         (sed_extract_prog): Recognize 'Link' directive.
93062         (func_get_link_directive): New function.
93063         (func_import): Show summary of link directives.
93064         Handle --extract-link-directive option.
93065         * modules/acl (Link): New section.
93066         * modules/clock-time (Link): New section.
93067         * modules/euidaccess (Link): New section.
93068         * modules/gettext (Link): New section.
93069         * modules/iconv (Link): New section.
93070         * modules/lock (Link): New section.
93071         * modules/nanosleep (Link): New section.
93072         * modules/readline (Link): New section.
93074 2007-01-27  Bruno Haible  <bruno@clisp.org>
93076         Enforce the use of gnulib modules for unportable <string.h> functions.
93077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
93078         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
93079         (gl_HEADER_STRING_H_BODY): Require it.
93080         * lib/string_.h: If the gnulib module XYZ is not present, redefine
93081         the symbol XYZ to one that gives a link error.
93082         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
93083         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
93084         * modules/mempcpy (configure.ac): Likewise.
93085         * modules/memrchr (configure.ac): Likewise.
93086         * modules/stpcpy (configure.ac): Likewise.
93087         * modules/stpncpy (configure.ac): Likewise.
93088         * modules/strcase (configure.ac): Likewise.
93089         * modules/strcasestr (configure.ac): Likewise.
93090         * modules/strchrnul (configure.ac): Likewise.
93091         * modules/strdup (configure.ac): Likewise.
93092         * modules/strndup (configure.ac): Likewise.
93093         * modules/strnlen (configure.ac): Likewise.
93094         * modules/strpbrk (configure.ac): Likewise.
93095         * modules/strsep (configure.ac): Likewise.
93096         * modules/strstr (configure.ac): Likewise.
93097         * modules/strtok_r (configure.ac): Likewise.
93099 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
93101         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
93103 2007-01-30  Jim Meyering  <jim@meyering.net>
93105         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
93107 2007-01-29  Bruno Haible  <bruno@clisp.org>
93109         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
93110         * lib/execute.c: Likewise.
93111         * lib/pipe.c: Likewise.
93112         * lib/printf-args.h: Likewise.
93113         * lib/printf-args.c: Likewise.
93114         * lib/printf-parse.c: Likewise.
93115         * lib/vasnprintf.c: Likewise.
93117 2007-01-29  Eric Blake  <ebb9@byu.net>
93119         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
93120         declaration.
93122 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
93124         * lib/strptime.h (strptime): Use 'restrict' for args where
93125         POSIX requires this.
93126         * lib/strptime.c (strptime): Likewise.
93127         Change license notice from LGPL to GPL, since gnulib-tool will
93128         change this as needed.
93129         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
93130         defined.
93131         Include "strptime.h" first, to check interface.
93132         Do not #undef _LIBC and _NL_CURRENT.
93133         Do not include <stdlib.h>; no longer needed.
93134         Include "time_r.h" and declare ptime_locale_status
93135         only if _LIBC is not defined.
93136         (__P): Remove unused macro.
93137         (match_string): Bring back glibc version, but use it only if _LIBC
93138         is defined.
93139         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
93140         Remove unnecessary assertion and abort() call.
93141         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
93142         * m4/strptime.m4: Fix serial number comment.
93143         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
93144         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
93145         (Depends-on): Add time_r.
93147 2007-01-29  Bruno Haible  <bruno@clisp.org>
93149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93150         strptime.
93151         * modules/strptime (Depends-on): Add stdbool.
93152         * lib/strptime.h: Include <time.h> always. Add comments.
93154 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
93156         * modules/strptime: New file.
93157         * lib/strptime.h: New file.
93158         * lib/strptime.c: New file.
93159         * m4/strptime.m4: New file.
93161 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
93163         * MODULES.html.sh: New module mpsort.
93164         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
93166         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
93167         a circularity problem with HP-UX ia64 reported by Bob Proulx in
93168         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
93169         All uses changed.
93170         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
93171         All uses changed.
93172         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
93173         to _Restrict_.
93174         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
93175         the parameter matches the prototype.
93177 2007-01-28  Jim Meyering  <jim@meyering.net>
93179         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
93180         sys/time.h here, reverting that part of the previous patch:
93181         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
93183 2007-01-28  Bruno Haible  <bruno@clisp.org>
93185         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
93186         value of $(SYS_TIME_H).
93187         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
93188         remove it conditionally, too. [added by Jim Meyering]
93189         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
93190         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93191         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
93192         GETTIMEOFDAY_REPLACEMENT to 1.
93194 2007-01-28  Bruno Haible  <bruno@clisp.org>
93196         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
93197         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
93198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
93199         Set UNISTD_H instead of UNISTD_H2.
93200         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
93202 2007-01-28  Bruno Haible  <bruno@clisp.org>
93204         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
93205         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
93207 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93209         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
93210         (func_create_testdir): Ensure C locale for `grep' and `tr'
93211         character ranges.
93212         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
93213         ACLOCAL_AMFLAGS parsing state machine.
93215 2007-01-27  Bruno Haible  <bruno@clisp.org>
93217         * modules/unistr/base: Update.
93219 2007-01-27  Bruno Haible  <bruno@clisp.org>
93221         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
93222         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
93223         * modules/unistr/u32-mbtouc-unsafe: Renamed from
93224         modules/unistr/u32-mbtouc.
93225         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
93226         * lib/unistr.h: Update.
93227         * lib/linebreak.c: Update.
93228         * modules/unistr/u32-mbtouc: Renamed from
93229         modules/unistr/u32-mbtouc-safe.
93230         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
93231         * lib/unistr.h: Update.
93232         * lib/unistr/u32-to-u8.c: Update.
93233         * lib/unistr/u32-to-u16.c: Update.
93235 2007-01-27  Bruno Haible  <bruno@clisp.org>
93237         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
93238         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
93239         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
93240         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
93241         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
93242         * modules/unistr/u16-mbtouc-unsafe: Renamed from
93243         modules/unistr/u16-mbtouc.
93244         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
93245         * lib/unistr.h: Update.
93246         * lib/linebreak.c: Update.
93247         * modules/linebreak: Update.
93248         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
93249         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
93250         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
93251         * modules/unistr/u16-mbtouc: Renamed from
93252         modules/unistr/u16-mbtouc-safe.
93253         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
93254         * lib/unistr.h: Update.
93255         * lib/unistr/u16-to-u8.c: Update.
93256         * modules/unistr/u16-to-u8: Update.
93257         * lib/unistr/u16-to-u32.c: Update.
93258         * modules/unistr/u16-to-u32: Update.
93260 2007-01-27  Bruno Haible  <bruno@clisp.org>
93262         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
93263         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
93264         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
93265         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
93266         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
93267         * modules/unistr/u8-mbtouc-unsafe: Renamed from
93268         modules/unistr/u8-mbtouc.
93269         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
93270         * lib/unistr.h: Update.
93271         * lib/striconveh.c: Update.
93272         * modules/striconveh: Update.
93273         * lib/linebreak.c: Update.
93274         * modules/linebreak: Update.
93275         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
93276         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
93277         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
93278         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
93279         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
93280         * lib/unistr.h: Update.
93281         * lib/striconveh.c: Update.
93282         * modules/striconveh: Update.
93283         * lib/unistr/u8-to-u16.c: Update.
93284         * modules/unistr/u8-to-u16: Update.
93285         * lib/unistr/u8-to-u32.c: Update.
93286         * modules/unistr/u8-to-u32: Update.
93288 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93290         Sync from Libtool.
93291         * lib/argz.c: Do not include strings.h nor memory.h, include
93292         string.h unconditionally.  Patch by Simon Josefsson.
93294 2007-01-27  Bruno Haible  <bruno@clisp.org>
93296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
93297         from gl_HEADER_STRING_H_BODY.
93298         (gl_HEADER_STRING_H_BODY): Require it.
93299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
93300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93301         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93302         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93303         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93304         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
93305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93306         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93307         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
93308         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93309         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93310         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
93311         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93312         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93313         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93315 2007-01-27  Bruno Haible  <bruno@clisp.org>
93317         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
93318         check_PROGRAMS into noinst_PROGRAMS.
93319         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
93320         check_PROGRAMS in this case.
93321         (func_import): Set for_test to false.
93322         (func_create_testdir): Set for_test to true.
93324 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93325             Bruno Haible  <bruno@clisp.org>
93327         * modules/strcasestr (Files): Remove lib/strcasestr.h.
93328         (Depends-on): Add string.
93329         (Includes): Use <string.h> instead of strcasestr.h.
93330         * modules/string (Makefile.am): Also substitute the value of
93331         REPLACE_STRCASESTR.
93332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
93333         assume strcasestr is declared in <string.h> not <strings.h>. Also
93334         set REPLACE_STRCASESTR.
93335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
93336         REPLACE_STRCASESTR.
93337         * lib/strcasestr.h: Remove file.
93338         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
93339         * lib/string_.h (strcasestr): New declaration.
93341 2007-01-27  Bruno Haible  <bruno@clisp.org>
93343         * lib/string_.h: Use 'extern'.
93345 2007-01-27  Jim Meyering  <jim@meyering.net>
93347         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
93348         of set-but-not-used local, "q".
93350         * lib/mempcpy.c: Include <config.h> before <string.h>.
93351         This fixes a compilation error on HP-UX, due to the system's
93352         "restrict"-using mempcpy prototype.
93354 2007-01-26  Bruno Haible  <bruno@clisp.org>
93356         Small optimization.
93357         * lib/javacomp.c: Include c-strstr.h.
93358          (is_envjavac_gcj): Use c_strstr instead of strstr.
93359         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93361 2007-01-26  Bruno Haible  <bruno@clisp.org>
93363         * MODULES.html.sh (Unicode string functions): Add the new modules.
93365         * modules/uniconv/u32-strconv-to-locale: New file.
93366         * lib/uniconv/u32-strconv-to-locale.c: New file.
93368         * modules/uniconv/u16-strconv-to-locale: New file.
93369         * lib/uniconv/u16-strconv-to-locale.c: New file.
93371         * modules/uniconv/u8-strconv-to-locale: New file.
93372         * lib/uniconv/u8-strconv-to-locale.c: New file.
93374         * modules/uniconv/u32-strconv-from-locale: New file.
93375         * lib/uniconv/u32-strconv-from-locale.c: New file.
93377         * modules/uniconv/u16-strconv-from-locale: New file.
93378         * lib/uniconv/u16-strconv-from-locale.c: New file.
93380         * modules/uniconv/u8-strconv-from-locale: New file.
93381         * lib/uniconv/u8-strconv-from-locale.c: New file.
93383         * modules/uniconv/u32-strconv-to-enc: New file.
93384         * lib/uniconv/u32-strconv-to-enc.c: New file.
93385         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93386         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93388         * modules/uniconv/u16-strconv-to-enc: New file.
93389         * lib/uniconv/u16-strconv-to-enc.c: New file.
93390         * lib/uniconv/u-strconv-to-enc.h: New file.
93391         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93392         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93394         * modules/uniconv/u8-strconv-to-enc: New file.
93395         * lib/uniconv/u8-strconv-to-enc.c: New file.
93396         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93397         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93399         * modules/uniconv/u32-strconv-from-enc: New file.
93400         * lib/uniconv/u32-strconv-from-enc.c: New file.
93401         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93402         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93404         * modules/uniconv/u16-strconv-from-enc: New file.
93405         * lib/uniconv/u16-strconv-from-enc.c: New file.
93406         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93407         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93409         * modules/uniconv/u8-strconv-from-enc: New file.
93410         * lib/uniconv/u8-strconv-from-enc.c: New file.
93411         * lib/uniconv/u-strconv-from-enc.h: New file.
93412         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93413         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93415         * modules/uniconv/u32-conv-from-enc: New file.
93416         * lib/uniconv/u32-conv-from-enc.c: New file.
93417         * modules/uniconv/u32-conv-from-enc-tests: New file.
93418         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93420         * modules/uniconv/u16-conv-from-enc: New file.
93421         * lib/uniconv/u16-conv-from-enc.c: New file.
93422         * lib/uniconv/u-conv-from-enc.h: New file.
93423         * modules/uniconv/u16-conv-from-enc-tests: New file.
93424         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93426         * modules/uniconv/u8-conv-from-enc: New file.
93427         * lib/uniconv/u8-conv-from-enc.c: New file.
93428         * modules/uniconv/u8-conv-from-enc-tests: New file.
93429         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93431         * modules/uniconv/base: New file.
93432         * lib/uniconv.h: New file.
93434 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93436         * doc/gnulib-tool.texi (Initial import): Update to match current
93437         behavior with strdup module.
93438         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93439         * lib/memmem.h: Remove; all uses removed.  This is now done
93440         by <string.h>.
93441         * lib/mempcpy.h: Likewise.
93442         * lib/memrchr.h: Likewise.
93443         * lib/stpcpy.h: Likewise.
93444         * lib/stpncpy.h: Likewise.
93445         * lib/strcase.h: Likewise.
93446         * lib/strchrnul.h: Likewise.
93447         * lib/strdup.h: Likewise.
93448         * lib/strndup.h: Likewise.
93449         * lib/strnlen.h: Likewise.
93450         * lib/strpbrk.h: Likewise.
93451         * lib/strsep.h: Likewise.
93452         * lib/strstr.h: Likewise.
93453         * lib/strtok_r.h: Likewise.
93454         * lib/string_.h: New file.
93455         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93456         Rely on <string.h> instead.
93457         * lib/canon-host.c: Likewise.
93458         * lib/chdir-long.c: Likewise.
93459         * lib/concatpath.c: Likewise.
93460         * lib/exclude.c: Likewise.
93461         * lib/fchdir.c: Likewise.
93462         * lib/getaddrinfo.c: Likewise.
93463         * lib/getcwd.c: Likewise.
93464         * lib/getsubopt.c: Likewise.
93465         * lib/glob.c: Likewise.
93466         * lib/hard-locale.c: Likewise.
93467         * lib/iconvme.c: Likewise.
93468         * lib/javacomp.c: Likewise.
93469         * lib/mempcpy.c: Likewise.
93470         * lib/memrchr.c: Likewise.
93471         * lib/regex_internal.h: Likewise.
93472         * lib/stpncpy.c: Likewise.
93473         * lib/strcasecmp.c: Likewise.
93474         * lib/strchrnul.c: Likewise.
93475         * lib/strdup.c: Likewise.
93476         * lib/striconv.c: Likewise.
93477         * lib/striconveh.c: Likewise.
93478         * lib/striconveha.c: Likewise.
93479         * lib/strncasecmp.c: Likewise.
93480         * lib/strndup.c: Likewise.
93481         * lib/strnlen.c: Likewise.
93482         * lib/strsep.c: Likewise.
93483         * lib/strstr.c: Likewise.
93484         * lib/strtok_r.c: Likewise.
93485         * lib/userspec.c: Likewise.
93486         * lib/w32spawn.h: Likewise.
93487         * lib/xstrndup.c: Likewise.
93488         * lib/mountlist.c (strstr): Remove decl.
93489         * m4/string_h.m4: New file.
93490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93491         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93492         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93493         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93494         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93495         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93496         Set REPLACE_STRCASECMP if necessary.
93497         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93498         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93499         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93500         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93501         HAVE_DECL_STRDUP if necessary.
93502         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93503         since gl_FUNC_STRNDUP does that now.
93504         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93505         Check for decl here...
93506         (gl_PREREQ_STRNLEN): ... not here.
93507         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93508         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93509         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93511         necessary.
93512         * modules/string: New file.
93513         * modules/memmem (Files): Remove special-purpose include file.
93514         (Depends-on): Add string.
93515         (Include): Include <string.h>, not the removed file.
93516         * modules/mempcpy: Likewise.
93517         * modules/memrchr: Likewise.
93518         * modules/stpcpy: Likewise.
93519         * modules/stpncpy: Likewise.
93520         * modules/strcase: Likewise.
93521         * modules/strchrnul: Likewise.
93522         * modules/strdup: Likewise.
93523         * modules/strndup: Likewise.
93524         * modules/strnlen: Likewise.
93525         * modules/strpbrk: Likewise.
93526         * modules/strsep: Likewise.
93527         * modules/strstr: Likewise.
93528         * modules/strtok_r: Likewise.
93529         * tests/test-dirname.c: Don't include "strdup.h", since
93530         <string.h> now suffices.
93531         * tests/test-memmem.c: Don't include "memmem.h", since
93532         <string.h> now suffices.
93534 2007-01-25  Bruno Haible  <bruno@clisp.org>
93536         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93537         *resultp is 0.
93539         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93540         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93541         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93542         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93544         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93545         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93546         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93547         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93548         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93549         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93551 2007-01-24  Bruno Haible  <bruno@clisp.org>
93553         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93554         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93555         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93556         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93557         gl_FUNC_FTS_CORE.
93558         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93559         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93560         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93561         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93562         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93563         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93564         gl_FUNC_FCHOWNAT.
93565         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93566         gl_FUNC_STRFTIME.
93567         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93568         Reported by Ralf Wildenhues.
93570 2007-01-24  Bruno Haible  <bruno@clisp.org>
93572         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93573         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93574         gl_GETADDRINFO.
93575         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93576         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93577         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93579 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93581         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93582         Don't use 'exit'; just return from 'main'.
93583         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93585         * lib/fnmatch_.h: Readjust white space and comments to match
93586         glibc, to avoid spurious diffs.
93588 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93590         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93591         2004-12-01 change by Jakub Jelinek, since this code won't compile
93592         if !LIBC.  Problem reported by Bob Proulx.
93594 2007-01-23  Bruno Haible  <bruno@clisp.org>
93596         * lib/striconveh.c: Include c-strcaseeq.h.
93597         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93598         * modules/striconveh (Depends-on): Add c-strcaseeq.
93600 2007-01-23  Bruno Haible  <bruno@clisp.org>
93602         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93604         * modules/c-strcaseeq: New file.
93605         * lib/c-strcaseeq.h: New file.
93607         * modules/streq: New file.
93608         * lib/streq.h: New file.
93610 2007-01-23  Bruno Haible  <bruno@clisp.org>
93612         * modules/striconveha-tests: New file.
93613         * tests/test-striconveha.c: New file.
93615         * lib/striconveha.h: Include <stdbool.h>.
93616         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93617         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93618         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93619         (mem_iconveha): New function.
93620         (str_iconveha_notranslit): Renamed from str_iconveha.
93621         (str_iconveha): New function.
93622         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93623         c-strcase.
93625 2007-01-23  Bruno Haible  <bruno@clisp.org>
93627         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93628         encodings without forgiving before trying any encoding with handler.
93629         (str_iconveha): Try all encodings without forgiving before trying any
93630         encoding with handler.
93632 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93634         Import the following changes from libc.
93636         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93638         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93640         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93642         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93643         normal_bracket label.
93645         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93647         [BZ #361]
93648         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93649         to normal_bracket after fetching the next character.
93651 2007-01-22  Bruno Haible  <bruno@clisp.org>
93653         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93654         argument.
93655         * lib/striconveh.c (iconv_carefully_1): New function.
93656         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93657         argument.
93658         (str_cd_iconveh): Update.
93659         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93660         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93661         * tests/test-striconveh.c (MAGIC): New macro.
93662         (new_offsets): New function.
93663         (main): Test call with and without offsets.
93665 2007-01-22  Bruno Haible  <bruno@clisp.org>
93667         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93668         * modules/sys_select (Makefile.am): Likewise.
93669         * modules/sys_socket (Makefile.am): Likewise.
93670         * modules/sys_time (Makefile.am): Likewise.
93672 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93674         * modules/gettimeofday (License): Change from GPL to LGPL, since
93675         gettimeofday is a library function.
93677 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93679         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93681 2007-01-21  Bruno Haible  <bruno@clisp.org>
93683         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93685 2007-01-21  Bruno Haible  <bruno@clisp.org>
93687         * modules/striconveha: New file.
93688         * lib/striconveha.h: New file.
93689         * lib/striconveha.c: New file.
93690         * MODULES.html.sh (Internationalization functions): Add striconveha.
93691         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93692         string.
93693         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93695 2007-01-21  Bruno Haible  <bruno@clisp.org>
93697         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93698         * lib/striconveh.c (str_iconveh): Likewise.
93700 2007-01-21  Bruno Haible  <bruno@clisp.org>
93702         * lib/striconveh.h (mem_iconveh): New declaration.
93703         * lib/striconveh.c (mem_iconveh): New function.
93704         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93706 2007-01-21  Bruno Haible  <bruno@clisp.org>
93708         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93710         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93711         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93712         original result buffer.
93713         (str_cd_iconveh): Update.
93714         * tests/test-striconveh.c (main): Update.
93716         * lib/striconv.h (mem_cd_iconv): Change specification.
93717         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93718         result buffer.
93719         (str_cd_iconv): Update.
93720         * tests/test-striconv.c (main): Update.
93722 2007-01-21  Bruno Haible  <bruno@clisp.org>
93724         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93726 2007-01-20  Jim Meyering  <jim@meyering.net>
93728         * lib/userspec.c (parse_with_separator): If a user or group string
93729         starts with "+", skip the corresponding name-to-ID look-up, since
93730         such a look-up must fail: user and group names may not include "+".
93732 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93734         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93735         since we now assume the sys_time module.
93736         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93737         check for sys/time.h; no longer needed.
93738         * modules/poll (Depends-on): Depend on sys_time.
93740 2007-01-18  Bruno Haible  <bruno@clisp.org>
93742         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93745         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93746         gettimeofday.
93748         * tests/test-gettimeofday.c: Include <time.h>.
93749         (dummy): Remove variable.
93751         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93752         gl_HEADER_SYS_TIME_H.
93753         (gl_HEADER_SYS_TIME_H): New macro.
93755         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93756         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93758         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93759         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93761         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93762         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93763         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93764         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93765         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93767         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93768         last change; it caused a compilation error when cross-compiling to
93769         Cygwin.
93771 2007-01-18  Jim Meyering  <jim@meyering.net>
93773         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93774         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93775         than the race-prone "test -d sys || mkdir sys".
93776         (configure.ac): Use AC_PROG_MKDIR_P.
93777         * modules/sys_select: Likewise.
93778         * modules/sys_socket: Likewise.
93779         * modules/sys_time: Likewise.
93781 2007-01-18  Eric Blake  <ebb9@byu.net>
93783         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93784         replace gettimeofday.
93785         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93786         name, to avoid infinite recursion.
93788 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93790         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93791         module sys_time.
93792         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93793         assume timespec.h defines struct timeval.
93794         * lib/settime.c: Likewise.
93795         * lib/utimens.c: Likewise.
93796         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93797         since we now assume the gettimeofday module.
93798         * lib/tempname.c (__gen_tempname): Likewise.
93799         * lib/gettimeofday.h: Remove.
93800         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93801         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93802         Include <time.h>, for 'time()'.
93803         (localtime_buffer_addr): Also use this workaround if
93804         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93805         to simplify the uses.  All uses changed.
93806         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93807         that #undef is inside {}, and 'const' follows type name consistently.
93808         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93809         (gettimeofday): Do not use the maximum possible value for
93810         tv->tv_usec, since that might break usages other than ls.c.
93811         Instead, we'll leave ls.c alone.  This undoes today's patch
93812         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93813         we've never observed the problem but might as well keep the
93814         canary.
93815         * lib/nanosleep.c: Include timespec.h first, for interface check.
93816         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93817         now assume the sys_time module.
93818         * lib/tempname.c: Likewise.
93819         * lib/timespec.h: Likewise.
93820         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93821         needed.
93822         * lib/strftime.c: Likewise.
93823         * lib/timespec.h: Likewise.
93824         * lib/posixtm.c: Include posixtm.h first, for interface check.
93825         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93826         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93827         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93828         * lib/sys_time_.h: New file.
93829         * lib/timespec.h (struct timespec): Use long int, not long.
93830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93831         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93832         Remove obsolescent call to AC_HEADER_TIME.
93833         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93835         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93836         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93837         Likewise.
93838         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93839         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93841         into the sys_time module.  Check for gettimeofday just once.
93842         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93843         for gettimeofday signature to just check the signature.  Merely
93844         compile it, since linking doesn't test signature.  Improve test for
93845         whether gettimeofday.o is actually needed.
93846         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93847         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93848         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93849         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93850         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93851         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93852         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93853         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93854         than worrying about sys/time.h.
93855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93856         Don't bother worrying about TIME_WITH_SYS_TIME.
93857         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93858         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93859         * m4/sys_time_h.m4: New file.
93860         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93861         Don't include sys/time.h.  Return from main rather than exiting.
93862         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93863         all uses changed.
93864         * modules/gethrxtime (Depends-on): Add sys_time.
93865         * modules/gettime (Depends-on): Likewise.
93866         * modules/gettimeofday (Depends-on): Likewise.
93867         * modules/nanosleep (Depends-on): Likewise.
93868         * modules/settime (Depends-on): Likewise.
93869         * modules/tempname (Depends-on): Likewise.
93870         * modules/utimens (Depends-on): Likewise.
93871         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93872         (Include): Change back to <sys/time.h>.
93873         (Maintainer): Add self.
93874         * modules/sys_time: New file.
93875         * modules/tempname (Depends-on): Add gettimeofday.
93876         * tests/test-gettimeofday.c: Include <sys/time.h>
93877         rather than gettimeofday.h.
93879 2007-01-17  Bruno Haible  <bruno@clisp.org>
93881         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93882         the license default to GPL.
93883         (func_create_testdir): Don't complain if a module is LGPL and its
93884         tests module depends on GPLed modules.
93886 2007-01-17  Bruno Haible  <bruno@clisp.org>
93888         * lib/gettimeofday.c (gettimeofday): Add code for the case
93889         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93890         maximum possible value for tv->tv_usec, rather than the minimum one.
93892 2005-10-08  Martin Lambers  <marlam@marlam.de>
93893 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93894 2007-01-16  Bruno Haible  <bruno@clisp.org>
93896         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93897         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93898         gl_FUNC_GETTIMEOFDAY.
93899         (Include): Add gettimeofday.h.
93900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93901         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93902         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93903         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93904         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93905         * lib/gettimeofday.h: New file.
93906         * lib/gettimeofday.c: Include <sys/timeb.h>.
93907         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93908         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93909         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93910         fall back on time().
93912         * tests/test-gettimeofday.c: New file.
93913         * modules/gettimeofday-tests: New file.
93915 2007-01-16  Eric Blake  <ebb9@byu.net>
93917         * modules/fnmatch (Depends-on): Depend on wchar.
93918         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93919         * m4/fnmatch.m4: Likewise.
93920         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93921         * m4/mbchar.m4: Likewise.
93922         * modules/mbswidth (Depends-on): Depend on wchar.
93923         * lib/mbswidth.c: Assume <wchar.h>.
93924         * m4/mbswidth.m4: Likewise.
93925         * modules/quotearg (Depends-on): Depend on wchar.
93926         * lib/quotearg.c: Assume <wchar.h>.
93927         * m4/quotearg.m4: Likewise.
93928         * modules/regex (Depends-on): Depend on wchar.
93929         * lib/regex_internal.h: Assume <wchar.h>.
93930         * m4/regex.m4: Likewise.
93931         * modules/stdint (Depends-on): Depend on wchar.
93932         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93933         * m4/stdint.m4: Likewise.
93934         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93935         * modules/strftime (Depends-on): Depend on wchar.
93936         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93937         * modules/strtol (Depends-on): Depend on wchar.
93938         * lib/strtol.c: Assume <wchar.h>.
93939         * modules/wcwidth (Depends-on): Depend on wchar.
93940         * lib/wcwidth.h: Assume <wchar.h>.
93941         * m4/wcwidth.m4: Likewise.
93943 2007-01-16  Bruno Haible  <bruno@clisp.org>
93945         * modules/csharpexec-script: New, created from...
93946         * modules/csharpexec: ... this.
93948 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93950         * modules/javaexec-script: New, created from...
93951         * modules/javaexec: ... this.
93953 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93955         * modules/poll (Dependencies): Add sys_select.
93957 2007-01-15  Jim Meyering  <jim@meyering.net>
93959         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93960         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93961         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93962         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93964 2007-01-15  Bruno Haible  <bruno@clisp.org>
93966         * modules/striconveh: New file.
93967         * lib/striconveh.h: New file.
93968         * lib/striconveh.c: New file.
93969         * MODULES.html.sh (Internationalization functions): Add striconveh.
93971         * modules/striconveh-tests: New file.
93972         * tests/test-striconveh.c: New file.
93974 2007-01-15  Bruno Haible  <bruno@clisp.org>
93976         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93977         not from GNU libiconv or GNU libc.
93979 2007-01-15  Bruno Haible  <bruno@clisp.org>
93981         * doc/gnulib-intro.texi (Copyright): Explain the different license
93982         terms for module descriptions, autoconf macros, tests, documentation.
93984 2007-01-14  Bruno Haible  <bruno@clisp.org>
93986         * modules/striconv-tests: New file.
93987         * tests/test-striconv.c: New file.
93989 2007-01-14  Bruno Haible  <bruno@clisp.org>
93991         * modules/iconv-tests: New file.
93992         * tests/test-iconv.c: New file.
93994 2007-01-14  Bruno Haible  <bruno@clisp.org>
93996         * gnulib-tool (func_get_license): For test modules, use the license of
93997         the main module.
93999 2007-01-14  Bruno Haible  <bruno@clisp.org>
94001         * modules/iconv (Include): Clarify that <iconv.h> can only be included
94002         if iconv is found to exist.
94004 2007-01-14  Bruno Haible  <bruno@clisp.org>
94006         * modules/c-ctype-tests: New file.
94007         * tests/test-c-ctype.c: New file.
94009 2007-01-14  Bruno Haible  <bruno@clisp.org>
94011         * modules/binary-io-tests: New file.
94012         * tests/test-binary-io.sh: New file.
94013         * tests/test-binary-io.c: New file.
94015 2007-01-14  Bruno Haible  <bruno@clisp.org>
94017         * modules/array-oset-tests: New file.
94018         * tests/test-array_oset.c: New file.
94020 2007-01-14  Bruno Haible  <bruno@clisp.org>
94022         * modules/array-list-tests: New file.
94023         * tests/test-array_list.c: New file.
94025 2007-01-14  Bruno Haible  <bruno@clisp.org>
94027         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
94028         and make.
94029         Reported by Simon Josefsson in
94030         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
94032 2007-01-14  Bruno Haible  <bruno@clisp.org>
94034         * modules/allocsa-tests: New file.
94035         * tests/test-allocsa.c: New file.
94037 2007-01-14  Bruno Haible  <bruno@clisp.org>
94039         * modules/fchdir (Depends-on): Add absolute-header.
94040         * modules/unistd (Depends-on): Likewise.
94042 2006-12-30  Bruno Haible  <bruno@clisp.org>
94044         * modules/fchdir: New file.
94045         * modules/unistd (Files): Add lib/unistd_.h.
94046         (Makefile.am): Generate unistd.h from unistd_.h.
94047         * lib/fchdir.c: New file.
94048         * lib/dirent_.h: New file.
94049         * lib/unistd_.h: New file.
94050         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
94051         * m4/fchdir.m4: New file.
94052         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
94053         (gl_HEADER_UNISTD): Invoke it.
94054         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
94055         function.
94056         * lib/backupfile.c (opendir, closedir): Undefine.
94057         * lib/chown.c (open, close): Undefine.
94058         * lib/clean-temp.c (open, close): Undefine.
94059         * lib/copy-file.c (open, close): Undefine.
94060         * lib/execute.c (open, close): Undefine.
94061         * lib/fsusage.c (open, close): Undefine.
94062         * lib/gc-gnulib.c (open, close): Undefine.
94063         * lib/getcwd.c (opendir, closedir): Undefine.
94064         * lib/glob.c (opendir, closedir): Undefine.
94065         * lib/javacomp.c (open, close): Undefine.
94066         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
94067         * lib/openat-proc.c (open, close): Undefine.
94068         * lib/pagealign_alloc.c (open, close): Undefine.
94069         * lib/pipe.c (open, close): Undefine.
94070         * lib/progreloc.c (open, close): Undefine.
94071         * lib/savedir.c (opendir, closedir): Undefine.
94072         * lib/utime.c (open, close): Undefine.
94073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
94075 2007-01-10  Bruno Haible  <bruno@clisp.org>
94077         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
94079 2007-01-12  Eric Blake  <ebb9@byu.net>
94081         Provide a robust <wchar.h>.  Further simplifications are now
94082         possible in other modules, but not included here.
94083         * modules/wchar: New module.
94084         * m4/wchar.m4: New file.
94085         * lib/wchar_.h: Likewise.
94086         * modules/mbchar (Depends-on): Depend on wchar, as the first use
94087         of the new module.
94088         * MODULES.html.sh (Extended multibyte and wide character utilities):
94089         New section.
94091 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
94093         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
94094         to a reasonable default for memory allocation.
94095         (xreadlink): Don't allocate a huge buffer, to work around a buggy
94096         file system that reports garbage st_size values for symlinks.
94097         Problem reported by Liyang Hu.
94099 2007-01-11  Simon Josefsson  <simon@josefsson.org>
94101         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
94102         Emacs .#* auto-save files).
94104 2007-01-11  Bruno Haible  <bruno@clisp.org>
94106         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
94107         directory.
94109 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
94111         Use @...@ consistently in lib/wctype_.h.
94112         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
94113         on it being set to 1 or 0.
94114         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
94115         go back to AC_SUBSTing it.
94116         * modules/wctype (Makefile.am): Undo previous change.
94118 2007-01-10  Eric Blake  <ebb9@byu.net>
94120         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
94121         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
94122         * modules/wctype (Makefile.am): Likewise.
94123         Reported by Chris McGuire.
94125 2007-01-10  Jim Meyering  <jim@meyering.net>
94127         fts.c: a small readability/maintainability improvement
94128         * lib/fts.c (fts_read): Make this code slightly more readable and
94129         maintainable by hoisting the "sp->fts_cur = p" assignments to
94130         immediately follow the statements that set P.  Derived from
94131         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
94133 2007-01-10  Eric Blake  <ebb9@byu.net>
94135         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
94136         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
94137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94138         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
94139         Reported by Chris McGuire.
94141 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94143         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
94144         in sed script.
94146 2007-01-09  Bruno Haible  <bruno@clisp.org>
94148         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
94149         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
94150         variables.
94151         (func_module): Use them.
94153 2007-01-09  Bruno Haible  <bruno@clisp.org>
94155         * modules/unistr/base: New file.
94156         * lib/unistr.h: New file.
94158         * modules/unistr/u8-to-u16: New file.
94159         * lib/unistr/u8-to-u16.c: New file.
94161         * modules/unistr/u8-to-u32: New file.
94162         * lib/unistr/u8-to-u32.c: New file.
94164         * modules/unistr/u16-to-u8: New file.
94165         * lib/unistr/u16-to-u8.c: New file.
94167         * modules/unistr/u16-to-u32: New file.
94168         * lib/unistr/u16-to-u32.c: New file.
94170         * modules/unistr/u32-to-u8: New file.
94171         * lib/unistr/u32-to-u8.c: New file.
94173         * modules/unistr/u32-to-u16: New file.
94174         * lib/unistr/u32-to-u16.c: New file.
94176         * modules/unistr/u8-check: New file.
94177         * modules/unistr/u16-check: New file.
94178         * modules/unistr/u32-check: New file.
94179         * lib/unistr/u8-check.c: New file.
94180         * lib/unistr/u16-check.c: New file.
94181         * lib/unistr/u32-check.c: New file.
94183         * modules/unistr/u8-chr: New file.
94184         * modules/unistr/u16-chr: New file.
94185         * modules/unistr/u32-chr: New file.
94186         * lib/unistr/u8-chr.c: New file.
94187         * lib/unistr/u16-chr.c: New file.
94188         * lib/unistr/u32-chr.c: New file.
94190         * modules/unistr/u8-cmp: New file.
94191         * modules/unistr/u16-cmp: New file.
94192         * modules/unistr/u32-cmp: New file.
94193         * lib/unistr/u8-cmp.c: New file.
94194         * lib/unistr/u16-cmp.c: New file.
94195         * lib/unistr/u32-cmp.c: New file.
94197         * modules/unistr/u8-cpy: New file.
94198         * modules/unistr/u16-cpy: New file.
94199         * modules/unistr/u32-cpy: New file.
94200         * lib/unistr/u8-cpy.c: New file.
94201         * lib/unistr/u16-cpy.c: New file.
94202         * lib/unistr/u32-cpy.c: New file.
94203         * lib/unistr/u-cpy.h: New file.
94205         * modules/unistr/u8-cpy-alloc: New file.
94206         * modules/unistr/u16-cpy-alloc: New file.
94207         * modules/unistr/u32-cpy-alloc: New file.
94208         * lib/unistr/u8-cpy-alloc.c: New file.
94209         * lib/unistr/u16-cpy-alloc.c: New file.
94210         * lib/unistr/u32-cpy-alloc.c: New file.
94211         * lib/unistr/u-cpy-alloc.h: New file.
94213         * modules/unistr/u8-endswith: New file.
94214         * modules/unistr/u16-endswith: New file.
94215         * modules/unistr/u32-endswith: New file.
94216         * lib/unistr/u8-endswith.c: New file.
94217         * lib/unistr/u16-endswith.c: New file.
94218         * lib/unistr/u32-endswith.c: New file.
94219         * lib/unistr/u-endswith.h: New file.
94221         * modules/unistr/u8-mblen: New file.
94222         * modules/unistr/u16-mblen: New file.
94223         * modules/unistr/u32-mblen: New file.
94224         * lib/unistr/u8-mblen.c: New file.
94225         * lib/unistr/u16-mblen.c: New file.
94226         * lib/unistr/u32-mblen.c: New file.
94228         * modules/unistr/u8-mbtouc: New file.
94229         * modules/unistr/u16-mbtouc: New file.
94230         * modules/unistr/u32-mbtouc: New file.
94231         * lib/unistr/u8-mbtouc.c: New file.
94232         * lib/unistr/u16-mbtouc.c: New file.
94233         * lib/unistr/u32-mbtouc.c: New file.
94235         * modules/unistr/u8-mbtouc-safe: New file.
94236         * modules/unistr/u16-mbtouc-safe: New file.
94237         * modules/unistr/u32-mbtouc-safe: New file.
94238         * lib/unistr/u8-mbtouc-safe.c: New file.
94239         * lib/unistr/u16-mbtouc-safe.c: New file.
94240         * lib/unistr/u32-mbtouc-safe.c: New file.
94242         * modules/unistr/u8-move: New file.
94243         * modules/unistr/u16-move: New file.
94244         * modules/unistr/u32-move: New file.
94245         * lib/unistr/u8-move.c: New file.
94246         * lib/unistr/u16-move.c: New file.
94247         * lib/unistr/u32-move.c: New file.
94248         * lib/unistr/u-move.h: New file.
94250         * modules/unistr/u8-next: New file.
94251         * modules/unistr/u16-next: New file.
94252         * modules/unistr/u32-next: New file.
94253         * lib/unistr/u8-next.c: New file.
94254         * lib/unistr/u16-next.c: New file.
94255         * lib/unistr/u32-next.c: New file.
94257         * modules/unistr/u8-prev: New file.
94258         * modules/unistr/u16-prev: New file.
94259         * modules/unistr/u32-prev: New file.
94260         * lib/unistr/u8-prev.c: New file.
94261         * lib/unistr/u16-prev.c: New file.
94262         * lib/unistr/u32-prev.c: New file.
94264         * modules/unistr/u8-set: New file.
94265         * modules/unistr/u16-set: New file.
94266         * modules/unistr/u32-set: New file.
94267         * lib/unistr/u8-set.c: New file.
94268         * lib/unistr/u16-set.c: New file.
94269         * lib/unistr/u32-set.c: New file.
94270         * lib/unistr/u-set.h: New file.
94272         * modules/unistr/u8-startswith: New file.
94273         * modules/unistr/u16-startswith: New file.
94274         * modules/unistr/u32-startswith: New file.
94275         * lib/unistr/u8-startswith.c: New file.
94276         * lib/unistr/u16-startswith.c: New file.
94277         * lib/unistr/u32-startswith.c: New file.
94278         * lib/unistr/u-startswith.h: New file.
94280         * modules/unistr/u8-stpcpy: New file.
94281         * modules/unistr/u16-stpcpy: New file.
94282         * modules/unistr/u32-stpcpy: New file.
94283         * lib/unistr/u8-stpcpy.c: New file.
94284         * lib/unistr/u16-stpcpy.c: New file.
94285         * lib/unistr/u32-stpcpy.c: New file.
94286         * lib/unistr/u-stpcpy.h: New file.
94288         * modules/unistr/u8-stpncpy: New file.
94289         * modules/unistr/u16-stpncpy: New file.
94290         * modules/unistr/u32-stpncpy: New file.
94291         * lib/unistr/u8-stpncpy.c: New file.
94292         * lib/unistr/u16-stpncpy.c: New file.
94293         * lib/unistr/u32-stpncpy.c: New file.
94294         * lib/unistr/u-stpncpy.h: New file.
94296         * modules/unistr/u8-strcat: New file.
94297         * modules/unistr/u16-strcat: New file.
94298         * modules/unistr/u32-strcat: New file.
94299         * lib/unistr/u8-strcat.c: New file.
94300         * lib/unistr/u16-strcat.c: New file.
94301         * lib/unistr/u32-strcat.c: New file.
94302         * lib/unistr/u-strcat.h: New file.
94304         * modules/unistr/u8-strchr: New file.
94305         * modules/unistr/u16-strchr: New file.
94306         * modules/unistr/u32-strchr: New file.
94307         * lib/unistr/u8-strchr.c: New file.
94308         * lib/unistr/u16-strchr.c: New file.
94309         * lib/unistr/u32-strchr.c: New file.
94311         * modules/unistr/u8-strcmp: New file.
94312         * modules/unistr/u16-strcmp: New file.
94313         * modules/unistr/u32-strcmp: New file.
94314         * lib/unistr/u8-strcmp.c: New file.
94315         * lib/unistr/u16-strcmp.c: New file.
94316         * lib/unistr/u32-strcmp.c: New file.
94318         * modules/unistr/u8-strcpy: New file.
94319         * modules/unistr/u16-strcpy: New file.
94320         * modules/unistr/u32-strcpy: New file.
94321         * lib/unistr/u8-strcpy.c: New file.
94322         * lib/unistr/u16-strcpy.c: New file.
94323         * lib/unistr/u32-strcpy.c: New file.
94324         * lib/unistr/u-strcpy.h: New file.
94326         * modules/unistr/u8-strcspn: New file.
94327         * modules/unistr/u16-strcspn: New file.
94328         * modules/unistr/u32-strcspn: New file.
94329         * lib/unistr/u8-strcspn.c: New file.
94330         * lib/unistr/u16-strcspn.c: New file.
94331         * lib/unistr/u32-strcspn.c: New file.
94332         * lib/unistr/u-strcspn.h: New file.
94334         * modules/unistr/u8-strdup: New file.
94335         * modules/unistr/u16-strdup: New file.
94336         * modules/unistr/u32-strdup: New file.
94337         * lib/unistr/u8-strdup.c: New file.
94338         * lib/unistr/u16-strdup.c: New file.
94339         * lib/unistr/u32-strdup.c: New file.
94340         * lib/unistr/u-strdup.h: New file.
94342         * modules/unistr/u8-strlen: New file.
94343         * modules/unistr/u16-strlen: New file.
94344         * modules/unistr/u32-strlen: New file.
94345         * lib/unistr/u8-strlen.c: New file.
94346         * lib/unistr/u16-strlen.c: New file.
94347         * lib/unistr/u32-strlen.c: New file.
94348         * lib/unistr/u-strlen.h: New file.
94350         * modules/unistr/u8-strmblen: New file.
94351         * modules/unistr/u16-strmblen: New file.
94352         * modules/unistr/u32-strmblen: New file.
94353         * lib/unistr/u8-strmblen.c: New file.
94354         * lib/unistr/u16-strmblen.c: New file.
94355         * lib/unistr/u32-strmblen.c: New file.
94357         * modules/unistr/u8-strmbtouc: New file.
94358         * modules/unistr/u16-strmbtouc: New file.
94359         * modules/unistr/u32-strmbtouc: New file.
94360         * lib/unistr/u8-strmbtouc.c: New file.
94361         * lib/unistr/u16-strmbtouc.c: New file.
94362         * lib/unistr/u32-strmbtouc.c: New file.
94364         * modules/unistr/u8-strncat: New file.
94365         * modules/unistr/u16-strncat: New file.
94366         * modules/unistr/u32-strncat: New file.
94367         * lib/unistr/u8-strncat.c: New file.
94368         * lib/unistr/u16-strncat.c: New file.
94369         * lib/unistr/u32-strncat.c: New file.
94370         * lib/unistr/u-strncat.h: New file.
94372         * modules/unistr/u8-strncmp: New file.
94373         * modules/unistr/u16-strncmp: New file.
94374         * modules/unistr/u32-strncmp: New file.
94375         * lib/unistr/u8-strncmp.c: New file.
94376         * lib/unistr/u16-strncmp.c: New file.
94377         * lib/unistr/u32-strncmp.c: New file.
94379         * modules/unistr/u8-strncpy: New file.
94380         * modules/unistr/u16-strncpy: New file.
94381         * modules/unistr/u32-strncpy: New file.
94382         * lib/unistr/u8-strncpy.c: New file.
94383         * lib/unistr/u16-strncpy.c: New file.
94384         * lib/unistr/u32-strncpy.c: New file.
94385         * lib/unistr/u-strncpy.h: New file.
94387         * modules/unistr/u8-strnlen: New file.
94388         * modules/unistr/u16-strnlen: New file.
94389         * modules/unistr/u32-strnlen: New file.
94390         * lib/unistr/u8-strnlen.c: New file.
94391         * lib/unistr/u16-strnlen.c: New file.
94392         * lib/unistr/u32-strnlen.c: New file.
94393         * lib/unistr/u-strnlen.h: New file.
94395         * modules/unistr/u8-strpbrk: New file.
94396         * modules/unistr/u16-strpbrk: New file.
94397         * modules/unistr/u32-strpbrk: New file.
94398         * lib/unistr/u8-strpbrk.c: New file.
94399         * lib/unistr/u16-strpbrk.c: New file.
94400         * lib/unistr/u32-strpbrk.c: New file.
94401         * lib/unistr/u-strpbrk.h: New file.
94403         * modules/unistr/u8-strrchr: New file.
94404         * modules/unistr/u16-strrchr: New file.
94405         * modules/unistr/u32-strrchr: New file.
94406         * lib/unistr/u8-strrchr.c: New file.
94407         * lib/unistr/u16-strrchr.c: New file.
94408         * lib/unistr/u32-strrchr.c: New file.
94410         * modules/unistr/u8-strspn: New file.
94411         * modules/unistr/u16-strspn: New file.
94412         * modules/unistr/u32-strspn: New file.
94413         * lib/unistr/u8-strspn.c: New file.
94414         * lib/unistr/u16-strspn.c: New file.
94415         * lib/unistr/u32-strspn.c: New file.
94416         * lib/unistr/u-strspn.h: New file.
94418         * modules/unistr/u8-strstr: New file.
94419         * modules/unistr/u16-strstr: New file.
94420         * modules/unistr/u32-strstr: New file.
94421         * lib/unistr/u8-strstr.c: New file.
94422         * lib/unistr/u16-strstr.c: New file.
94423         * lib/unistr/u32-strstr.c: New file.
94424         * lib/unistr/u-strstr.h: New file.
94426         * modules/unistr/u8-strtok: New file.
94427         * modules/unistr/u16-strtok: New file.
94428         * modules/unistr/u32-strtok: New file.
94429         * lib/unistr/u8-strtok.c: New file.
94430         * lib/unistr/u16-strtok.c: New file.
94431         * lib/unistr/u32-strtok.c: New file.
94432         * lib/unistr/u-strtok.h: New file.
94434         * modules/unistr/u8-uctomb: New file.
94435         * modules/unistr/u16-uctomb: New file.
94436         * modules/unistr/u32-uctomb: New file.
94437         * lib/unistr/u8-uctomb.c: New file.
94438         * lib/unistr/u16-uctomb.c: New file.
94439         * lib/unistr/u32-uctomb.c: New file.
94441         * MODULES.html.sh (Unicode string functions): Add the new modules.
94443 2007-01-08  Bruno Haible  <bruno@clisp.org>
94445         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94446         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94447         subdirectories.
94449 2007-01-08  Karl Berry  <karl@gnu.org>
94451         * doc/error.texi: mention that main() fns must set program_name
94452         when progname is used.
94454 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94456         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94457         WCTYPE_H is empty, for the benefit of builds from non-distclean
94458         directories.  Problem reported by Eric Blake in
94459         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94461 2007-01-08  Bruno Haible  <bruno@clisp.org>
94463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94464         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94465         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94466         PROVIDE_CANONICALIZE_FILENAME_MODE.
94467         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94469 2007-01-08  Bruno Haible  <bruno@clisp.org>
94471         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94472         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94473         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94474         * lib/fts.c: Likewise.
94475         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94477 2006-12-25  Bruno Haible  <bruno@clisp.org>
94479         * modules/utf8-ucs4-safe: New file.
94480         * lib/utf8-ucs4-safe.h: New file.
94481         * lib/unistr/utf8-ucs4-safe.c: New file.
94483         * modules/utf16-ucs4-safe: New file.
94484         * lib/utf16-ucs4-safe.h: New file.
94485         * lib/unistr/utf16-ucs4-safe.c: New file.
94487         * MODULES.html.sh (Unicode string functions): Add the new modules.
94489 2007-01-08  Bruno Haible  <bruno@clisp.org>
94491         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94492         (Depends-on): Add unitypes.
94493         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94494         (u8_mbtouc_aux): Move out to separate file.
94495         (u8_mbtouc): Use ucs4_t, uint8_t types.
94496         * lib/unistr/utf8-ucs4.c: New file.
94498         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94499         (Depends-on): Add unitypes.
94500         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94501         (u16_mbtouc_aux): Move out to separate file.
94502         (u16_mbtouc): Use ucs4_t, uint16_t types.
94503         * lib/unistr/utf16-ucs4.c: New file.
94505         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94506         (Depends-on): Add unitypes.
94507         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94508         (u8_uctomb_aux): Move out to separate file.
94509         (u8_uctomb): Use ucs4_t, uint8_t types.
94510         * lib/unistr/ucs4-utf8.c: New file.
94512         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94513         (Depends-on): Add unitypes.
94514         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94515         (u16_uctomb_aux): Move out to separate file.
94516         (u16_uctomb): Use ucs4_t, uint16_t types.
94517         * lib/unistr/ucs4-utf16.c: New file.
94519 2006-12-25  Bruno Haible  <bruno@clisp.org>
94521         * modules/unitypes: New file.
94522         * lib/unitypes.h: New file.
94523         * MODULES.html.sh (func_all_modules): New section "Unicode string
94524         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94525         this section. Add unitypes.
94527 2007-01-08  Bruno Haible  <bruno@clisp.org>
94529         Avoid variable names that conflict with those from libtool.
94530         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94531         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94532         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94533         library_names_spec to acl_library_names_spec, hardcode_* to
94534         acl_hardcode_*.
94535         Reported by Ralf Wildenhues.
94537 2007-01-08  Bruno Haible  <bruno@clisp.org>
94539         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94540         definition.
94541         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94542         definition.
94543         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94544         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94545         definition.
94546         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94547         definition.
94548         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94549         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94550         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94551         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94552         definition.
94553         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94554         definition.
94555         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94556         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94557         GC_USE_<algorithm>.
94558         * lib/gc-libgcrypt.c: Likewise.
94559         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94560         * modules/gc-arctwo (configure.ac): Likewise.
94561         * modules/gc-des (configure.ac): Likewise.
94562         * modules/gc-hmac-md5 (configure.ac): Likewise.
94563         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94564         * modules/gc-md2 (configure.ac): Likewise.
94565         * modules/gc-md4 (configure.ac): Likewise.
94566         * modules/gc-md5 (configure.ac): Likewise.
94567         * modules/gc-random (configure.ac): Likewise.
94568         * modules/gc-rijndael (configure.ac): Likewise.
94569         * modules/gc-sha1 (configure.ac): Likewise.
94571 2007-01-08  Bruno Haible  <bruno@clisp.org>
94573         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94574         macro definition.
94575         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94576         definition.
94577         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94578         definition.
94579         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94580         * modules/fcntl-safer (configure.ac): Likewise.
94581         * modules/fopen-safer (configure.ac): Likewise.
94582         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94583         GNULIB_FWRITEERROR macro definition.
94585 2007-01-08  Bruno Haible  <bruno@clisp.org>
94587         * m4/gnulib-common.m4: New file.
94588         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94589         (func_get_filelist): Add m4/gnulib-common.m4.
94591 2007-01-08  Bruno Haible  <bruno@clisp.org>
94593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94594         command.
94596 2007-01-08  Jim Meyering  <jim@meyering.net>
94598         Use a more robust test for a "can't happen" condition.
94599         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94600         narrowed the st_size value.  Presuming the "can't happen" condition
94601         is true, that narrowing could conceivably convert an invalid st_size
94602         value into a valid one.  Instead, use a change based on Matthew
94603         Woehlke's original patch.
94605         Slight readability improvement: use an assert-like macro
94606         in place of literal "abort ()" uses.
94607         * lib/fts.c (fts_assert): Define.
94608         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94609         Use this macro instead of a bare 'abort'.
94611 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94613         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94614         simply work around them.
94615         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94616         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94617         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94618         declaring.
94619         Don't bother to define as macros, since the standard doesn't require it.
94620         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94621         longer worry about IRIX 5.3.
94622         (HAVE_WCTYPE_CTMP_BUG): Remove.
94624 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94626         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94627         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94628         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94629         Problems reported by Georg Schwarz for IRIX 5.3.
94631         * gnulib-tool (autoconf_minversion): Take the maximum version number
94632         found, not the minimum.  Problem reported by James Youngman.
94634 2007-01-03  Karl Berry  <karl@gnu.org>
94636         * doc/error.texi: new file, explaining interaction with progname.
94637         * doc/gnulib.texi: include it.  Update copyright.
94639 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94641         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94642         AC_CANONICAL_HOST, to improve autobuild outputs.
94644 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94645             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94647         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94648         sockets, server sockets, and other file descriptors.  Count errors
94649         to compute the return value.  Reorder the code a bit to be easier
94650         to follow.  Don't set event bits that were not requested (except
94651         POLLERR and POLLHUP).
94653 2007-01-01  Bruno Haible  <bruno@clisp.org>
94655         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94657 2007-01-03  Jim Meyering  <jim@meyering.net>
94659         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94661 2007-01-02  Bruno Haible  <bruno@clisp.org>
94663         * modules/settime (Include): Require timespec.h.
94664         * modules/nanosleep (Include): Likewise.
94666 2007-01-01  Bruno Haible  <bruno@clisp.org>
94668         * gnulib-tool (func_emit_copyright_notice): Bump year.
94669         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94671 2007-01-01  Bruno Haible  <bruno@clisp.org>
94673         Improve support for OpenBSD.
94674         * build-aux/config.rpath (libname_spec): Export.
94675         (library_names_spec): New variable. Export.
94676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94677         library_names_spec from the config.rpath output. Locate shared library
94678         through the name pattern in library_names_spec.
94680 2007-01-01  Eric Blake  <ebb9@byu.net>
94682         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94684 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94686         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94687         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94688         assume the C locale, and avoid an "eval" that could cause trouble.
94689         Problem with SORT reported by Bob Proulx.
94691         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94692         Define.  Trivial patch from Henning Nielsen Lund, originally
94693         sent to bug-grep@gnu.org today.
94695 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94697         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94698         struct stat.  Problem reported by Henning Nielsen Lund.
94699         * lib/acl.c: Include acl.h first, to check interface.  Don't
94700         bother to include sys/types.h and sys/stat.h again.
94702 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94704         Import the following change from libc; problem reported by
94705         Sven Verdoolaege.
94707         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94709         [BZ #1373]
94710         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94712 2006-12-28  Jim Meyering  <jim@meyering.net>
94714         * build-aux/announce-gen: Do not assume that the package
94715         builds any of tar.gz, tar.bz2, and .xdelta files.
94716         Suggestion from Simon Josefsson.
94718 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94720         * modules/announce-gen: New file.
94722 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94724         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94725         handles its gotchas now.
94726         * lib/mbswidth.c: Likewise.
94727         * lib/wcwidth.h: Likewise.
94728         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94729         and iswcntrl; the wctype module does this stuff now.
94730         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94732         * modules/mbchar (Depends-on): Add wctype.
94733         * modules/mbswidth (Depends-on): Likewise.
94734         * modules/wcwidth (Depends-on): Likewise.
94736 2006-12-27  Eric Blake  <ebb9@byu.net>
94738         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94739         module uses more than what <wctype.h> is required to provide.
94741 2006-12-26  Eric Blake  <ebb9@byu.net>
94743         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94745 2006-12-26  Eric Blake  <ebb9@byu.net>
94747         * modules/absolute-header: New module.
94748         * modules/fcntl (Depends-on): Depend on it.
94749         * modules/inttypes (Depends-on): Likewise.
94750         * modules/stdint (Depends-on): Likewise.
94751         * modules/sys_stat (Depends-on): Likewise.
94752         * modules/wctype (Depends-on): Likewise.
94753         * MODULES.html.sh (Support for building libraries and
94754         executables): Document it.
94756 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94758         * gnulib-tool (SED): Remove, undoing previous change.
94759         The problem was that it broke coreutils on Solaris, because
94760         "sed --posix" leaked into a makefile.
94761         (sed): New alias, if 'alias' and GNU sed.
94763 2006-12-24  Jim Meyering  <jim@meyering.net>
94765         Work around an fchownat bug in glibc-2.4:
94766         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94767         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94768         in spite of the -P option.
94769         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94770         New macros.
94771         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94772         * modules/openat (Files): Add lib/fchownat.c.
94773         * lib/openat.c (fchownat): Don't define here.  Move to...
94774         * lib/fchownat.c: ...this new file.
94776 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94778         Fix bug reported by Bruno Haible in
94779         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94780         where quotearg.c didn't compile on Mac OS X 10.2 because it
94781         lacks <wchar.h> and wint_t.
94782         * lib/wctype_.h (__wctype_wint_t): New type.
94783         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94784         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94785         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94786         Arg is now of type __wctype_wint_t, not wint_t.
94787         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94788         substitute HAVE_WINT_T.
94789         * modules/wctype (Files): Add m4/wint_t.m4.
94790         (wctype.h): Substitute HAVE_WINT_T.
94792 2006-12-23  Bruno Haible  <bruno@clisp.org>
94794         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94796 2006-12-23  Bruno Haible  <bruno@clisp.org>
94798         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94799         S_ISLNK.
94800         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94801         mingw.
94803 2006-12-22  Bruno Haible  <bruno@clisp.org>
94805         * lib/copy-file.c: Include acl.h.
94806         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94807         Close the file descriptors only after being done with copy_acl.
94808         * modules/copy-file (Depends-on): Add acl.
94810 2006-12-22  Bruno Haible  <bruno@clisp.org>
94812         * gnulib-tool (SED): New variable.
94813         Use $SED instead of sed everywhere.
94815 2006-12-22  Bruno Haible  <bruno@clisp.org>
94817         * modules/no-c++: New file.
94818         * m4/no-c++.m4: New file.
94819         * MODULES.html.sh (Support for building libraries and executables):
94820         Add no-c++.
94822 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94824         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94825         Include <limits.h>, and use its INT_MAX to rewrite the
94826         j loop so that it does not overflow 'int'.  Problem reported by
94827         Ralf Wildenhues in
94828         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94829         Play it safe by shifting left by 1 rather than multiplying by 2,
94830         as GCC is less likely to optimize this away when the value
94831         is signed (when it assumes overflow leads to undefined behavior).
94832         Also, don't assume time_t uses two's complement.
94834 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94836         * MODULES.html.sh: New module wctype.
94837         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94838         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94839         <wctype.h>, since the new wctype module should fix this.
94840         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94841         the wctype module should arrange for it.
94842         * lib/regex_internal.h: Likewise.
94843         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94844         since the wctype module should handle this now.
94845         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94846         * modules/fnmatch (Depends-on): Add wctype.
94847         * modules/quotearg (Depends-on): Likewise.
94848         * modules/regex (Depends-on): Likewise.
94850 2006-12-19  Bruno Haible  <bruno@clisp.org>
94852         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94853         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94855 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94857         * modules/savewd (Depends-on): Fix dependency on fcntl.
94859 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94861         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94862         conforms to C99, rather than relying on the user's environment
94863         setting of STDINT_H.
94865 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94866         and Eric Blake  <ebb9@byu.net>
94868         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94869         This is more consistent with the other defines here.
94870         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94871         Port to z/OS.  Problem reported by Paul Gilmartin.
94872         Change local vars to use gl_ prefix rather than ac_.
94873         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94874         with other defines.
94875         * modules/double-slash-root: New module.
94876         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94877         (Depends-on): Add double-slash-root.
94878         * MODULES.html.sh (File system functions): Mention new module.
94880 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94882         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94883         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94884         This is for the benefit of gzip, which doesn't do i18n.
94886 2006-12-12  Jim Meyering  <jim@meyering.net>
94888         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94889         Reported by Andreas Schwab <schwab@suse.de>.
94891 2006-12-12  Bruno Haible  <bruno@clisp.org>
94893         Merge these changes.
94894         2006-09-05  Bruno Haible  <bruno@clisp.org>
94895         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94896         iconv_alloc succeeded.
94897         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94898         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94899         test for " && dest " at the end - dest is always != NULL there. Call
94900         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94901         with 2xNULL arguments, also to flush the state storage. Handle the
94902         IRIX iconv behaviour. Realloc the final result, to throw away unused
94903         memory.
94905 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94907         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94908         and fchmodat unconditionally, since glibc 2.4 has them.
94909         Problem reported by Arkadiusz Miskiewicz.
94911 2006-12-10  Bruno Haible  <bruno@clisp.org>
94913         * gnulib-tool (func_import): Show the include files only for those
94914         modules that are copied and specified.
94915         Reported by Karl Berry.
94917 2006-12-08  Jim Meyering  <jim@meyering.net>
94919         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94920         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94922         * build-aux/announce-gen: Add two new options, both optional:
94923         --bootstrap-tools=TOOL_LIST
94924               a comma-separated list of tools, e.g.,
94925               autoconf,automake,bison,gnulib
94926         --gnulib-snapshot-date=DATE
94927               if gnulib is in the bootstrap tool list,
94928               then report this as the snapshot date.
94929               If not specified, use the current date/time.
94930               If you specify a date here, be sure it's UTC.
94932 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94934         * tests/test-argp-2.sh: Fix test to match actual output.
94935         (func_compare): Fix sed script to be portable.
94937 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94939         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94940         workaround for this case.  It is not autoconfigured now; offhand
94941         it's hard to see how to autoconfigure it.
94943 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94945         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94946         a directory that is about to be chowned.  Such a directory's
94947         initial file permissions should permit the owner only and this
94948         should not be changed until after the chown, since the group and
94949         other bits would be incorrect if they granted permission before
94950         the chown.
94952         Fix porting problem for iswctype reported by Georg Schwarz in:
94953         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94954         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94955         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94957         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94959 2006-12-03  Jim Meyering  <jim@meyering.net>
94961         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94962         p->fts_statp may not yet be defined.
94963         (fts_read): Instead, set it in the caller, once p->fts_statp is
94964         sure to be defined, and corresponds to a top-level directory.
94965         This bug made du -x fail.  Here's the coreutils test case:
94966         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94967         Reported by Mike Frysinger.
94969 2006-12-01  Jim Meyering  <jim@meyering.net>
94971         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94972         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94973         Reported by Simon Josefsson.
94975 2006-11-30  Jim Meyering  <jim@meyering.net>
94977         * m4/warning.m4: Use the all-permissive copyright notice
94978         recommended by RMS (rather than LGPL).
94979         * m4/vararrays.m4: Likewise.
94980         * m4/flexmember.m4: Likewise.
94982 2006-11-29  Bruno Haible  <bruno@clisp.org>
94984         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94985         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94986         using +=.
94987         Reported by Simon Josefsson <simon@josefsson.org>.
94989 2006-11-28  James Youngman  <jay@gnu.org>
94991         * README: Advise users that they might find the bug-gnulib@gnu.org
94992         and autotools-announce@gnu.org mailing lists useful.
94994 2006-11-28  Bruno Haible  <bruno@clisp.org>
94996         * m4/ptrdiff_max.m4: Remove file.
94998 2006-11-21  Bruno Haible  <bruno@clisp.org>
95000         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
95001         _AC_COMPUTE_INT.
95002         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95003         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
95004         _AC_COMPUTE_INT.
95005         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95006         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
95007         _AC_COMPUTE_INT.
95008         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95010 2006-11-28  Jim Meyering  <jim@meyering.net>
95012         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
95013         warning from "gcc -Wshadow" about shadowing the builtin.
95015 2006-11-27  Bruno Haible  <bruno@clisp.org>
95017         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
95018         _AC_COMPUTE_INT.
95019         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95021 2006-11-27  Bruno Haible  <bruno@clisp.org>
95022             Paul Eggert  <eggert@cs.ucla.edu>
95024         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
95026 2006-11-26  Bruno Haible  <bruno@clisp.org>
95028         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95029         noinst_LTLIBRARIES.
95031 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
95032             Bruno Haible  <bruno@clisp.org>
95034         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
95035         if compiling with "gcc -ansi".
95037 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
95039         Fix some incompatibilities with gcc -ansi -pedantic.
95040         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
95041         if compiling pedantically with GCC, unless it's C99 or later.
95042         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
95043         it mishandles gcc -ansi -pedantic as well.
95044         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
95045         if gcc -pedantic.
95046         * lib/regexec.c (check_node_accept_bytes): Don't use auto
95047         initializers for struct if -pedantic, unless it's C99 or later.
95049 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
95051         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
95052         Don't close an fd more than once. Identical atimes indicate
95053         success, not failure.
95055 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
95057         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
95059 2006-11-23  Jim Meyering  <jim@meyering.net>
95061         * build-aux/announce-gen: New file.  From coreutils.
95063 2006-11-22  Jim Meyering  <jim@meyering.net>
95065         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
95066         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
95067         (fts_read): Use a temporary to narrow the overused st_size member
95068         before using it in a switch statement.  Reported by Matthew Woehlke.
95070         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
95071         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
95073 2006-11-20  Bruno Haible  <bruno@clisp.org>
95075         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
95076         changequote instead of pairs of brackets.
95077         Reported by Andreas Schwab <schwab@suse.de>.
95079 2006-11-21  Jim Meyering  <jim@meyering.net>
95081         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
95082         so as to remain compatible with older compilers.
95083         Patch from Michael Deutschmann.
95085 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
95087         * MODULES.html.sh (File system functions): Add openat.
95089         * lib/openat.h (rpl_fstatat): New macro, if
95090         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
95091         (fstatat): Define to rpl_fstatat under the same conditions,
95092         unless COMPILING_FSTATAT.
95093         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
95094         seems to have the bug.
95095         * lib/fstatat.c: New file.
95096         * modules/openat (Files): Add it.
95098 2006-11-20  Bruno Haible  <bruno@clisp.org>
95100         * Makefile: New file.
95102 2006-11-20  Jim Meyering  <jim@meyering.net>
95104         The beginnings of syntax-related checks for gnulib.
95105         * lib/Makefile: New file.
95106         * lib/t-idcache: New script.  Ensure that the two halves of
95107         idcache.c stay in sync.
95109         * lib/idcache.c: Adjust comments in user- and group- portions to
95110         be more accurate, and to be consistent with one another.
95112 2006-11-20  Jim Meyering  <jim@meyering.net>
95114         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
95115         continue using the flexible array member (thus, this module performs
95116         half as many malloc calls), with the addition that...
95117         (getgroup, getuser): Consistently record a non-match via an empty
95118         "name" string, and map an empty string match to a NULL return value.
95119         * modules/idcache (Depends-on): Re-add flexmember.
95121         * lib/idcache.c (getuser): Remove all uses of the register keyword.
95122         (getuidbyname, getgroup, getgidbyname): Likewise.
95124         Use cleaner syntax: NULL rather than 0.
95125         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
95127 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
95129         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
95130         It mishandled the case where the group was missing.
95131         Problem reported by Greg Schafer.
95132         * modules/idcache: Likewise.
95134 2006-11-18  Jim Meyering  <jim@meyering.net>
95136         * check-module (%exempt_header): Add exception for some
95137         conditionally-included headers.
95139         * modules/i-ring (Depends-on): Add verify.
95140         (License): Change to LGPL.
95142 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95144         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
95145         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
95146         and inttostr.h.  Use snprintf rather than uinttostr, so that
95147         LGPLed code doesn't depend on GPLed.
95149 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
95151         * modules/inline (License): Change from GPL to LGPL.
95153 2006-11-17  Jim Meyering  <jim@meyering.net>
95155         * modules/d-type (License): Switch to LGPL.
95157 2006-11-15  Bruno Haible  <bruno@clisp.org>
95159         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
95161 2006-11-15  Eric Blake  <ebb9@byu.net>
95163         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
95164         the module dependency.
95166 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95167             Bruno Haible  <bruno@clisp.org>
95169         * gnulib-tool (func_create_testdir): Add license consistency check.
95171 2006-11-15  Eric Blake  <ebb9@byu.net>
95173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
95174         random "(cached)" in configure output.
95176 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95178         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
95179         test for conforming inttypes.h is both announced and cached.
95181         * MODULES.html.sh (seen_modules, seen_files): New variables.
95182         (func_module): Rewrite to use a few less gnulib-tool and sed
95183         invocations.  Avoid a couple of quadratic algorithms for ...
95184         (missed_modules, missed_files): ... these, with ...
95185         (func_append, func_tmpdir): ... these new functions, from
95186         gnulib-tool.  Analogously, install traps for cleanup.
95188         * tests/test-gc.c (main): Remove unused variables.
95189         * tests/test-read-file.c: Include stdlib.h, for 'free'.
95191 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
95193         * modules/inttostr (License): Change to LGPL.
95195 2006-11-14  Eric Blake  <ebb9@byu.net>
95197         * modules/tempname (License): Change to LGPL.
95199 2006-11-14  Eric Blake  <ebb9@byu.net>
95201         * doc/functions.texi (Function Portability): *printf functions on
95202         Cygwin now understand all POSIX size specifiers.
95204 2006-11-14  Bruno Haible  <bruno@clisp.org>
95206         * modules/c-ctype (License): Change to LGPL.
95208 2006-11-12  Bruno Haible  <bruno@clisp.org>
95210         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95211         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
95212         for GNOME libraries, for which the include files are installed in
95213         subdirectories of $prefix/include.
95215 2006-11-12  Bruno Haible  <bruno@clisp.org>
95217         * m4/lib-link.m4: Require at least autoconf-2.54.
95218         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
95219         name to underscores for the --with option.
95221 2006-11-13  Bruno Haible  <bruno@clisp.org>
95223         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
95224         the tests directory.
95225         Reported by Ralf Wildenhues.
95227 2006-11-13  Bruno Haible  <bruno@clisp.org>
95229         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
95230         (func_emit_initmacro_end): Undo the override here.
95231         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
95232         Works around the famous automake error in coreutils.
95234 2006-11-13  Eric Blake  <ebb9@byu.net>
95236         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
95237         element, not its node.
95239 2006-11-12  Bruno Haible  <bruno@clisp.org>
95241         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
95242         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
95244 2006-11-12  Bruno Haible  <bruno@clisp.org>
95246         * gnulib-tool: New option --local-symlink.
95247         (func_usage): Document it.
95248         (lsymbolic): New variable.
95249         (func_import, func_create_testdir): If --symlink was not specified,
95250         test whether --local-symlink was specified and the file comes from
95251         the local_gnulib_dir.
95253 2006-11-12  Bruno Haible  <bruno@clisp.org>
95255         * gnulib-tool (func_ln): New function.
95256         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
95258 2006-11-12  Bruno Haible  <bruno@clisp.org>
95260         Finish support for source files in subdirectories.
95261         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
95262         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
95263         AUTOMAKE_OPTIONS.
95264         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
95266 2006-11-12  Bruno Haible  <bruno@clisp.org>
95268         * gnulib-tool (func_get_automake_snippet): Synthesize also an
95269         EXTRA_lib_SOURCES augmentation.
95270         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
95272 2006-11-12  Jim Meyering  <jim@meyering.net>
95274         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
95275         file descriptors.  This also averts a failure on systems with
95276         native openat support when a traversed directory lacks "x" access.
95277         * lib/fts_.h: Include "i-ring.h"
95278         (struct FTS) [fts_fd_ring]: New member.
95279         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
95280         (FCHDIR): Add parentheses.
95281         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
95282         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
95283         When descending, rather than simply closing the previous
95284         fts_cwd_fd value, push that file descriptor onto the ring.
95285         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
95286         (fts_open): Initialize the new fd_ring member.
95287         (fts_close): Clear the ring.
95288         (fts_safe_changedir): When possible, use our new fd_ring to skip
95289         the diropen and fstat and dev/ino comparison that would normally
95290         accompany a virtual `chdir ("..")'.
95292         * modules/fts (Depends-on): Add i-ring.
95293         * modules/i-ring: New module.
95294         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
95295         * m4/i-ring.m4: New file.
95297 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95299         * gnulib-tool (func_create_testdir): Fix replacement of
95300         `build-aux' in configure.ac.  Run autotools in gltests
95301         subdirectory.
95302         (func_create_testdir, func_create_megatestdir, test): There is
95303         no need for '--force' in most autotool invocations in a new
95304         tree.  Actually fail the whole test if any of the tools, or the
95305         configure or make stages fail.
95307         Sync from Automake.
95308         * build-aux/gnupload: Revert last change.  Add pointer to upload
95309         instructions of the GNU Maintenance Instructions.
95310         Suggestion by Karl Berry.
95312 2006-11-10  Jim Meyering  <jim@meyering.net>
95314         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
95316 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95318         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
95319         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
95320         (bind_textdomain_codeset) [! ENABLE_NLS]:
95321         Evaluate all the arguments.  That way, callers get compatible behavior
95322         if the arguments have side effects.  Also, it avoids some GCC
95323         diagnostics in some cases; Joel E. Denny reported problems when Bison
95324         was configured with --enable-gcc-warnigs.
95326 2006-11-10  Jim Meyering  <jim@meyering.net>
95328         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
95329         relevant options in CFLAGS (like -O, -fno-inline) are taken into
95330         account.
95332 2006-11-10  Jim Meyering  <jim@meyering.net>
95334         * modules/inline: New file/module.
95335         * modules/xalloc (Files): Remove m4/inline.m4.
95336         (Depends-on): Add inline, instead.
95337         * modules/oset: Likewise.
95338         * modules/list: Likewise.
95340 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95342         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
95343         Problem reported by Matthew Woehlke.
95345 2006-11-09  Bruno Haible  <bruno@clisp.org>
95347         * lib/tempname.c (gen_tempname): Remove variant that invokes
95348         __gen_tempname.
95349         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
95350         __gen_tempname.
95352 2006-11-08  Bruno Haible  <bruno@clisp.org>
95354         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
95355         to 'yes' instead of 'cross-compiling'.
95357 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95359         * lib/quotearg.h (quotearg_free): New decl.
95360         * lib/quotearg.c (quotearg_free): New function.
95361         (slot0, nslots, slotvec0, slotvec):
95362         Now file-scope so that quotearg_free can get at them.
95364 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95366         Sync from Automake.
95367         * build-aux/gnupload: Add missing 'gnu' to example URL.
95368         Report by Karl Berry.
95370 2006-11-08  Bruno Haible  <bruno@clisp.org>
95372         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95373         Suggested by Paul Eggert.
95375 2006-11-08  Jim Meyering  <jim@meyering.net>
95377         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95378         It's already included if !_LIBC.
95379         (fts_safe_changedir): Add a comment.
95381 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95383         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95384         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95385         Matthew Woehlke.
95387         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95388         definitions up, to avoid colliding with change below.
95389         (static_inline) [HAVE_INLINE]: New macro.
95390         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95391         Provide extern decls when !HAVE_INLINE.  Do not define unless
95392         static_inline is defined, either by us or by xmalloc.c.  Use
95393         static_inline rather than static inline.
95394         (XCALLOC): Optimize sizeof(T) = 1 case.
95395         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95397 2006-11-07  Bruno Haible  <bruno@clisp.org>
95399         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95400         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95401         AC_C_INLINE.
95402         * modules/xalloc (Files): Add m4/inline.m4.
95404 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95406         * README: Fix typo.
95407         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95408         (Miscellanous Notes): ...from this.
95410 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95412         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95413         Mention that offsetof should be used instead of sizeof.
95414         From Bruno Haible.
95416 2006-11-07  Bruno Haible  <bruno@clisp.org>
95418         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95420 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95422         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95423         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95424         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95425         (gl_tree_add_before, gl_tree_add_after):
95426         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95427         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95428         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95429         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95430         (gl_linked_add_after, gl_linked_add_at): Likewise.
95431         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95432         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95433         (gl_tree_add_before, gl_tree_add_after): Likewise.
95434         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95435         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95436         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95438 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95440         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95442 2006-11-06  Bruno Haible  <bruno@clisp.org>
95444         * m4/inline.m4: New file.
95445         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95446         * modules/list (Files): Add m4/inline.m4.
95447         * modules/oset (Files): Likewise.
95449 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95451         * lib/idcache.c: Include <stddef.h>, for offsetof.
95452         (struct userid.name): Change from char * to a flexible array member.
95453         All uses changed.
95454         * modules/idcache (Depends-on): Add flexmember.
95456         * MODULES.html.sh (Core language properties): New module flexmember.
95457         * modules/flexmember, m4/flexmember.m4: New files.
95459         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95460         inline functions that are identical with the old xnmalloc_inline,
95461         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95462         that we can avoid some unnecessary integer multiplications and
95463         divisions in the common case where the element size is known at
95464         compile time.
95465         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95466         needed.
95467         (xnboundedmalloc): Remove.
95468         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95469         arguments, for consistency with rest of this header.
95470         (xcharalloc): Rewrite using XNMALLOC.
95471         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95472         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95473         versions have been moved to lib/xalloc.h and renamed to be the
95474         non-*_inline versions.
95475         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95476         and xnrealloc functions, since those functions are now inline and
95477         now call us.
95478         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95479         renaming described above.
95480         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95481         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95482         captures the dependency in AC_C_INLINE.
95484         New module canonicalize-lgpl, proposed by Charles Wilson in
95485         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95486         with a few small changes afterwards.
95487         * MODULES.html.sh (File system functions): New module
95488         canonicalize-lgpl.
95489         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95490         and canonicalize_file_name.
95491         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95492         * modules/canonicalize-lgpl: New files.
95494 2006-11-05  Bruno Haible  <bruno@clisp.org>
95496         * gnulib-tool (func_import, func_create_testdir): Create directories
95497         also for files in subdirectories of lib/.
95499 2006-11-05  Bruno Haible  <bruno@clisp.org>
95501         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95502         ANSI C compliant.
95504 2006-11-03  Bruno Haible  <bruno@clisp.org>
95506         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95507         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95508         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95509         (xnboundedmalloc): New inline function.
95510         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95511         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95512         xmalloc.
95513         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95514         xmalloc.
95515         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95516         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95517         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95518         xmalloc.
95519         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95520         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95521         xmalloc.
95522         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95523         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95524         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95525         xmalloc.
95526         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95527         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95528         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95529         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95530         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95531         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95532         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95534 2006-11-03  Bruno Haible  <bruno@clisp.org>
95536         * lib/c-ctype.h [C++]: Define functions without name mangling.
95537         * lib/fwriteerror.h [C++]: Likewise.
95538         * lib/gcd.h [C++]: Likewise.
95539         * lib/linebreak.h [C++]: Likewise.
95541 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95543         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95544         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95545         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95546         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95547         Check for functions and headers just once.
95548         Check for declaration of canonicalize_file_name.
95549         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95551 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95553         * gnulib-tool (func_import): Fix typo in actioncmd.
95555 2006-11-02  Bruno Haible  <bruno@clisp.org>
95557         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95558         newline sequence in the Makefile.am snippet as a space, like "make"
95559         does.
95560         Reported by Roger Persson <perrog@gmail.com>.
95562 2006-11-01  Bruno Haible  <bruno@clisp.org>
95564         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95565         already declared in <string.h>.
95566         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95568 2006-11-01  Bruno Haible  <bruno@clisp.org>
95570         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95571         * lib/strcase.h: Include <string.h>.
95572         (strcasecmp): Define to rpl_strcasecmp here.
95574 2006-11-01  Bruno Haible  <bruno@clisp.org>
95576         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95578 2006-11-01  Eric Blake  <ebb9@byu.net>
95580         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95584 2006-10-29  Bruno Haible  <bruno@clisp.org>
95586         Make it compile in C++ mode.
95587         * lib/full-write.c (full_rw): Add a cast.
95589 2006-11-01  Bruno Haible  <bruno@clisp.org>
95591         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95592         be POSIX compliant.
95593         Reported by Roger Persson <perrog@gmail.com>.
95595 2006-11-01  Eric Blake  <ebb9@byu.net>
95597         * lib/getopt_.h: Fix comments.
95599 2006-10-31  Eric Blake  <ebb9@byu.net>
95601         * modules/tmpdir (Depends-on): Add sys_stat.
95602         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95603         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95604         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95605         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95606         tempname.
95608 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95610         Avoid some C++ diagnostics reported by Bruno Haible.
95611         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95612         xmalloc.
95613         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95614         (struct slotvec): Move to top level.
95615         (quotearg_n_options): Rewrite to avoid xmalloc.
95616         * lib/xalloc.h (xcharalloc): New function.
95617         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95618         [defined __cplusplus]: Add function template that provides result
95619         type propagation.  This part of the change is from Bruno Haible.
95621 2006-10-29  Bruno Haible  <bruno@clisp.org>
95623         Make it compile in C++ mode.
95624         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95625         * lib/strnlen1.c (strnlen1): Cast memchr result.
95626         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95627         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95628         (create_temp_dir): Rename local variable 'template'.
95629         (compile_csharp_using_sscli): Add cast.
95630         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95631         * lib/findprog.c (find_in_path): Likewise.
95632         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95633         * lib/wait-process.c (register_slave_subprocess): Likewise.
95635 2006-10-22  Bruno Haible  <bruno@clisp.org>
95637         * modules/tsearch: New file.
95638         * lib/tsearch.h: New file.
95639         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95640         * m4/tsearch.m4: New file.
95641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95643 2006-10-29  Eric Blake  <ebb9@byu.net>
95645         * lib/arcfour.c: Assume config.h.
95646         * lib/arctwo.c: Likewise.
95647         * lib/base64.c: Likewise.
95648         * lib/check-version.c: Likewise.
95649         * lib/crc.c: Likewise.
95650         * lib/des.c: Likewise.
95651         * lib/gc-gnulib.c: Likewise.
95652         * lib/gc-libgcrypt.c: Likewise.
95653         * lib/gc-pbkdf2-sha1.c: Likewise.
95654         * lib/getaddrinfo.c: Likewise.
95655         * lib/getdelim.c: Likewise.
95656         * lib/getline.c: Likewise.
95657         * lib/hmac-md5.c: Likewise.
95658         * lib/hmac-sha1.c: Likewise.
95659         * lib/iconvme.c: Likewise.
95660         * lib/md2.c: Likewise.
95661         * lib/md4.c: Likewise.
95662         * lib/memxor.c: Likewise.
95663         * lib/read-file.c: Likewise.
95664         * lib/readline.c: Likewise.
95665         * lib/rijndael-alg-fst.c: Likewise.
95666         * lib/rijndael-api-fst.c: Likewise.
95667         * lib/xgetdomainname.c: Likewise.
95669 2006-10-28  Eric Blake  <ebb9@byu.net>
95671         * lib/xstrndup.c: Assume config.h.
95673 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95675         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95676         stat-macros.h is now for our own macros, whereas stat_h is for
95677         macros in the <sys/stat.h> name space.
95678         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95679         (STAT_MACROS_H): Remove.
95680         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95681         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95682         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95683         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95684         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95685         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95686         Move these macros to ...
95687         * lib/stat_.h: here.  Don't include stat-macros.h.
95688         * lib/canonicalize.c: Don't include stat-macros.h.
95689         * lib/chown.c: Likewise.
95690         * lib/euidaccess.c: Likewise.
95691         * lib/file-type.c: Likewise.
95692         * lib/filemode.c: Likewise.
95693         * lib/glob.c: Likewise.
95694         * lib/isapipe.c: Likewise.
95695         * lib/lchown.c: Likewise.
95696         * lib/lstat.c: Likewise.
95697         * lib/mkdir-p.c: Likewise.
95698         * lib/rmdir.c: Likewise.
95699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95701         unless mkdir isn't declared, to speed up 'configure'.
95702         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95703         would define all the S_* symbols.
95704         * modules/canonicalize (Depends-on):
95705         Depend on sys_stat, not stat-macros.
95706         * modules/chown: Likewise.
95707         * modules/euidaccess: Likewise.
95708         * modules/filemode: Likewise.
95709         * modules/file-type: Likewise.
95710         * modules/glob: Likewise.
95711         * modules/isapipe: Likewise.
95712         * modules/lchown: Likewise.
95713         * modules/lstat: Likewise.
95714         * modules/mkancesdirs: Likewise.
95715         * modules/rmdir: Likewise.
95716         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95717         * modules/modechange: Likewise.
95718         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95719         (configure.ac): Remove gl_STAT_MACROS.
95720         * modules/sys_stat (Depends-on): Remove stat-macros.
95722 2006-10-27  Bruno Haible  <bruno@clisp.org>
95724         * m4/signed.m4: Remove file.
95725         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95726         invocation.
95727         * modules/vasnprintf (Files): Remove m4/signed.m4.
95729 2006-10-27  Bruno Haible  <bruno@clisp.org>
95731         Update to GNU gettext 0.16.
95732         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95733         m4/inttypes-h.m4, m4/signed.m4.
95734         * m4/gettext.m4: Update to GNU gettext 0.16.
95735         * m4/intl.m4: New file, from GNU gettext.
95736         * m4/intldir.m4: New file, from GNU gettext.
95737         * config/srclist.txt: Update
95739 2006-10-27  Eric Blake  <ebb9@byu.net>
95741         * MODULES.html.sh: Document tempname.
95742         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95743         dependencies.
95744         (Files): Move lib/tempname.c...
95745         * modules/tempname: ...to this new module.
95746         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95747         (gl_PREREQ_TEMPNAME): Move...
95748         * m4/tempname.m4: ...to this new file.
95749         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95750         * modules/sys_stat (Depends-on): Add stat-macros.
95751         * lib/stat_.h (includes): Pick up stat macros.
95752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95753         if stat macros are broken.
95754         * lib/tempname.c (includes): No need to include "stat-macros.h".
95755         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95756         (direxists, __path_search) [!_LIBC]: Don't compile these in
95757         gnulib; the tmpdir module covers that.
95758         * lib/tempname.h: New file.
95760 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95762         * COPYING: Explain how gnulib-tool converts licence headers.
95763         Almost all wording by Eric Blake.
95765 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95767         * lib/mbchar.h (is_basic_table): Make read-only.
95768         * lib/mbchar.c (is_basic_table): Likewise.
95769         Reported by John Darrington.
95771 2006-10-25  Bruno Haible  <bruno@clisp.org>
95773         * lib/progname.h (set_program_name): Undefine before defining.
95775 2006-10-25  Bruno Haible  <bruno@clisp.org>
95777         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95778         false for non-gcc C++ compilers.
95779         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95781 2006-10-24  Bruno Haible  <bruno@clisp.org>
95783         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95784         iconv implementations like Irix iconv.
95786 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95788         * modules/vararrays: New file.
95789         * m4/vararrays.m4: New file, taken from diffutils.
95790         * MODULES.html.sh: New module vararrays.
95792 2006-10-24  Karl Berry  <karl@gnu.org>
95794         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95795         Don't call GNU Unix.
95797 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95799         * users.txt: Add Libtool.
95801         Sync from Libtool:
95803         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95805         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95806         to gnulib's policy of including config.h unconditionally.
95808 2006-10-24  Bruno Haible  <bruno@clisp.org>
95810         * modules/wcwidth (Files): Add m4/wint_t.m4.
95811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95812         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95814 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95816         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95817         to pacify GCC with some -W flags enabled.  Problem reported by
95818         Bruno Haible.
95820 2006-10-24  Jim Meyering  <jim@meyering.net>
95822         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95823         Reported by Karl Berry.
95825 2006-10-23  Bruno Haible  <bruno@clisp.org>
95827         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95829 2006-10-24  Bruno Haible  <bruno@clisp.org>
95831         * lib/gl_list.h: Use C comment style, not C++ comment style.
95833 2006-10-23  Eric Blake  <ebb9@byu.net>
95835         * lib/getaddrinfo.c (includes): Add missing include.
95837 2006-10-23  Bruno Haible  <bruno@clisp.org>
95838             Paul Eggert  <eggert@cs.ucla.edu>
95840         Ability to rename obstack_free.
95841         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95842         obstack_free.
95843         (obstack_free): Invoke the __obstack_free macro.
95844         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95846 2006-10-23  Bruno Haible  <bruno@clisp.org>
95847             Paul Eggert  <eggert@cs.ucla.edu>
95849         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95850         __argc, __argv from the declaration. (They are defined as macros on
95851         mingw.)
95853 2006-10-22  Bruno Haible  <bruno@clisp.org>
95855         * doc/gnulib-intro.texi: New file.
95856         * doc/gnulib.texi: Include it.
95858 2006-10-21  Bruno Haible  <bruno@clisp.org>
95860         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95861         "Introduction", "Miscellanous Notes", "Particular Modules".
95863 2006-10-21  Bruno Haible  <bruno@clisp.org>
95865         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95866         Change mostlyclean-local rule to avoid sh syntax error from bash
95867         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95869 2006-10-23  Jim Meyering  <jim@meyering.net>
95871         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95872         in place of snprintf.
95874         * modules/inttostr (Files): Add lib/uinttostr.c.
95875         * lib/uinttostr.c (inttostr): New file/function.
95876         * lib/inttostr.h (uinttostr): Declare.
95877         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95878         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95879         Add uinttostr.
95880         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95882 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95884         * lib/canonicalize.c (ELOOP): Define if not already defined.
95885         Problem reported by Bruno Haible in
95886         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95888 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95890         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95891         Problem reported by Perry Smith and Ville Laurikari.
95893         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95894         uses.
95896 2006-10-19  Bruno Haible  <bruno@clisp.org>
95898         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95899         for mingw.
95901 2006-10-19  Bruno Haible  <bruno@clisp.org>
95903         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95904         Needed for mingw.
95906 2006-10-19  Bruno Haible  <bruno@clisp.org>
95908         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95910 2006-10-19  Bruno Haible  <bruno@clisp.org>
95912         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95913         it.
95915 2006-10-19  Bruno Haible  <bruno@clisp.org>
95917         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95918         invocation.
95920 2006-10-19  Bruno Haible  <bruno@clisp.org>
95922         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95923         mountlist by default.
95925 2006-10-16  Bruno Haible  <bruno@clisp.org>
95927         * lib/c-strstr.c: Include c-strstr.h.
95929 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95931         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95932         in a slash.
95934 2006-10-18  Bruno Haible  <bruno@clisp.org>
95936         * lib/lock.h [C++]: Wrap definitions in extern "C".
95938 2006-10-18  Bruno Haible  <bruno@clisp.org>
95940         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95941         gl_LIBOBJS list.
95943 2006-10-18  Bruno Haible  <bruno@clisp.org>
95945         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95947 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95949         * lib/xstrtol.h: Include gettext.h.
95950         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95951         Problem reported by Eric Blake.
95952         * modules/xstrtol (Depends-on): Add gettext-h.
95954 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95956         * lib/strftime.c (advance): New macro.
95957         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95958         incomplete type, so you can't add 0 to it.  Problem and patch
95959         reported by Eelco Dolstra for dietlibc.
95961 2006-10-18  Jim Meyering  <jim@meyering.net>
95963         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95964         type for a local, and rename it: s/up/user_proc/.
95966 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95968         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95969         READ_UTMP_USER_PROCESS.
95970         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95972 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95974         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95975         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95977 2006-10-17  Eric Blake  <ebb9@byu.net>
95979         * lib/sigprocmask.c (sigprocmask): Fix typo.
95981         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95983         * modules/clean-temp (Makefile.am): Don't add to make output...
95984         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95985         config.h.
95987 2006-10-17  Bruno Haible  <bruno@clisp.org>
95989         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95990         differently if DEFAULT_TEXT_DOMAIN is set.
95992 2006-10-16  Bruno Haible  <bruno@clisp.org>
95994         * lib/clean-temp.c: Include fwriteerror.h.
95996 2006-10-16  Bruno Haible  <bruno@clisp.org>
95998         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
96000 2006-10-16  Bruno Haible  <bruno@clisp.org>
96002         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
96003         * lib/sigprocmask.h: Include <sys/types.h>.
96004         (sigset_t): Use the system's definition if present.
96006 2006-10-17  Eric Blake  <ebb9@byu.net>
96008         * lib/xvasprintf.c (includes): Assume config.h.
96009         * lib/xasprintf.c (includes): Likewise.
96011 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96013         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
96014         at least as wide as intmax_t.
96016 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
96018         (Imported from Automake.)
96019         * build-aux/gnupload: Update to version 1.1 of directive file.
96021 2006-10-16  Eric Blake  <ebb9@byu.net>
96023         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
96024         match Automake 1.10a.
96026 2006-10-14  Bruno Haible  <bruno@clisp.org>
96028         * modules/sigprocmask: New file.
96029         * lib/sigprocmask.h: New file.
96030         * lib/sigprocmask.c: New file.
96031         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
96032         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
96033         request sigprocmask.o.
96034         (gl_PREREQ_SIGPROCMASK): New macro.
96035         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
96036         (Depends-on): Add sigprocmask.
96037         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
96038         gt_SIGNALBLOCKING. Test for 'raise' only once.
96039         * lib/fatal-signal.c: Include sigprocmask.h.
96040         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
96041         unblock_fatal_signals): Define always.
96042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
96043         sigprocmask.
96045 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96047         Sync from Automake.
96048         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
96049         which incorrectly sets the mode of an existing destination
96050         directory.  In some cases the unpatched install-sh could do the
96051         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
96052         system.  We hope this is rare in practice, but it's clearly worth
96053         fixing.  Problem reported by Alex Unleashed in
96054         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
96055         Also, don't bother to check for -m bugs unless we're using -m;
96056         suggested by Stepan Kasal.
96058 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96060         Sync from Automake.
96061         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
96062         `-c' flag, so they appear at the same position as in %FASTDEP%
96063         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
96064         which ignores unknown options only after the first non-option.
96065         Bug report against M4 by Nelson H. F. Beebe.
96067 2006-10-13  Jim Meyering  <jim@meyering.net>
96069         Fix a bug in yesterday's change.
96070         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
96071         p->fts_statp->st_dev would be used uninitialized.
96072         Ensures that we always call fts_stat on the very first entry.
96073         Miklos Szeredi reported that find -xdev stopped working.
96075 2006-10-12  Bruno Haible  <bruno@clisp.org>
96077         * gnulib-tool (func_get_automake_snippet): Append an automatically
96078         computed EXTRA_DIST augmentation.
96079         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
96080         * modules/alloca-opt (Makefile.am): Likewise.
96081         * modules/allocsa (Makefile.am): Likewise.
96082         * modules/arcfour (Makefile.am): Likewise.
96083         * modules/arctwo (Makefile.am): Likewise.
96084         * modules/argmatch (Makefile.am): Likewise.
96085         * modules/argz (Makefile.am): Likewise.
96086         * modules/atexit (Makefile.am): Likewise.
96087         * modules/backupfile (Makefile.am): Likewise.
96088         * modules/byteswap (Makefile.am): Likewise.
96089         * modules/c-strtod (Makefile.am): Likewise.
96090         * modules/c-strtold (Makefile.am): Likewise.
96091         * modules/calloc (Makefile.am): Likewise.
96092         * modules/canon-host (Makefile.am): Likewise.
96093         * modules/canonicalize (Makefile.am): Likewise.
96094         * modules/chdir-long (Makefile.am): Likewise.
96095         * modules/chdir-safer (Makefile.am): Likewise.
96096         * modules/check-version (Makefile.am): Likewise.
96097         * modules/chown (Makefile.am): Likewise.
96098         * modules/cloexec (Makefile.am): Likewise.
96099         * modules/close-stream (Makefile.am): Likewise.
96100         * modules/closeout (Makefile.am): Likewise.
96101         * modules/crc (Makefile.am): Likewise.
96102         * modules/csharpexec (Makefile.am): Likewise.
96103         * modules/cycle-check (Makefile.am): Likewise.
96104         * modules/des (Makefile.am): Likewise.
96105         * modules/dev-ino (Makefile.am): Likewise.
96106         * modules/dirfd (Makefile.am): Likewise.
96107         * modules/dirname (Makefile.am): Likewise.
96108         * modules/dup2 (Makefile.am): Likewise.
96109         * modules/eealloc (Makefile.am): Likewise.
96110         * modules/error (Makefile.am): Likewise.
96111         * modules/euidaccess (Makefile.am): Likewise.
96112         * modules/exclude (Makefile.am): Likewise.
96113         * modules/exitfail (Makefile.am): Likewise.
96114         * modules/fcntl-safer (Makefile.am): Likewise.
96115         * modules/fcntl (Makefile.am): Likewise.
96116         * modules/file-type (Makefile.am): Likewise.
96117         * modules/fileblocks (Makefile.am): Likewise.
96118         * modules/filemode (Makefile.am): Likewise.
96119         * modules/filenamecat (Makefile.am): Likewise.
96120         * modules/fnmatch (Makefile.am): Likewise.
96121         * modules/fopen-safer (Makefile.am): Likewise.
96122         * modules/fpending (Makefile.am): Likewise.
96123         * modules/fprintftime (Makefile.am): Likewise.
96124         * modules/free (Makefile.am): Likewise.
96125         * modules/fsusage (Makefile.am): Likewise.
96126         * modules/ftruncate (Makefile.am): Likewise.
96127         * modules/fts (Makefile.am): Likewise.
96128         * modules/gc-arcfour (Makefile.am): Likewise.
96129         * modules/gc-des (Makefile.am): Likewise.
96130         * modules/gc-hmac-md5 (Makefile.am): Likewise.
96131         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
96132         * modules/gc-md4 (Makefile.am): Likewise.
96133         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96134         * modules/gc-sha1 (Makefile.am): Likewise.
96135         * modules/gc (Makefile.am): Likewise.
96136         * modules/getaddrinfo (Makefile.am): Likewise.
96137         * modules/getcwd (Makefile.am): Likewise.
96138         * modules/getdelim (Makefile.am): Likewise.
96139         * modules/getdomainname (Makefile.am): Likewise.
96140         * modules/getgroups (Makefile.am): Likewise.
96141         * modules/gethostname (Makefile.am): Likewise.
96142         * modules/gethrxtime (Makefile.am): Likewise.
96143         * modules/getline (Makefile.am): Likewise.
96144         * modules/getloadavg (Makefile.am): Likewise.
96145         * modules/getlogin_r (Makefile.am): Likewise.
96146         * modules/getndelim2 (Makefile.am): Likewise.
96147         * modules/getopt (Makefile.am): Likewise.
96148         * modules/getpagesize (Makefile.am): Likewise.
96149         * modules/getpass-gnu (Makefile.am): Likewise.
96150         * modules/getpass (Makefile.am): Likewise.
96151         * modules/getsubopt (Makefile.am): Likewise.
96152         * modules/gettime (Makefile.am): Likewise.
96153         * modules/gettimeofday (Makefile.am): Likewise.
96154         * modules/getugroups (Makefile.am): Likewise.
96155         * modules/getusershell (Makefile.am): Likewise.
96156         * modules/glob (Makefile.am): Likewise.
96157         * modules/group-member (Makefile.am): Likewise.
96158         * modules/hard-locale (Makefile.am): Likewise.
96159         * modules/hash (Makefile.am): Likewise.
96160         * modules/hmac-md5 (Makefile.am): Likewise.
96161         * modules/hmac-sha1 (Makefile.am): Likewise.
96162         * modules/human (Makefile.am): Likewise.
96163         * modules/idcache (Makefile.am): Likewise.
96164         * modules/imaxabs (Makefile.am): Likewise.
96165         * modules/imaxdiv (Makefile.am): Likewise.
96166         * modules/inet_ntop (Makefile.am): Likewise.
96167         * modules/inet_pton (Makefile.am): Likewise.
96168         * modules/intprops (Makefile.am): Likewise.
96169         * modules/inttostr (Makefile.am): Likewise.
96170         * modules/inttypes (Makefile.am): Likewise.
96171         * modules/isapipe (Makefile.am): Likewise.
96172         * modules/javaversion (Makefile.am): Likewise.
96173         * modules/lchmod (Makefile.am): Likewise.
96174         * modules/lchown (Makefile.am): Likewise.
96175         * modules/localcharset (Makefile.am): Likewise.
96176         * modules/long-options (Makefile.am): Likewise.
96177         * modules/lstat (Makefile.am): Likewise.
96178         * modules/malloc (Makefile.am): Likewise.
96179         * modules/mathl (Makefile.am): Likewise.
96180         * modules/mbchar (Makefile.am): Likewise.
96181         * modules/md2 (Makefile.am): Likewise.
96182         * modules/md4 (Makefile.am): Likewise.
96183         * modules/md5 (Makefile.am): Likewise.
96184         * modules/memcasecmp (Makefile.am): Likewise.
96185         * modules/memchr (Makefile.am): Likewise.
96186         * modules/memcmp (Makefile.am): Likewise.
96187         * modules/memcoll (Makefile.am): Likewise.
96188         * modules/memcpy (Makefile.am): Likewise.
96189         * modules/memmem (Makefile.am): Likewise.
96190         * modules/memmove (Makefile.am): Likewise.
96191         * modules/mempcpy (Makefile.am): Likewise.
96192         * modules/memrchr (Makefile.am): Likewise.
96193         * modules/memset (Makefile.am): Likewise.
96194         * modules/memxor (Makefile.am): Likewise.
96195         * modules/mkancesdirs (Makefile.am): Likewise.
96196         * modules/mkdir-p (Makefile.am): Likewise.
96197         * modules/mkdir (Makefile.am): Likewise.
96198         * modules/mkdtemp (Makefile.am): Likewise.
96199         * modules/mkstemp (Makefile.am): Likewise.
96200         * modules/mktime (Makefile.am): Likewise.
96201         * modules/modechange (Makefile.am): Likewise.
96202         * modules/mountlist (Makefile.am): Likewise.
96203         * modules/nanosleep (Makefile.am): Likewise.
96204         * modules/obstack (Makefile.am): Likewise.
96205         * modules/openat (Makefile.am): Likewise.
96206         * modules/pagealign_alloc (Makefile.am): Likewise.
96207         * modules/pathmax (Makefile.am): Likewise.
96208         * modules/physmem (Makefile.am): Likewise.
96209         * modules/poll (Makefile.am): Likewise.
96210         * modules/posixtm (Makefile.am): Likewise.
96211         * modules/posixver (Makefile.am): Likewise.
96212         * modules/putenv (Makefile.am): Likewise.
96213         * modules/quote (Makefile.am): Likewise.
96214         * modules/quotearg (Makefile.am): Likewise.
96215         * modules/raise (Makefile.am): Likewise.
96216         * modules/read-file (Makefile.am): Likewise.
96217         * modules/readline (Makefile.am): Likewise.
96218         * modules/readlink (Makefile.am): Likewise.
96219         * modules/readtokens (Makefile.am): Likewise.
96220         * modules/readutmp (Makefile.am): Likewise.
96221         * modules/realloc (Makefile.am): Likewise.
96222         * modules/regex (Makefile.am): Likewise.
96223         * modules/rename-dest-slash (Makefile.am): Likewise.
96224         * modules/rename (Makefile.am): Likewise.
96225         * modules/rijndael (Makefile.am): Likewise.
96226         * modules/rmdir (Makefile.am): Likewise.
96227         * modules/rpmatch (Makefile.am): Likewise.
96228         * modules/safe-read (Makefile.am): Likewise.
96229         * modules/safe-write (Makefile.am): Likewise.
96230         * modules/same-inode (Makefile.am): Likewise.
96231         * modules/same (Makefile.am): Likewise.
96232         * modules/save-cwd (Makefile.am): Likewise.
96233         * modules/savedir (Makefile.am): Likewise.
96234         * modules/setenv (Makefile.am): Likewise.
96235         * modules/settime (Makefile.am): Likewise.
96236         * modules/sha1 (Makefile.am): Likewise.
96237         * modules/sig2str (Makefile.am): Likewise.
96238         * modules/snprintf (Makefile.am): Likewise.
96239         * modules/stat-macros (Makefile.am): Likewise.
96240         * modules/stat-time (Makefile.am): Likewise.
96241         * modules/stdbool (Makefile.am): Likewise.
96242         * modules/stdint (Makefile.am): Likewise.
96243         * modules/stdlib-safer (Makefile.am): Likewise.
96244         * modules/stpcpy (Makefile.am): Likewise.
96245         * modules/stpncpy (Makefile.am): Likewise.
96246         * modules/strcase (Makefile.am): Likewise.
96247         * modules/strcasestr (Makefile.am): Likewise.
96248         * modules/strchrnul (Makefile.am): Likewise.
96249         * modules/strcspn (Makefile.am): Likewise.
96250         * modules/strdup (Makefile.am): Likewise.
96251         * modules/strerror (Makefile.am): Likewise.
96252         * modules/strftime (Makefile.am): Likewise.
96253         * modules/strndup (Makefile.am): Likewise.
96254         * modules/strnlen (Makefile.am): Likewise.
96255         * modules/strpbrk (Makefile.am): Likewise.
96256         * modules/strsep (Makefile.am): Likewise.
96257         * modules/strstr (Makefile.am): Likewise.
96258         * modules/strtod (Makefile.am): Likewise.
96259         * modules/strtoimax (Makefile.am): Likewise.
96260         * modules/strtok_r (Makefile.am): Likewise.
96261         * modules/strtol (Makefile.am): Likewise.
96262         * modules/strtoll (Makefile.am): Likewise.
96263         * modules/strtoul (Makefile.am): Likewise.
96264         * modules/strtoull (Makefile.am): Likewise.
96265         * modules/strtoumax (Makefile.am): Likewise.
96266         * modules/strverscmp (Makefile.am): Likewise.
96267         * modules/sys_socket (Makefile.am): Likewise.
96268         * modules/sys_stat (Makefile.am): Likewise.
96269         * modules/sysexits (Makefile.am): Likewise.
96270         * modules/time_r (Makefile.am): Likewise.
96271         * modules/timegm (Makefile.am): Likewise.
96272         * modules/timespec (Makefile.am): Likewise.
96273         * modules/tmpfile-safer (Makefile.am): Likewise.
96274         * modules/trim (Makefile.am): Likewise.
96275         * modules/unistd-safer (Makefile.am): Likewise.
96276         * modules/unlinkdir (Makefile.am): Likewise.
96277         * modules/unlocked-io (Makefile.am): Likewise.
96278         * modules/userspec (Makefile.am): Likewise.
96279         * modules/utime (Makefile.am): Likewise.
96280         * modules/utimecmp (Makefile.am): Likewise.
96281         * modules/utimens (Makefile.am): Likewise.
96282         * modules/vasnprintf (Makefile.am): Likewise.
96283         * modules/vasprintf (Makefile.am): Likewise.
96284         * modules/vsnprintf (Makefile.am): Likewise.
96285         * modules/xalloc (Makefile.am): Likewise.
96286         * modules/xgetcwd (Makefile.am): Likewise.
96287         * modules/xnanosleep (Makefile.am): Likewise.
96288         * modules/xreadlink (Makefile.am): Likewise.
96289         * modules/xstrtod (Makefile.am): Likewise.
96290         * modules/xstrtol (Makefile.am): Likewise.
96291         * modules/xstrtold (Makefile.am): Likewise.
96292         * modules/yesno (Makefile.am): Likewise.
96293         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
96295 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96297         * modules/error (Makefile.am): Distribute files through
96298         EXTRA_DIST, not lib_SOURCES.
96300 2006-10-12  Eric Blake  <ebb9@byu.net>
96302         * modules/error (Makefile.am): Distribute files in /lib.
96303         * modules/obstack (Makefile.am): Likewise.
96305 2006-10-12  Bruno Haible  <bruno@clisp.org>
96307         * modules/acl (Makefile.am): Distribute all files in lib/ through
96308         EXTRA_DIST.
96309         * modules/arcfour (Makefile.am): Likewise.
96310         * modules/arctwo (Makefile.am): Likewise.
96311         * modules/argmatch (Makefile.am): Likewise.
96312         * modules/argz (Makefile.am): Likewise.
96313         * modules/atexit (Makefile.am): Likewise.
96314         * modules/backupfile (Makefile.am): Likewise.
96315         * modules/c-strtod (Makefile.am): Likewise.
96316         * modules/c-strtold (Makefile.am): Likewise.
96317         * modules/calloc (Makefile.am): Likewise.
96318         * modules/canon-host (Makefile.am): Likewise.
96319         * modules/canonicalize (Makefile.am): Likewise.
96320         * modules/chdir-long (Makefile.am): Likewise.
96321         * modules/chdir-safer (Makefile.am): Likewise.
96322         * modules/check-version (Makefile.am): Likewise.
96323         * modules/chown (Makefile.am): Likewise.
96324         * modules/cloexec (Makefile.am): Likewise.
96325         * modules/close-stream (Makefile.am): Likewise.
96326         * modules/closeout (Makefile.am): Likewise.
96327         * modules/crc (Makefile.am): Likewise.
96328         * modules/cycle-check (Makefile.am): Likewise.
96329         * modules/des (Makefile.am): Likewise.
96330         * modules/dirfd (Makefile.am): Likewise.
96331         * modules/dirname (Makefile.am): Likewise.
96332         * modules/dup2 (Makefile.am): Likewise.
96333         * modules/euidaccess (Makefile.am): Likewise.
96334         * modules/exclude (Makefile.am): Likewise.
96335         * modules/exitfail (Makefile.am): Likewise.
96336         * modules/fcntl-safer (Makefile.am): Likewise.
96337         * modules/file-type (Makefile.am): Likewise.
96338         * modules/fileblocks (Makefile.am): Likewise.
96339         * modules/filemode (Makefile.am): Likewise.
96340         * modules/filenamecat (Makefile.am): Likewise.
96341         * modules/fnmatch (Makefile.am): Likewise.
96342         * modules/fopen-safer (Makefile.am): Likewise.
96343         * modules/fpending (Makefile.am): Likewise.
96344         * modules/fprintftime (Makefile.am): Likewise.
96345         * modules/free (Makefile.am): Likewise.
96346         * modules/fsusage (Makefile.am): Likewise.
96347         * modules/ftruncate (Makefile.am): Likewise.
96348         * modules/fts (Makefile.am): Likewise.
96349         * modules/gc (Makefile.am): Likewise.
96350         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96351         * modules/getaddrinfo (Makefile.am): Likewise.
96352         * modules/getcwd (Makefile.am): Likewise.
96353         * modules/getdelim (Makefile.am): Likewise.
96354         * modules/getdomainname (Makefile.am): Likewise.
96355         * modules/getgroups (Makefile.am): Likewise.
96356         * modules/gethostname (Makefile.am): Likewise.
96357         * modules/gethrxtime (Makefile.am): Likewise.
96358         * modules/getline (Makefile.am): Likewise.
96359         * modules/getloadavg (Makefile.am): Likewise.
96360         * modules/getlogin_r (Makefile.am): Likewise.
96361         * modules/getopt (Makefile.am): Likewise.
96362         * modules/getpass (Makefile.am): Likewise.
96363         * modules/getpass-gnu (Makefile.am): Likewise.
96364         * modules/getsubopt (Makefile.am): Likewise.
96365         * modules/gettime (Makefile.am): Likewise.
96366         * modules/gettimeofday (Makefile.am): Likewise.
96367         * modules/getugroups (Makefile.am): Likewise.
96368         * modules/getusershell (Makefile.am): Likewise.
96369         * modules/glob (Makefile.am): Likewise.
96370         * modules/group-member (Makefile.am): Likewise.
96371         * modules/hard-locale (Makefile.am): Likewise.
96372         * modules/hash (Makefile.am): Likewise.
96373         * modules/hmac-md5 (Makefile.am): Likewise.
96374         * modules/hmac-sha1 (Makefile.am): Likewise.
96375         * modules/human (Makefile.am): Likewise.
96376         * modules/idcache (Makefile.am): Likewise.
96377         * modules/imaxabs (Makefile.am): Likewise.
96378         * modules/imaxdiv (Makefile.am): Likewise.
96379         * modules/inet_ntop (Makefile.am): Likewise.
96380         * modules/inet_pton (Makefile.am): Likewise.
96381         * modules/inttostr (Makefile.am): Likewise.
96382         * modules/isapipe (Makefile.am): Likewise.
96383         * modules/lchown (Makefile.am): Likewise.
96384         * modules/long-options (Makefile.am): Likewise.
96385         * modules/lstat (Makefile.am): Likewise.
96386         * modules/malloc (Makefile.am): Likewise.
96387         * modules/mathl (Makefile.am): Likewise.
96388         * modules/mbchar (Makefile.am): Likewise.
96389         * modules/md2 (Makefile.am): Likewise.
96390         * modules/md4 (Makefile.am): Likewise.
96391         * modules/md5 (Makefile.am): Likewise.
96392         * modules/memcasecmp (Makefile.am): Likewise.
96393         * modules/memchr (Makefile.am): Likewise.
96394         * modules/memcmp (Makefile.am): Likewise.
96395         * modules/memcoll (Makefile.am): Likewise.
96396         * modules/memcpy (Makefile.am): Likewise.
96397         * modules/memmem (Makefile.am): Likewise.
96398         * modules/memmove (Makefile.am): Likewise.
96399         * modules/mempcpy (Makefile.am): Likewise.
96400         * modules/memrchr (Makefile.am): Likewise.
96401         * modules/memset (Makefile.am): Likewise.
96402         * modules/memxor (Makefile.am): Likewise.
96403         * modules/mkancesdirs (Makefile.am): Likewise.
96404         * modules/mkdir (Makefile.am): Likewise.
96405         * modules/mkdir-p (Makefile.am): Likewise.
96406         * modules/mkdtemp (Makefile.am): Likewise.
96407         * modules/mkstemp (Makefile.am): Likewise.
96408         * modules/mktime (Makefile.am): Likewise.
96409         * modules/modechange (Makefile.am): Likewise.
96410         * modules/mountlist (Makefile.am): Likewise.
96411         * modules/nanosleep (Makefile.am): Likewise.
96412         * modules/openat (Makefile.am): Likewise.
96413         * modules/pagealign_alloc (Makefile.am): Likewise.
96414         * modules/physmem (Makefile.am): Likewise.
96415         * modules/poll (Makefile.am): Likewise.
96416         * modules/posixtm (Makefile.am): Likewise.
96417         * modules/posixver (Makefile.am): Likewise.
96418         * modules/putenv (Makefile.am): Likewise.
96419         * modules/quote (Makefile.am): Likewise.
96420         * modules/quotearg (Makefile.am): Likewise.
96421         * modules/raise (Makefile.am): Likewise.
96422         * modules/read-file (Makefile.am): Likewise.
96423         * modules/readline (Makefile.am): Likewise.
96424         * modules/readlink (Makefile.am): Likewise.
96425         * modules/readtokens (Makefile.am): Likewise.
96426         * modules/readutmp (Makefile.am): Likewise.
96427         * modules/realloc (Makefile.am): Likewise.
96428         * modules/regex (Makefile.am): Likewise.
96429         * modules/rename (Makefile.am): Likewise.
96430         * modules/rename-dest-slash (Makefile.am): Likewise.
96431         * modules/rijndael (Makefile.am): Likewise.
96432         * modules/rmdir (Makefile.am): Likewise.
96433         * modules/rpmatch (Makefile.am): Likewise.
96434         * modules/safe-read (Makefile.am): Likewise.
96435         * modules/safe-write (Makefile.am): Likewise.
96436         * modules/same (Makefile.am): Likewise.
96437         * modules/save-cwd (Makefile.am): Likewise.
96438         * modules/savedir (Makefile.am): Likewise.
96439         * modules/setenv (Makefile.am): Likewise.
96440         * modules/settime (Makefile.am): Likewise.
96441         * modules/sha1 (Makefile.am): Likewise.
96442         * modules/sig2str (Makefile.am): Likewise.
96443         * modules/snprintf (Makefile.am): Likewise.
96444         * modules/stdlib-safer (Makefile.am): Likewise.
96445         * modules/stpcpy (Makefile.am): Likewise.
96446         * modules/stpncpy (Makefile.am): Likewise.
96447         * modules/strcase (Makefile.am): Likewise.
96448         * modules/strcasestr (Makefile.am): Likewise.
96449         * modules/strchrnul (Makefile.am): Likewise.
96450         * modules/strcspn (Makefile.am): Likewise.
96451         * modules/strdup (Makefile.am): Likewise.
96452         * modules/strerror (Makefile.am): Likewise.
96453         * modules/strftime (Makefile.am): Likewise.
96454         * modules/strndup (Makefile.am): Likewise.
96455         * modules/strnlen (Makefile.am): Likewise.
96456         * modules/strpbrk (Makefile.am): Likewise.
96457         * modules/strsep (Makefile.am): Likewise.
96458         * modules/strstr (Makefile.am): Likewise.
96459         * modules/strtod (Makefile.am): Likewise.
96460         * modules/strtoimax (Makefile.am): Likewise.
96461         * modules/strtok_r (Makefile.am): Likewise.
96462         * modules/strtol (Makefile.am): Likewise.
96463         * modules/strtoll (Makefile.am): Likewise.
96464         * modules/strtoul (Makefile.am): Likewise.
96465         * modules/strtoull (Makefile.am): Likewise.
96466         * modules/strtoumax (Makefile.am): Likewise.
96467         * modules/strverscmp (Makefile.am): Likewise.
96468         * modules/time_r (Makefile.am): Likewise.
96469         * modules/timegm (Makefile.am): Likewise.
96470         * modules/tmpfile-safer (Makefile.am): Likewise.
96471         * modules/unistd-safer (Makefile.am): Likewise.
96472         * modules/unlinkdir (Makefile.am): Likewise.
96473         * modules/userspec (Makefile.am): Likewise.
96474         * modules/utime (Makefile.am): Likewise.
96475         * modules/utimecmp (Makefile.am): Likewise.
96476         * modules/utimens (Makefile.am): Likewise.
96477         * modules/vasnprintf (Makefile.am): Likewise.
96478         * modules/vasprintf (Makefile.am): Likewise.
96479         * modules/vsnprintf (Makefile.am): Likewise.
96480         * modules/xalloc (Makefile.am): Likewise.
96481         * modules/xgetcwd (Makefile.am): Likewise.
96482         * modules/xnanosleep (Makefile.am): Likewise.
96483         * modules/xreadlink (Makefile.am): Likewise.
96484         * modules/xstrtod (Makefile.am): Likewise.
96485         * modules/xstrtol (Makefile.am): Likewise.
96486         * modules/xstrtold (Makefile.am): Likewise.
96487         * modules/yesno (Makefile.am): Likewise.
96489 2006-10-12  Jim Meyering  <jim@meyering.net>
96491         * m4/getloadavg.m4: Revert the change below.
96493         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96494         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96495         fail with a symlink, which is what coreutils' ./bootstrap now
96496         creates by default.
96498 2006-10-12  Bruno Haible  <bruno@clisp.org>
96500         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96501         mingw.
96502         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96503         MSVC and mingw explicitly.
96505 2006-10-11  Simon Josefsson  <jas@extundo.com>
96506             Bruno Haible  <bruno@clisp.org>
96508         Add support for multiple gnulib-tool invocations in the scope of a
96509         single configure.ac file.
96510         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96511         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96512         with the same contents as the _LIBADD variable.
96513         (func_emit_initmacro_start, func_emit_initmacro_end,
96514         func_emit_initmacro_done): New functions.
96515         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96516         gl_LIBOBJS and gl_LTLIBOBJS.
96518 2006-10-11  Bruno Haible  <bruno@clisp.org>
96520         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96521         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96522         autoreconf. Instead, invoke autopoint explicitly but move back the
96523         *.m4 files from gnulib.
96525 2006-10-11  Bruno Haible  <bruno@clisp.org>
96527         * gnulib-tool (func_usage): Make module names after --create-testdir
96528         optional.
96529         (func_create_testdir): If no module was specified, use nearly all
96530         modules.
96532 2006-10-12  Jim Meyering  <jim@meyering.net>
96534         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96535         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96536         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96537         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96538         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96539         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96540         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96541         (fts_set_stat_required): New function.
96542         (fts_open): Defer the calls to fts_stat, if possible or requested.
96543         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96544         into fts_stat itself.
96545         (fts_read): Perform any required (deferred) fts_stat call.
96546         (fts_build): Likewise, for the directory we're about to open and read.
96547         In the readdir loop, carefully decide whether each entry will require
96548         an eventual call to fts_stat, using dirent.d_type info if available.
96549         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96550         a command line argument into this function.  Update all callers.
96551         Map a return value of FTS_DOT to FTS_D for a command line argument.
96552         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96553         Thanks to Miklos Szeredi for his tenacity and for the initial
96554         bug report about "find" failing on a FUSE-based file system.
96556         * lib/fts.c (fts_open): Use consistent indentation.
96558 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96560         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96561         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96562         reported by Jim Meyering.  All uses of cache variables renamed
96563         to match Autoconf's.
96564         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96565         the other one.
96567         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96568         Fix misspelling in diagnostic.
96570 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96572         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96573         defined.  Problem reported by Matthew Woehlke.
96575         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96576         Add support for Tandem NonStop R series.
96577         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96578         Use new macro.
96580         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96581         (has_trailing_slash): Omit size arg; all callers changed.
96582         Omit 'inline', since it doesn't help performance and we'd
96583         need to configure it.
96584         Don't count //, ///, etc. as having a trailing slash.
96585         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96586         (rpl_rename_dest_slash): On failure, use rename's errno rather
96587         than (in some cases) an incorrect or junk errno.
96588         Simplify code by removing need to compute length; this does
96589         cause it to make two passes instead of one over the file name,
96590         but it's worth it.
96592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96593         change, since Autoconf's version may no longer be appropriate now
96594         that we are using CVS Autoconf's version.  Add support for Tandem.
96596 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96597             Bruno Haible  <bruno@clisp.org>
96599         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96600         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96601         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96602         gl_AC_TYPE_LONG_LONG.
96604         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96605         instead of HAVE_LONG_LONG.
96606         * lib/printf-args.c (printf_fetchargs): Likewise.
96607         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96608         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96609         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96610         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96611         gl_AC_TYPE_LONG_LONG.
96613 2006-10-11  Bruno Haible  <bruno@clisp.org>
96615         * m4/longlong.m4: Add comments.
96616         * m4/ulonglong.m4: Likewise.
96618 2006-10-10  Bruno Haible  <bruno@clisp.org>
96620         Make it possible to #define stpcpy, strdup to aliases.
96621         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96622         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96624 2006-10-10  Bruno Haible  <bruno@clisp.org>
96626         Make it possible to #define gcd to an alias.
96627         * lib/gcd.c: Include config.h.
96629 2006-10-10  Bruno Haible  <bruno@clisp.org>
96631         Make it possible to #define c_isascii to an alias.
96632         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96633         defined. Undefine the macros before defining them, to avoid gcc
96634         warnings.
96635         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96636         define NO_C_CTYPE_MACROS early.
96638 2006-10-10  Bruno Haible  <bruno@clisp.org>
96640         Make it possible to #define set_program_name to an alias.
96641         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96642         ENABLE_RELOCATABLE early.
96644 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96646         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96647         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96648         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96649         More generally, don't assume that 64-bit signed int is available
96650         if unsigned int is, and vice versa.
96651         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96652         unsigned symbols, not on their signed counterparts.
96653         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96654         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96655         (UINT64_C, UINTMAX_C):
96656         Likewise.
96657         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96658         unsigned counterparts.
96659         (Have_long_long, Unsigned): New macros.
96660         (Int): Renamed from INT.
96661         (strtoimax): Use the new macros.
96662         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96663         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96664         * modules/inttypes (inttypes.h): Substitute
96665         HAVE_UNSIGNED_LONG_LONG_INT.
96666         * modules/stdint (stdint.h): Likewise.
96667         (Files): Add m4/ulonglong.m4.
96669 2006-10-10  Bruno Haible  <bruno@clisp.org>
96671         Fix a gcc -Wshadow warning.
96672         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96673         to 'bucket'.
96674         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96675         gl_linked_indexof_from_to): Likewise.
96676         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96677         Likewise.
96678         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96679         Likewise.
96680         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96681         Reported by Eric Blake.
96683 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96685         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96686         for NetBSD.  Problem reported by Bruno Haible.
96688 2006-10-09  Jim Meyering  <jim@meyering.net>
96690         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96691         Patch from Bruno Haible.
96693 2006-10-09  Jim Meyering  <jim@meyering.net>
96695         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96696         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96697         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96699 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96701         Don't include <config.h> twice; this doesn't work in some cases,
96702         e.g., when config.h has "#define intmax_t long long int" and
96703         we include <config.h>, <inttypes.h>, <config.h> in that order.
96704         Problem reported by Matthew Woehlke in:
96705         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96706         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96707         * lib/fts-cycle.c: Don't include config.h.
96708         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96709         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96710         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96711         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96712         inttypes.h.
96713         * lib/xstrtoumax.c: Likewise.
96714         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96715         __strtol and the like, so that this module is more like its siblings.
96716         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96717         Remove; no longer needed now that we assume gnulib inttypes.h.
96719 2006-10-08  Bruno Haible  <bruno@clisp.org>
96721         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96722         option.
96724 2006-10-07  Jim Meyering  <jim@meyering.net>
96726         * modules/inttypes (inttypes.h): Revert what seems to have been
96727         an inadvertent part of today's change: use "|", not "/" in the
96728         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96730 2006-10-07  Bruno Haible  <bruno@clisp.org>
96732         * modules/sublist: New file.
96734 2006-10-07  Bruno Haible  <bruno@clisp.org>
96736         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96737         * modules/argz (argz.h): Likewise.
96738         * modules/arpa_inet (arpa/inet.h): Likewise.
96739         * modules/byteswap (byteswap.h): Likewise.
96740         * modules/configmake (configmake.h): Likewise.
96741         * modules/fcntl (fcntl.h): Likewise.
96742         * modules/fnmatch (fnmatch.h): Likewise.
96743         * modules/getopt (getopt.h): Likewise.
96744         * modules/glob (glob.h): Likewise.
96745         * modules/inttypes (inttypes.h): Likewise.
96746         * modules/netinet_in (netinet/in.h): Likewise.
96747         * modules/poll (poll.h): Likewise.
96748         * modules/stdbool (stdbool.h): Likewise.
96749         * modules/stdint (stdint.h): Likewise.
96750         * modules/sys_select (sys/select.h): Likewise.
96751         * modules/sys_socket (sys/socket.h): Likewise.
96752         * modules/sys_stat (sys/stat.h): Likewise.
96753         * modules/sysexits (sysexits.h): Likewise.
96754         * modules/unistd (unistd.h): Likewise.
96755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96756         Add a "DO NOT EDIT" comment to the generated file.
96757         (func_import): Likewise for gnulib-comp.m4.
96759 2006-10-07  Bruno Haible  <bruno@clisp.org>
96761         * lib/gl_sublist.h: New file.
96762         * lib/gl_sublist.c: New file.
96764 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96766         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96767         name (relative to the original working directory) and the file
96768         name component (relative to the temporary working directory).  All
96769         callers changed.
96770         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96771         * lib/mkdir-p.c (make_dir_parents): Likewise.
96772         * lib/mkdir-p.h (make_dir_parents): Likewise.
96774 2006-10-06  Eric Blake  <ebb9@byu.net>
96776         Define several macros for use by the clean-temp module.
96777         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96778         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96779         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96781         * lib/clean-temp.h (close_stream_temp): New declaration.
96782         * lib/clean-temp.c (includes): Pull in headers according to what
96783         other modules are in use.
96784         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96786 2006-10-06  Bruno Haible  <bruno@clisp.org>
96788         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96789         instead of fopen, fwriteerror.
96791 2006-10-06  Bruno Haible  <bruno@clisp.org>
96793         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96794         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96795         int.
96796         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96797         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96798         Return an error indicator.
96799         Suggested by Eric Blake.
96801 2006-10-06  Bruno Haible  <bruno@clisp.org>
96803         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96804         Reported by Eric Blake.
96806 2006-10-06  Bruno Haible  <bruno@clisp.org>
96808         * modules/closeout (Description): Mention stderr too.
96810 2006-10-06  Bruno Haible  <bruno@clisp.org>
96811         and Paul Eggert  <eggert@cs.ucla.edu>
96813         * lib/closeout.c (close_stdout): Also close stderr.
96814         * lib/closeout.h: Update comment.
96816 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96818         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96819         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96820         * lib/dirchownmod.c: Include lchown.h.
96821         * lib/lchown.c: Don't include files that lchown.h now includes.
96822         Don't declare chown, since lchown.h now does that.
96823         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96824         (lchown): Define to rpl_chown if lchown is declared but
96825         does not exist.  Declare using a prototype if lchown is not
96826         declared.  Add a copyright notice.
96827         * lib/mkstemp.h: Include <unistd.h>.
96828         * lib/openat.c: Include lchown.h.
96830         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96831         we now test for that separately.
96832         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96833         rather than O_NOFOLLOW, when testing whether it's possible to
96834         avoid a race condition reliably.
96835         * lib/savewd.c (savewd_chdir): Likewise.
96837         Remove macros that are no longer needed now that stdint.h is
96838         reliable.
96839         * lib/fsusage.c (UINTMAX_MAX): Remove.
96840         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96841         * lib/utimecmp.c (SIZE_MAX): Remove.
96843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96845         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96846         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96847         O_NOATIME works.
96849 2006-10-05  Bruno Haible  <bruno@clisp.org>
96851         * lib/gl_list.h (gl_sortedlist_search_from_to,
96852         gl_sortedlist_indexof_from_to): New declarations.
96853         (gl_list_implementation): New fields sortedlist_search_from_to,
96854         sortedlist_indexof_from_to.
96855         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96856         inline functions.
96857         * lib/gl_list.c (gl_sortedlist_search_from_to,
96858         gl_sortedlist_indexof_from_to): New functions.
96859         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96860         function.
96861         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96862         (gl_array_sortedlist_search_from_to): New function.
96863         (gl_array_list_implementation): Update.
96864         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96865         function.
96866         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96867         (gl_carray_sortedlist_search_from_to): New function.
96868         (gl_carray_list_implementation): Update.
96869         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96870         gl_linked_sortedlist_indexof_from_to): New functions.
96871         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96872         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96873         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96874         gl_tree_sortedlist_indexof_from_to): New functions.
96875         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96876         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96877         Update.
96878         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96879         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96880         Update.
96882 2006-10-05  Bruno Haible  <bruno@clisp.org>
96884         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96885         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96886         (struct gl_list_implementation): Add fields search_from_to,
96887         indexof_from_to. Remove fields search, indexof.
96888         (gl_list_search): Use the search_from_to method.
96889         (gl_list_search_from, gl_list_search_from_to): New functions.
96890         (gl_list_indexof): Use the indexof_from_to method.
96891         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96892         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96893         (gl_list_search_from, gl_list_search_from_to): New functions.
96894         (gl_list_indexof): Use the indexof_from_to method.
96895         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96896         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96897         gl_array_indexof. Add start_index, end_index arguments.
96898         (gl_array_search_from_to): Renamed from gl_array_search. Add
96899         start_index, end_index arguments.
96900         (gl_array_remove, gl_array_list_implementation): Update.
96901         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96902         gl_carray_indexof. Add start_index, end_index arguments.
96903         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96904         start_index, end_index arguments.
96905         (gl_carray_remove, gl_carray_list_implementation): Update.
96906         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96907         gl_linked_search. Add start_index, end_index arguments.
96908         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96909         start_index, end_index arguments.
96910         (gl_linked_remove): Update.
96911         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96912         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96913         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96914         field to 'size_t'.
96915         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96916         gl_tree_search. Add start_index, end_index arguments.
96917         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96918         start_index, end_index arguments.
96919         (gl_tree_remove): Update.
96920         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96921         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96922         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96923         function.
96924         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96925         gl_tree_search. Add start_index, end_index arguments.
96926         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96927         start_index, end_index arguments.
96928         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96929         Update.
96930         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96932 2006-10-05  Bruno Haible  <bruno@clisp.org>
96934         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96936         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96937         fwriteerror_temp): New declarations.
96938         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96939         (descriptors): New variable.
96940         (cleanup): First, close the descriptors.
96941         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96942         fclose_temp, fwriteerror_temp): New functions.
96944 2006-10-04  Jim Meyering  <jim@meyering.net>
96946         * lib/fts.c (fts_open): Tiny comment change.
96948 2006-10-04  Bruno Haible  <bruno@clisp.org>
96950         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96951         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96952         gl_LOCK_BODY.
96953         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96954         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96955         gl_LOCK_EARLY_BODY.
96956         (gl_LOCK): Require gl_LOCK_BODY.
96958 2006-10-04  Bruno Haible  <bruno@clisp.org>
96960         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96961         (gl_oset_search_atleast): New declaration.
96962         (struct gl_oset_implementation): Add field 'search_atleast'.
96963         (gl_oset_search_atleast): New inline function.
96964         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96965         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96966         (gl_array_oset_implementation): Update.
96967         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96968         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96969         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96971 2006-10-04  Bruno Haible  <bruno@clisp.org>
96973         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96975 2006-10-03  Bruno Haible  <bruno@clisp.org>
96977         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96978         from gl_avltreehash_list_implementation.
96980 2006-10-03  Bruno Haible  <bruno@clisp.org>
96982         * lib/gl_oset.c (gl_oset_add): Fix return type.
96984 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96986         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96988 2006-10-02  Eric Blake  <ebb9@byu.net>
96990         * modules/strnlen (Depends-on): Add extensions.
96992 2006-10-02  Eric Blake  <ebb9@byu.net>
96994         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96995         definition in 2.60+.
96997 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96999         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
97000         checks.
97002 2006-10-02  Bruno Haible  <bruno@clisp.org>
97004         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
97005         to the AUTOMAKE_OPTIONS.
97006         Reported by Jim Meyering.
97008 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
97010         Work around bug in Solaris 10 /proc file system:
97011         /proc/self/fd/NNN/.. isn't the parent directory of
97012         the directory whose file descriptor is NNN.  This needs to
97013         be worked around at run time, not compile time, since a
97014         program might be built on Solaris 8, where things work, and
97015         run on Solaris 10.
97016         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
97017         to use the following interface instead:
97018         (OPENAT_BUFFER_SIZE): New macro.
97019         (openat_proc_name): New function.
97020         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
97021         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
97022         Likewise.
97023         * lib/openat-proc.c: New file.
97024         * modules/openat (Files): Add lib/openat-proc.c.
97025         (Depends-on): Add same-inode, stdbool.
97026         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
97028 2006-09-29  Bruno Haible  <bruno@clisp.org>
97030         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
97031         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
97032         argument. Set stdout_closed before testing for ferror, not after.
97033         (fwriteerror, fwriteerror_no_ebadf): New functions.
97035 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97037         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
97039 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
97041         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
97042         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
97044 2006-09-28  Jim Meyering  <jim@meyering.net>
97046         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
97047         Include <unistd.h>.
97049 2006-09-28  Bruno Haible  <bruno@clisp.org>
97051         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
97052         * modules/linkedhash-list (Depends-on): Likewise.
97053         * modules/rbtreehash-list (Depends-on): Likewise.
97055 2006-09-28  Bruno Haible  <bruno@clisp.org>
97057         * lib/strndup.h: Simplify the redefinition of strndup.
97058         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
97059         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
97061 2006-09-28  Bruno Haible  <bruno@clisp.org>
97063         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
97064         * lib/gl_linkedhash_list.c: Likewise.
97065         * lib/gl_rbtreehash_list.c: Likewise.
97067 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
97069         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
97070         getaddrinfo.
97072         * lib/__fpending.h: Don't include <stdio_ext.h> unless
97073         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
97074         it causes <stdio_ext.h> to cause a compile-time error.
97075         Problem reported by Nelson H. F. Beebe.
97076         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
97077         of HAVE_DECL___PENDING.
97079         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
97080         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
97081         declaration.
97083 2006-09-27  Jim Meyering  <jim@meyering.net>
97085         This file could end up with a definition for a function
97086         named __strndup, rather than rpl_strndup on a system with
97087         incomplete weak_alias support.
97088         * lib/strndup.c (strndup): Rename from __strndup.
97089         Remove #defines that used to map __strndup to strndup.
97090         Don't use K&R prototypes.
97091         Remove LIBC-related code, since this file is not sync'd with glibc.
97092         * lib/strndup.h: Revamp, accordingly.
97093         * m4/strndup.m4: Modernize.
97095 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
97097         * modules/savewd (Depends-on): Add 'raise'.
97098         * lib/savewd.c: Include <signal.h>, for 'raise'.
97100 2006-09-26  Jim Meyering  <jim@meyering.net>
97102         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
97103         when we detect Darwin 8.7.0's acl_get_file bug.
97104         Rearrange to perform the new (below) run-test while $LIBS
97105         contains any acl-related library.  Set USE_ACL at the end.
97106         (gl_ACL_GET_FILE): New function.
97108 2006-09-26  Eric Blake  <ebb9@byu.net>
97110         * lib/verror.c: Include <config.h> unconditionally.
97112 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
97114         * modules/clock-time (Maintainer): Add self.
97115         * modules/getlogin_r (Depends-on): Add extensions.
97117 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97119         * modules/clock-time: New module.
97120         * modules/nanosleep (Depends-on): Add clock-time.
97121         * modules/gethrxtime (Depends-on): Likewise.
97122         * modules/gettime (Depends-on): Likewise.
97123         * modules/settime (Depends-on): Likewise.
97125         * modules/fts-lgpl: Depend on openat.
97126         * modules/mkancesdirs: Depend on savewd.
97127         * modules/mkdir-p: Likewise.
97129 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97131         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
97133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
97134         `gl_have_arbitrary_file_name_length_limit' to
97135         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
97136         actually works between configure runs.
97138 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97139             Bruno Haible  <bruno@clisp.org>
97141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
97143 2006-09-25  Jim Meyering  <jim@meyering.net>
97145         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
97146         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
97148 2006-09-25  Eric Blake  <ebb9@byu.net>
97150         * gnulib-tool (func_import, func_create_testdir): Fix typos in
97151         exec's in 2006-09-18 patch when shuffling fds.
97153 2006-09-25  Bruno Haible  <bruno@clisp.org>
97155         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
97156         Reported by Jim Meyering.
97158 2006-09-24  Jim Meyering  <jim@meyering.net>
97160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
97161         compare a pointer against a literal "0".  That caused failures with
97162         at least HP-UX's hpcc.
97164 2006-09-22  Simon Josefsson  <jas@extundo.com>
97166         * modules/gc-sha1:
97167         * modules/gc-md4:
97168         * modules/gc-hmac-sha1:
97169         * modules/gc-hmac-md5:
97170         * modules/gc-des:
97171         * modules/gc-arcfour: Distribute more files.
97173 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97175         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
97176         (gl_linked_iterator_from_to): Initialize struct completely.
97177         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
97178         (gl_tree_iterator_from_to): Likewise
97179         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
97180         * lib/gl_array_list.c [lint] (gl_array_iterator)
97181         (gl_array_iterator_from_to): Likewise.
97182         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
97183         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
97184         (gl_carray_iterator_from_to): Likewise.
97186         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
97187         * lib/md4.c (md4_process_block): Remove unused variable.
97188         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
97189         parentheses for clarity.
97191 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97193         * modules/bison-i18n (Depends-on): Add gettext.
97195 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97197         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
97198         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
97199         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
97200         also add missing comma that caused broken test.
97201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
97202         stdlib.h, for `abort'.
97203         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
97204         variables.
97205         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
97206         include unistd.h if present, for `rmdir'.
97207         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
97208         variables.
97209         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
97210         in the process include standard headers for prototypes.
97211         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
97212         gets declared on GNU/Linux.
97213         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
97214         unistd.h, for `rmdir'.
97215         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
97217         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
97218         always true.
97219         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
97221         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
97223 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97225         * gnulib-tool (func_version): Create output all at once.  This
97226         may help avoid triggering unnecessary SIGPIPEs, and at any
97227         rate it doesn't hurt.
97229 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97230             Bruno Haible  <bruno@clisp.org>
97232         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
97233         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
97234         * m4/signed.m4 (bh_C_SIGNED): Likewise.
97236         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
97237         (gl_FUNC_VASPRINTF): Invoke it.
97239 2006-09-22  Bruno Haible  <bruno@clisp.org>
97241         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
97242         getloadavg.c as first argument.
97244 2006-09-22  Bruno Haible  <bruno@clisp.org>
97246         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
97247         at the beginning of the gl_INIT macro.
97248         * modules/getloadavg (configure.ac): Pass $gl_source_base to
97249         gl_GETLOADAVG.
97251 2006-09-22  Bruno Haible  <bruno@clisp.org>
97253         * gnulib-tool (func_create_megatestdir): Don't include the config-h
97254         module.
97255         Suggested by Ralf Wildenhues.
97257 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97259         Import this patch from libc:
97261         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
97263         * lib/regex_internal.c (re_string_reconstruct): Handle
97264         offset < pstr->valid_raw_len && pstr->offsets_needed case.
97265         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
97266         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
97267         re_string_context_at.
97269         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
97270         now requires it.
97271         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
97272         gl_REGEX now does it for us.
97273         (gl_REGEX): Add test taken from
97274         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
97276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
97277         Check that large offsets work.  Modernize Autoconf usages.
97278         Prefer "yes" to mean a good thing rather than a bad.
97279         Don't put "#define mkstemp" in config.h, as this might interfere
97280         with standard system headers that "#define mkstemp mkstemp64".
97282         * modules/mkstemp (Depends-on): Add extensions, so that
97283         mkstemp is visible on some platforms.
97284         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
97285         (Include): Change to "mkstemp.h" from <stdlib.h>.
97286         (Files): Add mkstemp.h.
97288         * lib/mkstemp.h: New file, since some standard headers
97289         #define mkstemp.
97290         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
97291         Include "mkstemp.h".
97292         Make the _LIBC code resemble glibc original more,
97293         e.g., use K&R style.
97294         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
97295         (mkstemp): Remove, since mkstemp.h does this for us.
97296         * lib/stdlib--.h: Include mkstemp.h.
97298         Import this patch from libc:
97300         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97302         * lib/tempname.c (__gen_tempname): Change attempts_min
97303         into a macro.  Use preprocessor to decide how to initialize
97304         attempts [Coverity CID 67].
97306 2006-09-20  Bruno Haible  <bruno@clisp.org>
97308         * lib/mkdtemp.c: Import from libc.
97309         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97310                 * sysdeps/posix/tempname.c (__gen_tempname): Change
97311                 attempts_min into a macro.  Use preprocessor to decide how to
97312                 initialize attempts [Coverity CID 67].
97313         2001-11-27  Paul Eggert  <eggert@twinsun.com>
97314                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
97315                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
97317 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97319         * gnulib-tool (func_exit): New function, to allow to pass the
97320         exit status portably through the trap.  Use everywhere.
97321         (--help, --version): Signal a write error.
97322         (trap): catch SIGPIPE, for write errors.
97323         Exit at the end of the trap, with the correct exit status.
97325 2006-09-19  Karl Berry  <karl@gnu.org>
97327         * doc/gnulib.texi: note about the license texinfo files.
97329 2006-09-19  Eric Blake  <ebb9@byu.net>
97331         * gnulib-tool: Avoid space-tab.
97333 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97335         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
97336         that prevented coreutils 6.1 from building.  Problem reported
97337         by Petter Reinholdtsen.
97339 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97341         * gnulib-tool (avoidlist): Fix typo that broke options like
97342         --avoid=lock that are used by coreutils bootstrap.
97344 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
97346         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
97347         more systematically.
97349 2006-09-18  Jim Meyering  <jim@meyering.net>
97351         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
97353 2006-09-18  Bruno Haible  <bruno@clisp.org>
97355         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97357 2006-09-18  Bruno Haible  <bruno@clisp.org>
97359         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97360         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97361         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97362         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97363         * m4/gettext.m4: Require autoconf >= 2.52.
97364         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97365         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97366         of gl_cv_header_inttypes_h.
97368 2006-09-18  Bruno Haible  <bruno@clisp.org>
97370         * lib/javaversion.c: Include configmake.h.
97372 2006-09-18  Bruno Haible  <bruno@clisp.org>
97374         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97375         avoid that the while loops be executed in a subshell.
97377 2006-09-18  Bruno Haible  <bruno@clisp.org>
97379         * MODULES.html.sh (func_module): Break long lines.
97380         Suggested by Bruce Korb <bkorb@gnu.org>.
97382 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97384         Speed up by a factor of 1.12.
97385         * gnulib-tool (nl): New variable.
97386         (func_import): Rewrite include directive extraction to only read each
97387         directive once.
97389 2006-09-17  Bruno Haible  <bruno@clisp.org>
97391         * modules/javaversion (Makefile.am): Remove DEFS setting.
97392         (Depends-on): Add configmake, for PKGDATADIR definition.
97394 2006-09-17  Bruno Haible  <bruno@clisp.org>
97396         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97398 2006-09-17  Bruno Haible  <bruno@clisp.org>
97400         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97401         (func_modules_transitive_closure, func_modules_add_dummy,
97402         func_modules_to_filelist, func_import, func_create_testdir,
97403         func_create_megatestdir, ...): Use it wherever possible.
97404         Suggested by Ralf Wildenhues.
97406 2006-09-16  Karl Berry  <karl@gnu.org>
97408         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97409         to avoid sectioning errors.
97410         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97411         [ifinfo]: blank line after @center-ed titles.
97412         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97413         Spell FSF address consistently with others.
97414         (These changes approved by rms.)
97416 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97418         Speed up by a factor of 1.61.
97419         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97420         already checked module names again.
97422 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97424         Speed up by a factor of 1.13.
97425         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97426         for new_files, and the input to func_add_or_update.
97428 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97430         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97431         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97433 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97435         * modules/mkancesdirs (Depends-on): Add fcntl.
97436         * modules/savewd: New file.
97437         * MODULES.html.sh (File system functions): Add savewd.
97439         * modules/configmake (Makefile.am): Add support for the
97440         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97442 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97444         * m4/savewd.m4: New file.
97446 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97448         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97449         (dirchownmod): New arg FD.  All callers changed.
97450         Use FD rather than opening the directory ourself, as opening is
97451         now the caller's responsibility.
97452         * lib/dirchownmod.h: Likewise.
97453         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97454         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97455         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97456         (test_dir): Remove.
97457         (mkancesdirs): Return length of prefix of FILE that has already
97458         been made, or -2 if there is a child doing the work.  Redo
97459         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97460         ".", and treat ".." specially since it might stray back into
97461         already-created areas.  Use a subprocess if necessary.  New arg
97462         WD; all users changed.  MAKE_DIR function should now return 1
97463         if it creates a directory that is not readable.  Return -2 if
97464         a child process is spun off.
97465         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97466         Adjust signature to match code.
97467         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97468         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97469         all users changed.
97470         * lib/savewd.c, lib/savewd.h: New files.
97472 2006-09-15  Jim Meyering  <jim@meyering.net>
97474         * modules/rename-dest-slash: New module.
97475         * MODULES.html.sh (posix_compat): Add it here.
97477         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97479 2006-09-15  Jim Meyering  <jim@meyering.net>
97481         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97482         file.
97484         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97486 2006-09-15  Jim Meyering  <jim@meyering.net>
97488         * lib/rename-dest-slash.c (has_trailing_slash): Use
97489         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97490         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97491         test before testing whether SRC is a directory.
97492         Suggestions from Bruno Haible.
97494         Avoid a warning about an unused variable.
97495         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97496         into the #ifdef block where it's used.
97498         * lib/rename-dest-slash.c: New file.
97500 2006-09-14  Bruno Haible  <bruno@clisp.org>
97502         * lib/allocsa.c: Include <config.h> unconditionally.
97503         * lib/asnprintf.c: Likewise.
97504         * lib/asprintf.c: Likewise.
97505         * lib/c-strcasecmp.c: Likewise.
97506         * lib/c-strcasestr.c: Likewise.
97507         * lib/c-strncasecmp.c: Likewise.
97508         * lib/c-strstr.c: Likewise.
97509         * lib/classpath.c: Likewise.
97510         * lib/clean-temp.c: Likewise.
97511         * lib/concatpath.c: Likewise.
97512         * lib/copy-file.c: Likewise.
97513         * lib/csharpcomp.c: Likewise.
97514         * lib/csharpexec.c: Likewise.
97515         * lib/execute.c: Likewise.
97516         * lib/fatal-signal.c: Likewise.
97517         * lib/findprog.c: Likewise.
97518         * lib/fwriteerror.c: Likewise.
97519         * lib/gl_array_list.c: Likewise.
97520         * lib/gl_array_oset.c: Likewise.
97521         * lib/gl_avltree_list.c: Likewise.
97522         * lib/gl_avltree_oset.c: Likewise.
97523         * lib/gl_avltreehash_list.c: Likewise.
97524         * lib/gl_carray_list.c: Likewise.
97525         * lib/gl_linked_list.c: Likewise.
97526         * lib/gl_linkedhash_list.c: Likewise.
97527         * lib/gl_list.c: Likewise.
97528         * lib/gl_oset.c: Likewise.
97529         * lib/gl_rbtree_list.c: Likewise.
97530         * lib/gl_rbtree_oset.c: Likewise.
97531         * lib/gl_rbtreehash_list.c: Likewise.
97532         * lib/imaxabs.c: Likewise.
97533         * lib/imaxdiv.c: Likewise.
97534         * lib/javacomp.c: Likewise.
97535         * lib/javaexec.c: Likewise.
97536         * lib/javaversion.c: Likewise.
97537         * lib/linebreak.c: Likewise.
97538         * lib/localcharset.c: Likewise.
97539         * lib/lock.c: Likewise.
97540         * lib/mbchar.c: Likewise.
97541         * lib/mbswidth.c: Likewise.
97542         * lib/mkdtemp.c: Likewise.
97543         * lib/pipe.c: Likewise.
97544         * lib/printf-args.c: Likewise.
97545         * lib/printf-parse.c: Likewise.
97546         * lib/progname.c: Likewise.
97547         * lib/progreloc.c: Likewise.
97548         * lib/readlink.c: Likewise.
97549         * lib/sh-quote.c: Likewise.
97550         * lib/stpcpy.c: Likewise.
97551         * lib/stpncpy.c: Likewise.
97552         * lib/strcasecmp.c: Likewise.
97553         * lib/strcasestr.c: Likewise.
97554         * lib/strcspn.c: Likewise.
97555         * lib/striconv.c: Likewise.
97556         * lib/strncasecmp.c: Likewise.
97557         * lib/strnlen1.c: Likewise.
97558         * lib/strstr.c: Likewise.
97559         * lib/strtok_r.c: Likewise.
97560         * lib/tls.c: Likewise.
97561         * lib/tmpdir.c: Likewise.
97562         * lib/unicodeio.c: Likewise.
97563         * lib/unsetenv.c: Likewise.
97564         * lib/vasnprintf.c: Likewise.
97565         * lib/vasprintf.c: Likewise.
97566         * lib/wait-process.c: Likewise.
97567         * lib/xallocsa.c: Likewise.
97568         * lib/xsetenv.c: Likewise.
97569         * lib/xstriconv.c: Likewise.
97571 2006-09-13  Simon Josefsson  <jas@extundo.com>
97573         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97574         that internally, suggested by Ralf Wildenhues
97575         <Ralf.Wildenhues@gmx.de>.
97577 2006-09-13  Simon Josefsson  <jas@extundo.com>
97579         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97580         @LIBOBJS@.
97581         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97583 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97585         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97586         longer worry about uses that don't define HAVE_CONFIG_H.
97587         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97588         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97589         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97590         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97591         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97592         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97593         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97594         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97595         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97596         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97597         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97598         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97599         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97600         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97601         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97602         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97603         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97604         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97605         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97606         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97607         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97608         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97609         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97610         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97611         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97612         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97613         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97614         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97615         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97616         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97617         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97618         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97619         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97620         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97621         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97622         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97623         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97624         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97625         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97626         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97627         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97628         Likewise.
97630 2006-09-13  Eric Blake  <ebb9@byu.net>
97632         * lib/getopt.c: Fix typo in last commit.
97634 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97636         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97637         dgettext.
97639 2006-09-12  Jim Meyering  <jim@meyering.net>
97641         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97642         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97643         Reported by Nelson H. F. Beebe.
97645 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97647         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97648         program_invocation_name and program_invocation_short_name are
97649         initialized.
97650         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97651         and program_invocation_short_name to argp.h, so they are visible
97652         to user programs.
97653         * lib/argp.h: Likewise
97655 2006-09-10  Bruno Haible  <bruno@clisp.org>
97657         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97658         m4/inttypes_h.m4, m4/uintmax_t.m4.
97660 2006-09-10  Bruno Haible  <bruno@clisp.org>
97662         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97663         gl_AC_TYPE_UINTMAX_T.
97665 2006-09-10  Bruno Haible  <bruno@clisp.org>
97667         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97669 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97671         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97672         convention.  Text proposed by Bruno Haible.
97673         (struct argp_option): Document the use of N_() wrappers.
97675         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97676         '\v', and translate the two parts separately, instead of feeding
97677         the whole string to gettext.  This allows to exclude
97678         '\v' from the strings visible to the translator by writing doc
97679         strings as N_("..") "\v" N_("..").
97681 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97683         * config/srclist.txt: Undo latest change; the bug was fixed.
97685 2006-09-09  Bruno Haible  <bruno@clisp.org>
97687         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97688         assignments if building a library without libtool.
97689         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97690         in func_emit_lib_Makefile_am.
97691         (func_import): When building a static library libfoo.a, arrange to
97692         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97693         (func_create_testdir): Likewise.
97694         * modules/gc (configure.ac, Makefile.am): If building statically,
97695         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97696         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97697         * modules/striconv (configure.ac, Makefile.am): Likewise.
97698         Based on a suggestion by Ralf Wildenhues.
97700 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97702         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97703         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97704         Also:
97706         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97707         Add year_2050_test to catch glibc bug 2821
97708         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97710         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97711         Prefer #ifdef to #if.
97713         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97714         Return from 'main' instead of calling 'exit'.
97716 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97718         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97719         returned the maximum time_t value rather than (time_t) -1.
97720         Problem originally reported by William Bardwell
97721         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97723         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97724         Moved to here ...
97725         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97726         ... from here.
97728 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97730         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97731         2821 is fixed.
97733 2006-09-08  Jim Meyering  <jim@meyering.net>
97735         Don't make generated files read-only.  That would bother too many
97736         people.  However, do retain the ability to work when targets are
97737         read-only: remove the destination and temporary files before writing
97738         them (when generated via sed or echo), or by using the -f option for
97739         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97740         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97741         * modules/byteswap, modules/configmake, modules/fcntl:
97742         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97743         * modules/localcharset, modules/netinet_in, modules/poll:
97744         * modules/stdbool, modules/stdint, modules/sys_select:
97745         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97747 2006-09-08  Jim Meyering  <jim@meyering.net>
97749         Avoid new build failure on FreeBSD 6.0.
97750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97751         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97752         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97754 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97756         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97758 2006-09-07  Jim Meyering  <jim@meyering.net>
97760         Fix global typo in last change: use chmod u-w, not chmod u-x.
97761         Spotted by Paul Eggert and Bruce Korb.
97762         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97763         * modules/byteswap, modules/configmake, modules/fcntl:
97764         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97765         * modules/localcharset, modules/netinet_in, modules/poll:
97766         * modules/stdbool, modules/stdint, modules/sys_select:
97767         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97769 2006-09-06  Jim Meyering  <jim@meyering.net>
97771         Make generated files be read-only.
97772         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97773         Ensure that each generated file is now read-only.
97774         * modules/argz: Likewise.
97775         * modules/arpa_inet: Likewise.
97776         * modules/byteswap: Likewise.
97777         * modules/configmake: Likewise.
97778         * modules/fcntl: Likewise.
97779         * modules/fnmatch: Likewise.
97780         * modules/getopt: Likewise.
97781         * modules/glob: Likewise.
97782         * modules/inttypes: Likewise.
97783         * modules/netinet_in: Likewise.
97784         * modules/poll: Likewise.
97785         * modules/stdbool: Likewise.
97786         * modules/stdint: Likewise.
97787         * modules/sys_select: Likewise.
97788         * modules/sys_socket: Likewise.
97789         * modules/sys_stat: Likewise.
97790         * modules/sysexits: Likewise.
97791         * modules/localcharset: Same as above, but continue using temporary
97792         file named "t-$@" (why different?) rather than the "$@-t" used
97793         everywhere else.
97795         * modules/sysexits (Makefile.am): Replace literal occurrences
97796         of "sysexit.h" more readable, and more consistent, "$@".
97798 2006-09-06  Bruno Haible  <bruno@clisp.org>
97800         * modules/striconv: New file.
97801         * modules/xstriconv: New file.
97802         * MODULES.html.sh (Internationalization functions): Add striconv,
97803         xstriconv.
97805 2006-09-06  Bruno Haible  <bruno@clisp.org>
97807         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97808         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97809         not using libtool correctly.
97811 2006-09-06  Bruno Haible  <bruno@clisp.org>
97813         * lib/striconv.h: New file.
97814         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97815         iconvstring.c.
97816         * lib/xstriconv.h: New file.
97817         * lib/xstriconv.c: New file.
97819 2006-09-06  Bruno Haible  <bruno@clisp.org>
97821         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97822         lib_..._LDFLAGS.
97824 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97826         * lib/argz_.h: Sync from Libtool.
97828         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97829                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97831         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97833 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97835         * modules/trim: New file.
97837 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97839         * lib/trim.h: New file.
97840         * lib/trim.c: New file.
97842 2006-09-05  Bruno Haible  <bruno@clisp.org>
97844         * MODULES.html.sh (String handling): Add trim.
97846 2006-09-04  Karl Berry  <karl@gnu.org>
97848         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97849         until next release.
97851 2006-09-03  Bruno Haible  <bruno@clisp.org>
97853         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97854         correctly.
97856 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97858         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97859         not gl_GETLOADAVG.  Omit unneeded semicolons.
97860         Problems reported by Ralf Wildenhues in
97861         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97862         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97863         at the end, which is the usual gnulib style.
97865         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97866         of doing all the work ourselves.
97867         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97868         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97870 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97872         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97873         Problem reported by Ralf Wildenhues in
97874         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97876         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97877         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97879 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97881         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97882         yesterday's patch by changing test -n to test -z.
97884 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97886         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97887         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97888         the former is now obsolescent.
97890         * modules/chdir-long (Depends-on): Add fcntl.
97892 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97894         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97895         obsolescent, and programs should use gnulib instead.
97896         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97897         but with prefixes changed.
97899 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97901         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97902         or stdbool.h, because they might not exist while configuring.
97904         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97905         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97906         does that for us.
97907         (O_DIRECTORY): Remove.
97909 2006-08-31  Eric Blake  <ebb9@byu.net>
97911         * gnulib-tool: Don't let emacs change spaces to TAB.
97913 2006-08-31  Bruno Haible  <bruno@clisp.org>
97915         * gnulib-tool: When calling func_import more than once, do it in a
97916         subshell.
97917         Reported by Eric Blake <ebb9@byu.net>.
97919 2006-08-31  Bruno Haible  <bruno@clisp.org>
97921         * gnulib-tool (nl): Remove variable.
97922         (sed_transform_lib_file): Use more robust test for config-h module.
97923         (func_import): Fix typo in 2006-08-25 patch.
97925 2006-08-31  Bruno Haible  <bruno@clisp.org>
97927         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97928         specified, augment Makefile.am variables instead of assigning them.
97930 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97932         Work around a bug in both the Linux and SunOS 64-bit kernels:
97933         nanosleep mishandles sleeps for longer than 2**31 seconds.
97934         Problem reported by Frank v Waveren in
97935         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97937         Check for nanosleep bug.
97938         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97940 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97942         Work around a bug in both the Linux and SunOS 64-bit kernels:
97943         nanosleep mishandles sleeps for longer than 2**31 seconds.
97944         Problem reported by Frank v Waveren in
97945         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97946         * lib/nanosleep.c (BILLION): New constant.
97947         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97948         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97949         implementation.
97951 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97953         * modules/nanosleep (Depends-on): Add gettime.
97955 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97956         and Simon Josefsson  <jas@extundo.com>
97957         and Oskar Liljeblad  <oskar@osk.mine.nu>
97959         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97960         * gnulib-tool (func_import): New license type 'unmodifiable license
97961         text'.
97962         * modules/fdl: Use it.  Longer description.
97963         * module/gpl, module/lgpl: New files.
97965 2006-08-30  Jim Meyering  <jim@meyering.net>
97967         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97968         shadowing the parameter.
97970 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97972         Sync from Libtool:
97974         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97976         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97977         sharing with gnulib.  Report by Eric Blake.
97979 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97981         * modules/isapipe: New file.
97982         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97984 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97986         * modules/configmake (Makefile.am): Add a comment, and omit
97987         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97988         by Bruno Haible.
97990 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97992         * m4/isapipe.m4: New file.
97994 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97996         * lib/isapipe.c, lib/isapipe.h: New files.
97998 2006-08-29  Jim Meyering  <jim@meyering.net>
98000         * modules/configmake (Makefile.am): Make configmake.h depend on
98001         Makefile.  Otherwise, a stale configmake.h could hang around.
98003 2006-08-29  Eric Blake  <ebb9@byu.net>
98005         * lib/error.c (error_at_line, print_errno_message): Match libc, after
98006         resolution of upstream bug 3044.
98008 2006-08-29  Bruno Haible  <bruno@clisp.org>
98010         * modules/localcharset (Depends-on): Add configmake.
98011         (Makefile.am): Remove setting of LIBDIR through DEFS.
98013 2006-08-29  Bruno Haible  <bruno@clisp.org>
98015         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
98016         defined.
98018 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98020         * modules/fcntl: New file.
98021         * modules/chdir-safer (Depends-on): Add fcntl.
98022         * modules/fts: Likewise.
98023         * modules/mkdir-p: Likewise.
98025         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
98026         This undoes the most recent change, since we're now addressing the
98027         problem in a different way.
98029         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
98030         into output, since the output might be called Makefile.am even
98031         if $makefile_name is something different.
98032         (func_import): Use $makefile_am rather than
98033         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
98034         empty.
98036         * modules/inttypes (Files): Add m4/inttypes-h.m4.
98038 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98040         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
98041         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
98042         recent change to stdint.m4, since we're now addressing the problem in a
98043         different way.
98045 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98047         * m4/fcntl_h.m4: New file.
98049 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98051         * lib/fcntl_.h: New file.
98052         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
98053         the fcntl module.
98054         * lib/dirchownmod.c: Likewise.
98055         * lib/fts.c: Likewise.
98057         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
98058         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
98059         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
98060         just before including <inttypes.h>, to avoid circular inclusion.
98062 2006-08-28  Jim Meyering  <jim@meyering.net>
98064         * doc/visibility.texi: Actually read and correct the grammar of the
98065         sentence affected by yesterday's change.
98067 2006-08-28  Eric Blake  <ebb9@byu.net>
98069         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
98070         needs wrapper.
98072 2006-08-28  Eric Blake  <ebb9@byu.net>
98074         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
98076 2006-08-28  Eric Blake  <ebb9@byu.net>
98078         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
98080 2006-08-28  Bruno Haible  <bruno@clisp.org>
98082         * modules/c-strstr: New file, from GNU gettext.
98083         * MODULES.html.sh (String handling): Add c-strstr.
98085 2006-08-28  Bruno Haible  <bruno@clisp.org>
98087         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
98088         macros.
98089         Reported by Eric Blake.
98091 2006-08-28  Bruno Haible  <bruno@clisp.org>
98093         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
98094         (VASNPRINTF): Return a string of length > INT_MAX without failing.
98095         * lib/vasprintf.c: Include errno.h, limits.h.
98096         (EOVERFLOW): New fallback definition.
98097         (vasprintf): Test here whether the string length is > INT_MAX.
98098         * lib/vsnprintf.c: Include errno.h, limits.h.
98099         (EOVERFLOW): New fallback definition.
98100         (vsnprintf): Fix bug when generated string was too long for the buffer.
98101         Test here whether the string length is > INT_MAX.
98103 2006-08-28  Bruno Haible  <bruno@clisp.org>
98105         * lib/inttypes_.h (SCNX*): Remove definitions.
98106         Reported by Eric Blake.
98108 2006-08-28  Bruno Haible  <bruno@clisp.org>
98110         * lib/c-strstr.h: New file, from GNU gettext.
98111         * lib/c-strstr.c: New file, from GNU gettext.
98113 2006-08-28  Bruno Haible  <bruno@clisp.org>
98115         * gnulib-tool: Reorder some statements.
98117 2006-08-28  Bruno Haible  <bruno@clisp.org>
98119         * gnulib-tool: New option --makefile-name.
98120         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
98121         $makefile_name.
98122         (func_import): Write $makefile_name to the cache file, and read it from
98123         there unless explicitly specified. Use $makefile_name as file name
98124         instead of Makefile.am. Adjust the recommendations accordingly.
98126 2006-08-28  Bruno Haible  <bruno@clisp.org>
98128         * gnulib-tool (func_verify_module): Check against misapplying patch.
98130 2006-08-28  Bruno Haible  <bruno@clisp.org>
98132         * gnulib-tool (func_relativize, func_relconcat): New functions.
98133         Give an error if --local-dir is given with --update.
98134         Remove trailing slashes from $local_gnulib_dir.
98135         (func_import): Store the relativized $local_gnulib_dir in
98136         gnulib-cache.m4, and read it from there if not specified explicitly.
98138 2006-08-28  Bruno Haible  <bruno@clisp.org>
98140         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
98141         is the current directory. Respect also $local_gnulib_dir.
98143 2006-08-28  Bruno Haible  <bruno@clisp.org>
98144             Simon Josefsson  <jas@extundo.com>
98146         BeOS portability.
98147         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
98149 2006-08-27  Jim Meyering  <jim@meyering.net>
98151         * doc/visibility.texi: Remove duplicate word: "pointer".
98153 2006-08-26  Bruno Haible  <bruno@clisp.org>
98155         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
98156         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
98157         (Makefile.am): Create inttypes.h from inttypes_.h.
98158         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
98160         * modules/imaxabs: New file.
98162         * modules/imaxdiv: New file.
98164 2006-08-26  Bruno Haible  <bruno@clisp.org>
98166         * m4/inttypes.m4: New file.
98167         * m4/_inttypes_h.m4: Remove file.
98168         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
98169         PRI_MACROS_BROKEN.
98170         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
98172         * m4/imaxabs.m4: New file.
98174         * m4/imaxdiv.m4: New file.
98176 2006-08-26  Bruno Haible  <bruno@clisp.org>
98178         * lib/inttypes_.h: New file.
98179         * lib/inttypes.h: Remove file.
98180         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
98182         * lib/imaxabs.c: New file.
98184         * lib/imaxdiv.c: New file.
98186 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98188         New config-h module, so that "make" output needn't be cluttered
98189         by -DHAVE_CONFIG_H.
98190         * MODULES.html.sh (Support for building libraries and executables):
98191         Add config-h.
98192         * modules/config-h: New file.
98193         * gnulib-tool (nl, sed_transform_lib_file): New vars.
98194         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
98195         the config-h module is used.
98197         New configmake module, so that "make" output needn't be cluttered
98198         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
98199         * MODULES.html.sh (Support for building libraries and executables):
98200         Add configmake.
98201         * modules/configmake: New file.
98203 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98205         * m4/config-h.m4: New file.
98207 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98209         * config/srclist.txt: Add elisp-comp.
98211 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98213         * MODULES.html.sh (Support for building libraries and executables):
98214         Add elisp-comp.
98215         * build-aux/elisp-comp: New file.
98216         * modules/elisp-comp: New file.
98218 2006-08-24  Bruno Haible  <bruno@clisp.org>
98220         * gnulib-tool (func_create_testdir): Use non-default values of
98221         sourcebase and m4base.
98223 2006-08-24  Bruno Haible  <bruno@clisp.org>
98225         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
98226         HTML structure.
98228 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98230         * modules/openat (Depends-on): Add lchown.
98232 2006-08-23  Bruno Haible  <bruno@clisp.org>
98234         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
98235         of gl_LOCK_EARLY instead of gl_LOCK.
98237 2006-08-23  Bruno Haible  <bruno@clisp.org>
98239         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
98240         on OSF/1 to no.
98241         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
98243 2006-08-23  Bruno Haible  <bruno@clisp.org>
98245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
98246         as unusable.
98248         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
98249         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
98250         (gl_LOCK): New macro.
98252 2006-08-22  Simon Josefsson  <jas@extundo.com>
98254         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
98255         to md5 module.
98257 2006-08-22  Simon Josefsson  <jas@extundo.com>
98259         * MODULES.html.sh: Add "Support for maintaining and release
98260         projects".
98262         * build-aux/gnupload: New file, from coreutils.
98264 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98266         Avoid the need for AC_LIBSOURCES in m4 macros.
98267         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
98268         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
98269         * modules/check-version (EXTRA_DIST): Add check-version.h.
98270         * modules/crc (EXTRA_DIST): Add crc.h.
98271         * modules/des (EXTRA_DIST): Add des.h.
98272         * modules/gc (EXTRA_DIST): Add gc.h.
98273         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
98274         * modules/getline (EXTRA_DIST): Add getline.h.
98275         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
98276         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
98277         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
98278         * modules/md2 (EXTRA_DIST): Add md2.h.
98279         * modules/md4 (EXTRA_DIST): Add md4.h.
98280         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
98281         * modules/read-file (EXTRA_DIST): Add read-file.h.
98282         * modules/readline (EXTRA_DIST): Add readline.h.
98283         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
98284         rijndael-api-fst.h.
98286 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98288         * m4/rijndael.m4 (gl_ARCFOUR):
98289         * m4/arctwo.m4 (gl_ARCTWO):
98290         * m4/check-version.m4 (gl_CHECK_VERSION):
98291         * m4/crc.m4 (gl_CRC):
98292         * m4/des.m4 (gl_DES):
98293         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
98294         * m4/gc.m4 (gl_GC):
98295         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
98296         * m4/getline.m4 (gl_FUNC_GETLINE):
98297         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
98298         * m4/hmac-md5.m4 (gl_HMAC_MD5):
98299         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
98300         * m4/md2.m4 (gl_MD2):
98301         * m4/md4.m4 (gl_MD4):
98302         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
98303         * m4/read-file.m4 (gl_FUNC_READ_FILE):
98304         * m4/readline.m4 (gl_FUNC_READLINE):
98305         * m4/rijndael.m4 (gl_RIJNDAEL):
98306         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98307         to get the necessary .h files and whatnot.
98309 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98311         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
98312         gnulib rather than the other way around.
98313         * config/srclistvars.sh (COREUTILS): Remove.
98315 2006-08-22  Jim Meyering  <jim@meyering.net>
98317         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
98319         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
98321 2006-08-22  Eric Blake  <ebb9@byu.net>
98323         * modules/regexprops-generic: New file.
98324         * MODULES.html.sh (Support for building documentation): List it.
98326 2006-08-22  Eric Blake  <ebb9@byu.net>
98328         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
98329         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
98330         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
98331         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
98333 2006-08-22  Bruno Haible  <bruno@clisp.org>
98335         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
98336         and lib_LTLIBRARIES like the other lib_* variables.
98338 2006-08-22  Bruno Haible  <bruno@clisp.org>
98340         * build-aux/x-to-1.in: New file, from GNU gettext.
98342 2006-08-22  Bruno Haible  <bruno@clisp.org>
98344         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
98345         <utmpx.h> exists.
98347 2006-08-22  Bruno Haible  <bruno@clisp.org>
98349         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
98350         <utmpx.h> exists.
98352 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98354         BeOS portability.
98355         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
98356         exist.
98357         Problem reported by Bruno Haible.
98359 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98361         Avoid the need for AC_LIBSOURCES in m4 macros.
98362         * modules/acl (EXTRA_DIST): Add acl.h.
98363         * modules/argmatch (Files): Add m4/argmatch.m4.
98364         (configure.ac): Add gl_ARGMATCH.
98365         (EXTRA_DIST): Renamed from lib_SOURCES, for
98366         consistency with the other modules.  Remove argmatch.c.
98367         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98368         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98369         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98370         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98371         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98372         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98373         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98374         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98375         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98376         * modules/closeout (EXTRA_DIST): Add closeout.h.
98377         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98378         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98379         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98380         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98381         dirname.h; remove basename.c and stripslash.c.
98382         * modules/exclude (EXTRA_DIST): Add exclude.h.
98383         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98384         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98385         * modules/file-type (EXTRA_DIST): Add file-type.h.
98386         * modules/filemode (EXTRA_DIST): Add filemode.h.
98387         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98388         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98389         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98390         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98391         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98392         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98393         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98394         * modules/getdate (EXTRA_DIST): Add getdate.c.
98395         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98396         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98397         * modules/getpass (EXTRA_DIST): Add getpass.h.
98398         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98399         * modules/group-member (EXTRA_DIST): Add group-member.h.
98400         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98401         * modules/hash (EXTRA_DIST): Add hash.h.
98402         * modules/human (EXTRA_DIST): Add human.h.
98403         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98404         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98405         * modules/lchown (EXTRA_DIST): Add lchown.h.
98406         * modules/long-options (EXTRA_DIST): Add long-options.h.
98407         * modules/lstat (EXTRA_DIST): Add lstat.h.
98408         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98409         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98410         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98411         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98412         * modules/memxor (EXTRA_DIST): Add memxor.h.
98413         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98414         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98415         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98416         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98417         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98418         * modules/physmem (EXTRA_DIST): Add physmem.h.
98419         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98420         * modules/posixver (EXTRA_DIST): Add posixver.h.
98421         * modules/quote (EXTRA_DIST): Add quote.h.
98422         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98423         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98424         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98425         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98426         regex_internal.h regexec.c.
98427         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98428         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98429         * modules/same (EXTRA_DIST): Add same.h.
98430         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98431         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98432         * modules/savedir (EXTRA_DIST): Add savedir.h.
98433         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98434         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98435         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98436         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98437         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98438         * modules/strdup (EXTRA_DIST): Add strdup.h.
98439         * modules/strftime (EXTRA_DIST): Add strftime.h.
98440         * modules/strndup (EXTRA_DIST): Add strndup.h.
98441         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98442         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98443         * modules/time_r (EXTRA_DIST): Add time_r.h.
98444         * modules/timespec (EXTRA_DIST): Add timespec.h.
98445         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98446         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98447         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98448         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98449         * modules/userspec (EXTRA_DIST): Add userspec.h.
98450         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98451         * modules/utimens (EXTRA_DIST): Add utimens.h.
98452         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98453         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98454         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98455         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98456         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98457         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98458         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98459         * modules/yesno (EXTRA_DIST): Add yesno.h.
98461 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98465         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98466         * m4/dev-ino.m4, same-inode.m4: Remove.
98468         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98469         * m4/acl.m4 (AC_FUNC_ACL):
98470         * m4/backupfile.m4 (gl_BACKUPFILE):
98471         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98472         * m4/canon-host.m4 (gl_CANON_HOST):
98473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98475         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98476         * m4/cloexec.m4 (gl_CLOEXEC):
98477         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98478         * m4/closeout.m4 (gl_CLOSEOUT):
98479         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98480         * m4/dirname.m4 (gl_DIRNAME):
98481         * m4/exclude.m4 (gl_EXCLUDE):
98482         * m4/exitfail.m4 (gl_EXITFAIL):
98483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98484         * m4/file-type.m4 (gl_FILE_TYPE):
98485         * m4/filemode.m4 (gl_FILEMODE):
98486         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98487         * m4/fpending.m4 (gl_FUNC_FPENDING):
98488         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98489         * m4/fts.m4 (gl_FUNC_FTS):
98490         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98491         * m4/getdate.m4 (gl_GETDATE):
98492         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98493         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98494         * m4/getpass.m4 (gl_FUNC_GETPASS):
98495         * m4/gettime.m4 (gl_GETTIME):
98496         * m4/getugroups.m4 (gl_GETUGROUPS):
98497         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98498         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98499         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98500         * m4/hash.m4 (gl_HASH):
98501         * m4/idcache.m4 (gl_IDCACHE):
98502         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98503         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98504         * m4/long-options.m4 (gl_LONG_OPTIONS):
98505         * m4/lstat.m4 (gl_FUNC_LSTAT):
98506         * m4/md5.m4 (gl_MD5):
98507         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98508         * m4/memcoll.m4 (gl_MEMCOLL):
98509         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98510         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98511         * m4/memxor.m4 (gl_MEMXOR):
98512         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98513         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98514         * m4/modechange.m4 (gl_MODECHANGE):
98515         * m4/mountlist.m4 (gl_MOUNTLIST):
98516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98517         * m4/openat.m4 (gl_FUNC_OPENAT):
98518         * m4/pathmax.m4 (gl_PATHMAX):
98519         * m4/physmem.m4 (gl_PHYSMEM):
98520         * m4/posixtm.m4 (gl_POSIXTM):
98521         * m4/posixver.m4 (gl_POSIXVER):
98522         * m4/quote.m4 (gl_QUOTE):
98523         * m4/quotearg.m4 (gl_QUOTEARG):
98524         * m4/readtokens.m4 (gl_READTOKENS):
98525         * m4/readutmp.m4 (gl_READUTMP):
98526         * m4/regex.m4 (gl_REGEX):
98527         * m4/safe-read.m4 (gl_SAFE_READ):
98528         * m4/safe-write.m4 (gl_SAFE_WRITE):
98529         * m4/same.m4 (gl_SAME):
98530         * m4/save-cwd.m4 (gl_SAVE_CWD):
98531         * m4/savedir.m4 (gl_SAVEDIR):
98532         * m4/settime.m4 (gl_SETTIME):
98533         * m4/sha1.m4 (gl_SHA1):
98534         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98535         * m4/stat-macros.m4 (gl_STAT_MACROS):
98536         * m4/stat-time.m4 (gl_STAT_TIME):
98537         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98538         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98539         * m4/strdup.m4 (gl_FUNC_STRDUP):
98540         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98541         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98542         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98543         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98544         * m4/time_r.m4 (gl_TIME_R):
98545         * m4/timespec.m4 (gl_TIMESPEC):
98546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98547         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98548         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98549         * m4/userspec.m4 (gl_USERSPEC):
98550         * m4/utimecmp.m4 (gl_UTIMECMP):
98551         * m4/utimens.m4 (gl_UTIMENS):
98552         * m4/xalloc.m4 (gl_XALLOC):
98553         * m4/xgetcwd.m4 (gl_XGETCWD):
98554         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98555         * m4/xreadlink.m4 (gl_XREADLINK):
98556         * m4/xstrtod.m4 (gl_XSTRTOD):
98557         * m4/yesno.m4 (gl_YESNO):
98558         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98559         to get the necessary .h files and whatnot.
98561 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98562             Bruno Haible  <bruno@clisp.org>
98564         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98565         /bin/sh understanding of '!' conditional negation.
98567 2006-08-21  Jim Meyering  <jim@meyering.net>
98569         * modules/openat (Depends-on): Really alphabetize.
98571         * modules/acl (Depends-on): Add error and quote.
98573         * check-module (find_included_lib_files): Add at-func.c to the
98574         ok-to-include-more-than-once white list.
98576         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98578 2006-08-21  Bruno Haible  <bruno@clisp.org>
98580         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98581         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98582         Reported by Martin Lambers <marlam@marlam.de>.
98584 2006-08-21  Bruno Haible  <bruno@clisp.org>
98586         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98587         specify an installation location, don't emit a noinst_LIBRARIES or
98588         noinst_LTLIBRARIES assignment.
98590 2006-08-21  Bruno Haible  <bruno@clisp.org>
98592         BeOS portability.
98593         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98594         BeOS has mbrtowc() but no <wctype.h>.
98596 2006-08-21  Bruno Haible  <bruno@clisp.org>
98598         BeOS portability.
98599         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98600         exist.
98602 2006-08-21  Bruno Haible  <bruno@clisp.org>
98604         BeOS portability.
98605         * lib/mbchar.h: Include <wctype.h> only if it exists.
98607 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98609         Remove files that are no longer needed by their respective modules.
98610         * m4/obstack.m4: Remove.
98611         * m4/strerror_r.m4: Remove.
98612         * m4/uint32_t.m4: Remove.
98613         * m4/uintptr_t.m4: Remove.
98614         * m4/ullong_max.m4: Remove.
98615         * m4/xstrtoimax.m4: Remove.
98616         * m4/xstrtoumax.m4: Remove.
98618         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98619         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98620         dependencies now capture this.
98622         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98623         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98624         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98625         * m4/human.m4 (gl_HUMAN): Likewise.
98626         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98627         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98629         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98631         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98632         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98633         stdint.
98634         * m4/human.m4 (gl_HUMAN): Likewise.
98635         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98636         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98637         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98638         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98639         * m4/xstrtol (gl_XSTRTOL): Likewise.
98641         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98642         AC_TYPE_LONG_LONG_INT.
98643         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98644         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98645         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98646         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98648         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98649         on stdbool.
98651         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98652         (gl_PREREQ_XSTRTOUL): Remove.
98654         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98656         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98657         mode.
98659 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98661         Add and change modules to make it easier for coreutils to use
98662         gnulib-tool.
98663         * modules/backupfile (Files): Remove m4/d-ino.m4.
98664         (Depends-on): Add d-ino.
98665         * modules/cycle-check (Depends-on): Add stdint.
98666         (lib_SOURCES): Add cycle-check.h.
98667         * modules/d-ino: New module.
98668         * modules/d-type: New module.
98669         * modules/error (Files): Remove m4/strerror_r.m4.
98670         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98671         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98672         m4/inttypes_h.m4, m4/uintmax_t.m4.
98673         (Depends-on): Add stdint.
98674         (lib_SOURCES): Add fsusage.h.
98675         * modules/getcwd (Files): Remove d-ino.m4.
98676         (Depends-on): Add d-ino.
98677         * modules/getndelim2 (Depends-on): Add stdint.
98678         * modules/glob (Files): Remove m4/d-type.m4.
98679         (Depends-on): Add d-type.
98680         * modules/host-os: New module.
98681         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98682         m4/inttypes_h.m4, m4/uintmax_t.m4.
98683         * Depends-on: Add stdint.
98684         (lib_SOURCES): Add human.h.
98685         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98686         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98687         m4/uintmax_t.m4, m4/ulonglong.m4.
98688         (Depends-on): Add stdint.
98689         (EXTRA_DIST): Add inttostr.h.
98690         * modules/lchmod: New module.
98691         * modules/link-follow: New module.
98692         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98693         (Depends-on): Add lchmod.
98694         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98695         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98696         (Depends-on): Add stdint.
98697         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98698         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98699         (Depends-on): Add stdint.
98700         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98701         * modules/perl: New module.
98702         * modules/regex (Depends-on): Add stdint.
98703         * modules/rmdir-errno: New module.
98704         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98705         m4/intmax_t.m4.
98706         (Depends-on): Add stdint.
98707         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98708         m4/uintmax_t.m4.
98709         (Depends-on): Add stdint.
98710         * modules/unlink-busy: New module.
98711         * modules/utimecmp (Depends-on): Add stdint.
98712         * modules/uptime: New module.
98713         * modules/winsz-ioctl: New module.
98714         * modules/winsz-termios: New module.
98715         * modules/xnanosleep (Depends-on): Add nanosleep.
98716         * modules/ullong_max: Remove.
98717         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98718         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98719         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98720         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98721         (Depends-on): Add inttypes.
98722         (lib_SOURCES): Add xstrtol.h.
98723         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98724         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98725         * MODULES.html.sh: Move 'assert' into the assert section.
98726         Move 'dummy' into the linking section.
98727         Remove ullong_max.
98728         Add section for compatibility checks for POSIX:2001 functions,
98729         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98730         winsz-ioctl, and winsz-termios into it.
98731         Add lchmod.
98732         Add top-level Misc section and put host-os, perl, and uptime
98733         into it.
98735 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98737         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98738         now assume the stdint module.  Do not include inttypes.h.
98739         * lib/fsusage.h: Likewise.
98740         * lib/getndelim2.c: Likewise.
98741         * lib/human.h: Likewise.
98742         * lib/inttostr.h: Likewise.
98743         * lib/obstack.c: Likewise.
98744         * lib/regex_internal.h: Likewise.
98745         * lib/tempname.c: Likewise.
98746         * lib/utimecmp.c: Likewise.
98747         * lib/xstrtol.h: Likewise.
98749         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98751         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98752         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98753         * lib/xtime.h: Likewise.
98755 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98757         * modules/openat (Files): Add lib/fchmodat.c.
98758         Fixes problem reported by Jay Youngman.
98760 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98762         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98763         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98765 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98766             Bruno Haible  <bruno@clisp.org>
98768         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98769         and is a script that invokes bison. Tighten the code. Add comments.
98771 2006-08-18  Jim Meyering  <jim@meyering.net>
98773         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98774         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98775         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98776         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98778 2006-08-18  Bruno Haible  <bruno@clisp.org>
98780         * modules/bison-i18n: New file.
98781         * MODULES.html.sh (Internationalization functions): Add it.
98783 2006-08-18  Bruno Haible  <bruno@clisp.org>
98785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98786         sys/statvfs.h. When getmntinfo was found, check its declaration and
98787         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98789 2006-08-18  Bruno Haible  <bruno@clisp.org>
98791         * m4/bison-i18n.m4: New file, from bison.
98793 2006-08-18  Bruno Haible  <bruno@clisp.org>
98795         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98796         (ME_DUMMY): Treat "kernfs" as a dummy.
98797         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98799 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98801         Update from coreutils.
98803         2006-08-15  Jim Meyering  <jim@meyering.net>
98805         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98807         2006-01-17  Jim Meyering  <jim@meyering.net>
98809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98811         2006-01-11  Jim Meyering  <jim@meyering.net>
98813         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98814         Check for the lchmod function.
98816 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98818         Update from coreutils.
98820         * lib/__fpending.h: Add copyright notice.
98821         * lib/fprintftime.h: Likewise.
98822         * lib/savedir.c: Use (C) in copyright notice.
98823         * lib/savedir.h: Likewise.
98825         2006-08-15  Jim Meyering  <jim@meyering.net>
98827         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98828         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98829         in support of the EXPECTED_ERRNO macro.
98830         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98831         definitions.  Instead, define the appropriate symbols and include
98832         "at-func.c".
98833         * lib/mkdirat.c (mkdirat): Likewise.
98834         * lib/fchmodat.c (fchmodat): Likewise.
98835         (ENOSYS): Remove definition.
98836         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98837         it.  Don't include "unistd--.h" -- it wasn't ever used.
98839         2006-01-17  Jim Meyering  <jim@meyering.net>
98841         Rewrite fts.c not to change the current working directory,
98842         by using openat, fstatat, fdopendir, etc..
98844         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98845         (HAVE_OPENAT_SUPPORT): Define.
98846         [_LIBC] (fchdir): Don't undef or define; no longer used.
98847         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98848         Now, this `function' always succeeds, and consumes its file descriptor
98849         parameter -- so callers must not close such FDs.  Update callers.
98850         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98851         (diropen): Add parameter, SP.  Adjust all callers.
98852         Implement using diropen_fd, rather than open.
98853         (fts_open): Initialize new member, fts_cwd_fd.
98854         Remove fts_rft-setting code.
98855         (fts_close): Close fts_cwd_fd, if necessary.
98856         (__opendir2): Define in terms of opendir or opendirat,
98857         depending on whether the FST_NOCHDIR flag is set.
98858         (fts_build): Since fts_safe_changedir consumes its FD, and since
98859         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98860         and close the dup'd file descriptor upon failure.
98861         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98862         (fts_safe_changedir): Tweak semantics to reflect that this function
98863         now calls cwd_advance_fd and hence consumes its FD argument.
98864         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98865         [struct FTS] (fts_rft): Remove now-unused member.
98866         [struct FTS] (fts_cycle.state): Improve comment.
98868         * lib/openat.c (openat_needs_fchdir): New function.
98869         * lib/openat.h (openat_needs_fchdir): Declare it.
98871 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98873         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98874         Problem and fix reported by Pádraig Brady in
98875         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98877 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98879         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98881 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98883         * lib/memcoll.c (memcoll): Optimize for the common case where the
98884         arguments are bytewise equal.
98886 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98888         * doc/regexprops-generic.texi: Add a copyright notice.
98890 2006-08-15  Bruno Haible  <bruno@clisp.org>
98892         * modules/tmpdir (License): Change to LGPL.
98894 2006-08-15  Bruno Haible  <bruno@clisp.org>
98896         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98897         module.
98899 2006-08-14  Simon Josefsson  <jas@extundo.com>
98901         * config/srclist.txt: Add gnupload.
98903 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98905         Change copyright notice from LGPL 2 to GPL 2, since that's the
98906         standard form used in the gnulib repository.
98907         * tests/test-lock.c: Likewise.
98908         * tests/test-stdint.c: Likewise.
98909         * tests/test-tls.c: Likewise.
98911         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98912         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98913         Add copyright notice.
98915         * check-module: Add copyright notice.  Output a copyright
98916         notice if "--version" is specified.
98917         * modules/COPYING: New file.
98918         * tests/test-getaddrinfo.c: Add copyright notice.
98919         * tests/test-verify.c: Likewise.
98921 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98923         Change copyright notice from LGPL 2 to GPL 2, since that's the
98924         standard form used in the gnulib repository.
98925         * lib/lock.c: LGPL -> GPL.
98926         * lib/lock.h: Likewise.
98927         * lib/strnlen1.c: Likewise.
98928         * lib/strnlen1.h: Likewise.
98929         * lib/tls.c: Likewise.
98930         * lib/tls.h: Likewise.
98931         * lib/tmpdir.c: Likewise.
98933         * lib/TODO: Remove; this belongs only in coreutils.
98935 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98937         Add copyright notices to long-enough files that lack them, since
98938         otherwise the files aren't clearly free.  Use the same notice that
98939         getdate.texi already uses.
98940         * doc/alloca-opt.texi: Add copyright notice.
98941         * doc/alloca.texi: Likewise.
98942         * doc/ctime.texi: Likewise.
98943         * doc/functions.texi: Likewise.
98944         * doc/gcd.texi: Likewise.
98945         * doc/gnulib-tool.texi: Likewise.
98946         * doc/inet_ntoa.texi: Likewise.
98947         * doc/visibility.texi: Likewise.
98949         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98950         * doc/quote.texi: Add copyright notice.
98952         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98953         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98954         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98955         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98956         is now obsolete, and give a pointer to the Sun list.
98957         Add copyright notice.
98959 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98961         * config/srclistvars.sh: Add copyright notice.
98963 2006-08-14  Eric Blake  <ebb9@byu.net>
98965         Import the following change from libc:
98967         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98969         Upstream bug 2997.
98970         * lib/misc/error.c: Add space between program name and message if file
98971         name is missing.
98973 2006-08-12  Karl Berry  <karl@gnu.org>
98975         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98976         remove, these originate in gnulib now.
98978 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98980         * doc/Makefile (standards.info standards.html standards.dvi):
98981         Also depend on make-stds.texi.
98983 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98985         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98986         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98988         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98989         in wchar_t.  Problem reported by Eric Blake.
98991         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98992         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98993         Also, help the compiler to keep LEN in a register.
98995 2006-08-11  Eric Blake  <ebb9@byu.net>
98997         * users.txt: Sort.  Add tar.
98999 2006-08-11  Bruno Haible  <bruno@clisp.org>
99001         * users.txt: New file.
99003 2006-08-11  Bruno Haible  <bruno@clisp.org>
99005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
99006         before <wchar.h>. Needed for OSF/1 and BSD/OS.
99008 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99010         * modules/snprintf (Depends-on): Remove minmax.
99011         (Maintainer): Add self and Bruno.
99013 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99015         * lib/.cppi-disable: Add snprintf.h, socket_.h.
99016         * lib/snprintf.c: Include <errno.h> and <limits.h>.
99017         (EOVERFLOW): Define if the system does not.
99018         Do not include "minmax.h"; it wasn't used.
99019         (snprintf): Don't assume size_t promotes to an unsigned type.
99020         Fix bug when generated string was too long for the buffer: the
99021         buffer's contents are supposed to be the initial prefix of the
99022         output.  Don't assume vasnprintf returns EOVERFLOW if the size
99023         exceeds INT_MAX; do the check ourselves.
99025         Import the following changes from libc:
99027         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
99029         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
99030         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
99031         set wc to the byte which couldn't be converted.
99032         (re_string_reconstruct): Don't clear valid_raw_len before calling
99033         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
99034         tip_context using re_string_context_at.
99036         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
99038         * lib/posix/regex.h: g++ still cannot handled [restrict].
99040         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
99042         * lib/posix/regex.h: Remove special handling for VMS.
99044 2006-08-10  Jim Meyering  <jim@meyering.net>
99046         * modules/same-inode: New module.
99047         * modules/dev-ino: New module.
99048         * modules/cycle-check: Depend on these modules, rather than simply
99049         including their .h files.
99050         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
99051         required via m4/cycle-check.m4.
99052         * modules/same: Depend on new same-inode module, rather than
99053         including same-inode.h.
99054         * modules/chdir-safer: New file.
99056         * modules/chown (Depends-on): Add stat-macros.
99058 2006-08-10  Jim Meyering  <jim@meyering.net>
99060         * m4/cycle-check.m4: New file.
99061         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
99062         * m4/dev-ino.m4, m4/same-inode.m4: New files.
99064 2006-08-10  Eric Blake  <ebb9@byu.net>
99066         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
99067         in from original proposal.
99069 2006-08-10  Eric Blake  <ebb9@byu.net>
99070         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
99072         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
99073         namespace.
99075 2006-08-10  Bruno Haible  <bruno@clisp.org>
99077         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
99078         as well.
99080 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99082         Sync from coreutils.
99084         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
99086         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
99087         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
99089 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99091         * modules/restrict: Remove; no longer needed now that we assume
99092         Autoconf 2.59 or later.
99093         * MODULES.html.sh: Remove 'restrict'.
99094         * modules/argp (Depends-on): Remove 'restrict'.
99095         * modules/base64 (Depends-on): Likewise.
99096         * modules/gc (Depends-on): Likewise.
99097         * modules/getaddrinfo (Depends-on): Likewise.
99098         * modules/glob (Depends-on): Likewise.
99099         * modules/inet_ntop (Depends-on): Likewise.
99100         * modules/inet_pton (Depends-on): Likewise.
99101         * modules/memxor (Depends-on): Likewise.
99102         * modules/regex (Depends-on): Likewise.
99103         * modules/strtok_r (Depends-on): Likewise.
99104         * modules/time_r (Depends-on): Likewise.
99106 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99108         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
99109         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
99110         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99111         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
99112         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
99113         * m4/memxor.m4 (gl_MEMXOR): Likewise.
99114         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
99115         gl_C_RESTRICT replaced by AC_C_RESTRICT.
99117         Merge from coreutils.
99118         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
99119         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
99120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
99121         * m4/time_r.m4 (gl_TIME_R): Likewise.
99123 2006-08-09  Karl Berry  <karl@gnu.org>
99125         * config/srclist.txt: no more gettext-tools, per Bruno.
99127 2006-08-08  Eric Blake  <ebb9@byu.net>
99129         * modules/verror: New module.
99130         * MODULES.html.sh: Document it.
99132 2006-08-08  Eric Blake  <ebb9@byu.net>
99134         * lib/verror.h, lib/verror.c: New files.
99136 2006-08-08  Eric Blake  <ebb9@byu.net>
99138         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
99139         verror_at_line output complies with GNU Coding Standards even when
99140         file is NULL.
99142 2006-08-07  Bruno Haible  <bruno@clisp.org>
99144         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
99145         versions of AIX.
99146         Reported by Ralf Wildenhues.
99148 2006-08-07  Bruno Haible  <bruno@clisp.org>
99150         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
99151         in an AC_DEFUN. Needed so that the autoconf snippets can use
99152         AC_REQUIRE.
99154 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99157         Initialize pkgdata_DATA.
99158         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
99159         overriding it.
99161 2006-08-06  Eric Blake  <ebb9@byu.net>
99163         * lib/error.h: Fold in some upstream changes from glibc.
99164         * lib/error.c: Likewise.
99166 2006-08-04  Bruno Haible  <bruno@clisp.org>
99168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99169         Make the mostlyclean-local rule depend on mostlyclean-generic.
99170         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
99172 2006-07-31  Bruno Haible  <bruno@clisp.org>
99174         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
99175         <stdlib.h>, <string.h>.
99177 2006-07-30  Bruno Haible  <bruno@clisp.org>
99179         * modules/readlink (License): Change to LGPL.
99181 2006-07-30  Bruno Haible  <bruno@clisp.org>
99183         * modules/javaversion (Makefile.am): Distribute javaversion.java and
99184         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
99185         set PKGDATADIR to point to it.
99187 2006-07-30  Bruno Haible  <bruno@clisp.org>
99189         * modules/csharpexec (configure.ac): Comment out macro invocation.
99190         * modules/javaexec (configure.ac): Likewise.
99191         * modules/javacomp-script (configure.ac): Likewise.
99193         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
99195 2006-07-30  Bruno Haible  <bruno@clisp.org>
99197         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
99198         linked-list.
99200 2006-07-30  Bruno Haible  <bruno@clisp.org>
99202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
99204 2006-07-30  Bruno Haible  <bruno@clisp.org>
99206         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99207         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
99208         get removed.
99210 2006-07-29  Bruno Haible  <bruno@clisp.org>
99212         Make it possible for gnulib-tool to work with locally modified or
99213         augmented gnulib repositories.
99214         * gnulib-tool (func_usage): Document --local-dir option.
99215         (local_gnulib_dir): New variable.
99216         Handle --local-dir option.
99217         (func_lookup_file): New function.
99218         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
99219         (func_get_description, func_get_filelist, func_get_description,
99220         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
99221         func_get_automake_snippet, func_get_include_directive,
99222         func_get_license, func_get_maintainer): Use func_lookup_file.
99223         (func_import, func_create_testdir): Use func_lookup_file.
99225 2006-07-29  Bruno Haible  <bruno@clisp.org>
99227         * modules/setenv (Depends-on): Add unistd.
99229 2006-07-29  Bruno Haible  <bruno@clisp.org>
99231         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
99233 2006-07-29  Bruno Haible  <bruno@clisp.org>
99235         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
99237 2006-07-29  Bruno Haible  <bruno@clisp.org>
99239         * gnulib-tool (import, update): If there is no Makefile.am, look at
99240         aclocal.m4, instead of bailing out.
99242 2006-07-29  Bruno Haible  <bruno@clisp.org>
99244         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
99245         Categorize the options by when they are useful.
99247 2006-07-29  Bruno Haible  <bruno@clisp.org>
99249         * gnulib-tool (func_usage): Document option --no-libtool.
99250         Handle option --no-libtool.
99251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
99252         for changed semantics of $libtool variable.
99253         (func_import): Likewise. If libtool is not used, show this through
99254         an option --no-libtool.
99255         (func_create_testdir): Update.
99257 2006-07-29  Bruno Haible  <bruno@clisp.org>
99259         * gnulib-tool (func_import): Extend error message about missing
99260         --doc-base.
99262 2006-07-29  Bruno Haible  <bruno@clisp.org>
99264         * gnulib-tool (func_import): Don't create the $docbase directory if
99265         there is no file to store there.
99267 2006-07-29  Bruno Haible  <bruno@clisp.org>
99269         * gnulib-tool (autoconf_minversion): If a --dir option is given and
99270         relevant, look for configure.ac there, not in the current directory.
99271         Also use a simple search for AC_PREREQ, not "autoconf --trace".
99273 2006-07-29  Bruno Haible  <bruno@clisp.org>
99275         * gnulib-tool (SORT): New variable.
99276         (func_usage): Undocument --assume-autoconf option.
99277         Remove --assume-autoconf option handling.
99278         (autoconf_minversion): Determine from the contents of configure.ac.
99279         (func_import): Remove autoconf_minversion handling.
99280         Suggested by Eric Blake.
99282 2006-07-29  Bruno Haible  <bruno@clisp.org>
99284         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
99286 2006-07-29  Bruno Haible  <bruno@clisp.org>
99288         * config/srclist.txt (*setenv.[ch]): Remove rules.
99290 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99292         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
99294 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99296         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
99297         arpa/inet.h.
99299 2006-07-28  Simon Josefsson  <jas@extundo.com>
99301         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
99302         * modules/inet_pton (Depends-on): Likewise.
99304 2006-07-28  Simon Josefsson  <jas@extundo.com>
99306         * m4/netinet_in_h.m4: New file.
99308 2006-07-28  Simon Josefsson  <jas@extundo.com>
99310         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
99311         #include's.
99313 2006-07-28  Simon Josefsson  <jas@extundo.com>
99315         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
99316         #include's.
99318 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
99320         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
99321         setgid on directories only if they set these bits.
99322         * lib/modechange.h: Remove obsolete comment about masks.
99324 2006-07-28  Eric Blake  <ebb9@byu.net>
99326         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
99327         macro expansion.
99329 2006-07-28  Bruno Haible  <bruno@clisp.org>
99331         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
99333 2006-07-28  Bruno Haible  <bruno@clisp.org>
99335         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
99337 2006-07-28  Bruno Haible  <bruno@clisp.org>
99339         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
99340         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
99341         Define fallbacks.
99342         Avoids link error on FreeBSD 4.x.
99343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99345         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
99346         encoding.
99347         * lib/mbswidth.c (iswcntrl): Likewise.
99349 2006-07-27  Bruno Haible  <bruno@clisp.org>
99351         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
99352         test.
99354 2006-07-27  Bruno Haible  <bruno@clisp.org>
99356         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99357         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99358         defined.
99360 2006-07-26  Eric Blake  <ebb9@byu.net>
99362         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99364 2006-07-26  Eric Blake  <ebb9@byu.net>
99366         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99367         like mingw that lack mkstemp.
99368         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99369         avoid compilation warning on mingw.
99371 2006-07-26  Bruno Haible  <bruno@clisp.org>
99373         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99374         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99375         INT_FAST*_MIN, INTPTR_MIN.
99377 2006-07-25  Bruno Haible  <bruno@clisp.org>
99379         * modules/version-etc (Depends-on): Add stdarg.
99381 2006-07-25  Bruno Haible  <bruno@clisp.org>
99383         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99384         complex commands.
99386 2006-07-25  Bruno Haible  <bruno@clisp.org>
99388         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99389         defined in <stdarg.h> or config.h.
99391 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99393         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99394         (gl_STDIO_SAFER): Remove.
99396 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99398         * MODULES.html.sh (File stream based Input/Output):
99399         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99400         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99401         * modules/fopen-safer, modules/tmpfile-safer: New files.
99402         * modules/stdio-safer: Remove.
99404 2006-07-24  Bruno Haible  <bruno@clisp.org>
99406         * modules/tmpdir: New file.
99407         * MODULES.html.sh (File system functions): Add it.
99409 2006-07-24  Bruno Haible  <bruno@clisp.org>
99411         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99412         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99414 2006-07-24  Bruno Haible  <bruno@clisp.org>
99416         * modules/clean-temp: New file.
99418 2006-07-24  Bruno Haible  <bruno@clisp.org>
99420         * m4/tmpdir.m4: New file, from GNU gettext.
99422 2006-07-24  Bruno Haible  <bruno@clisp.org>
99424         * lib/tmpdir.h: New file, from GNU gettext.
99425         * lib/tmpdir.c: New file, from GNU gettext.
99427 2006-07-24  Bruno Haible  <bruno@clisp.org>
99429         * lib/clean-temp.h: New file, from GNU gettext.
99430         * lib/clean-temp.c: New file, from GNU gettext.
99432 2006-07-23  Eric Blake  <ebb9@byu.net>
99434         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99435         (Depends-on): Add binary-io.
99437 2006-07-23  Eric Blake  <ebb9@byu.net>
99439         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99441 2006-07-23  Eric Blake  <ebb9@byu.net>
99443         * lib/tmpfile-safer.c: New file.
99444         * lib/stdio-safer.h (fopen_safer): Add prototype.
99445         * lib/stdio--.h (tmpfile): Make safer.
99447 2006-07-23  Bruno Haible  <bruno@clisp.org>
99449         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99450         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99451         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99452         gl_linked_remove_at): Use it.
99454 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99455         and Simon Josefsson <jas@extundo.com>
99457         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99459         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99461 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99463         * modules/close-stream: New file.
99464         * modules/closeout (Description): Make it clear that it exits
99465         with a diagnostic on error.
99466         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99467         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99469 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99471         * m4/close-stream.m4: New file.
99473 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99475         * lib/close-stream.c, lib/close-stream.h: New files.
99477 2006-07-22  Bruno Haible  <bruno@clisp.org>
99479         Merge from GNU gettext 0.15.
99481         2006-05-01  Bruno Haible  <bruno@clisp.org>
99483                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99485         2006-07-22  Bruno Haible  <bruno@clisp.org>
99487                 * modules/javaversion: New file.
99488                 * MODULES.html.sh (Java): Add javaversion.
99490         2006-03-12  Bruno Haible  <bruno@clisp.org>
99492                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99494         2005-12-04  Bruno Haible  <bruno@clisp.org>
99496                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99497                 (untested).
99499         2006-06-21  Bruno Haible  <bruno@clisp.org>
99501                 Avoid warnings from recent versions of mcs.
99502                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99503                 -o, -L, -r any more. Use options documented since mcs-1.0
99504                 instead. Similarly for -g.
99506         2005-12-04  Bruno Haible  <bruno@clisp.org>
99508                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99509                 .resources, not .resource.
99511         2005-07-09  Bruno Haible  <bruno@clisp.org>
99513                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99514                 add a .dll suffix.
99515                 Reported by Mark Junker <mjscod@gmx.de>.
99517         2006-07-22  Bruno Haible  <bruno@clisp.org>
99519                 * modules/gettext: Upgrade to gettext-0.15.
99520                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99521                 m4/visibility.m4.
99522                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99524 2006-07-22  Bruno Haible  <bruno@clisp.org>
99526         Merge from GNU gettext 0.15.
99528         2006-03-25  Bruno Haible  <bruno@clisp.org>
99530                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99532         2006-07-21  Bruno Haible  <bruno@clisp.org>
99534                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99535                 "1.1".
99537         2006-05-09  Bruno Haible  <bruno@clisp.org>
99539                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99540                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99541                 for the conftestver execution.
99543         2006-05-01  Bruno Haible  <bruno@clisp.org>
99545                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99546                 optional target-version argument. Verify that the compiler
99547                 groks source of the specified source-version, or add -source
99548                 option as necessary. Verify that the compiler produces
99549                 bytecode in the specified target-version, or add -target and
99550                 -source options as necessary. Make the result of the test
99551                 available as variable CONF_JAVAC. Also log error output in
99552                 config.log.
99554         2006-03-11  Bruno Haible  <bruno@clisp.org>
99556                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99558         2006-05-09  Bruno Haible  <bruno@clisp.org>
99560                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99561                 CLASSPATH_SEPARATOR to a semicolon.
99563         2006-03-12  Bruno Haible  <bruno@clisp.org>
99565                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99566                 available as variable CONF_JAVA, for subsequent autoconf
99567                 tests. Also log error output in config.log.
99569         2006-07-19  Bruno Haible  <bruno@clisp.org>
99571                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99572                 that getline works on glibc2 systems. Needed to avoid trouble
99573                 in relocatable.c.
99574                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99576         2005-12-04  Bruno Haible  <bruno@clisp.org>
99578                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99579                 launcher (untested).
99581         2005-12-04  Bruno Haible  <bruno@clisp.org>
99583                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99585         2006-07-22  Bruno Haible  <bruno@clisp.org>
99587                 * gettext.m4: Update from GNU gettext-0.15.
99588                 * nls.m4: Likewise.
99589                 * po.m4: Likewise.
99590                 * inttypes-pri.m4: Likewise.
99591                 * inttypes-h.m4: Renamed from inttypes.m4.
99592                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99594 2006-07-22  Bruno Haible  <bruno@clisp.org>
99596         Merge from GNU gettext 0.15.
99598         2005-07-05  Bruno Haible  <bruno@clisp.org>
99600                 * printf-args.c (printf_fetchargs): Work around broken
99601                 definition of wint_t on mingw.
99603         2005-02-12  Bruno Haible  <bruno@clisp.org>
99605                 * xallocsa.h: Add extern "C" for C++.
99607         2006-05-17  Bruno Haible  <bruno@clisp.org>
99609                 Cygwin portability.
99610                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99612         2006-04-30  Bruno Haible  <bruno@clisp.org>
99614                 * progreloc.c: Include <mach-o/dyld.h> if available.
99615                 (find_executable): Use _NSGetExecutablePath when possible.
99617         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99619                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99620                 function.
99622         2005-12-29  Bruno Haible  <bruno@clisp.org>
99624                 * progreloc.c (set_program_name_and_installdir): Fix
99625                 compilation error.
99627         2005-12-04  Bruno Haible  <bruno@clisp.org>
99629                 Cygwin portability.
99630                 * progreloc.c: Include <windows.h> also on Cygwin.
99631                 (find_executable): Add support for Cygwin.
99632                 (set_program_name_and_installdir): Handle also platforms with
99633                 nonempty EXEEXT.
99635         2006-07-11  Bruno Haible  <bruno@clisp.org>
99637                 * javacomp.c: Fix a comment.
99638                 Reported by Jim Meyering.
99640         2006-04-30  Bruno Haible  <bruno@clisp.org>
99642                 * javacomp.h (compile_java_class): Add source_version,
99643                 target_version arguments.
99644                 * javacomp.c: Rewritten to choose only a compiler that
99645                 respects the specified source_version and target_version.
99647         2006-06-27  Bruno Haible  <bruno@clisp.org>
99649                 Assume correct S_ISDIR macro.
99650                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99652         2006-07-22  Bruno Haible  <bruno@clisp.org>
99654                 * javaversion.h: New file, from GNU gettext.
99655                 * javaversion.c: New file, from GNU gettext.
99656                 * javaversion.java: New file, from GNU gettext.
99657                 * javaversion.class: New file, from GNU gettext.
99659         2006-05-17  Bruno Haible  <bruno@clisp.org>
99661                 Cygwin portability.
99662                 * javaexec.c (execute_java_class): Test for jview program
99663                 also on Cygwin.
99665         2006-04-09  Bruno Haible  <bruno@clisp.org>
99667                 * fatal-signal.c: Don't include string.h.
99668                 (at_fatal_signal): Use a copying loop instead of memcpy.
99670         2005-12-04  Bruno Haible  <bruno@clisp.org>
99672                 * csharpexec.c: Add support for 'clix' launcher (untested).
99673                 (execute_csharp_using_sscli): New function.
99674                 (execute_csharp_program): Call it.
99676         2006-06-21  Bruno Haible  <bruno@clisp.org>
99678                 Avoid warnings from recent versions of mcs.
99679                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99680                 -o, -L, -r any more. Use options documented since mcs-1.0
99681                 instead. Similarly for -g.
99683         2005-07-09  Bruno Haible  <bruno@clisp.org>
99685                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99686                 add a .dll suffix.
99687                 Reported by Mark Junker <mjscod@gmx.de>.
99689         2006-06-17  Bruno Haible  <bruno@clisp.org>
99691                 * config.charset: Update for NetBSD 3.0.
99693         2006-05-17  Bruno Haible  <bruno@clisp.org>
99695                 Cygwin portability.
99696                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99698         2006-05-16  Bruno Haible  <bruno@clisp.org>
99700                 * localcharset.c [CYGWIN]: Include <windows.h>.
99701                 (get_charset_aliases): For Cygwin, return the same CPxxx
99702                 aliases list as under WIN32.
99703                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99704                 the environment variables. Fall back to GetACP().
99706         2006-04-05  Bruno Haible  <bruno@clisp.org>
99708                 * config.charset: Update Juan Manuel Guerrero's address.
99710         2005-02-12  Bruno Haible  <bruno@clisp.org>
99712                 * allocsa.h: Add extern "C" for C++.
99714         2005-02-10  Bruno Haible  <bruno@clisp.org>
99716                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99717                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99719         2006-07-22  Bruno Haible  <bruno@clisp.org>
99721                 * gettext.h: Update to GNU gettext-0.15.
99723 2006-07-22  Bruno Haible  <bruno@clisp.org>
99725         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99726         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99727         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99729 2006-07-21  Eric Blake  <ebb9@byu.net>
99731         * modules/stdlib-safer: New file.
99732         * MODULES.html.sh (File stream based Input/Output): Add
99733         stdlib-safer.
99735 2006-07-21  Eric Blake  <ebb9@byu.net>
99737         * lib/stdlib-safer.h: New file from coreutils, required by
99738         stdlib--.h.
99740 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99742         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99744 2006-07-20  Bruno Haible  <bruno@clisp.org>
99746         * gnulib-tool: Recognize new option --assume-autoconf.
99747         (autoconf_minversion): New variable.
99748         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99750 2006-07-20  Bruno Haible  <bruno@clisp.org>
99752         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99754 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99756         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99757         Reindent and repaginate.
99759 2006-07-19  Derek Price  <derek@ximbiot.com>
99761         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99762         Correct grammar.
99764 2006-07-17  Bruno Haible  <bruno@clisp.org>
99766         * modules/list: New file.
99767         * modules/array-list: New file.
99768         * modules/carray-list, modules/carray-list-tests: New files.
99769         * modules/linked-list, modules/linked-list-tests: New files.
99770         * modules/avltree-list, modules/avltree-list-tests: New files.
99771         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99772         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99773         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99774         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99775         * modules/oset: New file.
99776         * modules/array-oset: New file.
99777         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99778         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99779         * tests/test-carray_list.c: New file.
99780         * tests/test-linked_list.c: New file.
99781         * tests/test-avltree_list.c: New file.
99782         * tests/test-rbtree_list.c: New file.
99783         * tests/test-linkedhash_list.c: New file.
99784         * tests/test-avltreehash_list.c: New file.
99785         * tests/test-rbtreehash_list.c: New file.
99786         * tests/test-avltree_oset.c: New file.
99787         * tests/test-rbtree_oset.c: New file.
99788         * MODULES.html.sh (Container data structures): New section.
99790 2006-07-17  Bruno Haible  <bruno@clisp.org>
99792         * m4/gl_list.m4: New file.
99794 2006-07-17  Bruno Haible  <bruno@clisp.org>
99796         * lib/gl_list.h: New file.
99797         * lib/gl_list.c: New file.
99798         * lib/gl_array_list.h: New file.
99799         * lib/gl_array_list.c: New file.
99800         * lib/gl_carray_list.h: New file.
99801         * lib/gl_carray_list.c: New file.
99802         * lib/gl_linked_list.h: New file.
99803         * lib/gl_linked_list.c: New file.
99804         * lib/gl_anylinked_list1.h: New file.
99805         * lib/gl_anylinked_list2.h: New file.
99806         * lib/gl_avltree_list.h: New file.
99807         * lib/gl_avltree_list.c: New file.
99808         * lib/gl_anyavltree_list1.h: New file.
99809         * lib/gl_anyavltree_list2.h: New file.
99810         * lib/gl_rbtree_list.h: New file.
99811         * lib/gl_rbtree_list.c: New file.
99812         * lib/gl_anyrbtree_list1.h: New file.
99813         * lib/gl_anyrbtree_list2.h: New file.
99814         * lib/gl_anytree_list1.h: New file.
99815         * lib/gl_anytree_list2.h: New file.
99816         * lib/gl_linkedhash_list.h: New file.
99817         * lib/gl_linkedhash_list.c: New file.
99818         * lib/gl_anyhash_list1.h: New file.
99819         * lib/gl_anyhash_list2.h: New file.
99820         * lib/gl_avltreehash_list.h: New file.
99821         * lib/gl_avltreehash_list.c: New file.
99822         * lib/gl_rbtreehash_list.h: New file.
99823         * lib/gl_rbtreehash_list.c: New file.
99824         * lib/gl_anytreehash_list1.h: New file.
99825         * lib/gl_anytreehash_list2.h: New file.
99827         * lib/gl_oset.h: New file.
99828         * lib/gl_oset.c: New file.
99829         * lib/gl_array_oset.h: New file.
99830         * lib/gl_array_oset.c: New file.
99831         * lib/gl_avltree_oset.h: New file.
99832         * lib/gl_avltree_oset.c: New file.
99833         * lib/gl_rbtree_oset.h: New file.
99834         * lib/gl_rbtree_oset.c: New file.
99835         * lib/gl_anytree_oset.h: New file.
99837 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99839         * m4/mkancesdirs.m4: New file.
99840         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99841         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99842         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99843         it.
99845 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99847         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99848         * lib/mkancesdirs.h: New files.
99849         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99850         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99851         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99852         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99853         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99854         callers changed.  Revamp internals significantly, by not
99855         attempting to create directories that are temporarily more
99856         permissive than the final results.  Do not attempt to use
99857         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99858         This removes some race conditions, fixes some bugs, and simplifies
99859         things.  Use new dirchownmod function to do owner and mode changes.
99860         * lib/mkdir-p.h: Likewise.
99861         * lib/modechange.c (octal_to_mode): New function.
99862         (struct mode_change): New member mentioned.
99863         (make_node_op_equals): New arg mentioned.  All callers changed.
99864         (mode_compile): Keep track of which mode bits the user has explicitly
99865         mentioned.
99866         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99867         New arg PMODE_BITS, to keep track of which mode bits the user
99868         mentioned; it treats S_ISUID and S_ISGID speciall.
99869         All callers changed.
99870         * lib/modechange.h: Likewise.
99872 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99874         * MODULES.html.sh: Add mkancestors.
99875         * modules/mkancesdirs: New module.
99876         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99877         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99878         The chdir-safer and afs files are now orphans; I'll remove them
99879         unless someone speaks up.
99880         Add lib/dirchownmod.c, lib/dirchownmod.h.
99881         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99882         Add lchown, mkancesdirs.
99883         (Maintainer): Add self.
99885 2006-07-15  Karl Berry  <karl@gnu.org>
99887         * gnulib-tool: help message wording/arrangement.
99889 2006-07-14  Simon Josefsson  <jas@extundo.com>
99891         * doc/gnulib.texi (Libtool and Windows): New section.
99893 2006-07-12  Simon Josefsson  <jas@extundo.com>
99895         * modules/gendocs (License): Fix license, approved by Karl.
99897 2006-07-12  Eric Blake  <ebb9@byu.net>
99899         * MODULES.html.sh: Add gendocs.
99901 2006-07-11  Eric Blake  <ebb9@byu.net>
99903         * modules/fdl: New module, to install doc/fdl.texi.
99904         * MODULES.html.sh: Add new section for documentation modules.
99905         * gnulib-tool: Avoid space-tab.
99906         (--doc-base): New option, to manage files from doc.
99908 2006-07-11  Eric Blake  <ebb9@byu.net>
99910         * m4/absolute-header.m4: Fix comments to match recent change.
99912 2006-07-11  Eric Blake  <ebb9@byu.net>
99914         * gnulib-tool: List --doc-base before --tests-base.
99916 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99918         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99920 2006-07-11  Bruno Haible  <bruno@clisp.org>
99922         * README: Mention where to put documentation.
99924 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99926         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99928 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99931         to stdint.m4.
99933 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99935         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99936         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99937         "no/such/file/stdint.h" when there is no such file, so that
99938         the resulting C code can be parsed by dodgy compilers.
99939         Problems reported by Bob Proulx.
99941 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99943         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99944         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99945         macros into the GNU _D_EXACT_NAMLEN.
99946         * lib/savedir.c:  Likewise.
99947         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99949 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99950         and Paul Eggert  <eggert@cs.ucla.edu>
99952         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99953         * m4/savedir.m4:
99954         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99955         macros into the GNU _D_EXACT_NAMLEN.
99957 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99960         around the absolute name, to work around a problem with the HP-UX
99961         11.23 native C compiler, reported by Bob Proulx.
99963 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99965         * doc/maintain.texi, make-stds.texi: Sync from
99966         <http://savannah.gnu.org/projects/gnustandards>.
99968 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99970         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99972 2006-07-09  Jim Meyering  <jim@meyering.net>
99974         * m4/glob.m4: Remove a doubled word in a comment.
99976 2006-07-09  Jim Meyering  <jim@meyering.net>
99978         * lib/argp-pv.c: Remove a doubled word in a comment.
99979         * lib/check-version.c (check_version): Likewise.
99980         * lib/javacomp.c (compile_java_class): Likewise.
99982 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99984         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99985         for the benefit of people using Autoconf 2.60.  If you want to
99986         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99987         (or m4/onceonly.m4, if pre-2.57) manually.
99989 2006-07-08  Jim Meyering  <jim@meyering.net>
99991         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99992         comment.
99993         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99994         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99995         comment.
99997 2006-07-08  Jim Meyering  <jim@meyering.net>
99999         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
100001 2006-07-07  Simon Josefsson  <jas@extundo.com>
100003         * tests/test-crc.c: Change expected crc value, the test vector
100004         were probably computed using the old broken crc.c?
100006 2006-07-06  Simon Josefsson  <jas@extundo.com>
100008         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
100009         now the canonical place for the M4 file).
100011         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
100012         from the sys_socket dependency now.
100014         * modules/inet_pton (Files): Ditto.
100016         * modules/inet_ntop (Files): Ditto.
100018 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100020         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
100021         not gl_PREREQ_GETUSERSHELL.
100023 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100025         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
100026         with only one argument, for Autoconf 2.60.
100027         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
100028         expand to nothing, so add a shell command to avoid syntax error.
100029         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100031 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100033         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
100035 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100037         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
100038         no longer needed.  Check for isblank decl.
100039         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
100040         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
100041         of existence.
100043 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100045         * lib/getloadavg.c: Use __VMS, not VMS.
100046         * lib/getopt.c: Likewise.
100047         * lib/getpagesize.h: Likewise.
100048         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
100049         and probably does not work.
100051 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100053         * lib/.cppi-disable: Add wcwidth.
100054         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
100055         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
100056         (ISGRAPH): Remove.  All uses changed to isgraph.
100057         (FOLD) [!defined _LIBC]: Remove special case.
100058         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
100059         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
100060         HAVE_ISBLANK.
100061         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
100062         case.
100064 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100066         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
100067         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
100068         brackets.  Other minor changes to suppress some compiler
100069         warnings.
100071 2006-07-06  Derek R. Price  <derek@ximbiot.com>
100072         and Paul Eggert  <eggert@cs.ucla.edu>
100074         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
100075         of invoking obsolescent AC_HEADER_DIRENT macro.
100076         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
100077         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
100078         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
100079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
100080         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
100081         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100082         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
100083         * m4/readdir.m4: Remove; no longer needed.
100085 2006-07-06  Derek R. Price  <derek@ximbiot.com>
100086         and Paul Eggert  <eggert@cs.ucla.edu>
100088         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
100089         Don't worry about this obsolete case any more.
100090         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
100091         directories.
100092         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
100093         worry about this obsolete case any more.
100094         * lib/fts.c: Likewise.
100095         * lib/getcwd.c: Likewise.
100096         * lib/glob.h: Likewise.
100097         * lib/savedir.c: Likewise.
100099 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100101         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
100102         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
100103         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
100104         needed.
100105         All uses removed.
100106         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100107         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
100108         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
100109         needed.
100110         * m4/getdate.m4 (gl_GETDATE): Likewise.
100111         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
100112         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
100113         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
100114         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100115         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
100116         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
100117         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
100118         needed.
100120 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100122         * lib/memcasecmp.c: Include <limits.h>.
100123         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
100124         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
100125         Don't assume isdigit succeeds only on '0' through '9'.
100127 2006-07-05  Eric Blake  <ebb9@byu.net>
100129         * modules/getaddrinfo (Depends-on): Add snprintf.
100131 2006-07-05  Eric Blake  <ebb9@byu.net>
100133         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
100134         to avoid 'header present but could not be compiled' on cygwin.
100136 2006-07-05  Eric Blake  <ebb9@byu.net>
100138         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
100139         missing from netdb.h.
100140         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
100142 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100144         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
100145         no longer needed.
100146         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
100147         * m4/getdate.m4 (gl_GETDATE): Likewise.
100148         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
100149         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
100150         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
100151         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100152         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
100154 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100156         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
100157         All uses of is_space replaced by isspace.
100158         * lib/exit.h: Don't talk about STDC_HEADERS.
100159         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
100160         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
100161         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
100162         replaced by isprint etc.
100163         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
100164         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100165         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
100166         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
100167         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
100168         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100170 2006-07-05  Bruno Haible  <bruno@clisp.org>
100172         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
100173         the function exists, before testing against AIX.
100174         Reported by Martin Lambers <marlam@marlam.de>.
100176 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100178         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
100179         From Mark D. Baushke.
100181 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
100184         to the absolute name, not just one, to bypass Sun C 5.8's
100185         "warning: #include of /usr/include/... may be non-portable".
100187 2006-07-04  Eric Blake  <ebb9@byu.net>
100189         * modules/dirname-tests: New test module.
100190         * tests/test-dirname.c: New file, replacing dirname.c
100191         TEST_DIRNAME section that was recently deleted.
100193 2006-07-04  Bruno Haible  <bruno@clisp.org>
100195         Assume ANSI C header files and <ctype.h> functions.
100196         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
100197         (mbsnwidth): Use isprint, iscntrl instead.
100199 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100201         Merge from coreutils.
100202         * MODULES.html.sh: Add xstrtold.
100203         * modules/xstrtold: New file.
100204         * modules/cycle-check (Files): Add lib/same-inode.h.
100205         * modules/dirname (Files): Add m4/double-slash-root.m4.
100206         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
100207         * modules/mkdir-p (Files): Add lib/same-inode.h.
100208         * modules/same (Files): Add lib/same-inode.h.
100210 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100212         * m4/absolute-header.m4: Renamed from full-header-path.m4.
100213         This is to keep the terminology clean; POSIX talks about
100214         "absolute pathnames", not "full pathnames", but the GNU
100215         Coding Standards say to use "path" for something else;
100216         so use "absolute" to keep both sides happy.
100217         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
100218         Set gl_absolute_header, not gl_full_header_path.
100219         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
100220         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
100221         All uses changed.
100223         Merge from coreutils.
100225         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100227         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
100228         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
100229         want to require the building of c-strtod.o.
100230         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
100231         needs -lm directly.
100232         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
100234         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100236         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
100237         --as-needed option if available.  Problem reported by Albert Chin in
100238         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
100239         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
100240         cc merely issues a bunch of annoying warnings for --as-needed
100241         (this problem was reported by Bob Proulx).  Also, try linking with
100242         -lm to detect a bug in binutils 2.16 (this problem was reported
100243         by Ralf Wildenhues).
100245         2006-06-18  Jim Meyering  <jim@meyering.net>
100247         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
100248         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
100249         macro.
100250         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
100251         also check for glibc-2.4's abort-inducing bug.
100253         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
100254         Low-probability clean-up should be to use rmdir to get rid of
100255         the just-created directory, not unlink.
100257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
100258         configure fail, and request a bug report to inform us about it.
100259         Add a comment that, barring reports to the contrary, in 2007 we'll
100260         assume ftruncate is universally available.
100262         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100264         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
100266         2006-03-12  Jim Meyering  <jim@meyering.net>
100268         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
100269         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
100270         * m4/same.m4 (gl_SAME): Likewise.
100271         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
100273         2006-03-11  Eric Blake  <ebb9@byu.net>
100275         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
100276         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
100277         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
100278         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
100280 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100282         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
100283         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
100284         reported by Mark D. Baushke, one in
100285         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
100287         Merge from coreutils.
100289         * lib/.cppi-disable: Add stdint_.h.
100290         * lib/.cvsignore: Add stdint.h.
100292         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100294         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
100295         both double and long double versions.
100296         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
100297         * lib/xstrtold.c: New file.
100298         * lib/xstrtod.h (xstrtold): New decl.
100300         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100302         * lib/filemode.c (setst): Remove.
100303         (strmode): Rewrite to avoid setst.  This makes the code shorter,
100304         (arguably) clearer, and the generated code is a bit smaller on my
100305         Debian GNU/Linux stable x86 host.
100307         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100309         * lib/filemode.c: Include "filemode.h" first, to test the interface.
100310         Assume that filemode.h includes sys/types.h and sys/stat.h.
100311         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
100312         (ftypelet): Reorder to put common cases first, for efficiency.
100313         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
100314         to do 'M'.
100315         (strmode): Renamed from mode_string, and now stores 12 bytes instead
100316         of 10, for compatibility with FreeBSD.  All callers changed.
100317         (filemodestring): Now stores 12 bytes instead of 10, and sets file
100318         types that can't be deduced solely from st_mode.  First arg is now a
100319         const pointer.
100320         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
100321         (strmode): Renamed from mode_string.
100322         (filemodestring): New decl.
100323         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
100324         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
100325         needed.
100326         (S_ISPORT, S_ISWHT): New macros, if not already defined.
100328         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100330         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
100331         fsusage.h now does that.  Include fsusage.h first, to test interface.
100332         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
100333         at most one method (the old code could have generated decls that
100334         didn't conform to C89, not that this was ever exercised).
100335         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
100337         2006-03-19  Jim Meyering  <jim@meyering.net>
100339         Work even in a chroot where d_ino values for entries in "/"
100340         don't match the stat.st_ino values for the same names.
100341         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
100342         number, iterate through all entries again, using lstat instead.
100343         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
100344         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
100346         * lib/getcwd.c (__getcwd): Clarify a comment.
100347         Use memcpy in place of a call to strcpy.
100349         2006-03-12  Jim Meyering  <jim@meyering.net>
100351         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
100352         matches that of the current directory (which we're about to chdir ".."
100353         out of), then save the dev-ino of the parent, instead.
100355         * lib/same-inode.h (SAME_INODE): New file/macro.
100356         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100357         Include "same-inode.h", instead.
100358         * lib/same.c: Likewise.
100359         * lib/cycle-check.h: Include "same-inode.h".
100360         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100361         * lib/cycle-check.c (SAME_INODE): Remove definition.
100362         * lib/root-dev-ino.h: Include "same-inode.h".
100364         2006-03-11  Eric Blake  <ebb9@byu.net>
100366         * lib/same.c (same_name): s/base_name/last_component/
100367         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100368         * lib/filenamecat.c (file_name_concat): Likewise.
100370         2006-03-11  Eric Blake  <ebb9@byu.net>,
100371                     Paul Eggert  <eggert@cs.ucla.edu>
100373         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100374         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100375         drive prefix.
100376         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100377         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100378         (last_component): New method.
100379         * lib/dirname.c (dir_len): Determine when drive letters need a
100380         subsequent slash.  Preserve // when it is special.
100381         (dir_name): Don't append dot when drive letter is absolute.
100382         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100383         * lib/basename.c (base_name): New semantics - malloc the result.
100384         Preserve // when it is special.  Preserve relative files that look
100385         like drive letters.
100386         (base_len): Preserve // when it is special.
100387         (last_component): New method, similar to old base_name semantics.
100388         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100389         base_name.  Strip redundant slashes from ///.
100391 2006-07-03  Jim Meyering  <jim@meyering.net>
100393         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100394         macro is used before the first cycle_check call.
100396 2006-07-03  Eric Blake  <ebb9@byu.net>
100398         * modules/dirname (Depends-on): Add xstrndup.
100400 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100402         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100403         test cases, so that config.log is a bit easier to follow.
100405 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100407         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100408         both are 64 bits, since this seems to be the tradition, and this
100409         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100410         we ever run into a host that prefers long long to long in this
100411         case, we'll need another configure-time test.  Problem reported by
100412         Jim Meyering.
100414 2006-07-02  Eric Blake  <ebb9@byu.net>
100416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100418 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100420         * modules/inttypes (Depends-on): No longer depends on stdint.
100421         * modules/stdint (Description): Say more about assumptions.
100422         Say that the fast types might differ.  Say macros are used.
100423         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100424         (Makefile.am): Revise list of substituted symbols to match
100425         new stdint.m4.
100426         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100427         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100428         * tests/test-stdint.c (verify_same_types)
100429         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100430         the code conforms to C99/C89.
100431         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100432         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100434 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100436         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100437         but fix a bug, by requiring at least 64 bits.
100438         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100439         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100440         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100441         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100443         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100444         changes.  Make 2.59 a prerequisite.  Check and substitute for
100445         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100446         inttypes.h.  Do not use special include files; just use the
100447         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100448         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100449         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100450         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100451         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100452         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100453         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100454         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100455         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100456         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100457         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100458         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100459         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100460         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100461         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100462         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100463         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100464         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100465         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100466         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100467         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100468         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100469         not check for things that C99 does not require, e.g., int8_t.  If
100470         a test isn't needed unless <stdint.h> isn't working, and is
100471         unlikely to be needed for any other reason, then don't do it
100472         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100473         size_t, since we assume C89 freestanding at least.  Do not check
100474         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100475         the right thing even if the types are not defined.  Instead use:
100476         (gl_STDINT_TYPE_PROPERTIES): New macro.
100477         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100478         testing whether <sys/types.h> clashes, as Autoconf does this for
100479         us now.  All uses removed.
100480         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100481         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100482         (gl_CHECK_TYPE_SAME):
100483         Remove; no longer needed.
100484         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100485         exists, since we'll return 0 anyway in that case.
100486         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100488 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100490         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100491         possible collision with system files.
100492         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100493         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100494         WCHAR_MIN and WCHAR_MAX in this case.
100495         (<stddef.h>): Do not include; no longer needed.
100496         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100497         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100498         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100499         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100500         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100501         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100502         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100503         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100504         !defined(__c99))]: Include in this case too, since it's harmless
100505         now.
100506         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100507         dangerous to do so.
100508         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100509         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100510         (_STDINT_MIN, _STDINT_MAX): New macros.
100511         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100512         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100513         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100514         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100515         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100516         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100517         macros, not typedefs; this simplifies things quite a bit.
100518         Use long int for all types narrower than int64_t.
100519         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100520         Define in terms of long long int or int64_t or long int,
100521         not int64_t or int32_t.  This saves some compile-time testing.
100522         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100523         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100524         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100525         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100526         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100527         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100528         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100529         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100530         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100531         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100532         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100533         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100534         undef any previous version and define our own version, for
100535         simplicity and consistency with the new macros for types.
100536         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100537         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100538         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100539         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100540         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100541         @WINT_T_SUFFIX@ to keep things simple here.
100542         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100543         Simplify by assuming typical 8/16/32/64 host, since we're
100544         already doing that elsewhere anyway.
100545         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100546         and assume long long int is 64 bits if available.  This
100547         speeds up 'configure'.
100549 2006-07-01  Eric Blake  <ebb9@byu.net>
100551         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100552         Reported by Andreas Buening.
100554 2006-07-01  Eric Blake  <ebb9@byu.net>
100556         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100558 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100560         * lib/getaddrinfo.c: fixed typo
100562 2006-06-29  Jim Meyering  <jim@meyering.net>
100564         * modules/strftime (Maintainer): Add my name, since with the
100565         FPRINTFTIME changes strftime.c has forked from glibc.
100567 2006-06-29  Eric Blake  <ebb9@byu.net>
100569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100571 2006-06-29  Eric Blake  <ebb9@byu.net>
100573         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100575 2006-06-29  Eric Blake  <ebb9@byu.net>
100577         * lib/stat_.h: New file.
100579 2006-06-29  Eric Blake  <ebb9@byu.net>
100581         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100582         unused static function.
100584 2006-06-29  Eric Blake  <ebb9@byu.net>
100586         * doc/functions.texi (Function Portability): Document missing lstat
100587         on mingw.
100589 2006-06-29  Eric Blake  <ebb9@byu.net>
100591         * MODULES.html.sh: Add sys_stat.
100592         * modules/sys_stat: New module.
100593         * modules/mkstemp (Depends-on): Add sys_stat.
100595 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100597         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100599 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100601         * m4/c-bs-a.m4: Removed.
100603 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100605         * lib/strftime.c: Assume strftime() exists.
100607 2006-06-29  Derek Price  <derek@ximbiot.com>
100609         * modules/c-bs-a: Removed - \a is C89.
100610         * MODULES.html.sh: Remove c-bs-a.
100612 2006-06-29  Bruno Haible  <bruno@clisp.org>
100614         * modules/wcwidth (License): Change to LGPL.
100616 2006-06-28  Simon Josefsson  <jas@extundo.com>
100618         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100619         on _WIN32.
100621         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100622         getnameinfo.
100624 2006-06-28  Simon Josefsson  <jas@extundo.com>
100626         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100628 2006-06-28  Simon Josefsson  <jas@extundo.com>
100630         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100631         functions there.  It will succeed on Windows XP, but on Windows
100632         2000 and (presumably) earlier, it will fail, and use the internal
100633         re-implementation.
100634         (use_win32_p): New function.
100635         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100636         Support AI_NUMERICSERV to disable getservbyname.
100637         (getnameinfo): New function, only supports
100638         NI_NUMERICHOST|NI_NUMERICSERV for now.
100640         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100641         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100642         getnameinfo.
100644 2006-06-28  Eric Blake  <ebb9@byu.net>
100646         * modules/wcwidth: New file.
100647         * modules/mbchar (Depends-on): Add wcwidth.
100648         * modules/mbswidth (Depends-on): Add wcwidth.
100649         * MODULES.html.sh: Add wcwidth.
100651 2006-06-28  Eric Blake  <ebb9@byu.net>
100653         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100656 2006-06-28  Eric Blake  <ebb9@byu.net>
100658         * lib/xvasprintf.h: Fix comments.
100660 2006-06-28  Eric Blake  <ebb9@byu.net>
100662         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100663         * lib/mbswidth.c (wcwidth): Move from here...
100664         * lib/wcwidth.h: ...to this new file.
100666 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100668         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100671         it's obsolete.
100672         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100674 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100676         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100677         Autoconf 2.60 says this stuff was obsolete.
100679 2006-06-28  Bruno Haible  <bruno@clisp.org>
100681         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100683 2006-06-28  Bruno Haible  <bruno@clisp.org>
100685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100686         gt_TYPE_WCHAR_T.
100688 2006-06-28  Bruno Haible  <bruno@clisp.org>
100690         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100691         declaration for wcwidth.
100692         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100694 2006-06-28  Bruno Haible  <bruno@clisp.org>
100696         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100697         (mkdir): Define using _mkdir.
100699 2006-06-28  Bruno Haible  <bruno@clisp.org>
100701         * lib/getaddrinfo.h: Fix POSIX URL.
100702         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100703         _WIN32.
100704         (use_win32_p): Make static.
100705         (getaddrinfo): Reject service name if it is empty or does not consist
100706         solely of decimal digits, or if its value is > 65535.
100707         (getnameinfo): Remove useless casts.
100709 2006-06-27  Simon Josefsson  <jas@extundo.com>
100711         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100712         Eggert and Martin Lambers.
100714 2006-06-27  Simon Josefsson  <jas@extundo.com>
100716         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100717         Eggert and Martin Lambers.
100719 2006-06-27  Bruno Haible  <bruno@clisp.org>
100721         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100722         result to 0, not to empty.
100723         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100725 2006-06-27  Bruno Haible  <bruno@clisp.org>
100727         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100729 2006-06-26  Simon Josefsson  <jas@extundo.com>
100731         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100732         present.
100734 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100736         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100737         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100738         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100740 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100742         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100744 2006-06-26  Bruno Haible  <bruno@clisp.org>
100746         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100748 2006-06-26  Bruno Haible  <bruno@clisp.org>
100750         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100752 2006-06-26  Bruno Haible  <bruno@clisp.org>
100754         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100755         SGI C compiler in pre-C99 mode.
100756         Suggested by Mark D. Baushke and Larry Jones.
100758 2006-06-26  Bruno Haible  <bruno@clisp.org>
100760         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100761         WCHAR_MAX.
100762         Reported by Mark D. Baushke and Larry Jones.
100764 2006-06-26  Bruno Haible  <bruno@clisp.org>
100766         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100767         in pre-C99 mode.
100768         Suggested by Mark D. Baushke and Larry Jones.
100770 2006-06-23  Simon Josefsson  <jas@extundo.com>
100771             Bruno Haible  <bruno@clisp.org>
100773         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100774         Emit mostlyclean-local rule.
100775         (func_emit_tests_Makefile_am): Likewise.
100776         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100778 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100780         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100782 2006-06-23  Bruno Haible  <bruno@clisp.org>
100784         * tests/test-stdint.c: Update to match ISO C 99 Technical
100785         Corrigendum 1.
100787 2006-06-23  Bruno Haible  <bruno@clisp.org>
100789         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100791 2006-06-23  Bruno Haible  <bruno@clisp.org>
100793         * lib/stdint_.h: Treat IRIX like OpenBSD.
100795 2006-06-23  Bruno Haible  <bruno@clisp.org>
100797         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100798         ISO C 99 Technical Corrigendum 1.
100800 2006-06-22  Simon Josefsson  <jas@extundo.com>
100802         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100803         MinGW.
100805 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100807         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100808         needed.  Some compiler complained about some of them.  Problem reported
100809         by Larry Jones in
100810         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100812 2006-06-21  Simon Josefsson  <jas@extundo.com>
100814         * tests/test-getaddrinfo.c: New file.
100816         * modules/getaddrinfo-tests: New file.
100818         * MODULES.html.sh: Add inet_pton.
100820         * modules/inet_pton: New file.
100822 2006-06-21  Simon Josefsson  <jas@extundo.com>
100824         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100825         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100826         of using the (limited) gnulib implementation on Windows XP.
100828         * m4/inet_pton.m4: New file.
100830 2006-06-21  Simon Josefsson  <jas@extundo.com>
100832         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100833         variable.
100835         * lib/socket_.h: Don't define WINVER.
100837         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100838         slightly modified to work in gnulib.
100840 2006-06-21  Simon Josefsson  <jas@extundo.com>
100842         * doc/gnulib.texi (Windows sockets): Add.
100844 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100846         * lib/read-file.c (fread_file): Start with buffer allocation of
100847         0 bytes rather than 1 byte; this simplifies the code.
100848         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100849         code to free buffer and save/restore errno.
100850         (internal_read_file): Remove unused local.
100852 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100854         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100855         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100856         Problem reported by Denis Excoffier in
100857         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100859 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100861         * modules/sys_socket, modules/socklen: Include sys/types since
100862         FreeBSD 4.x's sys/socket.h needs it.
100864 2006-06-19  Simon Josefsson  <jas@extundo.com>
100866         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100868 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100870         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100872 2006-06-19  Bruno Haible  <bruno@clisp.org>
100874         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100875         and FULL_PATH_INTTYPES_H in angle brackets.
100876         Reported by Mark D. Baushke <mdb@gnu.org>.
100878 2006-06-17  Eric Blake  <ebb9@byu.net>
100880         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100881         errno.
100883 2006-06-17  Bruno Haible  <bruno@clisp.org>
100885         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100886         <sys/inttypes.h>.
100888 2006-06-17  Bruno Haible  <bruno@clisp.org>
100890         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100891         whether errno is declared. Assume <errno.h> declares errno.
100893 2006-06-17  Bruno Haible  <bruno@clisp.org>
100895         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100897 2006-06-17  Bruno Haible  <bruno@clisp.org>
100899         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100900         problem on Solaris 2.5.1.
100902 2006-06-16  Eric Blake  <ebb9@byu.net>
100904         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100905         * lib/unicodeio.c [!defined errno]: Likewise.
100906         * lib/strtol.c [!defined errno]: Likewise.
100907         * lib/strtod.c [!defined errno]: Likewise.
100909 2006-06-15  Eric Blake  <ebb9@byu.net>
100911         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100913 2006-06-15  Eric Blake  <ebb9@byu.net>
100915         * config/srclist.txt (ssize_t.m4): Lose sync.
100917 2006-06-15  Bruno Haible  <bruno@clisp.org>
100919         * modules/stdint (Files): Include m4/full-header-path.m4,
100920         m4/size_max.m4, m4/wchar_t.m4.
100921         (Makefile.am): Many more substitutions.
100922         * modules/stdint-tests: New file.
100923         * tests/test-stdint.c: New file.
100925 2006-06-15  Bruno Haible  <bruno@clisp.org>
100927         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100928         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100929         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100930         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100931         gl_CHECK_TYPE_SAME): New macros.
100933 2006-06-15  Bruno Haible  <bruno@clisp.org>
100935         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100937 2006-06-15  Bruno Haible  <bruno@clisp.org>
100939         * lib/stdint_.h: Rewritten to be fully auto-configured.
100940         Fixes bug on HP-UX/IA64.
100942 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100944         * lib/getdate.y (__attribute__): Don't define if already defined.
100945         Problem reported by Larry Jones.
100946         * lib/utimens.c (__attribute__): Likewise.
100948 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100950         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100951         reported by Andreas Schwab.
100953 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100954             Bruno Haible  <bruno@clisp.org>
100956         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100957         check for the declaration of strnlen and a run test that exposes the
100958         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100959         rpl_strndup.
100961 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100962             Bruno Haible  <bruno@clisp.org>
100964         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100966 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100968         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100969         compile test, for Tru64 4.0D.
100971 2006-05-28  Karl Berry  <karl@gnu.org>
100973         * config/srclist.txt (printf-args.c): lose sync.
100975 2006-05-26  Martin Lambers  <marlam@marlam.de>
100977         * lib/getpass.c: Updates the test for the native W32 API, and adds
100978         missing includes, thus fixing compilation warnings.
100980 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100982         * lib/exclude.c (exclude_fnmatch): New function.
100983         (excluded_file_name): Call exclude_fnmatch.
100984         * lib/exclude.h (excluded_file_name): New prototype
100986 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100988         * lib/tempname.c (small_open, large_open): New macros.
100989         (__open, __open64) [!_LIBC]: Remove.
100990         (__gen_tempname): Use small_open and large_open instead of __open
100991         and __open64.  This fixes a portability bug on HP-UX 11.11i
100992         reported by Simon Wing-Tang in
100993         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100995 2006-05-24  Bruno Haible  <bruno@clisp.org>
100997         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100998         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100999         Reported by Thorsten Maerz <torte@netztorte.de> via
101000         Aaron Stone <aaron@serendipity.cx>.
101002 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
101005         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
101006         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
101007         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
101008         not really conditional on the cache.
101009         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
101011 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101013         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
101014         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
101015         (my_usleep): Don't mishandle maximum value.
101017 2006-05-19  Jim Meyering  <jim@meyering.net>
101019         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
101021 2006-05-17  Bruno Haible  <bruno@clisp.org>
101023         Cygwin portability.
101024         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
101026 2006-05-17  Bruno Haible  <bruno@clisp.org>
101028         * lib/stdint_.h: Fix recognition of Cygwin.
101030 2006-05-15  Bruno Haible  <bruno@clisp.org>
101032         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
101033         on libtool patch by Ralf Wildenhues.
101035 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
101038         test for C99 conformance; (bool) 0.5 is an integer constant
101039         expression, but (bool) -0.5 is not.  Problem reported by Fedor
101040         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
101042 2006-05-11  Simon Josefsson  <jas@extundo.com>
101044         * m4/xvasprintf.m4: Fix obvious typo.
101046 2006-05-11  Jim Meyering  <jim@meyering.net>
101048         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
101049         James Lemley.
101051 2006-05-10  Simon Josefsson  <jas@extundo.com>
101053         * lib/md4.c: Typo fix, update copyright years.
101054         (K1, K2): Don't use L because it turn computations into 64-bit on
101055         64-bit platforms.
101057 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
101059         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
101060         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
101061         unwanted sign propagation, e.g., on hosts with 64-bit int.
101062         There still are some problems with reeelly weird theoretical hosts
101063         (e.g., 33-bit int) but it's not worth worrying about now.
101064         * lib/sha1.c (rol): Likewise.
101065         (K1, K2, K3, K4): Remove unnecessary L suffix.
101067 2006-05-10  Bruno Haible  <bruno@clisp.org>
101069         * lib/des.c: Cast to avoid warnings.
101071 2006-05-09  Bruno Haible  <bruno@clisp.org>
101073         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
101074         (Depends-on): Depend also on xsize, stdarg.
101075         (configure.ac): Add gl_XVASPRINTF.
101077 2006-05-09  Bruno Haible  <bruno@clisp.org>
101079         * m4/xvasprintf.m4: New file.
101081 2006-05-09  Bruno Haible  <bruno@clisp.org>
101083         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
101084         (EOVERFLOW): Define fallback value.
101085         (xstrcat): New function.
101086         (xvasprintf): Recognize the special case of a string concatenation.
101088 2006-05-08  Eric Blake  <ebb9@byu.net>
101090         * gnulib-tool (func_version): Base copyright year on CVS date.
101091         (func_emit_copyright_notice): New function.
101092         (func_emit_lib_Makefile_am): Use it.
101093         (func_emit_tests_Makefile_am): Likewise.
101094         (func_import): Likewise.
101096 2006-05-08  Bruno Haible  <bruno@clisp.org>
101098         * modules/stdarg: New file.
101099         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
101101 2006-05-08  Bruno Haible  <bruno@clisp.org>
101103         * m4/stdarg.m4: New file, from GNU gettext.
101105 2006-05-08  Bruno Haible  <bruno@clisp.org>
101107         * config/srclist.txt (build-aux/config.rpath): different from latest
101108         release.
101110 2006-05-08  Bruno Haible  <bruno@clisp.org>
101112         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
101114 2006-05-05  Jim Meyering  <jim@meyering.net>
101116         * m4/warning.m4: New file, derived from bison's file by the same name.
101118 2006-05-03  Bruno Haible  <bruno@clisp.org>
101120         * lib/stdint_.h: Shorter URL.
101121         * lib/inttypes.h: Likewise.
101123 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101125         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
101127 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101129         * lib/verify.h: Document the internals better.  Most of this change
101130         was written by Bruno Haible.
101132 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101134         * doc/verify.texi: New file, partly based on a proposal by
101135         Bruno Haible.
101137 2006-05-02  Bruno Haible  <bruno@clisp.org>
101139         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
101140         test from here...
101141         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
101143 2006-04-29  Bruno Haible  <bruno@clisp.org>
101145         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
101146         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
101148 2006-04-29  Bruno Haible  <bruno@clisp.org>
101150         * gnulib-tool: Make --update option actually work.
101152 2006-04-29  Bruno Haible  <bruno@clisp.org>
101154         * doc/gcd.texi: New file.
101155         * doc/gnulib.texi: Include it.
101157 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
101159         * lib/getdate.y (get_date): When adding relative date, start with the
101160         initial time, not with the result of the first mktime call.
101162 2006-04-25  Bruno Haible  <bruno@clisp.org>
101164         * gnulib-tool (func_import): Output the include directives in three
101165         blocks, sorted separately.
101166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101168 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
101171         to define main with arguments, for C++.  Reported by Eric Blake.
101172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
101173         Prefer 'int main ()' to 'int main (void)', for C++.
101174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
101175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
101176         for 'main', for C99 and C++.
101178 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
101181         Don't assume that exit status -1 is valid.
101182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101183         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
101184         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
101185         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
101186         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
101187         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
101188         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
101189         functions can be used without declaring them, or that you can
101190         exit with status -1.
101191         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
101193 2006-04-24  Karl Berry  <karl@gnu.org>
101195         * config/srclist.txt (longdouble.m4): sync lost.
101197 2006-04-24  Eric Blake  <ebb9@byu.net>
101199         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
101201 2006-04-24  Bruno Haible  <bruno@clisp.org>
101203         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
101204         poll() implementation in AIX.
101205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101207 2006-04-24  Bruno Haible  <bruno@clisp.org>
101209         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
101210         assigned exactly once.
101212 2006-04-23  Claudio Fontana  <claudio@gnu.org>
101213             Bruno Haible  <bruno@clisp.org>
101215         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
101216         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
101217         for AM_CPPFLAGS.
101219 2006-04-23  Bruno Haible  <bruno@clisp.org>
101221         * modules/copy-file: Depend on unistd.
101222         * modules/execute: Likewise.
101223         * modules/fatal-signal: Likewise.
101224         * modules/findprog: Likewise.
101225         * modules/mkdtemp : Likewise.
101226         * modules/pipe: Likewise.
101227         * modules/wait-process: Likewise.
101229 2006-04-23  Bruno Haible  <bruno@clisp.org>
101231         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
101232         condition was already detected.
101233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101235 2006-04-23  Bruno Haible  <bruno@clisp.org>
101237         * lib/copy-file.c: Include <unistd.h> unconditionally.
101238         * lib/execute.c: Likewise.
101239         * lib/fatal-signal.c: Likewise.
101240         * lib/findprog.c: Likewise.
101241         * lib/mkdtemp.c: Likewise.
101242         * lib/pipe.h: Likewise.
101243         * lib/pipe.c: Likewise.
101244         * lib/wait-process.h: Likewise.
101246 2006-04-23  Bruno Haible  <bruno@clisp.org>
101248         * gnulib-tool (func_usage): Fix --import description. Document
101249         --update.
101250         (func_import): Create temporary file in a temporary directory, if
101251         --dry-run is specified. Silence errors from 'grep' when there are no
101252         m4 files in $m4dir.
101253         (func_create_testdir): Silence errors from 'grep' when there are no
101254         m4 files in $m4dir.
101255         Reported by Karl Berry <karl@freefriends.org>.
101257 2006-04-20  Bruno Haible  <bruno@clisp.org>
101259         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
101260         one argument, so that the code will be portable to Autoconf 2.60.
101261         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
101262         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
101263         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
101265 2006-04-19  Derek Price  <derek@ximbiot.com>
101266             Eric Blake  <ebb9@byu.net>
101268         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
101269         rather than "/full/path.h".  Update comment to match.  Shorten &
101270         generalize m4_translit call via AS_TR_CPP.
101272 2006-04-19  Derek Price  <derek@ximbiot.com>
101273             Eric Blake  <ebb9@byu.net>
101275         * lib/inttypes.h: Correct grammar in comment.
101277 2006-04-18  Derek Price  <derek@ximbiot.com>
101278             Paul Eggert  <eggert@cs.ucla.edu>
101280         * modules/inttypes: New file.
101281         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
101283 2006-04-18  Derek Price  <derek@ximbiot.com>
101284             Paul Eggert  <eggert@cs.ucla.edu>
101286         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
101287         New files.
101289 2006-04-18  Derek Price  <derek@ximbiot.com>
101290             Paul Eggert  <eggert@cs.ucla.edu>
101292         * lib/inttypes.h: New file.
101293         * lib/strtoimax.c: Assume <inttypes.h>.
101295 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
101297         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
101298         isn't mounted.  Problem reported by Kir Kolyshkin.
101300 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101302         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
101303         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
101304         Derek R. Price.
101305         * lib/regex.h (RE_DUP_MAX): Update comment to match current
101306         implementation.
101308 2006-04-12  Eric Blake  <ebb9@byu.net>
101310         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
101311         is now done automatically by the corresponding Autoconf macro.
101313 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
101315         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
101316         time_r.h.
101318 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101320         Merge regex changes from libc, removing some of our
101321         POSIX-conformance changes that were rejected and redoing them in a
101322         less-intrusive way.
101324         * lib/regcomp.c (re_compile_internal, init_dfa):
101325         Length arg is now size_t, not Idx.  All uses changed.
101326         (peek_token): Forward decl now says internal_function.
101327         (__re_error_msgid, __re_error_msgid_idx):
101328         Now static rather than extern with attribute_hidden.
101329         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
101330         For some reason libc prefers K&R style defns for external functions.
101331         (regerror) [!defined _LIBC]: Likewise.
101332         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
101333         (seek_collating_symbol_entry, lookup_collation_sequence_value):
101334         (build_range_exp, build_collating_symbol):
101335         Use K&R-style defn.
101336         (re_compile_fastmap): Use '\0' to memset, not 0.
101337         (utf8_sb_map): Make the calculations more obvious.
101338         (init_dfa, parse_bracket_exp, build_charclass_op):
101339         Call calloc and cast result, as glibc does.
101340         (init_word_char, fetch_token, peek_token, peek_token_bracket):
101341         (build_range_exp, build_collating_symbol):
101342         Now internal functions.
101344         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
101346         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
101347         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
101348         Don't depend on VMS; depend on __VMS instead, for POSIX
101349         namespace cleanness.
101350         (regoff_t): Define to ssize_t, not long int.
101352         Remove the REG_ macros named below.  Instead, make the old names
101353         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
101354         __USE_GNU_REGEX.
101355         (REG_BACKSLASH_ESCAPE_IN_LISTS):
101356         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101357         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101358         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101359         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101360         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101361         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101362         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101363         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101364         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101365         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101366         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101367         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101368         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101369         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101370         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101371         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101372         (REG_NREGS):
101373         Remove.  All uses replaced by the old RE_* names.
101374         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101375         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101376         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101377         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101378         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101379         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101380         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101381         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101382         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101383         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101384         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101385         Don't bother having these macros be independent of each others'
101386         values, since they no longer exist in the POSIX name space.
101388         Rename the following member names back to their old names,
101389         unless !__USE_GNU_REGEX.  All uses changed back.
101390         (buffer): Renamed from re_buffer.
101391         (allocated): Renamed from re_allocated.
101392         (used): Renamed from re_used.
101393         (syntax): Renamed from re_syntax.
101394         (fastmap): Renamed from re_fastmap.
101395         (translate): Renamed from re_translate.
101396         (can_be_null): Renamed from re_can_be_null.
101397         (regs_allocated): Renamed from re_regs_allocated.
101398         (fastmap_accurate): Renamed from re_fastmap_accurate.
101399         (no_sub): Renamed from re_no_sub.
101400         (not_bol): Renamed from re_not_bol.
101401         (not_eol): Renamed from re_not_eol.
101402         (newline_anchor): Renamed from re_newline_anchor.
101403         (num_regs): Renamed from rm_num_regs.
101404         (start): Renamed from rm_start.
101405         (end): Renamed from rm_end.
101407         (free_state): Move up a bit.
101409         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101410         #define to be empty.
101411         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101412         when that is what is intended.
101413         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101414         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101415         (MAX): New macro.
101416         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101417         All uses changed back to re_malloc, etc.  It's now the caller's
101418         responsibility to check for overflow; all callers changed.
101419         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101420         (re_x2nrealloc): Remove.
101421         (free_state): Remove decl.
101423         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101424         (re_set_registers, re_exec):
101425         Use K&R-style defn.
101427         2006-01-31  Roland McGrath  <roland@redhat.com>
101429         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101430         Reported by Mike Frysinger <vapier@gentoo.org>.
101432         2006-01-15  Andreas Jaeger  <aj@suse.de>
101434         [BZ #1950]
101435         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101436         build_wcs_upper_buffer change.
101437         (build_wcs_upper_buffer): Change return type.
101439         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101441         * lib/regex_internal.h: Include <stdint.h> if available.
101443         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101445         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101447         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101449         * lib/regcomp.c: Adjust for changed secondary hash function.
101451         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101453         * lib/regex.h: Pretty printing.
101454         Clean up namespace a bit.
101456         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101458         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101459         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101461         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101462                     Ulrich Drepper  <drepper@redhat.com>
101464         [BZ #1302]
101465         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101466         changed.
101467         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101469         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101471         [BZ #281]
101472         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101473         * lib/regcomp.c: Remove unnecessary uses of
101474         unsigned RE_TRANSLATE_TYPE.
101475         * lib/regex_internal.h: Likewise.
101476         * lib/regex_internal.c: Likewise.
101477         * lib/regexec.c: Likewise.
101478         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101480         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101482         * lib/regexec.c (find_recover_state): Remove unnecessary
101483         initialization.
101484         (transit_state_bkref): Make DFA a const pointer.
101485         (get_subexp): Likewise.
101486         (check_arrival): Likewise.
101487         (update_cur_sifted_state): Likewise.
101488         (re_search_internal): Likewise.
101489         (prune_impossible_nodes): Likewise.
101490         (acquire_init_state_context): Likewise.
101491         (proceed_next_node): Likewise.
101492         (set_regs): Likewise.
101493         (free_fail_stack_return): Likewise.
101494         (check_arrival_expand_ecl): Mark DFA parameter as const.
101495         (check_arrival_expand_ecl_sub): Likewise.
101496         (check_subexp_limits): Likewise.
101497         (sub_epsilon_src_nodes):  Likewise.
101498         (add_epsilon_src_nodes):  Likewise.
101499         (merge_state_array): Likewise.
101500         (update_regs): Likewise.
101501         (build_trtable): Likewise.
101502         (sift_states_backward): Mark MCTX parameter as const.
101503         (build_sifted_states): Likewise.
101504         (update_cur_sifted_state): Likewise.
101505         (sift_states_mkref): Likewise.
101506         (check_arrival_expand_ecl): Mark eclosure as const.
101507         (check_dst_limits_calc_pos_1): Likewise.
101508         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101509         pointer.
101511         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101513         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101514         (transit_state_sb): Likewise.
101515         (transit_state_mb): Likewise.
101516         (sift_states_iter_mb): Likewise.
101517         (check_arrival_add_next_nodes): Likewise.
101518         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101519         [_LIBC] (re_search_2_stub): Use mempcpy.
101521         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101522         mbrtowc for very simple UTF-8 case.
101524         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101525         a pointer-to-const.
101526         (re_acquire_state_context): Likewise.
101527         * lib/regex_internal.h: Adjust prototypes.
101529         * lib/regex.c: Prevent using C++ compilers.
101531         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101532         (re_acquire_state_context): Likewise.
101534 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101536         * modules/regex (Depends-on): Add ssize_t.
101538 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101540         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101541         translation table.
101543 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101545         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101547 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101548             Bruno Haible  <bruno@clisp.org>
101550         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101551         <sys/types.h> and <inttypes.h>.
101553 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101555         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101556         `__error_t_defined', so argp.h will not typedef the former.
101558 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101560         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101561         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101562         glibc names.  Even if glibc is changed to conform to POSIX, the
101563         traditional names will be available anyway, since regex depends on
101564         the extensions module.  Also, fix a longstanding typo in the
101565         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101566         reported by Emanuele Giaquinta.  Also, change sense of cached
101567         variable, so that the message makes sense.
101569 2006-03-24  Simon Josefsson  <jas@extundo.com>
101571         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101572         including some doc fixes.
101573         (base64_encode_alloc): Fix +1 bug on allocation failures.
101575 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101577         * lib/base64.c (base64_encode): Do not read past end of array with
101578         unsanitized input on systems with CHAR_BIT > 8.
101580 2006-03-24  Eric Blake  <ebb9@byu.net>
101582         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101584 2006-03-22  Karl Berry  <karl@gnu.org>
101586         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101587         * config/srclistvars.sh (COREUTILS): new var.
101589 2006-03-17  Jim Meyering  <jim@meyering.net>
101591         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101592         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101594 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101596         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101597         no longer needs it.  Instead, check that regoff_t is as least
101598         as wide as ptrdiff_t.
101600         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101601         so that our regex.h stays compatible with the installed regex.
101602         This is helpful for installers who configure --without-included-regex.
101603         Problem reported by Emanuele Giaquinta.
101605 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101607         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101608         Typedef to long int, not to off_, as POSIX will likely change
101609         in that direction.
101611 2006-03-15  Eric Blake  <ebb9@byu.net>
101613         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101615 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101617         * lib/argp-help.c (validate_uparams): Fix typo
101618         * lib/argp-parse.c (argp_default_options): Consistently begin help
101619         messages with a lowercase letter.
101621 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101623         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101624         overrun buffers and shouldn't be used (much as gets shouldn't be
101625         used).
101626         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101628 2006-03-08  Simon Josefsson  <jas@extundo.com>
101630         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101631         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101633 2006-03-08  Simon Josefsson  <jas@extundo.com>
101635         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101636         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101638 2006-03-08  Simon Josefsson  <jas@extundo.com>
101640         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101641         signal that configure disabled the device.
101643 2006-03-08  Simon Josefsson  <jas@extundo.com>
101645         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101646         languages.
101648 2006-03-07  Simon Josefsson  <jas@extundo.com>
101650         * modules/getopt (Depends-on): Add unistd.
101652         * modules/unistd: New file.
101654 2006-03-07  Simon Josefsson  <jas@extundo.com>
101656         * modules/gc-random: New file.
101658 2006-03-07  Simon Josefsson  <jas@extundo.com>
101660         * m4/unistd_h.m4: New file.
101662 2006-03-07  Simon Josefsson  <jas@extundo.com>
101664         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101665         test to be side-effect free by storing the result in the cache
101666         variable gl_cv_lib_readline, and moving the assignment of
101667         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101668         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101670 2006-03-07  Simon Josefsson  <jas@extundo.com>
101672         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101673         error on missing devices (the functions will return an error).
101675         * m4/gc.m4: Move random stuff to gc-random.m4
101677 2006-03-07  Simon Josefsson  <jas@extundo.com>
101679         * lib/unistd_.h: New file.
101681 2006-03-07  Simon Josefsson  <jas@extundo.com>
101683         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101685 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101687         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101688         Problem reported by Juan Manuel Guerrero.
101690 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101692         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101693         the unistd module.
101694         * lib/getlogin_r.c: Likewise.
101695         * lib/getlogin_r.h: Likewise.
101696         * lib/glob.c: Likewise.
101697         * lib/pagealign_alloc.c: Likewise.
101698         * lib/unistd_.h: Remove; no longer needed.
101700 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101702         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101703         Add unistd.
101704         * modules/c-stack (Depends-on): Add unistd.
101705         * modules/getlogin_r: Likewise.
101706         * modules/glob: Likewise.
101707         * modules/pagealign_alloc: Likewise.
101708         * modules/unistd (Files): Remove lib/unistd_.h.
101709         (EXTRA_DIST): Remove.
101710         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101711         need unistd_.h.
101712         (MOSTLYCLEANFILES): Remove unistd.h-t.
101714 2006-03-03  Simon Josefsson  <jas@extundo.com>
101716         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101718 2006-03-03  Simon Josefsson  <jas@extundo.com>
101720         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101721         libidn and bison.
101723 2006-03-03  Simon Josefsson  <jas@extundo.com>
101725         * build-aux/maint.mk: Add indent target.
101727 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101729         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101730         our replacement poll.h in any case, to avoid a differing
101731         declaration from a system header.  Seen on AIX.
101733 2006-03-01  Simon Josefsson  <jas@extundo.com>
101735         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101736         <kasal@ucw.cz>.
101738 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101740         * modules/gettime (Depends-on): Add extensions module.
101741         * modules/nanosleep (Depends-on): Likewise.
101742         * modules/settime (Depends-on): Likewise.
101744 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101746         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101747         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101748         pedantically.
101749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101750         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101752         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101753         not "==".  Reported by Ralf Wildenhues.
101755 2006-03-01  Karl Berry  <karl@gnu.org>
101757         * doc/Copyright/request-*: new files, synced from gnuorg.
101759 2006-03-01  Karl Berry  <karl@gnu.org>
101761         * config/srclist.txt (Copyright/*): new entries.
101763 2006-02-28  Simon Josefsson  <jas@extundo.com>
101765         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101767 2006-02-27  Simon Josefsson  <jas@extundo.com>
101769         * lib/base64.h: Indent #define's.  From Jim Meyering
101770         <jim@meyering.net>.
101772 2006-02-27  Jim Meyering  <jim@meyering.net>
101774         Revert the change of 2006-02-24, so these files can continue
101775         to be sync'd from gettext.
101776         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101777         of `config.h'.
101779 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101781         * modules/intprops: New file.
101782         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101783         Add intprops.
101784         * modules/getloadavg (Files): Remove lib/intprops.h.
101785         (Depends-on): Add intprops.
101786         * modules/human: Likewise.
101787         * modules/inttostr: Likewise.
101788         * modules/openat: Likewise.
101789         * modules/sig2str: Likewise.
101790         * modules/userspec: Likewise.
101791         * modules/utimecmp: Likewise.
101792         * modules/xnanosleep: Likewise.
101793         * modules/xstrtol: Likewise.
101795 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101797         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101798         * modules/lock-tests (TESTS): Use $(EXEEXT).
101799         * modules/tls-tests: Likewise.
101800         * modules/argp-tests: Likewise.
101801         (check_PROGRAMS): New var, replacing...
101802         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101804 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101806         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101807         `config.h'.
101809 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101811         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101813 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101815         Sync from coreutils.
101816         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101817         gl_CHDIR_SAFER.
101819 2006-02-22  Jim Meyering  <jim@meyering.net>
101821         Sync from coreutils.
101822         * m4/chdir-safer.m4: New file.
101824 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101826         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101827         AT_FDCWD exceeds INT_MAX.
101828         * lib/openat.h (AT_FDCWD): Likewise.
101830 2006-02-17  Eric Blake  <address@hidden>
101832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101834 2006-02-16  Simon Josefsson  <jas@extundo.com>
101836         * modules/getaddrinfo (Depends-on): Add sys_socket.
101838 2006-02-15  Simon Josefsson  <jas@extundo.com>
101840         * build-aux/maint.mk: Add dsyntax-check rule.
101842 2006-02-15  Eric Blake  <ebb9@byu.net>
101844         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101845         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101846         'present but cannot compile' warnings on cygwin.
101847         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101848         use ws2tcpip.h if sys/socket.h works.
101849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101850         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101852 2006-02-14  Simon Josefsson  <jas@extundo.com>
101854         * modules/maintainer-makefile (Files): Rename.
101856         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101857         and (the local) Makefile.cfg to maint-cfg.mk.
101859         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101860         to the latter.
101862         * modules/maintainer-makefile: New module.
101864         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101865         severaly stripped to make it possible to build it up from scratch
101866         with reliable tests.
101868         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101869         fixes to permit overriding the default actions when configure and
101870         makefile are not available.
101872 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101874         Sync from coreutils.
101875         * modules/lstat (Depends-on): Don't depend on xalloc.
101876         (License): Change from GPL to LGPL, since this is now simply a
101877         replacement for a libc function.
101879 2006-02-14  Jim Meyering  <jim@meyering.net>
101881         Sync from coreutils.
101883         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101884         failure on deficient systems, and simplify gnulib lgpl dependencies.
101885         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101886         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101888         * lib/xalloc-die.c: Remove unused definition of N_.
101890 2006-02-14  Jim Meyering  <jim@meyering.net>
101892         Sync from coreutils.
101893         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101894         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101895         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101896         double-quote uses of that variable, to accommodate the rare case in
101897         which getmntent is available in none of the libraries checked.  This
101898         happens at least on FreeBSD 5.0.
101900 2006-02-13  Simon Josefsson  <jas@extundo.com>
101902         * gnulib-tool (Usage): Fix --import, from
101903         karl@freefriends.org (Karl Berry).
101905 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101907         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101909 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101911         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101912         "autoupdate" on 2005-12-12.
101914 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101916         * modules/closeout (Depends-on): Remove atexit.
101918 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101920         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101921         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101923 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101926         __EXTENSIONS__ if this causes compilation to fail.  Problem
101927         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101928         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101930 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101932         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101933         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101934         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101935         All uses changed.
101937 2006-01-26  Simon Josefsson  <jas@extundo.com>
101939         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101940         prototype is visible on mingw32.
101942         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101943         for mingw32.
101945         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101946         mingw32).
101948 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101950         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101951         attempt to open for write; this always fails, at least on POSIX
101952         hosts.  This reinstates the 2006-01-09 change, which was
101953         inadvertently removed.
101955 2006-01-26  Bruno Haible  <bruno@clisp.org>
101957         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101958         Reported by Paul Eggert.
101960 2006-01-26  Bruno Haible  <bruno@clisp.org>
101961             Paul Eggert  <eggert@cs.ucla.edu>
101963         * lib/stdbool_.h (_Bool)
101964         [(! (defined __cplusplus || defined __BEOS__)
101965           && !defined __GNUC__
101966           && !(defined __HP_cc || defined __xlc__
101967                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101968                || defined __sgi))]:
101969         #define to signed char in these cases too; this simplifies
101970         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101971         etc., separately) and makes it more conservative.
101973 2006-01-25  Simon Josefsson  <jas@extundo.com>
101975         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101976         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101977         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101979 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101981         * lib/argp-namefrob.h: Bugfix. Remove stray #
101983 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101986         so that we test the test.
101987         Check for yet another HP-UX cc bug involving *bool |= bool.
101989 2006-01-25  Karl Berry  <karl@gnu.org>
101991         * config/srclist.txt (vasnprintf.c): sync lost.
101993 2006-01-25  Jim Meyering  <jim@meyering.net>
101995         Sync from the stable (b5) branch of coreutils:
101997         * lib/fts.c (fts_children): Don't let close() clobber errno from
101998         failed fchdir().
102000         * lib/fts.c (fts_stat): When following a symlink-to-directory,
102001         don't necessarily interpret stat-fails+lstat-succeeds as indicating
102002         a dangling symlink.  That can also happen at least for ELOOP.
102003         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
102004         FYI, this bug predates the inclusion of fts.c in coreutils.
102006         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
102007         in their own block, so pre-c99 compilers don't object.
102009         Avoid the double-free (first in fts_read, second in fts_close) that
102010         would occur when an `active' directory is made inaccessible (e.g.,
102011         via chmod a-x) during a traversal.
102012         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102013         before returning.  Reproduce this failure by
102014         mkdir -p a/b; cd a; chmod a-x . b
102015         Reported by Stavros Passas.
102017 2006-01-25  Jim Meyering  <jim@meyering.net>
102019         * lib/fileblocks.c: Remove more useless parentheses.
102020         * lib/readutmp.h: Likewise.
102022 2006-01-25  Bruno Haible  <bruno@clisp.org>
102024         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
102025         warnings.
102026         Reported by Paul Eggert.
102028 2006-01-25  Bruno Haible  <bruno@clisp.org>
102030         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
102031         rid of a trap command. For Solaris sh.
102032         Reported by Mark D. Baushke <mdb@gnu.org>.
102034 2006-01-24  Simon Josefsson  <jas@extundo.com>
102036         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
102037         Bruno.
102039 2006-01-24  Karl Berry  <karl@gnu.org>
102041         * config/srclist.txt (argp-namefrob.h): sync lost.
102043 2006-01-24  Jim Meyering  <jim@meyering.net>
102045         * modules/openat (Files): Add lib/intprops.h.
102046         From Mark D. Baushke.
102048 2006-01-24  Jim Meyering  <jim@meyering.net>
102050         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
102051         Reported by Mark D. Baushke.
102053 2006-01-24  Jim Meyering  <jim@meyering.net>
102055         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
102057 2006-01-24  Bruno Haible  <bruno@clisp.org>
102059         * modules/strnlen (Maintainer): Change from glibc to all.
102061 2006-01-24  Bruno Haible  <bruno@clisp.org>
102063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
102064         Patch by Paul Eggert.
102066 2006-01-24  Bruno Haible  <bruno@clisp.org>
102068         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
102069         already has it.
102070         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
102071         2005-11-26.
102073         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
102074         'signed char' to avoid problems with the built-in _Bool type.
102075         Reported by Paul Eggert on 2005-11-26.
102077 2006-01-24  Bruno Haible  <bruno@clisp.org>
102079         * gnulib-tool (func_import): Avoid constructing complicated sed
102080         expressions inside backquote.
102081         Report and solution by Mark D. Baushke <mdb@gnu.org>.
102083 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
102085         These changes imported from libc.
102086         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
102087         test and two separate function calls.
102088         * lib/strndup.c (__strndup): Add libc_hidden_def.
102090 2006-01-23  Simon Josefsson  <jas@extundo.com>
102092         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
102093         Remove the test_*_SOURCES variable: automake infers it by default.
102094         * modules/tls-tests: Likewise.
102096 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102098         Work around porting bugs reported by Dieter in
102099         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
102100         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
102101         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
102102         Include "getopt.h" first, to check interface.
102103         (getenv): Declare only if defined HAVE_DECL_GETENV &&
102104         !HAVE_DECL_GETENV.
102105         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
102106         (__strndup): Revert to K&R-style function dfns, the glibc style.
102107         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
102108         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
102109         Include strnlen.h first, to get prototype properly.
102110         (strnlen): Renamed from __strnlen.
102111         Remove weak alias.
102113 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102115         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
102117 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102119         * config/srclist.txt: Adjust to reflect glibc reorganization.
102120         This affects only comments.
102122 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102124          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
102125          Reported by Bruce Korb <bkorb@gnu.org>.
102127 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
102129         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
102130         to pacify gcc -Wswitch-default.
102132 2006-01-22  Bruno Haible  <bruno@clisp.org>
102134         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
102135         temporary buffer for sprintf, take into account the precision also
102136         for 'd', 'i', 'u', 'o', 'x', 'X'.
102138 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102140         * modules/argp-tests: New module
102141         * tests/test-argp.c: New file
102142         * tests/test-argp-2.sh: New file
102144 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102146         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
102147         (__argp_base_name): Removed
102148         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
102149         typo.
102150         (__argp_base_name): Provide macro definition or extern declaration
102151         depending on the configuration
102153 2006-01-20  Simon Josefsson  <jas@extundo.com>
102155         * modules/inet_ntop (Depends-on): Depend on sys_socket.
102157 2006-01-20  Simon Josefsson  <jas@extundo.com>
102159         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
102161 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102163         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
102164         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
102165         Suggested by Bruno Haible.
102167 2006-01-20  Karl Berry  <karl@gnu.org>
102169         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
102170         until changes propagate, I guess.
102172 2006-01-19  Simon Josefsson  <jas@extundo.com>
102174         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
102176 2006-01-19  Simon Josefsson  <jas@extundo.com>
102178         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
102180 2006-01-19  Simon Josefsson  <jas@extundo.com>
102182         * gnulib-tool: Set check_PROGRAMS.
102184         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102185         modules/des-tests, modules/gc-arcfour-tests,
102186         modules/gc-arctwo-tests, modules/gc-des-tests,
102187         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102188         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102189         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102190         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102191         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102192         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
102193         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
102194         test_*_SOURCES.
102196 2006-01-18  Simon Josefsson  <jas@extundo.com>
102198         * modules/socklen (Depends-on): Depend on sys_socket.
102200 2006-01-18  Simon Josefsson  <jas@extundo.com>
102202         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102203         modules/des-tests, modules/gc-arcfour-tests,
102204         modules/gc-arctwo-tests, modules/gc-des-tests,
102205         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102206         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102207         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102208         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102209         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102210         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
102211         $(EXEEXT) to automake TESTS variable, for mingw32.
102213 2006-01-17  Simon Josefsson  <jas@extundo.com>
102215         * modules/socklen (Include): Need sys/socket.h.
102217 2006-01-17  Bruno Haible  <bruno@clisp.org>
102219         * modules/ssize_t (Include): Add <sys/types.h>.
102221 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
102223         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
102224         it's not portable and it doesn't work with cross-compiles.
102225         Problem reported by Bruno Haible.  Fix missing-$ typo in
102226         'test "gl_cv_ignore_unused_libraries" ...' that prevented
102227         -zignore from being used with Sun's C compiler.
102229 2006-01-12  Simon Josefsson  <jas@extundo.com>
102231         * lib/base64.c: Fix warning, reported by Bruno Haible
102232         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
102234 2006-01-12  Bruno Haible  <bruno@clisp.org>
102236         * modules/ldd: New file.
102237         * build-aux/ldd.sh.in: New file.
102238         * MODULES.html.sh (Support for building libraries and executables): Add
102239         ldd.
102241 2006-01-12  Bruno Haible  <bruno@clisp.org>
102243         * m4/ldd.m4: New file.
102245 2006-01-12  Bruno Haible  <bruno@clisp.org>
102247         * gnulib-tool (func_import, func_create_testdir): Don't go into an
102248         endless loop while replacing $auxdir with build-aux.
102250 2006-01-11  Simon Josefsson  <jas@extundo.com>
102252         * lib/stdint_.h (SIZE_MAX): Add missing (.
102254 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
102256         Sync from coreutils.
102257         * lib/md5.c: Fix commentary typos.
102258         (alignof, UNALIGNED_P): No need for a GCC-specific version.
102259         * lib/md5.h (__attribute__): Remove; unused.
102260         * lib/sha1.c: Fix commentary to match md5 better.
102261         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
102262         so that we don't need to worry about alignment.  All uses changed.
102263         This merges the 2005-10-28 md5 change into sha1.
102265 2006-01-11  Jim Meyering  <jim@meyering.net>
102267         Sync from coreutils.
102268         * lib/md5.c (OP): Fix spacing.
102270 2006-01-11  Bruno Haible  <bruno@clisp.org>
102272         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102273         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
102274         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
102276 2006-01-11  Bruno Haible  <bruno@clisp.org>
102278         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102279         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
102280         the "early" section as well.
102282 2006-01-11  Bruno Haible  <bruno@clisp.org>
102284         Avoid "ar: no archive members specified" error on MacOS X.
102285         * gnulib-tool (func_modules_add_dummy): New function.
102286         (func_import, func_create_testdir): Invoke it.
102288 2006-01-11  Bruno Haible  <bruno@clisp.org>
102290         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
102291         with $auxdir in AC_CONFIG_FILES statements.
102293 2006-01-11  Bruno Haible  <bruno@clisp.org>
102295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102296         Initialize also noinst_HEADERS to empty.
102298 2006-01-11  Bruno Haible  <bruno@clisp.org>
102300         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
102301         variables.
102302         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
102303         autoreconf.
102305 2006-01-11  Bruno Haible  <bruno@clisp.org>
102307         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
102308         overridable by the user.
102309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102311 2006-01-10  Simon Josefsson  <jas@extundo.com>
102313         * modules/sys_socket: New file.
102315 2006-01-10  Simon Josefsson  <jas@extundo.com>
102317         * m4/sys_socket_h.m4: New file.
102319 2006-01-10  Simon Josefsson  <jas@extundo.com>
102321         * lib/socket_.h: New file.
102323 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102325         * modules/readutmp (Maintainer): Add myself.
102327 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102329         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
102330         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
102331         People who are still concerned with buggy memcmp implementations
102332         can invoke gl_FUNC_MEMCMP themselves.
102334 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102336         * lib/regex_internal.h (BITSET_WORD_BITS):
102337         Work around a bug in 64-bit PGC (before version 6.1-2), where the
102338         preprocessor mishandles large unsigned values as if they were signed.
102339         Problem reported by Claudio Fontana in
102340         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
102342 2006-01-10  Jim Meyering  <jim@meyering.net>
102344         Avoid the double-free (first in fts_read, second in fts_close) that
102345         would occur when an `active' directory is made inaccessible (e.g.,
102346         via chmod a-x) during a traversal.
102347         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102348         before returning.  Reproduce this failure by
102349         mkdir -p a/b; cd a; chmod a-x . b
102350         Reported by Stavros Passas.
102352         Sync from coreutils.
102353         * lib/sha1.c: Tweak grammar in a comment.
102355 2006-01-10  Jim Meyering  <jim@meyering.net>
102357         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102358         Patch by Joerg Sonnenberger.
102360 2006-01-10  Bruno Haible  <bruno@clisp.org>
102362         * modules/readutmp: Depend on module free.
102363         * modules/strtok_r: Depend on module restrict.
102365 2006-01-10  Bruno Haible  <bruno@clisp.org>
102367         * modules/gettext (configure.ac): Add an invocation of
102368         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102370 2006-01-10  Bruno Haible  <bruno@clisp.org>
102372         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102373         Reported by Werner Lemberg <wl@gnu.org>.
102375 2006-01-10  Bruno Haible  <bruno@clisp.org>
102377         * lib/localcharset.c: Update from GNU gettext.
102379 2006-01-10  Bruno Haible  <bruno@clisp.org>
102381         * lib/argp.h (__const): Remove macro. Use const instead.
102382         * lib/argp-fmtstream.h (__const): Likewise.
102383         * lib/glob_.h (__const): Remove macro.
102384         * lib/glob-libc.h: Use const instead of __const.
102386 2006-01-10  Bruno Haible  <bruno@clisp.org>
102388         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102389         variable.
102390         Needed to avoid an automake error regarding the 'gettext' module.
102392 2006-01-09  Simon Josefsson  <jas@extundo.com>
102394         * modules/inet_ntop (Depends-on): Add restrict.
102396 2006-01-09  Simon Josefsson  <jas@extundo.com>
102398         * modules/gc-rijndael-tests (License): Put under LGPL.
102400         * modules/gc-des-tests (License): Likewise.
102402         * modules/gc-arcfour-tests (License): Likewise.
102404         * modules/gc-arctwo-tests (License): Likewise.
102406         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102408         * modules/gc-hmac-sha1-tests (Files): Likewise.
102410         * modules/gc-hmac-md5-tests (License): Likewise.
102412         * modules/gc-sha1-tests (License): Likewise.
102414         * modules/gc-md5-tests (License): Likewise.
102416         * modules/gc-md4-tests (License): Likewise.
102418         * modules/gc-md2-tests (License): Likewise.
102420         * modules/gc-tests (License): Likewise.
102422         * modules/des-tests (License): Likewise.
102424         * modules/md4-tests (License): Likewise.
102426         * modules/md2-tests (License): Likewise.
102428 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102430         Sync from coreutils:
102432         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102433         * modules/lib-ignore: New file.
102434         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102435         chdir-safer.m4, lchmod.m4.
102436         * modules/openat: Add mkdirat.c, openat-priv.h.
102438 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102440         Sync from coreutils.
102441         * m4/lib-ignore.m4: New file.
102442         * m4/lchmod.m4: New file.
102444 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102446         Sync from coreutils.
102447         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102448         for write access: POSIX says that must fail.
102449         * lib/fts.c (diropen): Likewise.
102450         * lib/save-cwd.c (save_cwd): Likewise.
102451         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102452         well, for minor improvements on hosts that lack O_DIRECTORY.
102453         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102454         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102455         Fall back on chown if open failed with EACCES.
102457         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102458         Report an error at compile-time if only a 1-second nominal clock
102459         resolution is found.
102461         * lib/lchmod.h: New file.
102462         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102463         (make_dir_parents): Use lchown rather than chown, and
102464         lchmod rather than chmod.
102466         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102467         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102468         "proc" reported by n0dalus.
102470         * lib/mountlist.c: Include <limits.h>.
102471         (dev_from_mount_options)
102472         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102473         New function.  It no longer assumes "dev=" has the System V meaning
102474         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102475         (read_file_system_list)
102476         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102477         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102478         dev= in that case.
102480         * lib/posixtm.h (PDS_PRE_2000): New macro.
102481         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102482         allow_century.  All usages changed.  Reject dates outside the range
102483         1969-1999 if PDS_PRE_2000 is used.
102485 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102487         Sync from coreutils.
102488         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102489         (Time of day items): Mention the possibility of leap seconds.
102490         Problem reported by Dr. David Alan Gilbert.
102492 2006-01-09  Jim Meyering  <jim@meyering.net>
102494         Sync from coreutils.
102496         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102498         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102500         * lib/modechange.c (mode_compile): Reject an invalid mode string
102501         that starts with an octal digit.  From Andreas Gruenbacher.
102503         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102504         and dup to open_safer and dup_safer, respectively.
102505         (openat_permissive): Fix typo in comment.
102507         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102508         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102509         (_): Remove; no longer needed.
102510         (openat): Renamed from rpl_openat; no need for rpl_openat
102511         since openat.h renames openat for us.
102512         Replace most of the body with a call to openat_permissive,
102513         to avoid duplicate code.
102514         Port to (probably hypothetical) environments were mode_t is
102515         wider than int.
102516         (openat_permissive): Require mode arg, so that we can check
102517         types better.  Put it just after flags.  Change cwd failure
102518         indicator from pointer-to-bool to pointer-to-errno-value.
102519         All callers changed.
102520         Invoke openat_save_fail and/or openat_restore_fail if
102521         cwd_errno is null, so that openat can call us.
102522         (openat_permissive, fdopendir, fstatat, unlinkat):
102523         Simplify errno handling to avoid some duplicate code,
102524         as it's OK to set errno on success.
102525         * lib/openat.h: Revamp code so that function macros depend on
102526         __OPENAT_PREFIX only, not also on AT_FDCWD.
102527         (openat_ro): Remove.  Caller changed to use openat_permissive.
102528         (openat_permissive): Now a macro, if not a function.
102529         (openat_restore_fail, openat_save_fail): Now always functions,
102530         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102532         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102533         and openat.c.
102534         * lib/mkdirat.c: Include openat-priv.h.
102535         Remove definitions of macros defined therein.
102536         * lib/openat.c: Likewise.
102538         * lib/mkdirat.c (mkdirat): New file and function.
102539         * lib/openat.h (mkdirat): Declare.
102541         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102543         * lib/openat.h (openat_permissive): Declare.
102544         (openat_ro): Define.
102546         * lib/openat.c (EXPECTED_ERRNO): New macro.
102547         (openat_permissive): New function -- used in remove.c rewrite.
102548         (all functions): Set errno just before returning, only if there
102549         was an actual failure.
102550         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102552         Emulate openat-family functions using Linux's procfs, if possible.
102553         Idea and some code based on Ulrich Drepper's glibc changes.
102555         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102556         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102557         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102558         before falling back on save_cwd and restore_cwd.
102559         (fdopendir, fstatat, unlinkat): Likewise.
102561         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102562         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102564         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102565         as second argument to va_arg.  Otherwise, some versions of gcc
102566         warn that `if this code is reached, the program will abort'.
102568 2006-01-09  Jim Meyering  <jim@meyering.net>
102570         Sync from coreutils.
102571         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102572         Require openat-priv.h.
102574 2006-01-09  Bruno Haible  <bruno@clisp.org>
102576         * modules/strnlen (Include): Use strnlen.h.
102578 2006-01-09  Bruno Haible  <bruno@clisp.org>
102580         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102582 2006-01-09  Bruno Haible  <bruno@clisp.org>
102584         * lib/sysexit_.h (EX_OK): New macro.
102585         Suggested by Martin Lambers <marlam@marlam.de>.
102587 2006-01-09  Bruno Haible  <bruno@clisp.org>
102589         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102590         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102592 2006-01-09  Bruno Haible  <bruno@clisp.org>
102594         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102595         numbers.
102597 2006-01-09  Bruno Haible  <bruno@clisp.org>
102599         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102600         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102601         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102602         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102604 2006-01-09  Bruno Haible  <bruno@clisp.org>
102606         * build-aux/javacomp.sh.in: New file, moved from lib/.
102607         * modules/javacomp-script (Files): Update.
102608         (configure.ac): Add AC_CONFIG_FILES invocation.
102609         (EXTRA_DIST): Remove variable.
102611         * build-aux/javaexec.sh.in: New file, moved from lib/.
102612         * modules/javaexec (Files): Update.
102613         (configure.ac): Add AC_CONFIG_FILES invocation.
102614         (EXTRA_DIST): Remove javaexec.sh.in.
102616         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102617         * modules/csharpcomp-script (Files): Update.
102618         (configure.ac): Add AC_CONFIG_FILES invocation.
102619         (EXTRA_DIST): Remove variable.
102621         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102622         * modules/csharpexec (Files): Update.
102623         (configure.ac): Add AC_CONFIG_FILES invocation.
102624         (EXTRA_DIST): Remove csharpexec.sh.in.
102626 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102628         Sync from coreutils.
102630         Add POSIX ACL support
102631         * lib/acl.h (copy_acl, set_acl): Add declarations.
102632         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102633         systems other than Linux.
102634         (chmod_or_fchmod): New function: use fchmod when possible,
102635         and chmod otherwise.
102636         (file_has_acl): Add a POSIX ACL implementation, with a
102637         Linux-specific subcase.
102638         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102639         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102640         acls are unsupported.
102641         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102642         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102643         are unsupported.
102645 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102647         Sync from coreutils.
102648         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102650 2006-01-07  Bruno Haible  <bruno@clisp.org>
102652         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102653         gl_EARLY.
102655 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102657         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102658         Problem reported for Mingw by Mark Junker.
102660 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102662         * README: Gnulib normally doesn't generate a tarball.
102664 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102666         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102667         long int, not int, for nanosecond counts, so that people who are
102668         used to POSIX struct timespec won't be surprised.  Reported by Jim
102669         Meyering.
102671 2005-12-28  Bruno Haible  <bruno@clisp.org>
102673         * build-aux/config.rpath: Update from GNU gettext.
102675 2005-12-16  Jim Meyering  <jim@meyering.net>
102677         * modules/fprintftime: New module.
102678         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102680 2005-12-16  Jim Meyering  <jim@meyering.net>
102682         * m4/fprintftime.m4: New file.
102684 2005-12-16  Jim Meyering  <jim@meyering.net>
102686         * lib/fprintftime.c, lib/fprintftime.h: New files.
102688 2005-12-15  Simon Josefsson  <jas@extundo.com>
102690         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102691         new m4/socklen.m4.
102693 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102695         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102696         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102698 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102700         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102701         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102702         struct uparams is valid. Fall back to the default values if it is
102703         not.
102705 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102707         * modules/argp (Files): Add argp-pin.c
102708         (Depends-on): dirname
102709         (lib_SOURCES): Add argp-pin.c
102711 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102713         * m4/argp.m4:  Check if program_invocation_name and
102714         program_invocation_short_name are declared and define appropriate
102715         macros if they are not.
102717 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102719         * lib/argp-help.c (__argp_base_name): New function
102720         (__argp_short_program_name): Rewrite using __argp_base_name
102721         * lib/argp-namefrob.h: Define program_invocation_name and
102722         program_invocation_short_name if requested
102723         (__argp_base_name): Add prototype
102724         * lib/argp-parse.c (argp_def): Use gettext wrappers
102725         (argp_default_parser): Use __argp_base_name
102726         * lib/argp-pin.c: New file. Defines program_invocation_name and
102727         program_invocation_short_name on systems that lack them.
102729 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102731         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102732         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102733         porting problem reported by Georg Schwarz in
102734         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102736 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102738         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102739         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102740         porting problem reported by Georg Schwarz in
102741         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102743 2005-12-05  Bruno Haible  <bruno@clisp.org>
102745         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102746         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102747         Reported by Mark Junker <mjscod@gmx.de>.
102749 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102751         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102752         Use implementation from Albert Chin, with some
102753         comments/corrections by Stepan Kasal and myself.
102755 2005-12-02  Bruno Haible  <bruno@clisp.org>
102757         * gnulib-tool (func_import): Accept GPLed build tool modules when
102758         --lgpl is given.
102759         * modules/csharpcomp-script: New file.
102760         * modules/csharpcomp: Depend on it.
102761         * modules/javacomp-script: New file.
102762         * modules/javacomp: Depend on it.
102763         Suggested by Simon Josefsson.
102765 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102767         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102768         statement, to work around an HP-UX 10.20 compiler bug reported by
102769         Peter O'Gorman.
102771 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102773         * modules/savedir (Depends-on): Add openat.
102775 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102777         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102778         (uintmax_t) [defined uintmax_t]: Do not declare.
102779         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102780         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102781         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102782         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102783         sake of portability to weird hosts that C allows (though we don't
102784         know of any practical examples).
102786         * lib/savedir.h (fdsavedir): New decl.
102787         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102788         contains most of the former guts of savedir.
102789         (savedir): Use savedirstream.
102790         Include "openat.h".
102792 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102794         * modules/obstack (Files): Add m4/ulonglong.m4.
102795         Problem reported by Davide Angelocola.
102797 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102799         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102800         coreutils no longer futzes with rounding modes.
102802 2005-11-14  Jim Meyering  <jim@meyering.net>
102804         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102805         replacement of mkstemp.
102807 2005-11-10  Simon Josefsson  <jas@extundo.com>
102809         * lib/readline.c: Remove EOL.
102811 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102813         * modules/gethrxtime (Depends-on): Add gettime.
102815 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102817         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102818         or gettimeofday; no longer needed.
102820 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102822         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102823         time business.
102824         (gethrxtime) [! (HAVE_NANOUPTIME
102825         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102826         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102827         our own approximation.
102829 2005-11-08  Eric Blake  <ebb9@byu.net>
102831         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102833 2005-11-08  Eric Blake  <ebb9@byu.net>
102835         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102837 2005-11-04  Bruno Haible  <bruno@clisp.org>
102839         * gnulib-tool: Implement --update mode.
102841 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102843         Fix porting problem reported by Theodoros V. Kalamatianos.
102844         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102845         Don't assume that futimes failing means we must fail.
102847 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102850         variables to suggest the intended function of the PATH_MAX check.
102852 2005-10-30  Kean Johnston  <jkj@sco.com>
102854         Trivial changes to support SCO systems.
102855         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102856         as PATH_MAX.
102857         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102858         where __ptr is null when no I/O is pending.
102860 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102862         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102863         leave errno alone.  Problem reported by Dmitry V. Levin.
102865 2005-10-28  Simon Josefsson  <jas@extundo.com>
102867         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102868         Test more.
102870         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102872         * modules/md2, modules/md2-tests: New files.
102874 2005-10-28  Simon Josefsson  <jas@extundo.com>
102876         * m4/inet_ntop.m4: More tests.
102878         * m4/gc-md2.m4, md2.m4: New file.
102880 2005-10-28  Simon Josefsson  <jas@extundo.com>
102882         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102883         "restrict" keywords, as per POSIX.  Protect the function
102884         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102885         Don't use K&R prototypes.  Check the sprintf return values.
102886         Re-define EAFNOSUPPORT if not present.  Indent.
102888         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102889         suggested by Bruno Haible <bruno@clisp.org>.
102891         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102893         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102895         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102896         libgcrypt).
102898         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102900         * lib/md2.h, lib/md2.c: New files.
102902 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102904         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102905         errno alone.  Problem reported by Frederic Jolliton.
102907 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102909         * modules/verify (License): Change from GPL to LGPL.  This is a
102910         tiny module and there are apparently near-equivalents that are
102911         under the BSD license.
102913 2005-10-24  Simon Josefsson  <jas@extundo.com>
102915         * modules/sha1: Relicense to LGPL.
102917 2005-10-24  Simon Josefsson  <jas@extundo.com>
102919         * lib/md4.h: Shrink buffer size, now that we changed the type.
102921 2005-10-23  Simon Josefsson  <jas@extundo.com>
102923         * gnulib-tool (func_import): Fix --tests-base.
102925 2005-10-22  Simon Josefsson  <jas@extundo.com>
102927         * modules/arcfour (Depends-on): Need stdint.
102929 2005-10-22  Simon Josefsson  <jas@extundo.com>
102931         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102932         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102934 2005-10-22  Simon Josefsson  <jas@extundo.com>
102936         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102937         suggested by Bruno Haible <bruno@clisp.org>.
102939 2005-10-22  Simon Josefsson  <jas@extundo.com>
102941         * lib/crc.h: Include stddef.h, for size_t.
102943 2005-10-22  Simon Josefsson  <jas@extundo.com>
102945         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102946         arcfour_context struct (simplify test vector testing in GNU
102947         Shishi).
102949 2005-10-21  Simon Josefsson  <jas@extundo.com>
102951         * modules/des, modules/des-tests: New files.
102953         * modules/gc-des, modules/gc-des-tests: New files.
102955         * tests/test-des.c, tests/test-gc-des.c: New file.
102957 2005-10-21  Simon Josefsson  <jas@extundo.com>
102959         * modules/arctwo, modules/arctwo-tests: New files.
102961         * tests/test-arctwo.c: New file.
102963         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102965         * tests/test-gc-arctwo.c: New file.
102967 2005-10-21  Simon Josefsson  <jas@extundo.com>
102969         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102970         Bruno Haible <bruno@clisp.org>.
102972         * m4/gc-des.m4: New file.
102974 2005-10-21  Simon Josefsson  <jas@extundo.com>
102976         * m4/arctwo.m4: New file.
102978         * m4/gc-arctwo.m4: New file.
102980 2005-10-21  Simon Josefsson  <jas@extundo.com>
102982         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102983         block.
102985 2005-10-21  Simon Josefsson  <jas@extundo.com>
102987         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102988         <bruno@clisp.org>.
102990         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102992         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102993         Bruno Haible <bruno@clisp.org>.
102995         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102996         <bruno@clisp.org>.
102998 2005-10-21  Simon Josefsson  <jas@extundo.com>
103000         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
103002 2005-10-21  Simon Josefsson  <jas@extundo.com>
103004         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
103006 2005-10-21  Simon Josefsson  <jas@extundo.com>
103008         * lib/des.h, lib/des.c: New files.
103010         * lib/gc-gnulib.c: Support DES.c
103012 2005-10-21  Simon Josefsson  <jas@extundo.com>
103014         * lib/arctwo.h, lib/arctwo.c: New files.
103016         * lib/gc-gnulib.c: Support ARCTWO.
103018 2005-10-21  Simon Josefsson  <jas@extundo.com>
103020         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
103021         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103023 2005-10-21  Simon Josefsson  <jas@extundo.com>
103025         * gnulib-tool (func_import, func_create_testdir): Define automake
103026         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
103027         Makefile.am snippet),
103028         suggested by Bruno Haible <bruno@clisp.org>.
103030         * modules/gc (Makefile.am): Use it.
103032 2005-10-21  Bruno Haible  <bruno@clisp.org>
103034         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
103035         patch.
103037 2005-10-19  Simon Josefsson  <jas@extundo.com>
103039         * tests/test-gc-rijndael.c: New file.
103041         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
103043 2005-10-19  Simon Josefsson  <jas@extundo.com>
103045         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
103046         interface too.
103048 2005-10-19  Simon Josefsson  <jas@extundo.com>
103050         * tests/test-gc-arcfour.c: New file.
103052         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
103054 2005-10-19  Simon Josefsson  <jas@extundo.com>
103056         * modules/gc-md4, modules/gc-md4-tests: New file.
103058         * tests/test-gc-md4.c: New file.
103060 2005-10-19  Simon Josefsson  <jas@extundo.com>
103062         * m4/gc-md4.m4: New file.
103064 2005-10-19  Simon Josefsson  <jas@extundo.com>
103066         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
103067         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
103068         <kasal@ucw.cz>.
103070 2005-10-19  Simon Josefsson  <jas@extundo.com>
103072         * m4/gc-arcfour.m4: New file.
103074         * m4/gc-rijndael.m4: New file.
103076 2005-10-19  Simon Josefsson  <jas@extundo.com>
103078         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
103080 2005-10-19  Simon Josefsson  <jas@extundo.com>
103082         * lib/gc-gnulib.c: Support ARCFOUR.
103084 2005-10-19  Simon Josefsson  <jas@extundo.com>
103086         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
103087         support.
103089         * lib/gc.h: Add ECB enum type.
103091         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
103093 2005-10-18  Simon Josefsson  <jas@extundo.com>
103095         * tests/test-md5.c: New file.
103097         * modules/md5-tests: New file.
103099 2005-10-18  Simon Josefsson  <jas@extundo.com>
103101         * tests/test-md4.c: New file.
103103         * modules/md4, modules/md4-tests: New files.
103105 2005-10-18  Simon Josefsson  <jas@extundo.com>
103107         * m4/md4.m4: New file.
103109 2005-10-18  Simon Josefsson  <jas@extundo.com>
103111         * lib/md4.h, lib/md4.c: New files, based on md5.?.
103113 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
103115         * gnulib-tool (func_create_testdir): Omit the second check whether
103116         BUILT_SOURCES in nonempty.
103118 2005-10-17  Simon Josefsson  <jas@extundo.com>
103120         * tests/test-rijndael.c: New file.
103122 2005-10-17  Simon Josefsson  <jas@extundo.com>
103124         * modules/sha1: Depend on stdint instead of md5.
103126         * modules/md5: Depend on stdint, remove uint32_t.
103128 2005-10-17  Simon Josefsson  <jas@extundo.com>
103130         * modules/gc-sha1-tests: New file.
103132         * tests/test-gc-sha1.c: New file.
103134 2005-10-17  Simon Josefsson  <jas@extundo.com>
103136         * m4/md5.m4: Remove call to uint32_t.m4.
103138 2005-10-17  Simon Josefsson  <jas@extundo.com>
103140         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
103142         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
103143         md5.h.
103145         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
103147         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
103149 2005-10-17  Simon Josefsson  <jas@extundo.com>
103151         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
103153 2005-10-17  Simon Josefsson  <jas@extundo.com>
103155         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
103157 2005-10-17  Simon Josefsson  <jas@extundo.com>
103159         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
103161         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
103163 2005-10-17  Bruno Haible  <bruno@clisp.org>
103165         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
103166         that it can also be used in a test.
103168 2005-10-16  Bruno Haible  <bruno@clisp.org>
103170         * gnulib-tool (func_emit_tests_Makefile_am): Also define
103171         TESTS_ENVIRONMENT, so that individual tests can augment it.
103173         * gnulib-tool (func_create_testdir): Use an intermediate target for
103174         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
103175         macros, like $(ALLOCA_H), which cannot be passed through the command
103176         line.
103178 2005-10-15  Simon Josefsson  <jas@extundo.com>
103180         * modules/rijndael-tests: New file.
103182         * modules/rijndael: New file.
103184 2005-10-15  Simon Josefsson  <jas@extundo.com>
103186         * m4/rijndael.m4: New file.
103188 2005-10-15  Simon Josefsson  <jas@extundo.com>
103190         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
103192         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
103194 2005-10-14  Simon Josefsson  <jas@extundo.com>
103196         * tests/test-arcfour.c: New file.
103198         * modules/arcfour, modules/arcfour-tests: New files.
103200 2005-10-14  Simon Josefsson  <jas@extundo.com>
103202         * m4/arcfour.m4: New file.
103204 2005-10-14  Simon Josefsson  <jas@extundo.com>
103206         * lib/arcfour.h, lib/arcfour.c: New files.
103208 2005-10-14  Roland McGrath  <roland@redhat.com>
103210         Import from libc.  [BZ #1331]
103211         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
103212         macro argument.
103213         Reported by Matej Vela <vela@debian.org>.
103215 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103217         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
103218         include <wchar.h>; no longer needed.
103220 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103222         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
103224 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
103225         and  Ulrich Drepper  <drepper@redhat.com>
103227         Import from libc.
103228         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
103229         instead of inline stream orientation test and two separate
103230         function calls.  Pay no attention to USE_IN_LIBIO.
103232 2005-10-13  Simon Josefsson  <jas@extundo.com>
103234         * modules/gc-hmac-md5-tests: New file.
103236         * tests/test-gc-hmac-sha1.c: New file.
103238         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
103240         * modules/gc-hmac-md5-tests: New file.
103242         * tests/test-gc-md5.c: New file.
103244         * modules/gc-md5-tests: New file.
103246 2005-10-13  Simon Josefsson  <jas@extundo.com>
103248         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
103249         Move memory allocation outside of loop.
103251 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
103253         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
103254         intermediate directory is in a read-only file system.  Problem
103255         reported by Eric Blake.
103257 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
103259         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
103261 2005-10-12  Simon Josefsson  <jas@extundo.com>
103263         * tests/test-hmac-sha1.c: New file.
103265         * modules/hmac-sha1-tests: New file.
103267         * modules/hmac-sha1: New file.
103269 2005-10-12  Simon Josefsson  <jas@extundo.com>
103271         * modules/gc-sha1: New file.
103273 2005-10-12  Simon Josefsson  <jas@extundo.com>
103275         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
103277         * tests/test-gc-pbkdf2-sha1.c: New file.
103279 2005-10-12  Simon Josefsson  <jas@extundo.com>
103281         * modules/gc-md5, modules/gc-hmac-md5: New files.
103283         * modules/gc (Files): Remove md5, memxor and hmac files.
103285 2005-10-12  Simon Josefsson  <jas@extundo.com>
103287         * m4/gc-pbkdf2-sha1.m4: New file.
103289         * m4/gc-hmac-sha1.m4: New file.
103291         * m4/gc-sha1: New file.
103293         * m4/hmac-sha1.m4: New file.
103295 2005-10-12  Simon Josefsson  <jas@extundo.com>
103297         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
103299         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
103301 2005-10-12  Simon Josefsson  <jas@extundo.com>
103303         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
103304         suggested by Bruno Haible <bruno@clisp.org>.
103306 2005-10-12  Simon Josefsson  <jas@extundo.com>
103308         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
103310 2005-10-12  Simon Josefsson  <jas@extundo.com>
103312         * lib/gc-pbkdf2-sha1.c: New file.
103314         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
103316 2005-10-12  Simon Josefsson  <jas@extundo.com>
103318         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
103320         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
103322 2005-10-12  Simon Josefsson  <jas@extundo.com>
103324         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
103325         GC_USE_HMAC_MD5, respectively.
103327         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
103328         (gc_md5): Fix typo.
103330         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
103332         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
103334         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
103336 2005-10-12  Bruno Haible  <bruno@clisp.org>
103338         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
103339         Reported by Stepan Kasal <kasal@ucw.cz>.
103341 2005-10-11  Simon Josefsson  <jas@extundo.com>
103343         * tests/test-crc.c: New file.
103345         * modules/crc, modules/crc-tests: New files.
103347 2005-10-11  Simon Josefsson  <jas@extundo.com>
103349         * m4/crc.m4: New file.
103351 2005-10-11  Simon Josefsson  <jas@extundo.com>
103353         * lib/gc.h: Add gc_hash and gc_hash_buffer.
103355         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103357         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103359 2005-10-11  Simon Josefsson  <jas@extundo.com>
103361         * lib/crc.h, lib/crc.c: New files.
103363         * lib/gc.h (gc_hash_buffer): Add doc.
103365 2005-10-11  Bruno Haible  <bruno@clisp.org>
103367         * modules/c-strcasestr: New file.
103368         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103370 2005-10-11  Bruno Haible  <bruno@clisp.org>
103372         * modules/c-strcase: New file.
103373         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103375 2005-10-11  Bruno Haible  <bruno@clisp.org>
103377         * lib/strcasecmp.c: Include limits.h.
103378         (strcasecmp): Avoid integer overflow on exotic platforms.
103379         * lib/strncasecmp.c: Include limits.h.
103380         (strncasecmp): Avoid integer overflow on exotic platforms.
103381         Reported by Paul Eggert.
103383 2005-10-11  Bruno Haible  <bruno@clisp.org>
103385         * lib/c-strcasestr.h: New file, from GNU gettext.
103386         * lib/c-strcasestr.c: New file, from GNU gettext.
103388 2005-10-11  Bruno Haible  <bruno@clisp.org>
103390         * lib/c-strcase.h: New file, from GNU gettext.
103391         * lib/c-strcasecmp.c: New file, from GNU gettext.
103392         * lib/c-strncasecmp.c: New file, from GNU gettext.
103394 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103396         * modules/mempcpy (License): GPL -> LGPL.
103397         * modules/strchrnul (License): Likewise.
103398         * modules/sysexits (License): Likewise.
103400 2005-10-08  Simon Josefsson  <jas@extundo.com>
103402         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103404 2005-10-07  Simon Josefsson  <jas@extundo.com>
103406         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103408 2005-10-06  Simon Josefsson  <jas@extundo.com>
103410         * tests/test-hmac-md5.c: New file.
103412         * modules/hmac-md5-tests: New file.
103414         * modules/hmac-md5: New file.
103416 2005-10-06  Simon Josefsson  <jas@extundo.com>
103418         * m4/hmac-md5.m4: New file.
103420         * m4/memxor.m4: Require gl_C_RESTRICT.
103422 2005-10-06  Simon Josefsson  <jas@extundo.com>
103424         * lib/memxor.c (memxor): Avoid casts and warnings.
103426 2005-10-06  Simon Josefsson  <jas@extundo.com>
103428         * lib/hmac-md5.c: New file.
103430         * lib/hmac.h: New file.
103432 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103434         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103435         promotes to int, not unsigned int, to catch the AIX 5.3
103436         compiler bug.
103438 2005-10-05  Simon Josefsson  <jas@extundo.com>
103440         * modules/memxor: New file.
103442         * modules/iconv (Files): Move config.rpath to havelib, it is used
103443         there.
103445         * modules/havelib (Files): Add config.rpath.
103447 2005-10-05  Simon Josefsson  <jas@extundo.com>
103449         * m4/memxor.m4: New file.
103451 2005-10-05  Simon Josefsson  <jas@extundo.com>
103453         * lib/memxor.c (memxor): Fix compiler error.
103455         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103456         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103458         * lib/memxor.h, lib/memxor.c: New files.
103460         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103461         we assume all systems have it, suggested by Jim Meyering
103462         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103463         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103464         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103465         same reasons.
103467 2005-10-05  Simon Josefsson  <jas@extundo.com>
103469         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103471 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103474         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103475         needed, since the source code now assumes these .h files.
103477 2005-10-05  Derek Price  <derek@ximbiot.com>
103479         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103481 2005-10-05  Bruno Haible  <bruno@clisp.org>
103483         * modules/stdint (License): Change to LGPL.
103485 2005-10-04  Simon Josefsson  <jas@extundo.com>
103487         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103488         D. Baushke" <mdb@gnu.org>.
103490 2005-10-04  Bruno Haible  <bruno@clisp.org>
103492         * lib/verify.h (verify_true): Provide alternative definition for C++.
103494 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103496         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103497         (SSIZE_MAX): New macro, if not already defined.
103498         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103499         than 2 GiB.
103501 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103503         Sync from coreutils.
103504         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103505         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103506         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103507         ULLONG_MAX doesn't work with 2.7.2.1.
103509 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103511         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103512         From Ben Pfaff.
103514         * modules/exclude (Depends-on): Depend on verify.
103515         * modules/strtoimax (Depends-on): Likewise.
103516         * modules/utimecmp (Depends-on): Likewise.
103518 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103520         * lib/exclude.c: Include verify.h.
103521         (verify): Remove.  All callers changed to use verify.h's version.
103522         * lib/strtoimax.c: Likewise.
103523         * lib/utimecmp.c: Likewis.e
103525         Sync from coreutils.
103526         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103527         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103528         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103529         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103530         bother returning ENOSYS if settimeofday or stime fails; just let
103531         them return whatever errno they want to return.
103532         * lib/utimens.c: Include unistd.h, for dup2.
103533         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103534         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103536 2005-10-02  Jim Meyering  <jim@meyering.net>
103538         Sync from coreutils.
103539         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103540         from glibc-2.2.5 that fails for read-only files.
103542 2005-10-02  Jim Meyering  <jim@meyering.net>
103544         Sync from coreutils.
103545         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103546         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103547         `#if HAVE_CONFIG_H'.
103548         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103549         Remove AT_FDCWD test.
103550         Do not consume the fd unless successful.
103551         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103552         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103553         block, so that we don't even try to compile it if settimeofday is
103554         available.  This works around a compilation failure on OSF1 V5.1,
103555         due to stime requiring a `long int*' while tv_sec is `int'.
103557 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103559         Sync from coreutils.
103560         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103561         against `yes', rather than just testing for nonempty.
103563 2005-10-01  Simon Josefsson  <jas@extundo.com>
103565         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103566         and Darwin.
103568         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103569         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103570         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103571         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103572         Check if struct addrinfo is declared.
103574 2005-10-01  Simon Josefsson  <jas@extundo.com>
103576         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103577         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103578         AI_* and EAI_* definitions.  Protect function declarations.
103580 2005-10-01  Jim Meyering  <jim@meyering.net>
103582         Sync from coreutils.
103584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103585         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103586         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103588         in the inet and nsl libraries.  Required on Solaris 5.7.
103590 2005-10-01  Jim Meyering  <jim@meyering.net>
103592         Sync from coreutils.
103593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103594         in the inet and nsl libraries.  Required on Solaris 5.7.
103596 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103598         * lib/getdelim.c (getdelim): Remove unused variables.
103600 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103602         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103603         so that the code works even with ancient cpp.  Portability problem
103604         with GCC 2.7.2.1 reported by Thomas M.Ott.
103606 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103608         * modules/regex (Depends-on): Add strcase.
103610         * modules/gethostname (Licence): Change from GPL to LGPL, since
103611         gethostname.c is a trivial implementation of a standard library
103612         function.
103613         * modules/poll (License): Change from GPL to LGPL, since it's
103614         derived from LGPL code.
103616 2005-09-27  Jim Meyering  <jim@meyering.net>
103618         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103619         HAVE_CONFIG_H.
103621         * lib/intprops.h (signed_type_or_expr__): Define.
103622         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103623         for unsigned types.
103625 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103627         * lib/verify.h (verify_expr): Remove, replacing with:
103628         (verify_true): New macro that returns true instead of void.
103629         (verify_type__): Remove.
103630         (verify): Use verify_true rather than verify_type__.
103632 2005-09-26  Bruno Haible  <bruno@clisp.org>
103634         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103635         is necessary.
103636         (lib_SOURCES): Remove mbchar.c.
103637         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103638         (Files): Add m4/mbrtowc.m4.
103639         * modules/mbiter: Likewise.
103640         * modules/mbuiter: Likewise.
103642 2005-09-26  Bruno Haible  <bruno@clisp.org>
103644         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103645         compile mbchar.c if they are not both present.
103646         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103647         * m4/mbiter.m4 (gl_MBITER): Likewise.
103648         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103649         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103650         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103652 2005-09-25  Jim Meyering  <jim@meyering.net>
103654         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103655         also uses socklen_t.
103657 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103659         * lib/utimens.c (ENOSYS): Define if not already defined.
103660         (futimens): Support having a null PATH if the file descriptor
103661         is nonnegative.
103663         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103664         Remove.
103665         (__attribute): Define to empty unless GCC 3.1 or later.
103666         This works around a core dump on OpenBSD 3.4, which has GCC
103667         2.95.3, which dumps core when given __attribute__(()).  It also
103668         simplifies other tests, since we really don't want to bother with
103669         worrying about which ancient version of GCC supported what.
103670         Original problem reported by Yoann Vandoorselaere, with part of
103671         the fix suggested by Derek Price.
103673 2005-09-24  Jim Meyering  <jim@meyering.net>
103675         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103676         so we can once again use a positive bitfield width of 1 -- now we
103677         don't have to explain why we were using a bitfield width of 2.
103679 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103681         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103682         and similarly for the other external symbols.  Problem reported
103683         by James Gallager.
103685         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103686         bug reported by Jim Meyering.
103688         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103690         not needed, since socklen is a prerequisite module.
103692 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103694         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103695         Problem reported by Eric Blake.
103696         (getaddrinfo): Initialize se so that it's not garbage.
103697         Redo internal storage allocation so that it doesn't make unportable
103698         assumptions about alignment.
103699         Fix a memory leak.
103701         * lib/utimens.c (futimens): Use futimesat if available.
103702         Prefer it to futimes since it doesn't have the futimes bug.
103704         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103705         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103706         Instead, declare a function that returns a pointer to an array,
103707         and use verify_type__ to declare the size of the array.
103708         Problem and germ of a solution reported by Bruno Haible.
103709         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103710         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103712 2005-09-23  Jim Meyering  <jim@meyering.net>
103714         Sync from coreutils.
103715         Correct build failure (socklen_t not defined) on at least
103716         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103719 2005-09-23  Jim Meyering  <jim@meyering.net>
103721         * modules/getaddrinfo (Depends-on): Add socklen.
103723 2005-09-23  Bruno Haible  <bruno@clisp.org>
103725         * tests/test-verify.c: New file.
103727 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103729         Sync from coreutils.
103731         * modules/argmatch (Depends-on): Add verify.
103732         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103733         unistd-safer.
103734         * modules/save-cwd (Depends-on): Likewise.
103736         * modules/openat (Files): Add lib/openat-die.c.
103737         (Depends-on): Remove error, exitfail.
103738         Add dirname.
103740         * modules/verify: New file.
103741         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103742         with "verify" module.
103744 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103746         Sync from coreutils.
103748         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103749         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103750         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103751         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103752         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103753         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103754         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103755         Don't bother checking for string.h, stdlib.h, unistd.h.
103756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103757         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103758         module's job.
103759         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103760         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103762         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103763         (gl_GETDATE): Use it.
103765         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103767 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103769         Sync from coreutils.
103771         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103772         stat-time.h.
103773         * lib/argmatch.h: Include verify.h
103774         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103775         (ARGMATCH_ASSERT): Remove; unused.
103776         * lib/canonicalize.c: Assume STDC_HEADERS.
103777         * lib/exclude.c: Include "strcase.h".
103778         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103779         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103780         and stdio-safer.h.
103781         (getusershell): Call fopen, not fopen_safer.
103782         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103783         Do not include unistd-safer.h.
103784         (save_cwd): Don't call fd_safer; no longer needed
103785         now that we include fcntl--.h.
103787         * lib/getdate.y (relative_time): New type.
103788         (RELATIVE_TIME_0): New constant.
103789         (parser_control): Use relative_time instead of doing it ourselves.
103790         (%union): Add new relative_time rel member.
103791         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103792         Now typeless.
103793         (relunit, relunit_snumber): Now of type rel.
103794         (zone, rel, relunit, get_date): Adjust to above changes.
103796         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103797         Do not include unistd-safer.h.
103798         (getloadavg): Don't call fd_safer; no longer needed
103799         now that we include fcntl--.h.
103801         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103802         (make_dir_parents): Treat ENOSYS like EEXIST.
103804         Improve quality of diagnostics on restore_cwd failure.
103805         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103806         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103807         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103808         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103809         each time through the loop.  Do not diagnose restore_cwd failure;
103810         that is the caller's job (and perhaps the caller does not care).
103812         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103813         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103814         If the file already exists but is not a directory, don't bother
103815         to try to make its parents.
103816         Close potential file descriptor leak if we can't chdir("/") (!).
103817         Don't always return true if chdir($PWD) fails; return true only
103818         if the requested action was done successfully (except for the
103819         chdir($PWD)).
103820         Don't log final directory unless we actually made it.
103821         Refactor to avoid duplicate code to fix up permissions.
103822         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103824         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103825         to make it a bit faster and (I hope) clearer.
103826         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103827         Fix bug in formats like %2N.
103829         * lib/verify.h: New file.
103831 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103833         Sync from coreutils.
103834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103836 2005-09-22  Jim Meyering  <jim@meyering.net>
103838         Sync from coreutils.
103840         * m4/lstat.m4 (gl_FUNC_LSTAT):
103841         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103842         Remove obsolete comment.
103843         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103844         * m4/xstrtod.m4: Likewise.
103846         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103848 2005-09-22  Jim Meyering  <jim@meyering.net>
103850         Sync from coreutils.
103852         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103854         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103855         the .tm_year member, since otherwise gcc-4.0 would now warn about
103856         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103858         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103859         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103861         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103862         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103863         when run in a time zone for which daylight savings time is in effect
103864         for the starting date.
103866         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103867         stop us from restricting permissions of just-created absolute-named
103868         directories.
103869         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103870         to restore initial working directory.
103871         * lib/mkdir-p.c (make_dir_parents): New parameter:
103872         different_working_dir, to tell caller if/when we change the working
103873         directory and are unable to return to the initial one.
103874         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103875         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103876         `return false'.  This fixes a bug introduced on 2004-07-30.
103878         * lib/openat.c (fdopendir): Be sure to close the supplied
103879         file descriptor before returning.  This makes our replacement
103880         implementation a little closer to Solaris's, where fdopendir
103881         ties the file descriptor to the returned DIR* pointer.
103882         * lib/openat.c (unlinkat): New function.
103883         * lib/openat.h (unlinkat): Add prototype.
103884         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103885         (openat_restore_fail): Rename from openat_restore_die.
103886         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103888         Provide an alternative to exiting immediately upon save_cwd or
103889         restore_cwd failure.  Now, an application can arrange e.g.,
103890         to perform a longjump in that case.
103891         * lib/openat.c: Include dirname.h.
103892         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103893         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103894         and openat_restore_die rather than calling error directly.
103895         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103897         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103898         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103899         define.
103901         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103902         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103903                             int utc, int nanoseconds);
103904         Background:
103905         date should not have to allocate a megabyte of virtual memory to
103906         handle a format argument like +%1048575T.  When implemented with
103907         strftime, it must allocate such a buffer, use strftime to fill it
103908         in, print it, then free it.
103909         With fprintftime, it simply prints everything and exits.
103910         With no need for memory allocation, that's one fewer way to fail.
103911         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103912         optional field width, not before, so we accept %9:z, not %:9z.
103913         (my_strftime): Be sure to use L_('x') for literals.
103915         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103916         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103917         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103918         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103919         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103920         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103921         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103922         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103923         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103924         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103925         * lib/xgethostname.c, lib/xreadlink.c:
103926         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103928         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103929         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103930         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103931         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103932         and don't include <sys/file.h>).
103934 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103936         Sync from coreutils.
103938         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103939         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103940         [!LDAV_DONE]: Avoid unused variable warning.
103942 2005-09-21  Bruno Haible  <bruno@clisp.org>
103944         * lib/unicodeio.h (unicode_to_mb): New declaration.
103946 2005-09-20  Derek Price  <derek@ximbiot.com>
103948         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103949         getaddrinfo.h.
103951 2005-09-20  Bruno Haible  <bruno@clisp.org>
103953         * gnulib-tool: Remove trailing slashes from the values specified for
103954         --source-base, --m4-base, --tests-base, --aux-dir.
103955         Suggested by Simon Josefsson <jas@extundo.com>.
103957 2005-09-20  Bruno Haible  <bruno@clisp.org>
103959         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103960         func_modules_to_filelist, func_import, func_create_testdir): Make all
103961         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103962         change when gnulib-tool is invoked in a different locale.
103964 2005-09-19  Simon Josefsson  <jas@extundo.com>
103966         * m4/socklen.m4: Fix typo.
103968 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103970         Use a consistent style for including <config.h>.
103971         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103972         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103973         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103974         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103975         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103976         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103977         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103978         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103979         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103980         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103981         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103982         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103983         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103984         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103985         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103986         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103987         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103988         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103989         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103990         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103991         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103992         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103993         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103994         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103995         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103996         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103997         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103998         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103999         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
104000         lib/xstrtoumax.c, lib/yesno.c:
104001         Standardize inclusion of config.h.
104002         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
104003         lib/inttostr.h:  Removed inclusion of config.h from header files.
104004         * lib/inttostr.c:  Adjusted in-tree users.
104005         * lib/timespec.h: Remove superfluous warning to include config.h.
104006         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
104007         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
104008         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
104009         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
104010         config.h with HAVE_CONFIG_H.
104012 2005-09-19  Jim Meyering  <jim@meyering.net>
104014         * modules/pathmax (License): Change to LGPL.
104016 2005-09-19  Derek Price  <derek@ximbiot.com>
104018         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
104020 2005-09-19  Bruno Haible  <bruno@clisp.org>
104022         * gnulib-tool (import): Provide default for --tests-base.
104024 2005-09-19  Bruno Haible  <bruno@clisp.org>
104026         * doc/quote.texi: New file, extracted from gnulib.texi.
104027         * doc/ctime.texi: New file, extracted from gnulib.texi.
104028         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
104029         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
104030         * doc/gnulib.texi: Include them.
104032 2005-09-18  Bruno Haible  <bruno@clisp.org>
104034         Portability fix.
104035         * gnulib-tool (func_readlink): New function.
104036         (func_ln_if_changed): Use it.
104038 2005-09-18  Bruno Haible  <bruno@clisp.org>
104040         * gnulib-tool: Support --with-tests also with --import.
104041         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
104042         (func_import): Use variables $testsbase and $inctests. Emit a
104043         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
104044         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
104045         SUBDIRS += $testsdir.
104046         (func_create_testdir): Update.
104048 2005-09-18  Bruno Haible  <bruno@clisp.org>
104050         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
104051         instead of $dry_run.
104052         (func_cp_if_changed, func_mv_if_changed): Remove functions.
104053         (func_ln_if_changed): Don't handle dry-run here.
104054         (func_import): In dry-run mode, detect more precisely which actions
104055         would be performed, and don't use "...ing" verbs.
104057 2005-09-18  Bruno Haible  <bruno@clisp.org>
104059         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
104060         (func_import): Use join on two temporary files instead of three nested
104061         loops, in order to determine which files are new or old.
104063 2005-09-18  Bruno Haible  <bruno@clisp.org>
104065         * gnulib-tool (func_import): Comment out code that spits out the
104066         new files with --dry-run.
104068 2005-09-18  Bruno Haible  <bruno@clisp.org>
104070         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
104072 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104074         * lib/stat-time.h: New file.
104075         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
104076         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
104077         in a different way.
104078         (timespec_cmp): New function.
104079         * lib/utimecmp.c: Include stat-time.h.
104080         (SYSCALL_RESOLUTION): Depend on whether various struct stat
104081         members exist, not on the obsolescent ST_MTIM_NSEC.
104082         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
104084 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104086         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
104088 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104090         * MODULES.html.sh (File system functions): Add stat-time.
104091         * modules/stat-time: New file.
104092         * modules/timespec (Files): Remove m4/st_mtim.m4; this
104093         is now done in a different way, by the stat-time module.
104094         * modules/utimecmp (Depends-on): Add stat-time.
104096 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
104098         * m4/st_mtim.m4: Remove.  Superseded by...
104099         * m4/stat-time.m4: New file.
104100         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
104101         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
104103 2005-09-15  Derek Price  <derek@ximbiot.com>
104105         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
104107 2005-09-15  Derek Price  <derek@ximbiot.com>
104109         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
104110         * lib/regex_internal.c: Ditto, using this...
104111         (__GNUC_PREREQ): ...new macro.
104112         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
104113         using...
104114         (__GNUC_PREREQ): ...this new macro.
104116         * lib/strstr.h: Include string.h. Define strstr as a macro here.
104118 2005-09-15  Derek Price  <derek@ximbiot.com>
104119             Paul Eggert  <eggert@cs.ucla.edu>
104121         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
104122         changes, consolidating in...
104123         * lib/regex_internal.h: ...this file.
104125 2005-09-13  Jim Meyering  <jim@meyering.net>
104127         * lib/canon-host.c: Filter through gnu indent and reword comments
104128         slightly.
104129         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
104131 2005-09-13  Derek Price  <derek@ximbiot.com>
104133         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
104134         failure.
104135         Reported by Jim Meyering  <jim@meyering.net>.
104137 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104139         * lib/base64.c: Typo.
104140         (base64_encode): Put b64str in initialized data section.
104142 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
104144         Merge glibc and coreutils changes into gnulib, plus a few
104145         extra fixes.
104146         * lib/md5.c: Use #error rather than a string.
104147         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
104148         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
104149         (__attribute__): Define to empty for non recent-GCC.
104150         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
104151         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
104152         Renamed from their non-__ counterparts, with new macros replacing
104153         them if not _LIBC.  Add __THROW attribute.
104154         (rol): Remove.
104155         (struct md5_ctx): Align buffer if using GCC.
104156         * lib/sha1.h (struct sha1_ctx): Likewise.
104157         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
104158         The old name was backwards.
104159         (NOTSWAP): Remove; not used.
104160         (rol): New macro, moved here from md5.h.
104161         (sha1_process_block): Remove a FIXME that doesn't make sense.
104163 2005-09-12  Derek Price  <derek@ximbiot.com>
104165         Return usable errors from canon-host.
104166         * lib/canon-host.h: New file.
104167         * lib/canon-host.c (canon_host): Wrap...
104168         (canon_host_r): ...this new function, which now relies exclusively on
104169         getaddrinfo.
104170         (ch_strerror): New function.
104171         (last_cherror): New global.
104172         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
104173         interface.
104174         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
104175         void *.
104176         (freeaddrinfo): Free ai->ai_canonname when set.
104178 2005-09-12  Derek Price  <derek@ximbiot.com>
104180         Make canon-host require getaddrinfo.
104181         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
104182         AC_LIBSOURCE canon-host.h.  Call...
104183         (gl_PREREQ_CANON_HOST): ...this new function, which requires
104184         gl_GETADDRINFO.
104185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
104187 2005-09-12  Derek Price  <derek@ximbiot.com>
104189         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
104190         LGPL.
104191         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
104193 2005-09-12  Derek Price  <derek@ximbiot.com>
104195         * lib/gai_strerror.c: Include config.h when available.  Include
104196         getaddrinfo.h before other headers to test interface.
104197         Reported by Larry Jones <lawrence.jones@ugs.com>.
104199 2005-09-12  Derek Price  <derek@ximbiot.com>
104200             Paul Eggert  <eggert@cs.ucla.edu>
104202         * modules/glob (Files): Add glob-libc.h.
104204 2005-09-12  Derek Price  <derek@ximbiot.com>
104205             Paul Eggert  <eggert@cs.ucla.edu>
104207         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
104208         glob_.h, glob-libc.h.
104209         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
104211 2005-09-12  Derek Price  <derek@ximbiot.com>
104212             Paul Eggert  <eggert@cs.ucla.edu>
104214         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
104215         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
104216         protecting things that should be done only in gnulib contexts.
104217         * lib/glob_.h: New file, containing only the glob things needed for
104218         gnulib.
104219         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
104220         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
104221         (glob, globfree, glob_pattern_p): Now defined simply in terms of
104222         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
104223         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
104224         and to respect the namespace rules better.
104226 2005-09-08  Simon Josefsson  <jas@extundo.com>
104228         * modules/socklen: New file.
104230 2005-09-08  Simon Josefsson  <jas@extundo.com>
104232         * m4/socklen.m4: New file.
104234 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104236         * modules/utimens (Files): Add m4/utimbuf.m4, since
104237         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
104238         Reported by Sergey Poznyakoff.
104240 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104242         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
104243         definitions, since that's the preferred style in glibc.
104244         Fix a minor spacing issue, and update copyright notice to match
104245         glibc's.
104247 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104249         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
104251 2005-09-06  Simon Josefsson  <jas@extundo.com>
104253         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
104254         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
104256 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104258         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
104259         warning.
104261 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104263         * config/srclist.txt: Add glibc bug 1302.
104265 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
104267         Change bitset word type from unsigned int to unsigned long int,
104268         as this has better performance on typical 64-bit hosts.
104269         Port bitset code to hosts with unusual word sizes.
104270         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
104271         (build_collating_symbol):
104272         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
104273         argument is a bitset.  This is merely a style issue, but it makes
104274         it clearer that an entire array is expected.
104275         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
104276         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
104277         Port to the case where bitset_word is not the same as unsigned int.
104278         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104279         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
104280         Likewise.
104281         * lib/regexec.c (check_dst_limits_calc_pos_1,
104282         check_subexp_matching_top):
104283         (build_trtable, group_nodes_into_DFAstates):
104284         Likewise.
104285         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
104286         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
104287         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
104288         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
104289         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
104290         * lib/regcomp.c (optimize_subexps, lower_subexp):
104291         Work even if bitset_word has holes in its bitwise representation.
104292         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
104293         * lib/regexec.c (check_dst_limits_calc_pos_1,
104294         check_subexp_matching_top):
104295         Likewise.
104296         * lib/regex_internal.c (re_string_reconstruct):
104297         Don't assume UCHAR_MAX == 255.
104298         * lib/regex_internal.h (bitset_set_all): Likewise.
104299         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
104300         All uses changed.
104301         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
104302         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
104303         All uses changed.
104304         (BITSET_WORD_MAX): New macro.
104305         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
104306         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
104307         (bitset_empty, bitset_copy):
104308         Prefer sizeof (bitset) to multiplying it out ourselves.
104309         (bitset_not_merge): Remove; unused.
104310         (bitset_contain): Return bool, not unsigned int with one bit on.
104311         All callers changed.
104312         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
104313         alignment than re_node_set; do this by defining a new internal
104314         type struct dests_alloc and using it to allocate memory.
104316 2005-09-05  Bruno Haible  <bruno@clisp.org>
104318         * gnulib-tool (func_import): Fix comparison in handling of symbolic
104319         links.
104321 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
104323         * modules/size_max (Makefile.am): Add size_max.h
104325 2005-09-04  Derek Price  <derek@ximbiot.com>
104327         * gnulib-tool (func_import): Fix reversed $symbolic logic.
104329 2005-09-03  Simon Josefsson  <jas@extundo.com>
104331         * gnulib-tool: Fix typo.
104333 2005-09-03  Simon Josefsson  <jas@extundo.com>
104335         * config/srclist.txt: Add glibc bug 1293.
104337 2005-09-03  Derek Price  <derek@ximbiot.com>
104339         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
104340         From Larry Jones <lawrence.jones@ugs.com>.
104342 2005-09-02  Simon Josefsson  <jas@extundo.com>
104344         * modules/socklen: New file.
104346 2005-09-02  Simon Josefsson  <jas@extundo.com>
104348         * modules/havelib: New module.
104350         * modules/gettext, modules/iconv, modules/lock, modules/readline:
104351         Use havelib.
104353 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104355         Check for arithmetic overflow when calculating sizes, to prevent
104356         some buffer-overflow issues.  These patches are conservative, in the
104357         sense that when I couldn't determine whether an overflow was possible,
104358         I inserted a run-time check.
104359         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104360         macros.
104361         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104362         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104363         (re_xnrealloc, re_x2nrealloc): New inline functions.
104364         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104365         parse_bracket_exp):
104366         (build_equiv_class, build_charclass): Check for arithmetic overflow
104367         in size expression calculations.
104368         * lib/regex_internal.c (re_string_realloc_buffers):
104369         (build_wcs_upper_buffer, re_node_set_add_intersect):
104370         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104371         (re_dfa_add_node, register_state): Likewise.
104372         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104373         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104374         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104375         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104377 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104379         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104380         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104382 2005-09-02  Bruno Haible  <bruno@clisp.org>
104384         Support for lib vs. lib64 distinction on biarch platforms.
104385         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104386         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104389 2005-09-02  Bruno Haible  <bruno@clisp.org>
104391         * gnulib-tool (import): In the other first-use case, provide defaults
104392         as well.
104394 2005-09-02  Bruno Haible  <bruno@clisp.org>
104396         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104397         patches not yet found in the latest gettext release.
104399 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104401         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104402         to avoid a collision with bits/local_lim.h in glibc.
104403         All uses changed.  Problem reported by Dmitry V. Levin in
104404         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104406         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104407         bugs in int versus size_t comparisons.
104408         (re_string_context_at): Fix bug where the code assumed that
104409         Idx is signed.
104411         Use bool where appropriate.
104412         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104413         All callers changed.
104414         (calc_eclosure_iter): Likewise, for ROOT arg.
104415         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104416         (build_charclass_op): Likewise, for NON_MATCH arg.
104417         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104418         (re_string_construct_common): Likewise, for ICASE arg.
104419         * lib/regexec.c (re_search_2_stub, re_search_stub):
104420         Likewise, for RET_LEN arg.
104421         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104422         (set_regs): Likewise, for FL_BACKTRACK arg.
104423         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104424         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104425         (calc_eclosure_iter, parse_bracket_exp):
104426         Use bool for internal variables that are booleans.
104427         * lib/regexec.c (re_search_internal, check_matching,
104428         proceed_next_node):
104429         (set_regs, build_sifted_states, sift_states_bkref):
104430         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104431         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104432         (find_collation_sequence_value):
104433         Likewise.
104434         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104435         (re_node_set_compare):
104436         Return bool, not int. All callers changed.
104437         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104438         (build_trtable, check_node_accept): Likewise.
104439         * lib/regex_internal.h: Include stdbool.h.
104441         Fix bugs uncovered when converting to bool.
104442         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104443         failure instead of charging ahead blindly.
104444         * lib/regex_internal.c (register_state): Likewise.
104445         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104446         for freeing internal storage.
104447         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104448         bitset pieces used as boolean, to avoid undefined behavior
104449         on hosts that do int overflow checking.
104451 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104453         * config/srclist.txt: Add glibc bugs 1285-1287.
104455 2005-09-01  Jim Meyering  <jim@meyering.net>
104457         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104458         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104459         Require gl_STAT_MACROS, too.
104461 2005-09-01  Bruno Haible  <bruno@clisp.org>
104463         * gnulib-tool (import): In the first-use case, provide defaults.
104465 2005-09-01  Bruno Haible  <bruno@clisp.org>
104467         * gnulib-tool (func_import): Remove the .tmp files.
104469 2005-09-01  Bruno Haible  <bruno@clisp.org>
104471         * gnulib-tool (func_import): Fix handling of symbolic links.
104473 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104475         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104476         old glibc regex code mishandles strings longer than 2**31 bytes.
104477         This patch fixes this when the regex code is used in gnulib
104478         (i.e., outside glibc).
104480         This patch should not affect the use of the regex code inside
104481         glibc.  No doubt this problem also needs to be handled for glibc
104482         as well, but the result will be an incompatible change to the
104483         glibc ABI, and the old ABI will have to be supported too.  That
104484         can be the subject for another patch.
104486         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104487         governing whether the rest of this patch is active.  By default,
104488         the macro is disabled and the patch has no effect.
104489         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104490         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104491         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104492         (re_match_2, re_set_registers): Use the new types.
104493         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104494         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104495         New macros.
104496         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104497         (re_string_context_at, bin_tree_t, re_dfastate_t):
104498         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104499         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104500         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104501         (re_string_char_size_at, re_string_wchar_at):
104502         (re_string_elem_size_at):
104503         Use the new types and macros to port to 64-bit hosts.
104504         Use unsigned types for internal values, so that the code
104505         mostly works even for arrays larger than SSIZE_MAX.
104506         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104507         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104508         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104509         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104510         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104511         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104512         (calc_inveclosure, parse_dup_op, build_range_exp):
104513         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104514         (fetch_number, create_token_tree, mark_opt_subexp):
104515         Likewise.
104516         * lib/regex_internal.c (re_string_construct_common,
104517         create_ci_newstate):
104518         (create_cd_newstate, re_string_allocate, re_string_construct):
104519         (re_string_realloc_buffers, build_wcs_upper_buffer):
104520         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104521         (re_string_reconstruct, re_string_peek_byte_case):
104522         (re_string_fetch_byte_case, re_string_context_at):
104523         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104524         (re_node_set_init_copy, re_node_set_add_intersect):
104525         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104526         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104527         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104528         (re_acquire_state, re_acquire_state_context, register_state):
104529         Likewise.
104530         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104531         search_cur_bkref_entry):
104532         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104533         (re_search_internal, re_search_2_stub, re_search_stub)
104534         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104535         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104536         (update_cur_sifted_state, check_dst_limits):
104537         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104538         (check_subexp_limits, sift_states_bkref, merge_state_array):
104539         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104540         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104541         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104542         (expand_bkref_cache, check_node_accept_bytes):
104543         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104544         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104545         (acquire_init_state_context, check_halt_node_context):
104546         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104547         (sift_states_backward, clean_state_log_if_needed):
104548         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104549         (find_recover_state, transit_state_sb, transit_state_mb):
104550         (transit_state_bkref, build_trtable, match_ctx_clean):
104551         Likewise.
104552         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104553         to work around an assumption that REG_MISSING is negative.
104555         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104556         (seek_collating_symbol_entry) [defined _LIBC]:
104557         (lookup_collation_sequence_value) [defined _LIBC]:
104558         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104559         Use prototypes rather than old-style function definitions.
104560         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104561         (transit_state_sb) [0]:
104562         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104564         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104565         rm_eo.
104567         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104568         (optimize_subexps, lower_subexp):
104569         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104570         since the signed shift might overflow.  Use 1u<<31 instead.
104571         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104572         Likewise.
104573         * lib/regexec.c (check_dst_limits_calc_pos_1,
104574         check_subexp_matching_top): Likewise.
104576         * lib/regcomp.c (optimize_subexps, lower_subexp):
104577         Use CHAR_BIT rather than 8, for clarity.
104578         * lib/regexec.c (check_dst_limits_calc_pos_1):
104579         (check_subexp_matching_top): Likewise.
104580         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104581         have to worry about portability issues when shifting it left.
104582         Remove no-longer-needed test for table_size > 0.
104583         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104584         in a word, as the resulting behavior is undefined.
104585         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104586         in one case, a <= should have been an <, and in another case the
104587         whole test was missing.
104588         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104589         the standard name CHAR_BIT.
104590         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104591         this is not true on one's complement and signed-magnitude hosts.
104593         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104594         next_last_offset.
104595         (struct re_dfa_t): Remove unused member states_alloc.
104596         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104598 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104600         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104601         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104602         and large-file glibc and in 32-bit large-file Solaris.
104604 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104606         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104607         lengths fit in regoff_t; this isn't true if regoff_t is the same
104608         width as size_t.
104609         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104610         (= START + RANGE) instead of RANGE.  This avoids overflow
104611         problems when regoff_t is the same width as size_t.
104612         All callers changed.
104613         (re_search_2_stub): Check for overflow when adding the
104614         sizes of the two strings.
104615         (re_search_stub): Check for overflow when adding START
104616         to RANGE; if it occurs, substitute the extreme value.
104618 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104620         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104622 2005-08-31  Jim Meyering  <jim@meyering.net>
104624         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104625         a pointer-to-const.
104626         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104627         (register_state): Likewise.
104628         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104629         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104630         (group_nodes_into_DFAstates): Likewise.
104632 2005-08-31  Jim Meyering  <jim@meyering.net>
104634         * check-module: Add a FIXME comment.
104636 2005-08-31  Eric Blake  <ebb9@byu.net>
104638         * modules/unistd-safer (Files): Add unistd--.h.
104639         * modules/stdio-safer (Files): Add stdio--.h.
104641 2005-08-31  Derek Price  <derek@ximbiot.com>
104643         * lib/getdelim.c (getdelim): Return EOF on EOF.
104644         Reported by Larry Jones <lawrence.jones@ugs.com>.
104646 2005-08-31  Bruno Haible  <bruno@clisp.org>
104648         Avoid unnecessary diffs in the generated lib/Makefile.am.
104649         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104650         the generated files.
104651         (func_import): Don't set cmd.
104653 2005-08-31  Bruno Haible  <bruno@clisp.org>
104655         * lib/strstr.c: Include <stddef.h>, for NULL.
104656         * lib/strcasestr.c: Likewise.
104657         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104659 2005-08-31  Bruno Haible  <bruno@clisp.org>
104661         * gnulib-tool: New option --macro-prefix.
104662         (func_import): Use macro_prefix.
104663         (import): Handle option --macro-prefix.
104665 2005-08-31  Bruno Haible  <bruno@clisp.org>
104667         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104668         Also use new variables cached_lgpl, cached_libtool.
104670 2005-08-31  Bruno Haible  <bruno@clisp.org>
104672         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104673         always instantiating them.
104675 2005-08-31  Bruno Haible  <bruno@clisp.org>
104677         * gnulib-tool (func_import): Read the previous cached settings
104678         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104679         earlier added by gnulib but are now dropped. Warn when a gnulib file
104680         overwrites a non-gnulib file.
104682 2005-08-31  Bruno Haible  <bruno@clisp.org>
104684         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104685         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104686         projects that don't keep autogenerated files in CVS. Put into
104687         actioncmd only the specified modules, not the transitive closure.
104689 2005-08-31  Bruno Haible  <bruno@clisp.org>
104691         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104692         Create directories that shall be filled.
104693         (import): Don't look for gl_* macros in configure.ac. Recurse across
104694         all directories containing a gnulib-cache.m4 files, if meaningful.
104696 2005-08-31  Bruno Haible  <bruno@clisp.org>
104698         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104699         (import): Set seen_libtool when we see gl_LIBTOOL.
104701 2005-08-31  Bruno Haible  <bruno@clisp.org>
104703         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104704         declaration macro definitions from generated gnulib.m4.
104706 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104708         * lib/iconvme.h: Add prototype for iconv_alloc.
104710 2005-08-29  Simon Josefsson  <jas@extundo.com>
104712         * lib/iconvme.c: Fix errno.
104714 2005-08-29  Bruno Haible  <bruno@clisp.org>
104716         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104717         that it works when the directory contains spaces.
104719 2005-08-29  Bruno Haible  <bruno@clisp.org>
104721         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104723 2005-08-29  Bruno Haible  <bruno@clisp.org>
104725         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104726         Emit more advice.
104728 2005-08-29  Bruno Haible  <bruno@clisp.org>
104729         and Stepan Kasal  <kasal@ucw.cz>
104731         * check-module: If more parameters are given, check each of them
104732         separately; add more exceptions, as noted by Jim Meyering.
104733         (check_module): New procedure.
104734         (%exempt_header): Now contains all exceptions.
104736 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104738         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104740 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104742         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104744 2005-08-28  Bruno Haible  <bruno@clisp.org>
104746         * m4/gnulib-tool.m4: New file.
104748 2005-08-27  Jim Meyering  <jim@meyering.net>
104750         * modules/unistd-safer (Files): Add pipe-safer.c.
104751         * modules/fcntl-safer (Files): Add creat-safer.c.
104753 2005-08-27  Jim Meyering  <jim@meyering.net>
104755         * m4/stdlib-safer.m4: New file.  From coreutils.
104756         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104757         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104758         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104759         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104760         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104762 2005-08-27  Jim Meyering  <jim@meyering.net>
104764         * lib/fopen-safer.c: Merge minor changes from coreutils.
104765         * lib/dup-safer.c: Likewise.
104766         * lib/fd-safer.c: Likewise.
104768         Merge from coreutils.
104769         * lib/stdio--.h: New file.
104770         * lib/stdlib--.h: New file.
104771         * lib/mkstemp-safer.c: New file.
104773         GNU tar needs these.
104774         * lib/pipe-safer.c: New file.
104775         * lib/creat-safer.c: New file.
104776         * lib/fcntl--.h (creat): Define to creat_safer.
104777         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104778         * lib/unistd--.h (pipe): Define to pipe_safer.
104779         * lib/unistd-safer.h: Declare pipe_safer.
104781 2005-08-26  Simon Josefsson  <jas@extundo.com>
104783         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104784         Haible <bruno@clisp.org>.
104786 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104788         * lib/regex_internal.h: Remove all references to
104789         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104790         or better.
104791         (bitset_not, bitset_merge, bitset_not_merge):
104792         (bitset_mask, re_string_allocate, re_string_construct):
104793         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104794         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104795         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104796         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104797         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104798         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104799         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104800         (re_acquire_state_context):
104801         Remove unnecessary forward decls.
104802         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104803         Put __attribute at function definition,
104804         now that the function decl has been removed.
104805         * lib/regex_internal.c (re_string_peek_byte_case):
104806         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104807         Likewise.
104809 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104811         * m4/regex.m4: Add AC_PREREQ(2.50).
104812         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104814 2005-08-25  Simon Josefsson  <jas@extundo.com>
104816         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104817         __fsetlocking.
104819 2005-08-25  Simon Josefsson  <jas@extundo.com>
104821         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104822         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104823         GLIBC specific code.
104825 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104827         Make regex safe for g++.  This fixes one real bug (an "err"
104828         that should have been "*err").  g++ problem reported by
104829         Sam Steingold.
104830         * lib/regex_internal.h (re_calloc): New macro, consistent with
104831         re_malloc etc.  All callers of calloc changed to use re_calloc.
104832         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104833         not int.  All callers changed.
104834         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104835         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104836         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104837         (find_recover_state): Change "err" to "*err"; this fixes what
104838         appears to be a real bug.
104839         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104840         versus int.
104842 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104844         * modules/regex (Depends-on): Add malloc, since the code
104845         assumes that !malloc(0) means failure.
104847 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104849         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104851         alloca modernization/simplification for regex.
104852         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104853         needs to be at the start of the file, and can be moved into
104854         regex_internal.h and simplified.
104855         * lib/regex_internal.h: Include <alloca.h>.
104856         (__libc_use_alloca) [!defined _LIBC]: New macro.
104857         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104858         now works outside glibc.
104860 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104862         * config/srclist.txt: Add glibc bugs 1241, 1245.
104864 2005-08-25  Jim Meyering  <jim@meyering.net>
104866         * lib/open-safer.c: Include <config.h>.
104867         Otherwise, we'd lose LARGEFILE support in any file using
104868         e.g. "fcntl--.h"
104870 2005-08-25  Bruno Haible  <bruno@clisp.org>
104872         * m4/minmax.m4: Require autoconf 2.52.
104873         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104874         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104875         alternatives of translit over the alphabet.
104876         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104878 2005-08-24  Simon Josefsson  <jas@extundo.com>
104880         * tests/test-getpass.c: New file.
104882 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104884         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104885         for GNU regex features.
104887 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104889         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104890         * lib/regex.h (regerror): Likewise.
104892         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104893         requires this.  (The code never needed it.)
104895         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104896         All uses of recently-renamed identifiers changed to use the new,
104897         POSIX-compliant names.  The code will build and run just fine
104898         without these changes, but it's better to eat our own dog food
104899         and use the standard-conforming names.
104901         * lib/regex.h: Fix a multitude of POSIX name space violations.
104902         These changes have an effect only for programs that define
104903         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104904         do not change anything for programs compiled in the normal way.
104905         Also, there is no effect on the ABI.
104907         (_REGEX_SOURCE): New macro.
104908         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104909         defined and _GNU_SOURCE is not; this fixes a name space violation.
104911         Rename the following macros to obey POSIX requirements.
104912         The old names are still visible as macros if _REGEX_SOURCE is defined.
104913         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104914         RE_BACKSLASH_ESCAPE_IN_LISTS.
104915         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104916         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104917         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104918         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104919         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104920         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104921         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104922         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104923         (REG_INTERVALS): renamed from RE_INTERVALS.
104924         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104925         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104926         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104927         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104928         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104929         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104930         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104931         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104932         RE_UNMATCHED_RIGHT_PAREN_ORD.
104933         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104934         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104935         (REG_DEBUG): renamed from RE_DEBUG.
104936         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104937         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104938         unusual, since we can't clash with the POSIX REG_ICASE.
104939         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104940         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104941         (REG_NO_SUB): renamed from RE_NO_SUB.
104942         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104943         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104944         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104945         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104946         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104947         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104948         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104949         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104950         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104951         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104952         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104953         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104954         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104955         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104956         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104957         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104958         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104959         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104960         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104961         (REG_FIXED): Renamed from REGS_FIXED.
104962         (REG_NREGS): Renamed from RE_NREGS.
104964         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104965         of other REG_* macros, since POSIX says the user is allowed to
104966         #undef these macros selectively.
104968         (reg_errcode_t): Update comment stating what other tables need
104969         to be consistent.
104971         Rename the following enum values to obey POSIX requirements.
104972         The old names are still visible as macros.
104973         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104974         is not defined, since GNU is supposed to be a superset of POSIX as
104975         much as possible, and since we want reg_errcode_t to be a signed
104976         type for implementation consistency.
104977         (_REG_NOERROR): Renamed from REG_NOERROR.
104978         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104979         (_REG_BADPAT): Renamed from REG_BADPAT.
104980         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104981         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104982         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104983         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104984         (_REG_EBRACK): Renamed from REG_EBRACK.
104985         (_REG_EPAREN): Renamed from REG_EPAREN.
104986         (_REG_EBRACE): Renamed from REG_EBRACE.
104987         (_REG_BADBR): Renamed from REG_BADBR.
104988         (_REG_ERANGE): Renamed from REG_ERANGE.
104989         (_REG_ESPACE): Renamed from REG_ESPACE.
104990         (_REG_BADRPT): Renamed from REG_BADRPT.
104991         (_REG_EEND): Renamed from REG_EEND.
104992         (_REG_ESIZE): Renamed from REG_ESIZE.
104993         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104994         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104995         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104996         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104997         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104999         (_REG_RE_NAME, _REG_RM_NAME): New macros.
105000         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
105001         changed.  But support the old name if the new one is not defined
105002         and if _REGEX_SOURCE.
105004         Change the following member names in struct re_pattern_buffer.
105005         The old names are still supported if !_REGEX_SOURCE.
105006         The new names are always supported, regardless of _REGEX_SOURCE.
105007         (re_buffer): Renamed from buffer.
105008         (re_allocated): Renamed from allocated.
105009         (re_used): Renamed from used.
105010         (re_syntax): Renamed from syntax.
105011         (re_fastmap): Renamed from fastmap.
105012         (re_translate): Renamed from translate.
105013         (re_can_be_null): Renamed from can_be_null.
105014         (re_regs_allocated): Renamed from regs_allocated.
105015         (re_fastmap_accurate): Renamed from fastmap_accurate.
105016         (re_no_sub): Renamed from no_sub.
105017         (re_not_bol): Renamed from not_bol.
105018         (re_not_eol): Renamed from not_eol.
105019         (re_newline_anchor): Renamed from newline_anchor.
105021         Change the following member names in struct re_registers.
105022         The old names are still supported if !_REGEX_SOURCE.
105023         The new names are always supported, regardless of _REGEX_SOURCE.
105024         (rm_num_regs): Renamed from num_regs.
105025         (rm_start): Renamed from start.
105026         (rm_end): Renamed from end.
105028         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
105029         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
105030         Prepend __ to parameter names.
105032         Undo yesterday's changes.
105034 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105036         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
105037         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
105038         lib/regex.c.
105040 2005-08-24  Jim Meyering  <jim@meyering.net>
105042         Sync from coreutils.
105043         * m4/fcntl-safer.m4: New file.
105045         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
105046         and object files for this module.
105048 2005-08-24  Jim Meyering  <jim@meyering.net>
105050         Sync from coreutils.
105051         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
105053 2005-08-24  Jim Meyering  <jim@meyering.net>
105055         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
105056         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
105058 2005-08-24  Jim Meyering  <jim@meyering.net>
105060         * modules/fcntl-safer: New module.
105061         * modules/fts (Depends-on): Add fcntl-safer.
105062         * MODULES.html.sh (File descriptor based Input/Output):
105063         Add fcntl-safer.
105065 2005-08-24  Bruno Haible  <bruno@clisp.org>
105067         Support for unit test modules.
105068         * modules/README: Mention tests modules.
105069         * modules/TEMPLATE-TESTS: New file.
105070         * gnulib-tool: New options --extract-tests-module, --with-tests and
105071         --tests-base (unused for the moment).
105072         (testsbase, inctests): New variables.
105073         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
105074         (func_verify_module): Exclude TEMPLATE-TESTS.
105075         (func_verify_nontests_module, func_verify_tests_module): New functions.
105076         (func_get_dependencies): Add implicit dependency for tests modules.
105077         (func_get_tests_module): New function.
105078         (func_modules_transitive_closure): When --with-tests was specified,
105079         include the unit tests as well, unless explicitly avoided.
105080         (func_emit_lib_Makefile_am): Ignore the tests modules here.
105081         (func_emit_tests_Makefile_am): New function.
105082         (func_create_testdir): When --with-tests was specified, emit a
105083         tests/ directory.
105084         * MODULES.html.sh (Future developments): Update.
105086 2005-08-24  Bruno Haible  <bruno@clisp.org>
105088         * modules/tls-tests: New file.
105089         * tests/test-tls.c: New file, from GNU gettext.
105091 2005-08-24  Bruno Haible  <bruno@clisp.org>
105093         * modules/lock-tests: New file.
105094         * tests/test-lock.c: New file, from GNU gettext.
105096 2005-08-24  Bruno Haible  <bruno@clisp.org>
105098         * lib/lock.h: Add multiple inclusion guard.
105099         * lib/tls.h: Add multiple inclusion guard.
105101 2005-08-24  Bruno Haible  <bruno@clisp.org>
105103         * gnulib-tool: Add support for the --aux-dir option to
105104         --create-testdir, --create-megatestdir, --test, --megatest.
105105         (func_create_testdir, func_create_megatestdir): Optionally emit a
105106         AC_CONFIG_AUX_DIR directive.
105107         (create-testdir, create-megatestdir, test, megatest): Provide a
105108         default value for $auxdir.
105110 2005-08-24  Bruno Haible  <bruno@clisp.org>
105112         * gnulib-tool (import): Use compound statement instead of subshell
105113         where possible.
105115 2005-08-24  Bruno Haible  <bruno@clisp.org>
105117         * gnulib-tool (import): Change --aux-dir default to "build-aux".
105119 2005-08-24  Bruno Haible  <bruno@clisp.org>
105121         * gnulib-tool (func_version): Update.
105123 2005-08-24  Bruno Haible  <bruno@clisp.org>
105125         * gnulib-tool (func_import, func_create_testdir,
105126         func_create_megatestdir): Quote all autoconf macro arguments.
105128 2005-08-24  Bruno Haible  <bruno@clisp.org>
105130         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
105131         option --force, because --force causes the aclocal.m4 of each
105132         subdirectory to be newer than the corresponding config.h.in.
105134 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105136         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
105137         All contents moved to gl_REGEX.
105138         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
105139         assume that it does.
105141 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105143         * lib/regex.h (REG_NOSYS)
105144         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
105145         Define, since POSIX requires it as of 2001.
105146         (_REG_ENOSYS)
105147         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
105148         New private symbol, used to keep the enum signed in all cases.
105149         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
105150         Youngman in
105151         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
105153         * lib/regex_internal.c (re_string_skip_chars, register_state):
105154         (calc_state_hash):
105155         Remove forward decls; no longer needed now that we use prototypes.
105156         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
105157         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
105158         (clean_state_log_if_needed): Likewise.
105160 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105162         * config/srclist.txt: Add glibc bugs 1231-1233.
105164 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105166         Fix problems reported by Sam Steingold in
105167         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
105168         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
105169         assumed that reg_errcode_t is a signed type, which is not
105170         necessarily true if _XOPEN_SOURCE is not defined.
105171         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
105172         since some compilers warn about it otherwise.
105174 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105176         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
105177         (init_word_char, create_initial_state, duplicate_node_closure):
105178         (fetch_token, peek_token_bracket, build_range_exp):
105179         (build_collating_symbol): Remove forward decls; no longer needed
105180         now that we use prototypes.
105182         * lib/regcomp.c:
105183         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
105184         (re_compile_fastmap_iter, regcomp, regerror, regfree):
105185         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
105186         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
105187         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
105188         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
105189         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
105190         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
105191         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
105192         (build_range_exp, build_collating_symbol, parse_bracket_exp):
105193         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
105194         (build_charclass, build_charclass_op, fetch_number, create_tree):
105195         (create_token_tree, mark_opt_subexp, duplicate_tree):
105196         Use prototypes rather than old-style definitions.
105198         * lib/regex_internal.c:
105199         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
105200         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
105201         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
105202         (re_string_reconstruct, re_string_peek_byte_case):
105203         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
105204         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
105205         (re_node_set_init_copy, re_node_set_add_intersect):
105206         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
105207         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
105208         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
105209         (re_acquire_state, re_acquire_state_context, register_state):
105210         (create_ci_newstate, create_cd_newstate, free_state):
105211         Likewise.
105212         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
105213         re_search_2):
105214         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
105215         (re_search_internal, prune_impossible_nodes):
105216         (acquire_init_state_context, check_matching, static):
105217         (check_halt_node_context, check_halt_state_context, proceed_next_node):
105218         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
105219         (update_regs, sift_states_backward, build_sifted_states):
105220         (clean_state_log_if_needed, merge_state_array):
105221         (update_cur_sifted_state, add_epsilon_src_nodes):
105222         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
105223         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
105224         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
105225         (find_recover_state, check_subexp_matching_top, transit_state_mb):
105226         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
105227         (check_arrival, check_arrival_add_next_nodes):
105228         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
105229         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
105230         (check_node_accept_bytes, check_node_accept, extend_buffers):
105231         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
105232         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
105233         (sift_ctx_init):
105234         Likewise.
105236         * lib/regex_internal.h:
105237         (re_string_allocate, re_string_construct, re_string_reconstruct):
105238         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
105239         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
105240         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
105241         (re_string_context_at, re_string_peek_byte_case):
105242         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
105243         is defined, since we now use prototypes always.
105245         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
105246         C89 or better.  All uses removed.
105248 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105250         * config/srclist.txt: Add glibc bugs 1220-1227.
105252 2005-08-20  Jim Meyering  <jim@meyering.net>
105254         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
105255         of unused local, dfa.
105257 2005-08-20  Bruno Haible  <bruno@clisp.org>
105259         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
105261 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105263         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
105264         (re_node_set_insert_last, re_dfa_add_node):
105265         Rename local variables to avoid GCC shadowing warnings.
105267 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105269         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
105270         [defined lint]: Suppress bogus uninitialized-variable warnings.
105272         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
105273         and let the caller return REG_ESPACE if out of space.  This
105274         removes an uninitialied-variable warning with GCC 4.0.1, and also
105275         avoids taking the address of a local variable.  All callers
105276         changed.
105278 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105280         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
105281         $LIBCSRC/posix/regexec.c.
105282         Add glibc bug 1217 for regcomp.c.
105284 2005-08-19  Jim Meyering  <jim@meyering.net>
105286         * lib/regexec.c (proceed_next_node): Redo local variables to
105287         avoid GCC shadowing warnings.
105289 2005-08-18  Bruno Haible  <bruno@clisp.org>
105291         * lib/strstr.c (strstr): Fix return value in multibyte case.
105292         * lib/strcasestr.c (strcasestr): Likewise.
105294 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105296         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
105298 2005-08-17  Jim Meyering  <jim@meyering.net>
105300         Make the %s format (seconds since the epoch) work for a negative
105301         number and when used with a zero-padded field width, e.g. %015s.
105303         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
105304         label so that it precedes the code to set `digits'.  Otherwise,
105305         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
105306         print `00-22'.  Now, it prints `-0022', as it should.
105308 2005-08-17  Bruno Haible  <bruno@clisp.org>
105310         * modules/strstr (Files): Add m4/mbrtowc.m4.
105311         (Depends-on): Add mbuiter.
105313 2005-08-17  Bruno Haible  <bruno@clisp.org>
105315         * modules/strcasestr: New file.
105316         * MODULES.html.sh (String handling, based on ANSI C 89): Add
105317         strcasestr.
105319 2005-08-17  Bruno Haible  <bruno@clisp.org>
105321         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
105323 2005-08-17  Bruno Haible  <bruno@clisp.org>
105325         * modules/mbuiter: New file.
105326         * MODULES.html.sh (Extended multibyte and wide character utilities):
105327         Add mbuiter.
105329 2005-08-17  Bruno Haible  <bruno@clisp.org>
105331         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
105332         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
105334 2005-08-17  Bruno Haible  <bruno@clisp.org>
105336         * m4/strcasestr.m4: New file.
105338 2005-08-17  Bruno Haible  <bruno@clisp.org>
105340         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
105341         * lib/strstr.c: Completely rewritten, with multibyte locale support.
105343 2005-08-17  Bruno Haible  <bruno@clisp.org>
105345         * lib/strcasestr.h: New file.
105346         * lib/strcasestr.c: New file.
105348 2005-08-17  Bruno Haible  <bruno@clisp.org>
105350         * lib/strcasecmp.c: Use mbuiter.h.
105352 2005-08-17  Bruno Haible  <bruno@clisp.org>
105354         * lib/mbuiter.h: New file.
105356 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105359         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105360         and gl_GETOPT are both invoked via different paths (as happens
105361         with GNU tar CVS because it uses both argp and getopt), the former
105362         wins.
105364 2005-08-16  Bruno Haible  <bruno@clisp.org>
105366         * modules/tls: New file.
105367         * MODULES.html.sh (Multithreading): Add tls.
105369 2005-08-16  Bruno Haible  <bruno@clisp.org>
105371         * modules/strnlen1: New file.
105372         * MODULES.html.sh (String handling): Add strnlen1.
105374 2005-08-16  Bruno Haible  <bruno@clisp.org>
105376         * modules/strcase (Files): Add m4/mbrtowc.m4.
105377         (Depends-on): Add strnlen1, mbchar.
105379 2005-08-16  Bruno Haible  <bruno@clisp.org>
105381         * modules/mbiter: New file.
105382         * MODULES.html.sh (Extended multibyte and wide character utilities):
105383         Add mbiter.
105385 2005-08-16  Bruno Haible  <bruno@clisp.org>
105387         * modules/mbfile: New file.
105388         * MODULES.html.sh (Extended multibyte and wide character utilities):
105389         Add mbfile.
105391 2005-08-16  Bruno Haible  <bruno@clisp.org>
105393         * modules/mbchar: New file.
105394         * MODULES.html.sh (Extended multibyte and wide character utilities):
105395         New section.
105397 2005-08-16  Bruno Haible  <bruno@clisp.org>
105399         * m4/tls.m4: New file, from GNU gettext.
105401 2005-08-16  Bruno Haible  <bruno@clisp.org>
105403         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105404         always.
105405         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105407 2005-08-16  Bruno Haible  <bruno@clisp.org>
105409         * m4/mbiter.m4: New file.
105411 2005-08-16  Bruno Haible  <bruno@clisp.org>
105413         * m4/mbfile.m4: New file.
105415 2005-08-16  Bruno Haible  <bruno@clisp.org>
105417         * m4/mbchar.m4: New file.
105419 2005-08-16  Bruno Haible  <bruno@clisp.org>
105421         * lib/tls.h: New file, from GNU gettext.
105422         * lib/tls.c: New file, from GNU gettext.
105424 2005-08-16  Bruno Haible  <bruno@clisp.org>
105426         * lib/strnlen1.h: New file.
105427         * lib/strnlen1.c: New file.
105429 2005-08-16  Bruno Haible  <bruno@clisp.org>
105431         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105432         (mbi_init): Update.
105433         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105434         NUL byte, not after it.
105436 2005-08-16  Bruno Haible  <bruno@clisp.org>
105438         * lib/strcase.h (strcasecmp): Add note in comments.
105439         * lib/strncasecmp.c: Use code from strcasecmp.c.
105440         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105441         (strcasecmp): Work correctly in multibyte locales.
105443 2005-08-16  Bruno Haible  <bruno@clisp.org>
105445         * lib/mbiter.h: New file.
105447 2005-08-16  Bruno Haible  <bruno@clisp.org>
105449         * lib/mbfile.h: New file.
105451 2005-08-16  Bruno Haible  <bruno@clisp.org>
105453         * lib/mbchar.h: New file.
105454         * lib/mbchar.c: New file.
105456 2005-08-16  Bruno Haible  <bruno@clisp.org>
105458         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105459         the valid ones. Makes the comparison operations transitive:
105460         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105461         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105463 2005-08-15  Simon Josefsson  <jas@extundo.com>
105465         * modules/ssize_t (License): Change to 'unlimited'.
105467         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105469 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105471         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105472         Add comments for each pending glibc patch.
105474 2005-08-15  Bruno Haible  <bruno@clisp.org>
105476         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105477         __cplusplus is defined.
105479 2005-08-14  Jim Meyering  <jim@meyering.net>
105481         Sync from coreutils.
105483         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105484         Use the hash-table-based cycle-detection code not just when
105485         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105486         Reported by James Youngman in
105487         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105488         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105489         FTS_TIGHT_CYCLE_CHECK.
105490         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105491         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105492         once again.
105493         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105494         * lib/fts.c (fd_safer): Remove decl.
105495         Include fcntl--.h rather than unistd-safer.h
105496         (fts_safe_changedir): Don't call fd_safer; no longer needed
105497         now that we include fcntl--.h.
105499 2005-08-12  Simon Josefsson  <jas@extundo.com>
105501         * modules/getndelim2: Use ssize_t module.
105502         * modules/getnline: Likewise.
105503         * modules/safe-read: Likewise.
105504         * modules/xreadlink: Likewise.
105506         * modules/ssize_t: New file.
105508 2005-08-12  Simon Josefsson  <jas@extundo.com>
105510         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105512 2005-08-12  Simon Josefsson  <jas@extundo.com>
105514         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105515         ssize_t.
105517 2005-08-12  Simon Josefsson  <jas@extundo.com>
105519         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105520         readline, getdelim and check_version.
105521         (Support for systems lacking ISO C 99: Sizes of integer types):
105522         Add size_max.
105524 2005-08-12  Bruno Haible  <bruno@clisp.org>
105526         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105528 2005-08-11  Simon Josefsson  <jas@extundo.com>
105530         * modules/readline: New file.
105532         * modules/strnlen (Files): Add strnlen.h.
105534 2005-08-11  Simon Josefsson  <jas@extundo.com>
105536         * m4/readline.m4: New file.
105538 2005-08-11  Simon Josefsson  <jas@extundo.com>
105540         * lib/readline.h, readline.c: New file.
105542 2005-08-11  Simon Josefsson  <jas@extundo.com>
105544         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105545         gl_AVOID.
105547 2005-08-11  Bruno Haible  <bruno@clisp.org>
105549         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105551 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105553         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105555 2005-08-10  Simon Josefsson  <jas@extundo.com>
105557         * tests/test-iconvme.c: New file.
105559 2005-08-10  Simon Josefsson  <jas@extundo.com>
105561         * m4/strnlen.m4: New file.
105563         * m4/strndup.m4: Don't check for strnlen declaration, done in
105564         strnlen.m4.
105566 2005-08-10  Simon Josefsson  <jas@extundo.com>
105568         * lib/strndup.c: Use strnlen.h.
105570         * lib/strnlen.h: New file.
105572 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105574         * README: Typos.
105576 2005-08-02  Simon Josefsson  <jas@extundo.com>
105578         * modules/readline: New file.
105580 2005-08-02  Simon Josefsson  <jas@extundo.com>
105582         * modules/getdelim: New file.
105584         * modules/getline: Rewrite, don't use getndelim2.
105586 2005-08-02  Simon Josefsson  <jas@extundo.com>
105588         * m4/getline.m4: Separate out getdelim stuff into separate module.
105590         * m4/getdelim.m4: New file.
105592 2005-08-02  Simon Josefsson  <jas@extundo.com>
105594         * lib/getline.h, getline.c: Rewrite.
105596         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105598 2005-07-31  Bruno Haible  <bruno@clisp.org>
105600         * lib/lock.h (gl_lock_initializer): New macro.
105601         (gl_lock_define_initialized): Use it.
105602         (gl_rwlock_initializer): New macro.
105603         (gl_rwlock_define_initialized): Use it.
105604         (gl_recursive_lock_initializer): New macro.
105605         (gl_recursive_lock_define_initialized): Use it.
105607 2005-07-30  Karl Berry  <karl@gnu.org>
105609         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105610         Report from Ben Pfaff, regarding getopt.
105612 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105614         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105615         normal way.
105616         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105617         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105618         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105619         (gl_GETOPT): Use the new macros.  Most of the implementation
105620         is moved to the new macros.  This is for programs like Emacs
105621         that don't want all the functionality of gl_GETOPT.
105623 2005-07-26  Bruno Haible  <bruno@clisp.org>
105625         * m4/lock.m4: Update from GNU gettext.
105627 2005-07-26  Bruno Haible  <bruno@clisp.org>
105629         * lib/lock.h: Update from GNU gettext.
105630         * lib/lock.c: Update from GNU gettext.
105632 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105634         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105635         obsolescent AC_TRY_RUN.  Include the default includes files, for
105636         'exit'.
105638 2005-07-24  Bruno Haible  <bruno@clisp.org>
105640         * modules/visibility: New file.
105641         * MODULES.html.sh (Misc): Add visibility.
105643 2005-07-24  Bruno Haible  <bruno@clisp.org>
105645         * m4/visibility.m4: New file.
105647 2005-07-24  Bruno Haible  <bruno@clisp.org>
105649         * doc/visibility.texi: New file.
105651 2005-07-22  Bruno Haible  <bruno@clisp.org>
105653         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105654         $(ALLOCA_H), redundant through BUILT_SOURCES.
105655         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105656         redundant through BUILT_SOURCES.
105657         * modules/byteswap (Makefile.am): Remove explicit dependency on
105658         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105659         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105660         $(FNMATCH_H), redundant through BUILT_SOURCES.
105661         * modules/getopt (Makefile.am): Remove explicit dependency on
105662         $(GETOPT_H), redundant through BUILT_SOURCES.
105663         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105664         redundant through BUILT_SOURCES.
105665         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105666         redundant through BUILT_SOURCES.
105667         * modules/stdbool (Makefile.am): Remove explicit dependency on
105668         $(STDBOOL_H), redundant through BUILT_SOURCES.
105669         * modules/stdint (Makefile.am): Remove explicit dependency on
105670         $(STDINT_H), redundant through BUILT_SOURCES.
105671         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105672         Remove explicit dependency on $(SYSEXITS_H).
105673         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105675 2005-07-18  Simon Josefsson  <jas@extundo.com>
105677         * lib/check-version.c (check_version): Accept identical versions too.
105679 2005-07-18  Bruno Haible  <bruno@clisp.org>
105681         * modules/lock: New file.
105682         * MODULES.html.sh (Multithreading): New section.
105684 2005-07-18  Bruno Haible  <bruno@clisp.org>
105686         * m4/lock.m4: New file, from GNU gettext.
105688 2005-07-18  Bruno Haible  <bruno@clisp.org>
105690         * lib/lock.h: New file, from GNU gettext.
105691         * lib/lock.c: New file, from GNU gettext.
105693 2005-07-18  Bruno Haible  <bruno@clisp.org>
105695         * lib/lock.h (gl_once_t): New type.
105696         (gl_once_define, gl_once): New macros.
105697         * lib/lock.c (fresh_once): New variable.
105698         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105699         functions.
105701 2005-07-16  Simon Josefsson  <jas@extundo.com>
105703         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105704         workaround, suggested by Bruno.
105706 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105708         * modules/xalloc (Depends-on): Add xalloc-die.
105709         * modules/xvasprintf (Depends-on): Add xalloc-die.
105711 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105713         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105714         with a minor change.
105716 2005-07-15  Bruno Haible  <bruno@clisp.org>
105718         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105719         When using lib/poll.c, define poll as rpl_poll.
105721 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105723         * modules/argp (Depends-on): Remove unlocked-io.
105725 2005-07-14  Derek Price  <derek@ximbiot.com>
105727         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105728         for glob symlink bug.
105730 2005-07-14  Bruno Haible  <bruno@clisp.org>
105732         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105733         Instead, test for *_unlocked function declarations directly.
105735 2005-07-11  Simon Josefsson  <jas@extundo.com>
105737         * modules/size_max: New file.
105739         * modules/xsize: Depend on size_max module for size_max.m4.
105741 2005-07-11  Simon Josefsson  <jas@extundo.com>
105743         * lib/size_max.h: New file.
105745 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105747         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105748         copyright symbol and the year.
105749         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105750         (version_etc_va): Use parameterized copyright notice.
105751         Reword to conform to the current GNU coding standards.
105753 2005-07-11  Karl Berry  <karl@gnu.org>
105755         * doc/gnulib.texi (Quoting): new node.
105756         (Initial import): more info, from Patrice.
105758 2005-07-11  Bruno Haible  <bruno@clisp.org>
105760         * gnulib-tool (func_usage): Document option --avoid.
105761         (Command line options): Handle --avoid.
105762         (func_acceptable): New function.
105763         (func_modules_transitive_closure): Use it.
105765 2005-07-11  Bruno Haible  <bruno@clisp.org>
105767         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105768         Reported by Jim Meyering.
105770 2005-07-10  Bruno Haible  <bruno@clisp.org>
105772         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105773         Needed when size_t is smaller than 'unsigned int'.
105774         Reported by Paul Eggert.
105776 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105778         * modules/argp (Depends-on): Add unlocked-io
105780 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105782         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105783         block of defines.
105785 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105787         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105788         fix now.
105790 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105791         and Paul Eggert  <eggert@cs.ucla.edu>
105793         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105794         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105796 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105798         * modules/regex (Files): Add lib/regex_internal.c,
105799         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105800         (Depends-on): Add extensions.
105801         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105803 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105805         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105806         pathconf.
105807         * m4/same.m4 (gl_SAME): Likewise.
105808         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105810         * m4/regex.m4: Adjust to new libc regex implementation.
105811         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105812         all the .c and .h parts of (the new) regex.
105813         Quote the m4 stuff better.
105814         Check for RE_ICASE bug of old gnulib.
105815         Check for REG_STARTEND of recent libc.
105816         Rename local variables from jm_* to gl_*.
105817         Quote operand of "test -f".
105818         Say "recent enough" version of libc, not "version 2".
105819         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105820         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105821         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105822         Remove check for btowc, isascii.
105823         Require AM_LANGINFO_CODESET.
105825 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105827         * lib/regex.c, regex.h: Sync from libc.
105828         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105829         * lib/regexec.c:
105830         New files, synced from libc, except that regex_internal.h
105831         currently has a small porting fix.
105833 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105835         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105836         regex_internal.c, regexec.c.
105837         Add regex_internal.h too, but as a comment, since the libc version
105838         is currently broken in gnulib mode.
105840 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105842         Support programs like Emacs that use gnulib but not gettext.
105843         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105844         * modules/gettext-h: New file.
105845         * modules/gettext (Files): Remove lib/gettext.h.
105846         (Depends-on): Add gettext-h.
105847         (Makefile.am): Remove lib_SOURCES.
105848         * modules/argmatch, modules/c-stack, modules/closeout:
105849         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105850         * modules/execute, modules/file-type, modules/getaddrinfo:
105851         * modules/getopt, modules/human, modules/javacomp:
105852         * modules/javaexec, modules/mkdir-p, modules/obstack:
105853         * modules/openat, modules/pagealign_alloc, modules/pipe:
105854         * modules/quotearg, modules/regex, modules/rpmatch:
105855         * modules/unicodeio, modules/userspec, modules/version-etc:
105856         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105857         * modules/xsetenv:
105858         Depend on gettext-h, not gettext.
105860 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105862         * gnulib-tool (func_import): Add support for 'public domain' license.
105863         * modules/alloca, modules/atexit, modules/memmove:
105864         Now public domain, not GPL.
105865         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105866         * modules/realloc, modules/strerror, modules/strtod:
105867         Now LGPL, not GPL.
105869 2005-07-05  Bruno Haible  <bruno@clisp.org>
105871         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105872         autoconf CVS. Needed for mingw.
105874 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105876         Remove the dependency of the strftime module on the tzset module.
105877         * modules/strftime (Depends-on): Remove dependency on tzset.
105879 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105881         Remove the dependency of the strftime module on the tzset module.
105882         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105883         gl_FUNC_TZSET_CLOBBER.
105885 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105887         Remove the dependency of the strftime module on the tzset module.
105888         * lib/strftime.c (my_strftime)
105889         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105890         Copy the input structure, to work around some of the bug with
105891         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105892         Solaris releases, you should also use the tzset module, but we won't
105893         require it as a dependency any more since we don't want LGPLed code
105894         to depend on GPLed code.
105896 2005-07-02  Jim Meyering  <jim@meyering.net>
105898         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105899         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105900         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105901         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105903 2005-07-02  Jim Meyering  <jim@meyering.net>
105905         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105907 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105909         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105910         declares only 'struct timespec;' (!).
105912 2005-07-01  Jim Meyering  <jim@meyering.net>
105914         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105915         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105916         * lib/save-cwd.c, tempname.c:
105917         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105918         and don't include <sys/file.h>).
105920 2005-06-29  Jim Meyering  <jim@meyering.net>
105922         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105923         type name.  Use the variable name instead.
105924         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105925         Likewise.
105927 2005-06-28  Simon Josefsson  <jas@extundo.com>
105929         * modules/check-version (Files): Add check-version.m4.
105931 2005-06-28  Simon Josefsson  <jas@extundo.com>
105933         * m4/check-version.m4: New file, suggested by Jim Meyering
105934         <jim@meyering.net>.
105936 2005-06-28  Simon Josefsson  <jas@extundo.com>
105938         * lib/check-version.h, lib/check-version.c: New files.
105940 2005-06-28  Simon Josefsson  <jas@extundo.com>
105942         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105943         collision with global variable.  Better indentation.  Don't
105944         increment buffer pointer beyond buffer end.  Based on comments
105945         from Paul Eggert <eggert@cs.ucla.edu>.
105947         * lib/base64.h: Indent.
105949 2005-06-28  Simon Josefsson  <jas@extundo.com>
105951         * doc/gnulib.texi (Library version handling): New section.
105953 2005-06-28  Jim Meyering  <jim@meyering.net>
105955         * check-module (find_included_lib_files): Hard-code another
105956         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105957         but modules/fts-lgpl (correctly) does not list those files.
105959         * modules/canonicalize (Files): Add lib/pathmax.h.
105961 2005-06-25  Simon Josefsson  <jas@extundo.com>
105963         * modules/check-version: New file.
105965 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105967         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105968         initializer of struct addrinfo, as an indication that we don't
105969         care how many members the structure has.
105971 2005-06-24  Derek Price  <derek@ximbiot.com>
105972         and Bruno Haible  <bruno@clisp.org>
105974         Remove stat module & update lstat.
105975         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105976         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105977         * m4/stat.m4: Remove this file.
105979 2005-06-24  Derek Price  <derek@ximbiot.com>
105980         and Bruno Haible  <bruno@clisp.org>
105982         Remove stat module & update lstat.
105983         * lib/stat.c: Remove this file...
105984         (slash_aware_lstat): ...moving this content and its support...
105985         * lib/lstat.c (rpl_lstat): ...into here.
105986         * lib/lstat.h: New file.
105988 2005-06-24  Derek Price  <derek@ximbiot.com>
105989         and Bruno Haible  <bruno@clisp.org>
105991         Remove stat module & update lstat.
105992         * config/srclist.txt (libc sources): Remove stat.
105994 2005-06-24  Derek Price  <derek@ximbiot.com>
105995         and Bruno Haible  <bruno@clisp.org>
105997         Remove stat module & update lstat.
105998         * MODULES.html.sh (stat): Remove.
105999         * MODULES.html: Regenerated.
106000         * modules/lstat (Description): Correct function name.
106001         (Files): Add "lstat.h".
106002         (Depends-on): Remove stat, add xalloc, stat-macros.
106003         * modules/stat: Remove this file.
106004         (Include): Add "lstat.h", remove <sys/stat.h>.
106006 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
106008         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
106009         (ranged_convert): Don't save conversion in a temporary struct.
106010         This causes a warning with GCC 4.0.0, and anyway in the typical
106011         case it's not worth the extra 100 bytes or so of code.
106012         (ranged_convert, __mktime_internal): When calling a function via a
106013         pointer P, use P () rather than (*P) (), as we now assume C89 or
106014         better.
106016 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106018         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
106019         "who -r" failed to give output.  Problem reported by Tim Waugh.
106021         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
106022         (xcalloc): Use it to avoid needless tests.
106023         Problem reported by Jim Meyering.
106025 2005-06-20  Derek Price  <derek@ximbiot.com>
106027         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
106028         unnecessary for Autoconfs > 2.59c.
106030 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106032         * lib/argp.h (__option_is_short): Check upper limit of
106033         __key. Isprint() requires its argument to have the value
106034         of an unsigned char or EOF.
106036 2005-06-16  Jim Meyering  <jim@meyering.net>
106038         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
106039         when either N or S is zero.
106041 2005-06-16  Derek Price  <derek@ximbiot.com>
106043         * m4/bison.m4: Declare YACC & YFLAGS precious.
106045 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
106047         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
106048         multibyte string or pattern, fall back on unibyte matching.
106049         Problem reported by James Youngman.
106051 2005-06-08  Bruno Haible  <bruno@clisp.org>
106053         * modules/csharpcomp: New file.
106054         * MODULES.html.sh (C#): Add csharpcomp.
106056 2005-06-08  Bruno Haible  <bruno@clisp.org>
106058         * m4/csharpcomp.m4: New file, from GNU gettext.
106060 2005-06-08  Bruno Haible  <bruno@clisp.org>
106062         * lib/csharpcomp.h: New file, from GNU gettext.
106063         * lib/csharpcomp.c: New file, from GNU gettext.
106064         * lib/csharpcomp.sh.in: New file, from GNU gettext.
106066 2005-06-08  Bruno Haible  <bruno@clisp.org>
106068         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
106069         warning on mingw.
106071 2005-06-07  Derek Price  <derek@ximbiot.com>
106073         Sync from CVS.
106074         * lib/glob_.h: Indent nested #ifdef.
106076 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106078         Sync from coreutils.
106079         Use "file name" when talking about file names, instead of "filename"
106080         or "path", as per the GNU coding standards.
106081         * lib/mkdir-p.c: Renamed from makepath.c.
106082         (make_dir_parents): Renamed from make_path.  All callers changed.
106083         * lib/mkdir-p.h: Likewise.  All includers changed.
106084         * lib/filenamecat.c: Renamed from path-concat.c.
106085         (file_name_concat): Renamed from path_concat.  All callers changed.
106086         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
106087         * lib/filenamecat.h: Likewise.  All includers changed.
106088         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
106089         in comments or local variable names.
106090         * lib/basename.c: Likewise.
106091         * lib/canonicalize.c, canonicalize.h: Likewise.
106092         * lib/dirname.c, dirname.h: Likewise.
106093         * lib/euidaccess.c: Likewise.
106094         * lib/exclude.c: Likewise
106095         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
106096         * lib/fsusage.c, fsuage.h: Likewise.
106097         * lib/fts.c, fts_.h: Likewise.
106098         * lib/getcwd.c: Likewise.
106099         * lib/getloadavg.c: Likewise.
106100         * lib/mkstemp.c: Likewise.
106101         * lib/mountlist.c, mountlist.h: Likewise.
106102         * lib/openat.c, openat.h: Likewise.
106103         * lib/readlink-stub.c: Likewise.
106104         * lib/readutmp.c, readutmp.h: Likewise.
106105         * lib/rename.c: Likewise.
106106         * lib/rmdir.c: Likewise.
106107         * lib/same.c: Likewise.
106108         * lib/savedir.c: Likewise.
106109         * lib/stripslash.c: Likewise.
106110         * lib/tempname.c: Likewise.
106111         * lib/xreadlink.c: Likewise.
106112         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
106113         All uses changed.
106114         * lib/exclude.h: Likewise.
106116         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
106117         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106118         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
106119         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106120         * lib/pathmax.h: Include <limits.h> unconditionally, since other
106121         files have been getting away with it for years (MORE/BSD 4.3
106122         is extinct now).
106123         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
106124         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106126         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
106127         Define to 256, not 255, as per modern POSIX.
106129 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106131         Sync from coreutils.
106132         Use "file name" when talking about file names, instead of "filename"
106133         or "path", as per the GNU coding standards.
106134         * MODULES.html.sh: mkdir-p renamed from makepath.
106135         filenamecat renamed from path-concat.
106136         * modules/filenamecat: Renamed from modules/path-concat.
106137         (Files): filenamecat.h and filenamecat.c renamed from
106138         path-concat.h and path-concat.c.
106139         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
106140         (Include): filenamecat.h, not path-concat.h.
106141         * modules/mkdir-p: Renamed from modules/makepath.
106142         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
106143         makepath.c.
106144         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
106145         (Include): mkdir-p.h, not makepath.h.
106147 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106149         Sync from coreutils.
106150         * m4/mkdir-p.m4: Renamed from makepath.m4.
106151         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
106152         Rename files from makepath.c to mkdir-p.c, and from
106153         makepath.h to mkdir-p.h.
106154         * m4/filenamecat.m4: Renamed from path-concat.m4.
106155         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
106156         Rename files from path-concat.c to filenamecat.c,
106157         and from path-concat.h to filenamecat.h.
106158         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
106159         "file name" in local variables or comments.
106160         * m4/rename.m4: Likewise.
106162 2005-06-01  Bruno Haible  <bruno@clisp.org>
106164         * modules/csharpexec: New file.
106165         * MODULES.html.sh (C#): New section.
106167 2005-06-01  Bruno Haible  <bruno@clisp.org>
106169         * m4/csharp.m4: New file, from GNU gettext.
106170         * m4/csharpexec.m4: New file, from GNU gettext.
106172 2005-06-01  Bruno Haible  <bruno@clisp.org>
106174         * lib/csharpexec.h: New file, from GNU gettext.
106175         * lib/csharpexec.c: New file, from GNU gettext.
106176         * lib/csharpexec.sh.in: New file, from GNU gettext.
106178 2005-05-31  Derek Price  <derek@ximbiot.com>
106179             Paul Eggert  <eggert@cs.ucla.edu>
106181         Sync from cvs.
106182         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106184 2005-05-31  Derek Price  <derek@ximbiot.com>
106185             Paul Eggert  <eggert@cs.ucla.edu>
106187         Sync from cvs.
106188         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106190 2005-05-29  Derek Price  <derek@ximbiot.com>
106192         * config/srclist.txt (glob_.h, glob.c): Add these files.
106194 2005-05-29  Derek Price  <derek@ximbiot.com>
106196         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
106197         * modules/glob: New file.
106198         * modules/getlogin_r: Add link to POSIX spec in description.
106200 2005-05-29  Derek Price  <derek@ximbiot.com>
106201             Paul Eggert  <eggert@cs.ucla.edu>
106203         * m4/glob.m4: New file.
106205 2005-05-29  Derek Price  <derek@ximbiot.com>
106206             Paul Eggert  <eggert@cs.ucla.edu>
106208         * lib/glob_.h, lib/glob.c: New files.
106210 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106212         * modules/fts (Files): Remove m4/inttypes-pri.m4.
106213         * modules/fts-lgpl (Depends-on): Remove gettext.
106215 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106217         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
106218         and don't require gt_INTTYPES_PRI.
106220 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106222         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
106224         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
106225         the configuration hassle isn't worth it.
106226         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
106227         (LONGEST_MODIFIER, PRIuMAX): Remove.
106229 2005-05-27  Bruno Haible  <bruno@clisp.org>
106231         * lib/getlogin_r.h: Remove second include of <stddef.h>.
106233 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
106235         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
106236         _POSIX_PTHREAD_SEMANTICS for Solaris.
106238 2005-05-25  Derek Price  <derek@ximbiot.com>
106240         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
106242 2005-05-25  Derek Price  <derek@ximbiot.com>
106243             Paul Eggert  <eggert@cs.ucla.edu>
106245         * modules/getlogin_r, m4/getlogin_r.m4: New files.
106246         * lib/getlogin_r.c, getlogin_r.h: New files.
106248 2005-05-25  Bruno Haible  <bruno@clisp.org>
106249             Derek Price  <derek@ximbiot.com>
106251         * lib/getlogin_r.h: Simplify API documentation.
106253 2005-05-23  Derek Price  <derek@ximbiot.com>
106255         * modules/minmax (Files): Add m4/minmax.m4.
106256         (configure.ac): Add gl_MINMAX.
106258 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106260         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
106261         so that unistd-safer.h (GPL'ed code) need not be included.
106263 2005-05-22  Bruno Haible  <bruno@clisp.org>
106265         * m4/minmax.m4: New file.
106266         Based on a patch by Derek Price <derek@ximbiot.com>.
106268 2005-05-22  Bruno Haible  <bruno@clisp.org>
106270         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
106271         (INT64_MIN): Fix definition.
106272         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
106274         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
106275         NEED_SIGNED_INT_TYPES.
106277         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
106278         HAVE_SYSTEM_INTTYPES.
106280 2005-05-22  Bruno Haible  <bruno@clisp.org>
106282         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
106283         Also include <sys/param.h> if it defines MIN, MAX.
106284         Based on a patch by Derek Price <derek@ximbiot.com>.
106286 2005-05-21  Jim Meyering  <jim@meyering.net>
106288         * modules/fts (Files): Add m4/inttypes-pri.m4.
106289         (Depends-on): Add lstat and remove gettext.  Alphabetize.
106291 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106293         New fts module.
106294         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
106295         (setup_dir, free_dir): New functions.
106296         (enter_dir, leave_dir): Define trivial
106297         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
106298         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
106299         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
106300         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
106301         Move to fts-cycle.c.
106302         (fts_open): Use setup_dir.
106303         (fts_close): Use free_dir.
106304         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
106305         This adds a label and some gotos, but the alternatives were messier.
106306         Check for memory allocation failure when entering a dir.
106307         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
106308         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
106309         (FTS): New member fts_cycle, that is a union that contains the
106310         old active_dir_ht and cycle_state.  All uses changed to mention
106311         fts_cycle.ht and fts_cycle.state.
106312         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
106313         fts.c, with the following changes:
106314         (setup_dir, free_dir): New functions.
106315         (enter_dir): Now returns bool.  Return true if successful, false
106316         if memory exhausted.  All callers changed.
106317         Do not bother partly cleaning up on
106318         memory allocation failure; that is free_dir's job.
106319         However, free ad if hash_insert fails, to avoid memory leak.
106320         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
106321         fts->fts_options to see which union member to use.
106323 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
106326         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
106328 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106330         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
106332 2005-05-20  Jim Meyering  <jim@meyering.net>
106334         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
106335         Now a macro, to pacify GCC.
106337 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106339         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
106340         of -1.
106342 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106344         * lib/chown.c (rpl_chown): Return -1 on failure.
106346 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106348         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
106349         Don't check for stddef.h.
106350         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
106351         don't use its results.
106352         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
106353         since we include them unconditionally.  Don't require
106354         AM_STDBOOL_H, since stdbool is a prerequisite.
106355         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
106356         since we assume C89 or better.
106357         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106358         as we don't use their results.
106359         Don't check for fchdir, memmove, memset, strrchr, as we use
106360         them unconditionally.
106361         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106362         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106364 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106366         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106367         Include <stddef.h> unconditionally, since we assume C89 now.
106368         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106369         * lib/fts.c: Include fts_.h first, to check interface.
106370         Do not include intprops.h; no longer needed.
106371         Include cycle-check.h and hash.h, since fts_.h no longer does.
106372         Remove unnecessary casts of closedir to void.
106373         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106374         decide whether to decrement nlinks.
106375         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106376         (FTS): Use struct hash_table * instead of Hash_table, so that
106377         we no longer need to include hash.h here.
106379 2005-05-18  Jim Meyering  <jim@meyering.net>
106381         * modules/dirfd (License): Change to LGPL.  Most of the code
106382         is already in the public domain.
106384 2005-05-18  Jim Meyering  <jim@meyering.net>
106386         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106387         Reported by Yoann Vandoorselaere.
106389 2005-05-17  Jim Meyering  <jim@meyering.net>
106391         * m4/fts.m4: New file, from coreutils.
106393 2005-05-17  Jim Meyering  <jim@meyering.net>
106395         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106397 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106399         Sync from coreutils.
106400         * m4/unlinkdir.m4: New file.
106402 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106404         Sync from coreutils.
106405         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106406         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106407         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106408         White space changes only.
106409         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106410         special.
106411         * lib/yesno.c: Include getline.h, not ctype.h.
106412         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106413         Use getline to remove arbitrary restriction on response length.
106415 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106417         * config/srclist-update: Spell out "Street" in FSF postal
106418         mail address; this is the style the FSF seems to prefer.
106420         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106421         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106422         this updates FSF postal mail address.
106424         Sync from coreutils.
106425         * modules/unlinkdir: New file.
106426         * modules/yesno (Depends-on): Add getline.
106427         * MODULES.html.sh (File system functions): Add unlinkdir.
106429 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106431         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106432         lib/strsep.h:
106433         Change the initial comment to refer to GPL, not LGPL.
106434         gnulib-tool will change it to LGPL as needed.
106436         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106437         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106438         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106439         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106440         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106441         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106442         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106443         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106444         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106445         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106446         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106447         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106448         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106449         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106450         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106451         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106452         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106453         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106454         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106455         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106456         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106457         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106458         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106459         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106460         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106461         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106462         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106463         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106464         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106465         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106466         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106467         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106468         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106469         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106470         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106471         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106472         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106473         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106474         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106475         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106476         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106477         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106478         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106479         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106480         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106481         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106482         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106483         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106484         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106485         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106486         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106487         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106488         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106489         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106490         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106491         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106492         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106493         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106494         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106495         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106496         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106497         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106498         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106499         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106500         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106501         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106502         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106503         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106504         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106505         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106506         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106507         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106508         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106509         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106510         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106511         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106512         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106513         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106514         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106515         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106516         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106517         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106518         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106519         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106520         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106521         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106522         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106523         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106524         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106525         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106526         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106527         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106528         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106529         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106530         lib/yesno.c, lib/yesno.h:
106531         Update FSF postal mail address.
106533 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106535         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106536         tests/test-memmem.c, tests/test-stpncpy.c:
106537         Update FSF postal mail address.
106539 2005-05-13  Bruno Haible  <bruno@clisp.org>
106541         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106542         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106543         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106544         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106545         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106546         Add support for 64-bit integers in the MSVC compiler.
106548 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106550         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106552 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106554         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106556 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106558         * doc/getdate.texi (General date syntax): Don't say that date
106559         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106560         Problem reported by Nic Ferrier.
106562 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106564         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106565         specified in ai_socktype. Fix invalid ai_protocol
106566         check. ai_protocol is usually set to 0 or depending on
106567         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106568         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106569         ai_socktype / ai_protocol in the returned addrinfo structure.
106571 2005-05-10  Simon Josefsson  <jas@extundo.com>
106573         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106574         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106576 2005-05-10  Karl Berry  <karl@gnu.org>
106578         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106579         (from http://www.gnu.org/licenses).
106580         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106581         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106582         fdl.texi suffices.
106584 2005-05-10  Karl Berry  <karl@gnu.org>
106586         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106587         (COPYING.DOC): remove.
106589         * config/srclist-update: new FSF address.
106591 2005-05-10  Derek Price  <derek@ximbiot.com>
106593         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106594         possible.
106596 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106597             Bruno Haible  <bruno@clisp.org>
106599         * modules/inet_ntop: New file.
106600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106601         inet_ntop.
106603 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106604             Bruno Haible  <bruno@clisp.org>
106606         * m4/inet_ntop.m4: New file.
106608 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106609             Bruno Haible  <bruno@clisp.org>
106611         * lib/inet_ntop.h: New file.
106612         * lib/inet_ntop.c: New file, from glibc with modifications.
106614 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106616         * modules/time_r (License): Change to LGPL.
106617         * modules/extensions (License): Change to LGPL.  Actually,
106618         the license is more permissive than that, but currently gnulib-tool
106619         doesn't know how to handle more-permissive licenses.
106621         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106622         Problem reported by Dave Love.
106624 2005-05-08  Jim Meyering  <jim@meyering.net>
106626         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106627         blank.
106629 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106631         * modules/argmatch (Depends-on): Add stdbool.
106632         * modules/backupfile (Depends-on): Likewise.
106633         * modules/chdir-long (Depends-on): Likewise.
106634         * modules/closeout (Depends-on): Likewise.
106635         * modules/cycle-check (Depends-on): Likewise.
106636         * modules/dirname (Depends-on): Likewise.
106637         * modules/fnmatch (Depends-on): Likewise.
106638         * modules/fsusage (Depends-on): Likewise.
106639         * modules/fwriteerror (Depends-on): Likewise.
106640         * modules/getcwd (Depends-on): Likewise.
106641         * modules/getloadavg (Depends-on): Likewise.
106642         * modules/hard-locale (Depends-on): Likewise.
106643         * modules/makepath (Depends-on): Likewise.
106644         * modules/mountlist (Depends-on): Likewise.
106645         * modules/nanosleep (Depends-on): Likewise.
106646         * modules/posixtm (Depends-on): Likewise.
106647         * modules/quotearg (Depends-on): Likewise.
106648         * modules/readtokens (Depends-on): Likewise.
106649         * modules/readtokens0 (Depends-on): Likewise.
106650         * modules/readutmp (Depends-on): Likewise.
106651         * modules/save-cwd (Depends-on): Likewise.
106652         * modules/strftime (Depends-on): Likewise.
106653         * modules/userspec (Depends-on): Likewise.
106654         * modules/utimecmp (Depends-on): Likewise.
106655         * modules/xgetcwd (Depends-on): Likewise.
106656         * modules/xnanosleep (Depends-on): Likewise.
106657         * modules/xstrtod (Depends-on): Likewise.
106658         * modules/yesno (Depends-on): Likewise.
106660 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106662         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106663         needless checks.
106665 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106667         Merge from coreutils.  Among other things,
106668         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106669         * lib/fd-safer.c: New file.
106670         * lib/fcntl-safer.h, open-safer.c: Remove.
106671         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106672         * lib/dup-safer.c: Include unistd-safer.h first.
106673         Don't include errno.h.
106674         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106675         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106676         * lib/file-type.c: Rely on file-type.h change.
106677         * lib/getloadavg.c: Include unistd-safer.h.
106678         (getloadavg): Use safer open.
106679         * lib/getusershell.c: Include "stdio-safer.h".
106680         (getusershell): Use safer fopen.
106681         * lib/long-options.c (long_options): Use NULL rather than 0.
106682         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106683         'free'.
106684         * lib/modechange.c: Likewise.
106685         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106686         (MODE_DONE): New constant.
106687         (struct mode_change): Remove 'next' member.
106688         (make_node_op_equals): New function; like the old one of the
106689         same name, except it allocates an array.
106690         (mode_compile, mode_create_from_ref): Use it.
106691         (mode_compile): Allocate result as an array, not a linked list.
106692         Parse octal string ourself, so that we catch mistakes like "+0".
106693         (mode_adjust): Arg is an array, not a linked list.
106694         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106695         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106696         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106697         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106698         Remove.  This is now stat-macros.h's job.
106699         (talloc): Remove.  All callers replaced by xalloc, so that
106700         our invokers don't have to worry about reporting memory failures.
106701         (make_node_op_equals): Remove.
106702         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106703         New constants.
106704         (struct mode_change): Moved here from modechange.h.
106705         (mode_append_entry): Remove.
106706         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106707         apps to have incorrect behavior.  Use simpler algorithm for head
106708         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106709         Detect more invalid usages rather than having somewhat-random behavior.
106710         Don't insert an "a=" action, as that leads to incorrect behavior.
106711         (mode_compile, mode_create_from_ref): Return NULL on error instead
106712         of an enum, since now there's only one way to have an error.  All
106713         callers changed.
106714         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106715         at the correct time.  Simplify calculation of "+u" and its ilk.
106716         Don't mishandle "+X".
106717         (mode_free): Remove "register" and localize decls.
106718         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106719         (struct mode_change): Move to modechange.c; callers don't
106720         need to see this stuff.
106721         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106722         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106723         (mode_change, mode_adjust): Reflect the new signatures noted above.
106724         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106725         that might redefine system include files.
106726         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106727         (my_usleep): Use NULL rather than (void *) 0.
106728         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106729         Use siginterrupt to specify that system calls should be interrupted.
106730         (rpl_nanosleep): Move initialization of suspended closer to call of
106731         my_usleep.
106732         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106733         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106734         (desirable_utmp_entry): New function.
106735         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106736         using x2nrealloc, to simplify logic.
106737         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106738         size calculation.  Do not assume utmp file is a regular file.
106739         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106740         (READ_UTMP_CHECK_PIDS): New constant.
106741         * lib/save-cwd.c: Include unistd-safer.h.
106742         (save_cwd): Use fd_safer.
106743         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106744         [!_LIBC] Include "stat-macros.h" instead.
106745         * lib/unistd-safer.h (fd_safer): New decl.
106747 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106749         * modules/getloadavg (Depends-on): Add unistd-safer.
106750         * modules/getusershell (Depends-on): Add stdio-safer.
106751         * modules/lstat (Depends-on): Remove xalloc.
106752         * modules/mkstemp (Depends-on): Add stat-macros.
106753         * modules/modechange (Depends-on): Remove xstrtol.
106754         Add stat-macros, xalloc.
106755         * modules/save-cwd (Depends-on): Add unistd-safer.
106756         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106757         * modules/unistd-safer (Files): Add lib/fd-safer.c
106758         (Makefile.am): Remove lib_SOURCES.
106760         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106761         Remove fcntl-safer; unistd-safer supersedes it.
106763 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106765         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106766         AC_HEADER_STAT.
106767         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106768         (gl_PREREQ_CHOWN): Remove.
106769         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106770         it.  Don't require AC_HEADER_STAT.
106771         (gl_PREREQ_LSTAT): Remove.
106772         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106773         Don't require AC_HEADER_STAT.
106774         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106775         (gl_PREREQ_RMDIR): Remove.
106776         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106777         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106778         the stat-macros module a prerequisite.
106779         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106780         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106781         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106782         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106783         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106784         variable names.
106785         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106786         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106787         variable prefixes.
106788         * m4/fcntl-safer.m4: Remove.
106789         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106790         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106791         Invoke gl_PREREQ_FD_SAFER.
106792         (gl_PREREQ_FD_SAFER): New macro.
106793         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106794         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106795         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106796         Remove duplicate call to AC_LIBOBJ(readutmp).
106797         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106799         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106800         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106802 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106804         * MODULES.html.sh (Misc): Add byteswap.
106806 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106808         * modules/getcwd (Depends-on): Add extensions.
106809         * modules/openat (Depends-on): Likewise.
106811 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106813         * modules/byteswap: New file.
106815 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106817         * m4/byteswap.m4: New file.
106819 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106821         * lib/byteswap_.h: New file.
106823 2005-04-25  Karl Berry  <karl@gnu.org>
106825         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106827 2005-04-25  Albert Chin  <china@thewrittenword.com>
106829         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106830         Toolkit C bug.
106832 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106834         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106835         (func_ln_if_changed): Remove forcibly for no error message
106836         in case file does not exist.
106838 2005-04-19  Simon Josefsson  <jas@extundo.com>
106840         * gnulib-tool (Options): Make --symlink mean --symbolic.
106842 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106844         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106846 2005-04-16  Simon Josefsson  <jas@extundo.com>
106848         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106850 2005-04-15  Simon Josefsson  <jas@extundo.com>
106852         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106854 2005-04-15  Simon Josefsson  <jas@extundo.com>
106856         * gnulib-tool: Rename --symlink to --symbolic.
106858 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106860         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106861         symbolic links to files instead of copying/moving.  Add --aux-dir,
106862         specifying directory relative --dir where auxiliary build tools
106863         are placed.
106865 2005-04-14  Bruno Haible  <bruno@clisp.org>
106867         * modules/allocsa (License): Change to LGPL.
106868         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106870 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106872         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106873         that "UTC +1 second" continues to work.  Problem reported
106874         by Dmitry V. Levin.
106875         (relunit_snumber): New rule.
106876         (relunit): Use it.
106878 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106880         * lib/getdate.y (universal_time_zone_table): New constant.
106881         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106882         universal_time_zone_table.
106883         (lookup_zone): Prefer universal_time_zone_table to
106884         local_time_zone_table, so that "GMT" time stamps are allowed in
106885         London during the summer.  Problem reported by Ian Abbott.
106887 2005-04-12  Jim Meyering  <jim@meyering.net>
106889         * lib/human.c (humblock): Set *options even when returning due to
106890         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106891         warning from gcc-4.
106893 2005-04-09  Jim Meyering  <jim@meyering.net>
106895         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106896         -Wuninitialized: initialize tm0.tm_year.
106898 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106900         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106901         count, since there's no maximum.  All uses changed.
106902         Add member dsts_seen.
106903         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106904         not being INT_MAX.
106905         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106906         Use pc_rels_seen to decide whether a date is absolute.
106908         * lib/getdate.y (number): Don't overwrite year.
106909         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106910         check.
106912 2005-04-02  Simon Josefsson  <jas@extundo.com>
106914         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106915         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106917 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106919         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106920         where no absolute path name can be longer than PATH_MAX.
106922 2005-03-27  Jim Meyering  <jim@meyering.net>
106924         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106926 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106928         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106929         "one's complement" -> "ones' complement" in comment, as per Knuth.
106930         "value of type" -> "type or expression" in comment.
106931         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106933 2005-03-26  Jim Meyering  <jim@meyering.net>
106935         Comment nits.
106936         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106937         Correct typos: s/or/of/.
106939 2005-03-26  Jim Meyering  <jim@meyering.net>
106941         * modules/check-include-files: Move to ../ and rename to...
106942         * check-module: ...this.
106944 2005-03-25  Jim Meyering  <jim@meyering.net>
106946         * modules/xvasprintf (Files): Add xalloc.h.
106948 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106950         * modules/gettext (Files): config/config.rpath ->
106951         build-aux/config.rpath
106952         * modules/iconv (Files): Likewise.
106953         Problem reported by Oskar Liljeblad.
106955 2005-03-23  Jim Meyering  <jim@meyering.net>
106957         * modules/check-include-files: New script to check for
106958         missing dependencies, multiple includes, etc.
106960         * modules/c-strtold (Depends-on): Add xalloc.
106961         * modules/c-strtod (Depends-on): Add xalloc.
106962         * modules/hash (Depends-on): Add xalloc.
106963         (Files): Remove lib/xalloc.h.
106965         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106966         * modules/userspec (Files): Add lib/inttostr.h.
106968 2005-03-23  Jim Meyering  <jim@meyering.net>
106970         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106972 2005-03-22  Jim Meyering  <jim@meyering.net>
106974         * modules/stat-macros: New module.
106975         * modules/canonicalize, modules/euidaccess, modules/file-type,
106976         * modules/filemode, modules/lchown, modules/makepath,
106977         * modules/rmdir, modules/stat: Depend on new stat-macros module
106978         rather than listing lib/stat-macros.h manually.
106979         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106981 2005-03-22  Jim Meyering  <jim@meyering.net>
106983         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106985 2005-03-22  Bruno Haible  <bruno@clisp.org>
106987         * config/srclist.txt: Replace target directory 'config' with
106988         'build-aux'.
106989         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106990         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106991         ../build-aux/.
106993 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106995         * modules/chdir-long (Depends-on): Add mempcpy.
106997         * modules/acl, modules/backupfile, modules/c-strtod,
106998         modules/c-strtold, modules/canon-host, modules/canonicalize,
106999         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
107000         modules/exclude, modules/exitfail, modules/file-type,
107001         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
107002         modules/getdate, modules/getline, modules/getpagesize,
107003         modules/getpass, modules/getugroups, modules/group-member,
107004         modules/hard-locale, modules/hash, modules/human, modules/idcache,
107005         modules/inttostr, modules/long-options, modules/makepath,
107006         modules/md5, modules/memcasecmp, modules/memcoll,
107007         modules/modechange, modules/mountlist, modules/path-concat,
107008         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
107009         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
107010         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
107011         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
107012         modules/strftime, modules/strndup, modules/strverscmp,
107013         modules/timespec, modules/unlocked-io, modules/userspec,
107014         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
107015         modules/yesno:
107016         Remove lib_SOURCES line from Makefile.am section, as this is now
107017         done automatically by the corresponding Autoconf macro.
107019 2005-03-21  Jim Meyering  <jim@meyering.net>
107021         Changes imported from coreutils.
107023         * lib/cycle-check.c: Don't include xalloc.h.
107025         * lib/path-concat.c: Don't include assert.h.
107026         (path_concat): Remove assertion that would have triggered
107027         for ABASE starting with more than one slash.
107028         Reported by Andreas Schwab.
107030         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
107031         properly when ABASE is an absolute file name.
107032         Correct the description of this function.
107033         Include <assert.h>.
107034         Add an assertion and a test driver.
107035         This fixes a bug introduced on 2004-07-02.
107036         Andreas Schwab reported the resulting failure of cp --parents:
107037         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
107039 2005-03-21  Jim Meyering  <jim@meyering.net>
107041         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
107042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
107044 2005-03-21  Jim Meyering  <jim@meyering.net>
107045         and  Paul Eggert  <eggert@cs.ucla.edu>
107047         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
107048         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
107049         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
107050         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
107051         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
107052         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
107053         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
107054         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
107055         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
107056         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
107057         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
107058         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
107059         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
107060         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
107061         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
107062         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
107063         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
107064         for these modules.
107066 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
107068         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
107069         (which shouldn't happen), generate nothing instead of returning 0
107070         immediately, so that nstrftime (NULL, ...) doesn't return 0.
107072 2005-03-16  Bruno Haible  <bruno@clisp.org>
107074         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
107075         HAVE_LONGLONG_64BIT.
107077 2005-03-16  Bruno Haible  <bruno@clisp.org>
107079         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
107080         HAVE_LONGLONG_64BIT.
107082 2005-03-16  Bruno Haible  <bruno@clisp.org>
107084         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
107085         HAVE_LONGLONG_64BIT.
107087 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
107089         * lib/strftime.c (my_strftime): Prepend space to format so that we can
107090         reliably distinguish strftime failure from empty output on POSIX
107091         hosts.
107093 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
107095         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
107096         (iconv_string): Don't guess a size-zero buffer, as that might cause
107097         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
107098         result would be 'too large', where 'too large' is (heuristically)
107099         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
107100         overflow concerns.  This will prevent some unwanted malloc failures
107101         when the inputs are very large.
107103 2005-03-15  Karl Berry  <karl@gnu.org>
107105         * config/srclist.txt (config.rpath): from gettext.
107106         * config/config.rpath: update.
107108 2005-03-15  Bruno Haible  <bruno@clisp.org>
107110         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
107111         to 'negate'.
107113         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
107114         variable.
107116         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
107117         results.
107119 2005-03-14  Simon Josefsson  <jas@extundo.com>
107121         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
107122         <fx@gnu.org>.
107124 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
107126         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
107127         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
107128         intprops.h.
107129         * lib/strtol.c: Likewise.
107131 2005-03-14  Jim Meyering  <jim@meyering.net>
107133         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
107134         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
107135         to be nonzero so that we (and caller) can detect the difference
107136         between a valid zero-length expansion and an error return, even
107137         when the underlying strftime fails before writing anything into
107138         that location.
107140 2005-03-14  Bruno Haible  <bruno@clisp.org>
107142         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
107143         Update from GNU gettext 0.14.3.
107145 2005-03-10  Jim Meyering  <jim@meyering.net>
107147         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
107149 2005-03-10  Jim Meyering  <jim@meyering.net>
107151         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
107152         so that this module works on systems without fchdir.
107154 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
107156         Factor int-properties macros into a single file, except for
107157         glibc-related files.
107158         * lib/intprops.h: New file.
107159         * lib/getloadavg.c: Include it instead of limits.h.
107160         (INT_STRLEN_BOUND): Remove.
107161         * lib/human.c: Include intprops.h.
107162         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
107163         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
107164         302/1000.
107165         * lib/inttostr.h: Include intprops.h instead of limits.h.
107166         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
107167         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
107168         for consistency with intprops.h.
107169         (time_t_is_integer, twos_complement_arithmetic): Use them.
107170         * lib/sig2str.h: Include <signal.h>, intprops.h.
107171         (INT_STRLEN_BOUND): Remove.
107172         * lib/strftime.c (TYPE_SIGNED): Remove.
107173         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
107174         * lib/strtol.c: Adjust comments to match intprops.h.
107175         * lib/userspec.c: Include intprops.h.
107176         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
107177         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
107178         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
107179         instead of rolling our own expressions.
107180         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
107182         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
107183         instead of int.
107184         (my_strftime): Do not mishandle years close to INT_MAX, by doing
107185         the right thing even if adding 1900 would overflow.  Similarly
107186         for tm_mon + 1 and tm_yday + 1.
107187         Make %Y always equivalent to %C%y, and similarly for %G and %g.
107188         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
107189         (DO_SIGNED_NUMBER): New macro.
107190         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
107192 2005-03-07  Bruno Haible  <bruno@clisp.org>
107194         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
107196 2005-03-07  Bruno Haible  <bruno@clisp.org>
107198         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
107200 2005-03-04  Derek R. Price  <derek@ximbiot.com>
107202         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
107203         (func_import): Only replace files via --import when they have actually
107204         changed.
107206 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107208         * m4/mmap-anon.m4: New file.
107209         * m4/pagealign_alloc.m4: New file.
107211 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107212             Bruno Haible  <bruno@clisp.org>
107214         * modules/pagealign_alloc: New file.
107215         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
107217 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107218             Bruno Haible  <bruno@clisp.org>
107220         * lib/pagealign_alloc.h: New file.
107221         * lib/pagealign_alloc.c: New file.
107223 2005-03-03  Bruno Haible  <bruno@clisp.org>
107225         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
107226         Use an all-permissive copyright notice, recommended by RMS.
107228 2005-03-02  Bruno Haible  <bruno@clisp.org>
107230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
107231         of AIX, the replacement has to be done only after <string.h> is
107232         included, therefore not in config.h. stpncpy.h does the replacement,
107233         and stpncpy.c uses it.
107235 2005-03-02  Bruno Haible  <bruno@clisp.org>
107237         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
107238         stpncpy.c uses it.
107240 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107242         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
107243         The workaround isn't strictly needed for POSIX conformance, and
107244         it's too much of a pain to configure and maintain.  We'll ask
107245         people to fix their kernels instead.
107246         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
107247         (NANOSLEEP_BUG_WORKAROUND): Remove.
107248         (xnanosleep): Remove the workaround.
107250 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107252         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
107253         Reported by Derek Price.
107254         (Include): Add "timespec.h".
107256         * modules/xnanosleep (Depends-on): Remove gethrxtime.
107258 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107260         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
107261         to detect nanosleep bug.
107263 2005-03-01  Bruno Haible  <bruno@clisp.org>
107265         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
107267 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107269         * modules/gethrxtime: New file.
107270         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
107271         (Depends-on): Add gethrxtime.
107272         (configure.ac): Add gl_XNANOSLEEP.
107273         (Makefile.am): Remove lib_SOURCES line.
107275 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107277         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
107278         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
107280 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107282         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
107283         * lib/timespec.h (gettime): Return void, since it always
107284         succeeds now.  All uses changed.
107285         * lib/gettime.c (gettime): Likewise.
107286         [HAVE_NANOTIME]: Prefer nanotime.
107287         Assume gettimeofday succeeds, as POSIX requires.
107288         Assime time () succeeds, since other code already does.
107289         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
107290         (timespec_subtract): Remove.
107291         (NANOSLEEP_BUG_WORKAROUND): New constant.
107292         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
107293         things considerably.  Use it only on GNU/Linux hosts, since the
107294         workaround shouldn't be needed elsewhere.
107296 2005-02-24  Bruno Haible  <bruno@clisp.org>
107298         * modules/gettext (Files): Add m4/glibc2.m4.
107300 2005-02-24  Bruno Haible  <bruno@clisp.org>
107302         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
107303         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
107304         * m4/progtest.m4:
107305         Update from GNU gettext 0.14.2.
107306         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
107308 2005-02-24  Bruno Haible  <bruno@clisp.org>
107310         * lib/localcharset.c: Update from GNU gettext 0.14.2.
107311         * lib/config.charset: Update from GNU gettext 0.14.2.
107313 2005-02-24  Bruno Haible  <bruno@clisp.org>
107315         * lib/gettext.h: Update from GNU gettext 0.14.2.
107317 2005-02-23  Simon Josefsson  <jas@extundo.com>
107319         * m4/iconvme.m4: New file.
107321 2005-02-23  Jim Meyering  <jim@meyering.net>
107323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
107324         change.
107325         Thanks to Bruno Haible for catching it.
107327 2005-02-22  Simon Josefsson  <jas@extundo.com>
107329         * modules/iconvme: New file.
107331         * MODULES.html.sh: Add iconvme.
107333 2005-02-22  Simon Josefsson  <jas@extundo.com>
107335         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
107337 2005-02-22  Simon Josefsson  <jas@extundo.com>
107339         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
107341 2005-02-22  Jim Meyering  <jim@meyering.net>
107343         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
107344         s/ifndef/ifdef/.
107346 2005-02-20  Neil Conway  <neilc@samurai.com>
107348         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
107349         returned by OSX/Darwin if the specified buffer is not large
107350         enough for the hostname.
107352 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107354         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
107355         pass it to _help, otherwise the latter coredumps trying to
107356         dereference state.root_argp.
107358 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107360         * modules/chdir-long (Depends-on): Add memrchr.
107361         * modules/memrchr (Files): Add lib/memrchr.h.
107362         (Include): "memrchr.h".
107364 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107368 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107370         * lib/memrchr.h: New file.
107371         * lib/chdir-long.c: Include it.
107372         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107373         Don't bother including stddef.h.
107375 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107377         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107378         inclusion.
107379         Include <sys/types.h>, for dev_t.
107380         (ME_DUMMY, ME_REMOTE): Move from here....
107381         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107382         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107383         Dmitry V. Levin.
107384         Include mountlist.h first, to test the interface.
107386 2005-01-29  Bruno Haible  <bruno@clisp.org>
107388         * lib/progname.c (program_name): Initialize.
107389         Needed when linking statically on MacOS X.
107391 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107393         Sync from coreutils.
107394         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107395         (Depends-on): Add c-strtod.
107396         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107398 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107400         Sync from coreutils.
107401         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107403         Remove files that are specific to coreutils.
107404         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107406 2005-01-28  Bruno Haible  <bruno@clisp.org>
107408         * modules/javacomp: New file.
107409         * MODULES.html.sh (Java): Add javacomp.
107411 2005-01-28  Bruno Haible  <bruno@clisp.org>
107413         * m4/javacomp.m4: New file, from GNU gettext.
107415 2005-01-28  Bruno Haible  <bruno@clisp.org>
107417         * lib/javacomp.sh.in: New file, from GNU gettext.
107418         * lib/javacomp.h: New file, from GNU gettext.
107419         * lib/javacomp.c: New file, from GNU gettext.
107421 2005-01-26  Simon Josefsson  <jas@extundo.com>
107423         * lib/gai_strerror.c: Use GPL in header.
107425 2005-01-26  Bruno Haible  <bruno@clisp.org>
107427         * modules/javaexec: New file.
107428         * MODULES.html.sh (Java): Add javaexec.
107430 2005-01-26  Bruno Haible  <bruno@clisp.org>
107432         * m4/javaexec.m4: New file, from GNU gettext.
107434 2005-01-26  Bruno Haible  <bruno@clisp.org>
107436         * lib/javaexec.sh.in: New file, from GNU gettext.
107437         * lib/javaexec.h: New file, from GNU gettext.
107438         * lib/javaexec.c: New file, from GNU gettext.
107440 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107442         * modules/lchown (Depends-on): Remove lchown.h
107444 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107446         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107447         must be defined if the header file was not found, in order
107448         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107450 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107452         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107453         initializers for struct pentry_state.
107454         (__argp_error): Check return value of __asprintf
107455         (__argp_failure): Translate error message
107457         * lib/argp-parse.c: Removed braces around the expansion of N_()
107459 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107461         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107462         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107463         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107464         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107465         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107466         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107467         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107468         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107469         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107470         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107471         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107472         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107473         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107474         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107475         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107476         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107477         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107478         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107479         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107480         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107481         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107482         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107483         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107484         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107485         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107486         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107487         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107488         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107489         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107490         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107491         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107492         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107493         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107494         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107495         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107496         Use an all-permissive copyright notice, recommended by RMS.
107498 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107500         * modules/chdir-long (Depends-on): Remove mempcpy.
107502 2005-01-21  Jim Meyering  <jim@meyering.net>
107504         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107505         same value as for Solaris 9.
107507         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107508         component length.  This included changing the parameter to be
107509         of type `char *' rather than `char const *'.
107510         * lib/chdir-long.h (chdir_long): Update prototype.
107512         * lib/openat.c (fdopendir, fstatat): New functions.
107513         * lib/openat.h: Include headers required for use of DIR and struct
107514         stat.
107515         [AT_SYMLINK_NOFOLLOW]: Define.
107516         (fdopendir, fstatat): Add prototypes.
107518 2005-01-21  Bruno Haible  <bruno@clisp.org>
107520         * modules/classpath: New file.
107521         * MODULES.html.sh (Java): Add classpath.
107523 2005-01-21  Bruno Haible  <bruno@clisp.org>
107525         * lib/classpath.h: New file, from GNU gettext.
107526         * lib/classpath.c: New file, from GNU gettext.
107528 2005-01-20  Simon Josefsson  <jas@extundo.com>
107530         * modules/version-etc-fsf: New file.
107532 2005-01-20  Simon Josefsson  <jas@extundo.com>
107534         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107535         * lib/version-etc.c: Remove version_etc_copyright.
107536         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107537         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107539 2005-01-20  Simon Josefsson  <jas@extundo.com>
107541         * lib/base64.h (isbase64): Add.
107543         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107544         using a unsigned prototype, don't inline.
107545         (base64_decode): Use it.
107547 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107549         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107550         it.
107552 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107554         * lib/save-cwd.c (save_cwd): Remove code to support the case
107555         where fchdir is missing or flaky.
107557 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107559         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107561 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107563         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107564         AC_LIBSOURCES now does this.
107565         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107566         with new ullong_max module.
107568 2005-01-19  Bruno Haible  <bruno@clisp.org>
107570         * modules/sh-quote: New file.
107571         * MODULES.html.sh (Executing programs): Add sh-quote.
107573 2005-01-19  Bruno Haible  <bruno@clisp.org>
107575         * lib/sh-quote.h: New file, from GNU gettext.
107576         * lib/sh-quote.c: New file, from GNU gettext.
107578 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107580         Merge from coreutils.
107581         * m4/ullong_max.m4: New file.
107582         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107583         (gl_MACROS): Assume localeconv exists.
107585 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107587         Merge changes from coreutils, as described below in several
107588         changelogs dated today.
107590         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107591         (O_DIRECTORY): Remove; not needed here, since "." must be
107592         a directory.  All uses removed.
107593         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107594         universal on Suns, and we also need to test for IRIX.
107595         Revamp code to use 'if' rather than '#if'.
107596         Avoid unnecessary comparison of cwd->desc to 0.
107598         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107599         for known valid error numbers rather than observed invalid ones.
107601 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107603         * modules/ullong_max: New file.
107605         * modules/chdir-long, modules/openat: New files.
107606         * modules/save-cwd (Depends-on): Depend on chdir-long.
107607         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107609 2005-01-18  Jim Meyering  <jim@meyering.net>
107611         Merge from coreutils.
107612         * m4/chdir-long.m4, m4/openat.m4: New files.
107613         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107614         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107615         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107616         is sane and DOES follow symlinks.  Besides, testing 20 different
107617         systems found no broken chown implementations.
107618         Prompted by a change in rsync's copy of this macro.
107619         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107623         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107624         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107625         NULL-means-set-to-current-time semantics.
107626         Remove temporary file immediately, rather than waiting
107627         for configure's at-exit trap code to do it.
107629 2005-01-18  Jim Meyering  <jim@meyering.net>
107631         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107633         * lib/utimens.c (futimens): Account for the fact that futimes
107634         can also fail with errno == ENOSYS or errno == ENOENT.
107635         Patch from Dmitry V. Levin.
107637         Change the name of the robust chdir function from chdir to chdir_long.
107638         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107639         (restore_cwd): Use chdir_long, not chdir.
107640         * lib/chdir-long.c: Renamed from chdir.c.
107641         * lib/chdir-long.h: Renamed from chdir.h.
107642         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107643         Hurd.
107645 2005-01-18  Bruno Haible  <bruno@clisp.org>
107647         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107648         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107649         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107650         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107651         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107652         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107653         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107654         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107655         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107656         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107657         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107658         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107659         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107660         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107661         Use an all-permissive copyright notice, recommended by RMS.
107663 2005-01-18  Bob Proulx  <bob@proulx.com>
107665         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107666         simplify offsetof() macro construct to avoid compile failure with
107667         native HP-UX 11.0 ANSI C compiler.
107669 2005-01-17  Bruno Haible  <bruno@clisp.org>
107671         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107672         redundant because stpncpy.m4 takes care of it.
107674 2005-01-17  Bruno Haible  <bruno@clisp.org>
107676         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107678 2005-01-17  Bruno Haible  <bruno@clisp.org>
107680         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107681         used.
107683 2005-01-17  Bruno Haible  <bruno@clisp.org>
107685         * lib/fwriteerror.h (fwriteerror): Change specification to include
107686         fclose.
107687         * lib/fwriteerror.c: Include <stdbool.h>.
107688         (fwriteerror): At the end, close the file stream. Record whether
107689         stdout was already closed.
107691 2005-01-17  Bruno Haible  <bruno@clisp.org>
107693         * lib/execute.c (environ): Declare if needed.
107694         * lib/pipe.c (environ): Likewise.
107695         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107697 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107699         * modules/argp: Depend on vsnprintf
107701 2005-01-10  Jim Meyering  <jim@meyering.net>
107703         * modules/closeout (Depends-on): Add atexit.
107705 2005-01-06  Bruno Haible  <bruno@clisp.org>
107707         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107709 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107711         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107712         definitions to be after all include files, to avoid collisions.
107713         Problem reported by Bob Proulx.
107715 2005-01-04  Jim Meyering  <jim@meyering.net>
107717         Changes imported from coreutils.
107718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107719         as the mkstemp template, use a temporary directory and an
107720         8.3-friendly template to avoid trouble on systems like DJGPP.
107721         Reported by Juan M. Guerrero via Stepan Kasal.
107722         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107723         close. Remove the temporary directory right away, rather than waiting
107724         for configure's at-exit trap code to do it.
107725         Suggestion from Stepan Kasal.
107727 2005-01-01  Simon Josefsson  <jas@extundo.com>
107729         * gnulib-tool: Print #include directives when --import'ing.
107731 2004-12-28  Simon Josefsson  <jas@extundo.com>
107733         * tests/test-base64.c: Include required header files.  Remove
107734         unused variables.
107736 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107738         * modules/error (Depends-on): Remove gettext.
107740 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107742         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107743         not needed.  This removes a dependency on the gettext module.
107744         [defined _LIBC]: Do not include <libintl.h>; not needed.
107746 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107748         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107749         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107751 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107753         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107754         HAVE_DECL_STRTOLD.
107756 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107758         * modules/getdate (Depends-on): Remove alloca-opt.
107760 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107762         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107764 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107766         * lib/argp-parse.c: Include <stddef.h>.
107767         (alignof, alignto): New macros.
107768         (parser_init): Don't assume that void * is aligned sufficiently
107769         for struct option.
107771         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107772         need to extend the stack.
107773         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107774         large.
107776 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107778         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107780 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107782         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107783         (2004-10-24) change.  Apparently this was a false alarm.
107785         * modules/getdate: Depend on alloca-opt, not alloca.
107787 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107789         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107790         Remove now-obsolete comment about AIX.
107791         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107792         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107793         (YYMAXDEPTH): New macro.
107795 2004-12-18  Simon Josefsson  <jas@extundo.com>
107797         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107799 2004-12-18  Bruno Haible  <bruno@clisp.org>
107801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107803 2004-12-18  Bruno Haible  <bruno@clisp.org>
107805         * lib/fatal-signal.c (fatal_signals): Make non-const.
107806         (init_fatal_signals): New function.
107807         (uninstall_handlers, install_handlers): Ignore signals that were set to
107808         SIG_IGN.
107809         (at_fatal_signal): Call init_fatal_signals.
107810         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107811         SIG_IGN.
107812         Reported by Paul Eggert.
107814 2004-12-18  Bruno Haible  <bruno@clisp.org>
107816         * doc/alloca.texi: New file.
107817         * doc/alloca-opt.texi: New file.
107819 2004-12-17  Jim Meyering  <jim@meyering.net>
107821         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107822         Otherwise, install-sh could exit with improper exit status when
107823         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107825 2004-12-16  Simon Josefsson  <jas@extundo.com>
107827         * tests/test-base64.c: Add license.
107829 2004-12-15  Stepan Kasal  <address@hidden>
107831         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107833 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107835         * modules/getcwd (Files): Add m4/d-ino.m4.
107836         Suggested by Mark D. Baushke.
107838 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107840         * lib/getdate.y (textint): New member "negative".
107841         (time_zone_hhmm): New function.
107842         Expect 14 shift-reduce conflicts, not 13.
107843         (o_colon_minutes): New rule.
107844         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107845         (yylex): Set the "negative" member of signed numbers.
107847 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107849         * doc/getdate.texi (Time of day items, Time zone items):
107850         Describe new formats +00:00, UTC+00:00.
107852 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107854         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107855         spurious "-l"s.  Problem reported by Stepan Kasal.
107857 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107859         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107860         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107862 2004-12-04  Simon Josefsson  <jas@extundo.com>
107864         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107865         Vandoorselaere <yoann@prelude-ids.org>.
107867 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107869         Changes imported from coreutils.
107870         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107871         exist.
107872         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107874 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107876         Changes imported from coreutils.
107877         * lib/hard-locale.c: Assume <locale.h> exists.
107878         Include "strdup.h".
107879         (GLIBC_VERSION): New macro.
107880         (hard_locale): Assume setlocale exists.
107881         Rewrite to avoid #ifdef.
107882         Use strdup rather than malloc + strcpy.
107883         * lib/human.c: Assume <locale.h> exists.
107884         (human_readable): Assume localeconv exists.
107886 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107888         * modules/hard-locale (Depends-on): Add strdup.
107890 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107892         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107893         convert T2, not T.  (Imported from libc.)
107895 2004-11-30  Simon Josefsson  <jas@extundo.com>
107897         * modules/restrict (License): Change to LGPL.
107899 2004-11-30  Simon Josefsson  <jas@extundo.com>
107901         * m4/restrict.m4: Add copyright and copying conditions.
107903 2004-11-30  Simon Josefsson  <jas@extundo.com>
107905         * m4/base64.m4: New file.
107907 2004-11-30  Simon Josefsson  <jas@extundo.com>
107909         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107910         base64.
107912         * tests/test-base64.c: New file.
107914         * modules/base64: New file.
107916 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107918         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107919         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107921         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107923 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107925         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107926         (__getcwd.c): Don't restore errno; glibc doesn't.
107927         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107928         first, falling back to our code only if its results look suspicious.
107929         Ensure that the resulting buffer is only as large as necessary.
107931         * lib/readutmp.c: Include readutmp.h first.
107932         Include <errno.h>, since readutmp.h no longer does that.
107933         * lib/readutmp.h: Don't include <errno.h>,
107934         <sys/param.h>, <time.h>; not needed to establish interface.
107935         (errno): Remove decl.
107936         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107937         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107938         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107940 2004-11-28  Simon Josefsson  <jas@extundo.com>
107942         * lib/base64.h, base64.c: New file.
107944 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107946         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107948 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107950         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107951         (Depends-on): Remove pathmax, same.  Add mempcpy.
107952         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107953         (Makefile.am): Append getcwd.h to lib_SOURCES.
107954         (Include): Add getcwd.h.
107955         (Maintainer): Change from Jim Meyering to "all, glibc",
107956         since getdate now uses intended-for-glibc code.
107957         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107958         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107960 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107962         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107963         HP's ANSI C compiler.
107964         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107965         Declaring int functions causes warnings on some modern systems and
107966         shouldn't be needed to compile on ancient ones.
107967         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107968         defined.
107970         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107971         with the following changes.
107972         (__set_errno): Parenthesize properly.
107973         Include <stdbool.h>.
107974         (MIN, MAX, MATCHING_INO): New macros.
107975         (__getcwd): Define with prototype, not K&R form.
107976         Use heuristics to allocate default buffer on stack if possible.
107977         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107978         behavior, and to avoid the PATH_MAX limit when computing
107979         ../../../../...
107980         Use MATCHING_INO to compare inode number to file.
107981         Check for arithmetic overflow in size calculations.
107982         Fix bug in reallocation of dot array that caused getcwd to fail
107983         on directories nested deeper than 75.
107984         Be more careful about saving errno on error.
107985         Do not use realloc; use only free+malloc, as this is a bit
107986         more flexible and avoids a needless copy operation.
107987         Do not inspect st_dev and st_ino for symbolic links; POSIX
107988         doesn't specify the latter.
107989         Check for closedir errors.
107990         Avoid needless casts.
107991         Use "#ifdef weak_alias" around weak_alias, to be like other
107992         glibc code.
107993         The following changes to getcwd.c have effect only when used in
107994         gnulib; they have no effect inside glibc proper.
107995         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107996         as alloca isn't used.
107997         (alloca, __alloca): Likewise.
107998         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107999         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108000         unconditionally, as gnulib assumes C89 or better.
108001         Do not include <sys/param.h>.
108002         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
108003         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
108004         better.
108005         (NULL) [!defined NULL]: Remove; we assume C89 or better.
108006         Include <dirent.h> in a way that is compatible with modern Autoconf.
108007         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
108008         New macros, if not already defined.
108009         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
108010         Use "_LIBC", not "defined _LIBC", for consistency.
108011         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
108012         a mempcpy module.
108013         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
108014         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
108015         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
108016         credit only to Jim Meyering and adjust the copyright dates.
108017         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
108018         <stdlib.h>, <unistd.h>, "pathmax.h".
108019         Instead, include "xgetcwd.h" (first) and "getcwd.h".
108020         (INITIAL_BUFFER_SIZE): Remove.
108021         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
108023 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
108025         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
108026         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
108027         Use the _ONCE methods, for efficiency.
108028         Check for fcntl.h.  In test program, include <errno.h>
108029         and <fcntl.h> if available.  Remove old K&R cruft from
108030         test program.  Check for common errors in GNU/Linux,
108031         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
108032         don't do AC_LIBOBJ, as that's getcwd.m4's job.
108033         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
108034         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
108035         name accordingly.
108036         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
108037         accommodate new getcwd.c.
108038         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
108039         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
108040         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
108041         that's all we need now.
108043 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108045         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
108046         argp-parse.c depends on getopt internals, that means we should
108047         always use our getopt, to be on the safe side.
108048         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
108049         order not to spoil the result of an eventual previous invocation
108050         of gl_GETOPT_SUBSTITUTE.
108052 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108054         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
108055         redefinition warnings. To avoid them, include the defines
108056         in `#if !defined __need_getopt ... #endif'. The only place
108057         where __getopt_argv_const is used is in definitions
108058         of getopt_long and getopt_long_only below, which are as well
108059         protected by `#ifndef __need_getopt'.
108060         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
108061         __need_getopt after including <stdio.h> and <unistd.h> These
108062         headers might have defined it.
108064 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
108066         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
108068 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
108070         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
108071         (futimens): New function, which uses futimes if available.
108072         (futimens, utimens): Support timespec==NULL, with same semantics
108073         as utime and utimens.
108074         * lib/utimens.h (futimens): New decl.
108076 2004-11-23  Jim Meyering  <jim@meyering.net>
108078         * lib/getopt_.h: Remove trailing blanks.
108080 2004-11-23  Jim Meyering  <jim@meyering.net>
108082         * lib/__fpending.c: Add comment.
108084 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
108086         * modules/canonicalize (Depends-on): Add xreadlink.
108087         Problem reported by James Youngman.
108089 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
108091         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
108092         New macros.
108093         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
108094         optopt): Use them instead of invoking ## directly; otherwise, the
108095         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
108097 2004-11-19  Bruno Haible  <bruno@clisp.org>
108099         * lib/strtok_r.c: Move comments from here...
108100         * lib/strtok_r.h: ... to here.
108102 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
108104         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
108105         implementations that mishandle size_t overflow.
108107 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
108109         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
108110         might fail.  Problem reported by Yoann Vandoorselaere.
108111         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
108112         implementations that mishandle size_t overflow.
108114 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108116         * modules/canon-host (Depends-on): Add strdup.
108118 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108120         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
108122 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108124         * lib/canon-host.c: Include "strdup.h".
108125         (canon_host): Use getaddrinfo if available, so that IPv6 works.
108126         Use strdup instead of malloc/strcpy to duplicate strings.
108128         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
108129         (human_space_before_unit): New constant.
108130         * lib/human.c (human_readable): Support it.
108132         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
108133         (xgetcwd): Set errno correctly when failing.
108134         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
108135         the failure is actually due to a PATH_MAX problem.
108137         Further getopt changes to make it more likely that glibc will
108138         buy the changes back.
108139         * lib/getopt.c (POSIXLY_CORRECT): New constant.
108140         (getopt): Use it, so to preserve glibc semantic
108141         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
108142         when compiling for libc.
108143         * lib/getopt_.h (__getopt_argv_const): Bring it back.
108144         (getopt_long, getopt_long_only): Use it.
108146         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108147         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
108148         (getopt): Argv is now char * const *, as per standard.
108149         (_getopt_internal_r, _getopt_internal): Argv is now char **,
108150         not char *__getopt_argv_const *.
108151         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108152         _getopt_long_only_r): Likewise.
108153         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
108154         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108155         _getopt_long_r, _getopt_long_only_r): Likewise.
108156         * lib/getopt_.h (__getopt_argv_const): Remove.
108157         (getopt): Argv is now char * const *, as per standard.
108159         * lib/getdate.y (tORDINAL): New token.
108160         (day, relunit): Allow it for relative times.
108161         (relative_time_table): Use tORDINAL for ordinals.
108163 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108165         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
108166         Document that "second" isn't allowed as an ordinal number.
108168 2004-11-16  Jim Meyering  <jim@meyering.net>
108170         * modules/closeout (Depends-on): Add fpending.
108172 2004-11-15  Jim Meyering  <jim@meyering.net>
108174         * lib/closeout.c: Include "__fpending.h" once again.
108175         Include <stdbool.h>.
108176         (close_stdout): Don't fail just because stdout was closed initially,
108177         since some programs don't write to stdout in the normal course of
108178         operation (other than --version and --help), and we don't want this
108179         function to make e.g. `touch file >&-' fail.
108180         But do fail if it was closed and someone has tried to write to it.
108181         E.g., `printf foo >&-' must fail.
108183 2004-11-13  Jim Meyering  <jim@meyering.net>
108185         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
108187 2004-11-12  Simon Josefsson  <jas@extundo.com>
108189         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
108190         small doc fix is still pending.
108192 2004-11-11  Simon Josefsson  <jas@extundo.com>
108194         * modules/strtok_r: New file.
108196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108197         strtok_r.
108199 2004-11-11  Simon Josefsson  <jas@extundo.com>
108201         * m4/strtok_r.m4: New file.
108203         * m4/getopt.m4: Replace opterr.
108205 2004-11-11  Simon Josefsson  <jas@extundo.com>
108207         * lib/strtok_r.h, strtok_r.c: New file.
108209 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108211         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
108212         of replacing opterr, getopt, etc.  This should handle the
108213         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
108215 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108217         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
108218         we can stop lying to compilers about the constness of argv when we
108219         are compiled outside glibc.
108220         (getopt, getopt_long, getopt_long_only): Use it.
108221         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108222         _getopt_internal, getopt): Likewise.
108223         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108224         _getopt_long_only_r): Likewise.
108225         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108226         _getopt_long_r, _getopt_long_only_r): Likewise.
108228         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
108229         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
108230         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
108231         the other external symbols.
108232         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
108233         declaration, since the above renaming now works around collisions.
108235 2004-11-11  Jim Meyering  <jim@meyering.net>
108237         * lib/linebreak.c: Remove trailing blanks.
108238         * lib/alloca_.h: Likewise.
108239         * lib/acosl.c: Likewise.
108240         * lib/euidaccess.c: Likewise.
108241         * lib/allocsa.h: Likewise.
108243 2004-11-10  Simon Josefsson  <jas@extundo.com>
108245         * m4/getaddrinfo.m4: New file.
108247 2004-11-10  Simon Josefsson  <jas@extundo.com>
108249         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
108251 2004-11-10  Simon Josefsson  <jas@extundo.com>
108253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108254         getaddrinfo.
108256         * modules/getaddrinfo: New file.
108258 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108260         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
108262 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108264         * lib/mktime.c (SHR): New macro, which is a portable
108265         substitute for >> that should work even on Crays.
108266         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
108267         Problem reported by Mark D. Baushke in
108268         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
108269         * lib/getdate.y (SHR): Likewise.
108270         (tm_diff): Use it.
108271         * lib/strftime.c (SHR): Likewise.
108272         (tm_diff): Use it.
108273         * lib/quotearg.c (struct quoting_options): Use unsigned int for
108274         quote_these_too, so that right shifts are well defined.  All uses
108275         changed.
108277 2004-11-10  Jim Meyering  <jim@meyering.net>
108279         Ensure that no close failure goes unreported.
108280         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
108281         return early when it seems there's nothing to flush.
108282         Don't include __fpending.h.
108284 2004-11-10  Jim Meyering  <jim@meyering.net>
108286         * modules/closeout (Depends-on): Remove fpending.
108288 2004-11-10  Jim Meyering  <jim@meyering.net>
108290         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
108292 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108294         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
108295         gl_FUNC_STRFTIME.
108296         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
108297         and AC_REQUIRE when possible, to avoid duplicate checks.
108298         Check for <wchar.h>.
108300 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108302         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
108304 2004-11-09  Bruno Haible  <bruno@clisp.org>
108306         * m4/sockpfaf.m4: New file.
108308 2004-11-05  Bruno Haible  <bruno@clisp.org>
108310         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
108311         Reported by Mark D. Baushke <mdb@cvshome.org>.
108313 2004-11-04  Bruno Haible  <bruno@clisp.org>
108315         2004-09-11  Bruno Haible  <bruno@clisp.org>
108316                 * allocsa.valgrind: New file.
108317         2004-02-06  Bruno Haible  <bruno@clisp.org>
108318                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
108319                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
108320                 Reported by Christopher Seip <chris.seip@hp.com>.
108322 2004-11-04  Bruno Haible  <bruno@clisp.org>
108324         * modules/allocsa (Files): Add lib/allocsa.valgrind.
108325         (Makefile.am): Distribute it.
108327 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108329         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
108330         with errno == ERANGE if the buffer is too small.
108331         Problem reported by Mark D. Baushke.
108333 2004-11-03  Albert Chin  <china@thewrittenword.com>
108334             Paul Eggert  <eggert@cs.ucla.edu>
108336         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
108337         equivalent, substitute $ac_type for equivalent type rather than
108338         blindly using uint32_t *always* which won't work if uint32_t is not
108339         available.  Define _UINT32_T to work around typedef of uint32_t if
108340         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
108341         2.5.1.
108343 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108345         * m4/jm-macros.m4: Sync from coreutils.
108346         (gl_MACROS): Check for mbrlen, for pathchk.
108347         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
108349 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108351         * lib/xreadlink.c (MAXSIZE): New macro.
108352         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
108353         size does not exceed MAXSIZE.  Avoid cast.
108354         As suggested by Mark D. Baushke in
108355         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
108356         if readlink fails with buffer size just under MAXSIZE, try again
108357         with MAXSIZE.
108359 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108361         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108363 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108364         and  Paul Eggert  <eggert@cs.ucla.edu>
108366         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108367         (get_date): Overparenthesize to avoid GCC warning.
108369 2004-11-02  Bruno Haible  <bruno@clisp.org>
108371         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108372         returns void.
108374 2004-11-02  Bruno Haible  <bruno@clisp.org>
108376         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108377         function returns void.
108379 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108381         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108382         fflush_unlocked, flockfile, funlockfile, funlockfile,
108383         fputs_unlocked, putc_unlocked.
108385 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108387         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108388         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108389         already declared.
108391 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108393         * modules/getdate (Files): Add doc/getdate.texi.
108394         (Depends-on): Add setenv, xalloc.
108396 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108398         * lib/getdate.y: Add support for TZ="foo" within a date string.
108399         Fix some bugs near time_t boundaries.  Reject dates with
108400         out-of-range components, e.g., "Sept 31".
108401         Include <stdlib.h>, "setenv.h", "xalloc.h".
108402         (ISDIGIT_LOCALE): Remove; unused.
108403         Note that the TZ and time functions used here are not reentrant.
108404         (mktime_ok, get_tz): New functions.
108405         (TZBUFSIZE): New constant.
108406         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108407         This requires that we sometimes generate our own TZ="XXX..." setting.
108409 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108411         * doc/getdate.texi: New file, from coreutils with modifications for
108412         the new TZ parsing.
108414 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108416         * lib/mktime.c (not_equal_tm): Remove redundant check.
108418 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108420         * modules/regex (lib_SOURCES): Add regex.c.
108421         Reported by James Youngman in
108422         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108424 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108426         * lib/getdate.y: Use Bison 1.875 features, and some minor
108427         code cleanups.  This change does not affect semantics.
108428         Don't include <stdlib.h>; no longer needed.
108429         Don't include unlocked-io.h; only the "#if TEST" code uses
108430         stdio, and performance isn't crucial there.
108431         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108432         Bison 1.875 features as described below.
108433         All uses of "PC." replaced by "pc->".
108434         (YYSTYPE): Add a forward declaration.
108435         (yylex, yyerror): Use full prototypes in forward decls.
108436         Use "%pure-parser" rather than obsolescent "%pure_parser".
108437         Use %parse-param and %lex-param instead of obsolescent
108438         YYPARSE_PARAM and YYLEX_PARAM.
108439         (meridian_table, month_and_day_table, time_units_table,
108440         relative_time_table, time_zone_table, military_table,
108441         lookup_zone, lookup_word, get_date):
108442         Use NULL instead of 0 where appropriate.
108443         (to_hour): Avoid abort (), to avoid a dependency on
108444         stdlib.h.
108445         (yyerror, yylex): Now accepts parser_control * arg.
108446         (main) [TEST]: Use '\0' rather than 0 for char.
108448 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108450         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108452 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108454         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108455         It's now the caller's responsibility to handle the case where
108456         !HAVE_GETPAGESIZE && !defined getpagesize.
108458         * lib/mktime.c (leapyear): Arg is long int, not int.
108460 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108462         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108464 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108466         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108467         missing.  Problem reported by James Youngman.
108469 2004-10-16  Simon Josefsson  <jas@extundo.com>
108471         * gnulib-tool: Fix comments.  Fix parse problem.
108472         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108474 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108476         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108477         implementation of getopt_long.  Problem reported by Alexander Taler in:
108478         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108480 2004-10-15  Bruno Haible  <bruno@clisp.org>
108482         * gnulib-tool: Untabify. Initialize supplied_libname.
108483         (func_usage): More homogenous output.
108484         (func_modules_transitive_closure, func_modules_to_filelist,
108485         func_emit_lib_Makefile_am): New functions.
108486         (func_import): New function, extracted from big case statement. Use
108487         func_get_license, func_modules_transitive_closure,
108488         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108489         opt_lgpl. Don't use test -a, as it's not portable.
108490         (func_create_testdir): Use func_modules_transitive_closure,
108491         func_modules_to_filelist, func_emit_lib_Makefile_am.
108493 2004-10-15  Bruno Haible  <bruno@clisp.org>
108495         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108497 2004-10-15  Bruno Haible  <bruno@clisp.org>
108499         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108500         the portions belonging to each module.
108501         Suggested by Derek Robert Price <derek@ximbiot.com>.
108503 2004-10-12  Simon Josefsson  <jas@extundo.com>
108505         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108506         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108507         to real functions.
108509 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108511         * modules/vsnprintf: New file.
108513 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108515         * m4/vsnprintf.m4: New file.
108517 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108519         * lib/vsnprintf.h: New file.
108520         * lib/vsnprintf.c: New file.
108522 2004-10-11  Bruno Haible  <bruno@clisp.org>
108524         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108525         vsnprintf.
108527 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108529         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108531 2004-10-07  Bruno Haible  <bruno@clisp.org>
108533         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108534         fits into the provided buffer.
108536 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108538         * lib/diacrit.c, diacrit.h: Add GPL notice.
108540         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108541         notice.
108542         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108543         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108544         This avoids a potential constant-folding bug.
108546 2004-10-05  Bruno Haible  <bruno@clisp.org>
108548         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108549         for the declaration of strsep.
108551 2004-10-05  Bruno Haible  <bruno@clisp.org>
108553         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108555 2004-10-04  Simon Josefsson  <jas@extundo.com>
108557         * modules/memmem: New file.
108558         * tests/test-memmem.c: New file.
108559         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108561 2004-10-04  Simon Josefsson  <jas@extundo.com>
108563         * m4/memmem.m4: New file.
108565 2004-10-04  Simon Josefsson  <jas@extundo.com>
108567         * lib/memmem.h: New file.
108568         * lib/memmem.c: New file, taken from glibc.
108570 2004-10-04  Simon Josefsson  <jas@extundo.com>
108572         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108573         '#ifdef USE_UNLOCKED_IO'.
108575 2004-10-04  Simon Josefsson  <jas@extundo.com>
108577         * config/srclist.txt: Add memmem from glibc.
108579 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108581         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108583         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108584         modules/exclude, modules/getdate, modules/getline,
108585         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108586         modules/getusershell, modules/linebuffer, modules/md5,
108587         modules/mountlist, modules/posixtm, modules/readtokens,
108588         modules/readutmp, modules/regex, modules/sha1,
108589         modules/version-etc, modules/yesno:
108590         Remove dependency on unlocked-io.
108592 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108594         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108596         * m4/unlocked-io.m4: Add copyright notice.
108597         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108599 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108601         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108602         * lib/xmalloc.c (xmemdup): Likewise.
108603         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108604         XFREE): Remove these long-obsolescent macros.
108605         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108606         * lib/xstrdup.c: Remove.
108608         * lib/regex.c (re_comp): Cast gettext return value to char *,
108609         Problem reported by Martin Neitzel via Mark D. Baushke.
108611 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108613         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108614         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108615         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108616         regex.c, sha1.c, version-etc.c, yesno.c:
108617         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108618         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108619         the includer's responsibility.
108621         Sync from coreutils.
108623         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108624         points to the start of a string, as the C Standard says the
108625         resulting behavior is undefined.
108627         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108628         simple -> simple_backups, numbered_existing ->
108629         numbered_existing_backups, numbered -> numbered_backups
108630         to avoid shadowing problems.  All uses changed.
108631         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108632         * lib/backupfile.c (check_extension, numbered_backup):
108633         Rename locals to avoid shadowing 'basename'.
108634         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108635         once.
108637         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108638         * lib/.cvsignore: Add getopt.h.
108640 2004-10-04  Bruno Haible  <bruno@clisp.org>
108642         * modules/README: New file.
108643         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108644         not a module.
108646 2004-10-02  Jim Meyering  <jim@meyering.net>
108648         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108650 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108652         * modules/strsep: New file.
108654 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108656         * m4/strsep.m4: New file.
108658 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108660         * lib/strsep.h: New file.
108661         * lib/strsep.c: New file.
108663 2004-10-01  Simon Josefsson  <jas@extundo.com>
108665         * lib/snprintf.c (snprintf): Handle size==0.
108667 2004-10-01  Simon Josefsson  <jas@extundo.com>
108668             Bruno Haible  <bruno@clisp.org>
108670         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108671         (snprintf): Declare 'args'.
108673 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108675         * lib/snprintf.c: Remove comments as to why each header is needed.
108677 2004-10-01  Bruno Haible  <bruno@clisp.org>
108679         * MODULES.html.sh: Add strsep.
108681 2004-09-30  Simon Josefsson  <jas@extundo.com>
108683         * modules/snprintf: New file.
108685 2004-09-30  Simon Josefsson  <jas@extundo.com>
108687         * m4/snprintf.m4: New file.
108689 2004-09-30  Simon Josefsson  <jas@extundo.com>
108691         * lib/snprintf.h, lib/snprintf.c: New files.
108693 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108695         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108696         (hol_entry_help): Never translate an empty string.
108697         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108698         * lib/argp.h (OPTION_NO_TRANS): New option.
108700 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108702         * modules/argp (Maintainer): Replace Simon Josefsson
108703         by Sergey Poznyakoff.
108705 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108707         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108708         changes merged back into glibc.
108710 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108712         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108714 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108716         * lib/xvasprintf.c: Include xalloc.h.
108717         (xvasprintf): Use xalloc_die, not xmalloc_die.
108719 2004-09-29  Bruno Haible  <bruno@clisp.org>
108721         * modules/alloca-opt: New file, derived from modules/alloca.
108722         * modules/allocsa: Depend on alloca-opt instead of alloca.
108723         * modules/setenv: Likewise.
108724         * modules/vasnprintf: Likewise.
108725         * MODULES.html.sh: Add alloca-opt.
108727 2004-09-28  Simon Josefsson  <jas@extundo.com>
108729         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108730         LGPL, and to replace license template from GPL to LGPL.
108732 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108734         * modules/dummy: Change license to LGPL.
108736 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108738         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108740 2004-09-24  Simon Josefsson  <jas@extundo.com>
108742         * modules/minmax (License): Change from GPL to LGPL.
108744 2004-09-23  Simon Josefsson  <jas@extundo.com>
108746         * gnulib-tool (--import): Typo.
108748 2004-09-23  Simon Josefsson  <jas@extundo.com>
108750         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108752 2004-09-22  Bruno Haible  <bruno@clisp.org>
108754         * modules/*: Add 'License' field.
108755         * gnulib-tool: Accept --extract-license option.
108756         (func_get_license): New function.
108758 2004-09-21  Bruno Haible  <bruno@clisp.org>
108760         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108761         Reported by Simon Josefsson.
108763 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108765         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108766         gl_AC_TYPE_LONG_LONG.
108768 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108770         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108772 2004-09-18  Simon Josefsson  <jas@extundo.com>
108773         and  Paul Eggert  <eggert@cs.ucla.edu>
108775         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108776         calls with autoreconf.  Define GL_LIB.
108778 2004-09-14  Karl Berry  <karl@gnu.org>
108780         * config/srclist.txt: unsync setenv.c, sigh.
108782 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108784         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108785         Problem reported by Bruno Haible in:
108786         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108788 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108790         * config/srclist.txt: Comment out argp-pvh.c.
108792 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108794         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108795         in case some system header has #define'd it.  Problem reported by
108796         Soeren D. Schulze in
108797         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108799 2004-09-09  Karl Berry  <karl@gnu.org>
108801         * regex.[ch]: delete from the root.  These were supposed to be
108802                 synced with emacs cvs, but this has not happened for about
108803                 a year, and anyway nothing else uses emacs regex.[ch].
108804                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108805                 lib/regex[.ch] is untouched.
108807 2004-09-09  Bruno Haible  <bruno@clisp.org>
108809         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108811 2004-09-09  Bruno Haible  <bruno@clisp.org>
108813         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108814         modifications.
108815         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108817 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108819         * modules/xvasprintf: New file.
108820         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108822 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108824         * lib/xvasprintf.h: New file.
108825         * lib/xvasprintf.c: New file.
108826         * lib/xasprintf.c: New file.
108828 2004-09-08  Bruno Haible  <bruno@clisp.org>
108830         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108832 2004-09-08  Bruno Haible  <bruno@clisp.org>
108834         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108835         length is > INT_MAX.
108836         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108837         more.
108839 2004-09-08  Bruno Haible  <bruno@clisp.org>
108841         * lib/stdint_.h: New file, taken from GNU clisp.
108843 2004-09-08  Bruno Haible  <bruno@clisp.org>
108844             Oskar Liljeblad  <oskar@osk.mine.nu>
108846         * modules/stdint: New file.
108847         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108849 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108851         Import from coreutils.
108852         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108853         strings on unbounded length.  alloca's performance benefits aren't
108854         that important here.
108855         (V_STRDUP): Remove.
108856         (parse_with_separator): New function, with most of the internals
108857         of the old parse_user_spec.  Allow user to omit both user and group,
108858         for compatibility with FreeBSD.
108859         Clone only the user name, not the entire spec.
108860         Do not set *uid, *gid unless entirely successful.
108861         Avoid memory leak in some failing cases.
108862         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108863         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108864         (parse_user_spec): Rewrite to use parse_with_separator.
108866 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108868         * modules/userspec: Don't depend on alloca.
108870 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108872         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108874 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108876         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108877         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108878         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108880 2004-08-16  Simon Josefsson  <jas@extundo.com>
108882         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108883         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108884         Add --dry-run for --import.
108885         Let user provided command line parameters override configure.ac
108886         settings.
108888 2004-08-12  Simon Josefsson  <jas@extundo.com>
108890         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108891         as discussed with Paul Eggert in threads rooted at
108892         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108893         and
108894         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108895         Before, the test was empty, and relied on ELIDE_CODE in source
108896         code.)
108897         (gl_PREREQ_GETOPT): New macro.
108898         (gl_GETOPT): Use them.
108900 2004-08-12  Simon Josefsson  <jas@extundo.com>
108902         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108903         * lib/getopt_.h: Renamed from getopt.h.
108905 2004-08-12  Simon Josefsson  <jas@extundo.com>
108907         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108908         Change default library name from libfoo to libgnu.
108909         Now, if you have a configure.ac that says:
108910                 gl_SOURCE_BASE(gl)
108911                 gl_M4_BASE(gl/m4)
108912                 gl_MODULES(error getopt etcetera)
108913                 gl_INIT
108914         you can import all you need by running:
108915                 ../gnulib/gnulib-tool --import
108917         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108918         (Makefile.am): Rewrite, use logic from argz.
108919         (Include): Use <getopt.h> instead of "getopt.h".
108921 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108923         * modules/argp (Files): Add m4/unlocked-io.m4.
108924         (Depends-on): Add extensions.
108926 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108928         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108929         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108930         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108931         Check for program_invocation_name, program_invocation_short_name,
108932         flockfile, funlockfile, features.h, _getopt_long_only_r.
108934 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108936         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108937         its complicated substitute.
108938         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108939         and program_invocation_name.
108940         (__argp_basename) [!_LIBC]: Remove; the only use was
108941         replaced by its body.
108942         (__argp_short_program_name): Change condition from
108943         !defined __argp_short_program_name to
108944         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108945         to match argp-namefrob.h.
108946         (__argp_failure): Don't assume strerror_r returns char *.
108947         * lib/argp-parse.c (N_): Define unconditionally.
108948         (argp_default_options): Fill out initializers with 0 to avoid
108949         gcc warnings.
108951 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108953         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108954         getopt1.c.
108956 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108958         Merge from coreutils.
108960         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108962         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108963         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108965 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108967         Merge from coreutils.
108969         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108970         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108971         for Reliant Unix 5.43.
108973         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108974         (union fooround): Use uintmax_t, not long int.
108975         The rest is a merge from libc:
108976         [defined _LIBC]: Include <shlib-compat.h>.
108977         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108979         * lib/settime.c (settime): Recode to avoid warning with
108980         Sun Forte C 6U2.
108982         * lib/strverscmp.c: Convert to UTF-8.
108984 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108986         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108987         m4/uintmax_t.m4.
108989 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108991         * modules/xalloc-die: New file.
108992         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108994         * modules/md5 (Files): Add m4/uint32_t.m4.
108995         * modules/sha1: Renamed from modules/sha.
108996         (Files):
108997         Rename lib/sha.h to lib/sha1.h.
108998         Rename lib/sha.c to lib/sha1.c.
108999         Rename m4/sha.m4 to m4/sha1.m4.
109000         (lib_SOURCES): Likewise.
109001         (configure.ac): Rename gl_SHA to gl_SHA1.
109002         (Include): sha.h -> sha1.h.
109004 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109006         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
109007         * m4/sha1.m4: Renamed from sha.m4.
109008         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
109010 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109012         * lib/obstack.h (obstack_empty_p):
109013         Don't assume that chunk->contents is suitably aligned.
109014         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
109015         Likewise. Problem reported by Benno in
109016         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
109018         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
109019         readable.  This could be improved further but it'd take some work.
109021 2004-08-08  Simon Josefsson  <jas@extundo.com>
109023         * modules/xgethostname (Depends-on): Remove exit and error (not
109024         used).
109026         * modules/getpass-gnu: Add getpass.h.
109027         (Depends-on): Add stdbool.
109028         * modules/getpass: Add getpass.h.
109030 2004-08-08  Simon Josefsson  <jas@extundo.com>
109032         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
109033         Check getpass declaration.
109035 2004-08-08  Simon Josefsson  <jas@extundo.com>
109037         * lib/xgethostname.c: Don't include error.h (not used).
109039         * lib/getpass.h: Add.
109040         * lib/getpass.c: Include getpass.h first.
109042 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
109044         * lib/xalloc-die.c: New file.
109045         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
109046         All uses removed.
109047         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
109048         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
109049         xalloc-die.c.
109050         (_, N_, xalloc_die): Move to xalloc-die.c.
109051         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
109052         so that we needn't mess with xalloc_msg_memory_exhausted.
109054         * lib/sha1.h: Renamed from sha.h.
109055         (SHA1_H): Renamed from _SHA_H.
109056         (sha1_ctx): Renamed from sha_ctx.
109057         (sha1_init_ctx): Renamed from sha_init_ctx.
109058         (sha1_process_block): Renamed from sha_process_block.
109059         (sha1_process_bytes): Renamed from sha_process_bytes.
109060         (sha1_finish_ctx): Renamed from sha_finish_ctx.
109061         (sha1_read_ctx): Renamed from sha_read_ctx.
109062         (sha1_stream): Renamed from sha_stream.
109063         (sha1_buffer): Renamed from sha_buffer.
109064         * lib/sha1.c: Likewise; renamed from sha.c.
109065         Do not include <sys/types.h>.
109066         Include <stddef.h> rather than <stdlib.h>.
109068 2004-08-08  Bruno Haible  <bruno@clisp.org>
109070         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
109071         FILESYSTEM_PREFIX_LEN.
109072         * lib/progreloc.c: Likewise.
109073         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
109075 2004-08-06  Simon Josefsson  <jas@extundo.com>
109077         * modules/progname (Depends-on): Don't depend on stdbool.
109079 2004-08-06  Simon Josefsson  <jas@extundo.com>
109081         * modules/getsubopt: New file.
109082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109083         getsubopt.
109085 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109087         More merge from coreutils.
109089         * m4/utimens.m4, m4/utimecmp.m4: New files.
109090         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
109091         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
109092         prereq.m4, sha.m4: Import changes from coreutils.
109094 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109096         More merge from coreutils.
109097         * modules/raise, modules/readtokens0, modules/utimens:
109098         * modules/utimecmp, module/xnanosleep: New files.
109099         * modules/strftime: Add lib/strftime.h.
109100         Change include from <time.h> to "strftime.h".
109101         * modules/yesno: Add lib/yesno.h.
109102         * modules/backupfile: Remove lib/addext.c.
109103         * modules/euidaccess: Add stat-macros.h.
109104         * modules/canonicalize, modules/euidaccess,
109105         modules/filemode, modules/lchown, modules/makepath,
109106         modules/rmdir, modules/stat: Likewise.
109108 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109110         Merge from tar.
109111         * lib/argp-help.c (make_hol, hol_append): Don't assume that
109112         SIZE_MAX is a valid preprocessor constant.
109113         (__argp_basename): Change from "#ifndef _LIBC"
109114         to "#ifndef __argp_short_program_name", so that
109115         we don't compile these functions for tar.
109117         More merges from coreutils.
109118         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
109119         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
109120         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
109121         * lib/addext.c: Remove; no longer needed.
109122         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
109123         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
109124         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
109125         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
109126         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
109127         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
109128         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
109129         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
109130         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
109131         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
109132         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
109133         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
109134         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
109135         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
109136         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
109137         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
109138         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
109139         Import changes from coreutils.
109141 2004-08-05  Simon Josefsson  <jas@extundo.com>
109143         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
109145 2004-08-05  Simon Josefsson  <jas@extundo.com>
109147         * m4/getsubopt.m4: New file.
109149 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109151         Merge from coreutils.
109153         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
109154         * m4/getcwd-path-max.m4: New files.
109156         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
109157         FILESYSTEM_PREFIX_LEN ->
109158         FILE_SYSTEM_PREFIX_LEN.
109159         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
109160         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
109161         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
109162         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
109164         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
109165         prerequisite modules now handle the DOS stuff.
109166         Don't check for unistd.h.
109168 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109170         Merge from coreutils.
109172         * lib/.gdb-history: Remove; this doesn't belong here.
109174         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
109175         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
109176         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
109177         * lib/getcwd.c: New files.
109179         * lib/dirname.h: Include <stdbool.h>.
109180         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
109181         for consistency with POSIX terminology.  All uses changed.
109182         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
109183         (strip_trailing_slashes): Use bool for booleans.
109184         * lib/stripslash.c (strip_trailing_slashes): Likewise.
109186         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
109187         sometimes returns a positive errno value even when it succeeds.
109188         (print_errno_message) [!LIBC]: Fall back on strerror if
109189         __strerror_r fails.
109191         * lib/path-concat.c (mempcpy): Don't define if a system header defines
109192         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
109193         (longest_relative_suffix): New function.
109194         (path_concat): Use it.  Assume first argument is not NULL.
109195         Port to DOS.  Omit redundant separators.
109196         Report an error instead of returning NULL.
109197         Use mempcpy instead of memcpy.
109198         (xpath_concat): Remove: not declared or used.
109200         * lib/same.h: Include <stdbool.h>
109201         (same_name): Return bool, not int.
109202         * lib/same.c (same_name): Likewise.
109203         (errno): Don't declare; we assume C89 or better now.
109205         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
109206         if not already defined.
109208         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
109209         * lib/dup-safer.c (errno): Likewise.
109211 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109213         Merge from coreutils.
109214         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
109215         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
109216         * modules/path-concat: Don't depend on strdup.
109218 2004-08-03  Simon Josefsson  <jas@extundo.com>
109220         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
109221         * lib/progname.h: Don't include stdbool.h.
109223 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109225         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
109226         * MODULES.html.sh (func_all_modules): Remove fatal.
109228 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109230         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
109232 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109234         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
109235         working.
109237 2004-08-02  Simon Josefsson  <jas@extundo.com>
109239         * lib/getsubopt.h: New file, with comments from Bruno Haible.
109240         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
109241         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
109243 2004-08-01  Simon Josefsson  <jas@extundo.com>
109245         * lib/xgetdomainname.c: Include stdlib.h, for free().
109247 2004-07-19  Bruno Haible  <bruno@clisp.org>
109249         * MODULES.html.sh (func_all_modules): Add dummy.
109251 2004-07-16  Simon Josefsson  <jas@extundo.com>
109253         * modules/dummy: New file.
109255 2004-07-16  Simon Josefsson  <jas@extundo.com>
109257         * lib/dummy.c: New file.
109259 2004-07-16  Bruno Haible  <bruno@clisp.org>
109261         * lib/backupfile.h: Add extern "C" for C++.
109262         * lib/closeout.h: Likewise.
109263         * lib/copy-file.h: Likewise.
109264         * lib/findprog.h: Likewise.
109265         * lib/full-write.h: Likewise.
109266         * lib/pathname.h: Likewise.
109267         * lib/progname.h: Likewise.
109268         * lib/stpcpy.h: Likewise.
109269         * lib/stpncpy.h: Likewise.
109270         * lib/strcase.h: Likewise.
109271         * lib/strstr.h: Likewise.
109272         * lib/xalloc.h: Likewise.
109274         * lib/mbswidth.h: Add extern "C" for C++.
109275         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
109277 2004-07-13  Robert Millan  <robertmh@gnu.org>
109279         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
109281 2004-07-09  Simon Josefsson  <jas@extundo.com>
109283         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
109284         failed without this.)
109286 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109288         * modules/chown (Files): Add lib/fchown-stub.c, since
109289         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
109291 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109293         * lib/fchown-stub.c: New file.
109295 2004-06-24  Jim Meyering  <jim@meyering.net>
109297         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
109299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109301         * modules/argz: Omit "#include".
109303         * MODULES.html.sh (func_all_modules): Add calloc, to match
109304         2004-06-01 addition of calloc module.
109306 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109308         * m4/argz.m4: New file, which is autoupdated from libtool.
109310 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109312         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
109313         libtool.
109315 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109317         * config/srclist-update: Don't insist on "USA." before the
109318         close-comment, as libtool omits the period and puts the */ on a
109319         separate line.
109320         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
109321         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
109323 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
109325         * modules/argz: New file.
109326         * MODULES.html.sh (func_all_modules): Add argz.
109328 2004-06-12  Jim Meyering  <jim@meyering.net>
109329         and  Paul Eggert  <eggert@cs.ucla.edu>
109331         * modules/hash (Files): Add lib/xalloc.h.
109332         * modules/pipe (Depends-on): Add wait-process.
109333         * modules/stat (Depends-on): Add xalloc.
109334         * modules/userspec (Files): Add lib/userspec.h.
109335         * modules/xstrto
109337         Upgrade from gettext-0.13.
109338         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
109339         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
109340         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
109342 2004-06-10  Jim Meyering  <jim@meyering.net>
109344         * lib/calloc.c: New file.
109346 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
109348         * lib/getdate.y (yylex): Allow space between sign and number.
109349         Problem reported by Dan Jacobson.
109351 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109353         Merge from coreutils CVS.
109355         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
109356         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109357         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109358         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109359         xstrtol.m4: Fix copyright date and/or serial number.
109361         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109362         See if we need an fchown replacement.
109363         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109364         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109365         and use the replacement function if we detect either defect.
109367         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109368         gl_UTIMECMP.
109370 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109371         and  Jim Meyering  <jim@meyering.net>
109373         Merge from coreutils CVS.
109375         * lib/stat-macros.h: New file, with contents from file-type.h
109376         and coreutils' system.h.
109377         * lib/file-type.c: Include "stat-macros.h".
109378         * lib/file-type.h (file_type): Move all macro definitions to new file,
109379         stat-macros.h.
109381         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109382         Wrap old code with this conditional.
109383         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109384         function that does not dereference symlinks.
109385         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109387         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109388         dependency problems.
109389         (xreadlink): Accept new arg SIZE, for efficiency.
109390         All decls and uses changed.
109391         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109393         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109394         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109396         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109397         sysexits.h.
109399 2004-06-01  Jim Meyering  <jim@meyering.net>
109401         * m4/calloc.m4: New file.
109403 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109405         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109406         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109407         Also, fix a typo in a diagnostic.
109409 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109411         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109412         or AC_FUNC_REALLOC.
109414 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109416         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109417         macros to be defined.
109418         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109419         the allocator returns NULL because the requested size is zero.
109421 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109423         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109424         var.  Add comment explaining why libc still defines it.  This
109425         merges the following patch from glibc:
109426         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109428 2004-05-20  Andreas Schwab  <schwab@suse.de>
109430         * m4/free.m4: Replace free if it not known to work, not the other
109431         way round.
109433 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109435         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109436         present in glibc since revision 1.1 of this file.
109437         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109438         obstack_alignment_mask, obstack_alloc, obstack_base,
109439         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109440         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109441         obstack_grow0, obstack_init, obstack_int_grow,
109442         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109443         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109444         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109445         nonexistent functions.
109447 2004-05-18  Karl Berry  <karl@gnu.org>
109449         * config/srclist.txt: break link for vasnprintf.c.
109451 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109453         Port obstack to the AS/400, where pointers are 16 bytes wide and
109454         you cannot cast an integer to a valid pointer.  This patch is
109455         currently waiting to be integrated into glibc; see
109456         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109458         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109459         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109460         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109461         (struct obstack): temp member is now a union of a pointer and
109462         an integer, instead of an integer.  All integer uses changed.
109463         This does not affect the physical layout of struct obstack,
109464         except on hosts (like the AS/400) where the size or alignment of
109465         void * is greater than that of ptrdiff_t.
109466         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109467         __STDC__)]: Store temporary in pointer member of union, not
109468         integer member.
109469         * lib/obstack.c: Include <stddef.h>, for offsetof.
109470         (struct fooalign): Remove; it doesn't need a name.
109471         (union fooround): Change double to long double, and add void *.
109472         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109473         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109474         not a macro.  Hence the values are always int; so remove all
109475         casts-to-int in uses.
109477 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109479         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109480         we can get this patch merged into glibc.
109482 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109483             Paul Eggert  <eggert@cs.ucla.edu>
109485         * m4/argp: Depend on alloca.
109487 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109488             Paul Eggert  <eggert@cs.ucla.edu>
109490         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109491         freecoding.
109493 2004-05-17  Bruno Haible  <bruno@clisp.org>
109495         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109496         precision that consists of a '.' followed by an empty digit string.
109497         Patch by Tor Lillqvist <tml@iki.fi>.
109499 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109502         for backward compatibility with older code.  We need our own
109503         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109504         it under some other name, and our alloca.h will define it.
109506 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109507             Derek Price  <derek@ximbiot.com>
109509         * lib/alloca.c: Include <alloca.h>, to get our interface.
109510         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109511         include <alloca.h> first.  Use C89 prototype for alloca; this
109512         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109513         Use #elif for simplicity, since we can assume C89 now.
109514         Don't try to source the system alloca.h since it will not be found
109515         and to prevent recursively including its replacement.
109516         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109517         * lib/regex.c: Likewise.
109519 2004-05-16  Derek Price  <derek@ximbiot.com>
109520             Paul Eggert  <eggert@cs.ucla.edu>
109522         getline cleanup.  This changes the getndelim2 API: both order of
109523         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109524         no delimiter).
109526         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109527         interface does that.
109528         (getline): Always use getdelim, so that we don't have two
109529         copies of this code.
109530         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109531         if available.
109532         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109533         (GETNDELIM2_MAXIMUM): New macro.
109534         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109535         instead of the old practice of delim2==0.  All callers changed.
109536         Return -1 on overflow, instead of returning junk.
109537         Do not set *linesize unless allocation succeeds.
109538         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109539         that we include sys/types.h.
109540         * lib/getnline.h: Likewise.
109541         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109542         (getndelim2): Reorder arguments.
109543         * lib/getnline.c (getnline, getndelim):
109544         Don't discard the NMAX argument.
109545         (getnline): Invoke getndelim, to avoid code duplication.
109546         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109547         of (size_t) -1 by callers of the getnline family.
109549 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109551         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109552         Check for gettimeofday.
109553         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109554         Check for settimeofday, stime.
109556 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109558         * lib/nanosleep.c (suspended): Change its type from int to
109559         sig_atomic_t volatile.
109560         (first_call): Make it private to rpl_nanosleep, and have it
109561         be zero initially as that's a bit faster.
109562         (my_usleep): Round up fractional times instead of truncating them,
109563         as this is the usual meaning for 'sleep'.
109565         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109566         doesn't work.
109567         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109568         (ENOSYS): Define if not defined.
109569         (settime): Fall back on stime if it exists and settimeofday fails.
109570         But don't bother with fallbacks if a method fails with errno == EPERM.
109572 2004-05-11  Jim Meyering  <jim@meyering.net>
109574         Prior to this change, the save_cwd caller required read access to the
109575         current directory on most systems (ones with the fchdir function).
109577         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109578         fails, try write-only, and finally, resort to using xgetcwd.
109580 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109582         * lib/obstack.c, obstack.h: Import changes from libc.
109584 2004-04-28  Bruno Haible  <bruno@clisp.org>
109586         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109587         also implicitly appends .exe to executables.
109588         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109589         accepts Windows pathnames.
109590         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109591         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109592         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109593         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109594         Reported by Derek Robert Price <derek@ximbiot.com>.
109596 2004-04-21  Karl Berry  <karl@gnu.org>
109598         * config/srclist.txt (localcharset.c): break sync.
109600 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109602         * m4/host-os.m4: Add a copyright notice.
109604 2004-04-20  Jim Meyering  <jim@meyering.net>
109606         Change UTILS_ to gl_ in AC_DEFINE'd names.
109607         Change utils_- and jm_-prefixed variables, too.
109608         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109609         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109612         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109613         Don't emit trailing blanks.
109614         Also rename jm_-prefixed variables to have gl_ prefix.
109616         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109617         Also rename jm_-prefixed variables to have gl_ prefix.
109619         * m4/jm-macros.m4: Reflect the renamings.
109620         * m4/prereq.m4: Likewise.
109622 2004-04-20  Jim Meyering  <jim@meyering.net>
109624         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109625         memory.
109627 2004-04-20  Jim Meyering  <jim@meyering.net>
109628             Bruno Haible  <bruno@clisp.org>
109630         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109631         memory when realloc fails.
109633 2004-04-19  Jim Meyering  <jim@meyering.net>
109635         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109636         now that readutmp.c may call `free (0)'.
109638 2004-04-19  Bruno Haible  <bruno@clisp.org>
109640         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109641         * m4/inttypes_h.m4: Likewise.
109642         * m4/stdint_h.m4: Likewise.
109643         * m4/intmax_t.m4: Likewise.
109644         * m4/uintmax_t.m4: Likewise.
109646 2004-04-18  Jim Meyering  <jim@meyering.net>
109648         * m4/prereq.m4: Don't forbid jm_ prefix.
109650         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109651         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109652         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109653         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109654         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109655         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109656         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109657         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109658         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109659         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109660         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109661         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109662         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109663         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109664         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109665         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109666         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109667         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109668         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109670 2004-04-18  Jim Meyering  <jim@meyering.net>
109672         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109673         failure, don't leak memory and do call END_UTMP_ENT.
109675 2004-04-16  Jim Meyering  <jim@meyering.net>
109677         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109678         coreutils' stat program.
109679         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109681 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109683         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109684         C89.
109685         (CHAR_BIT): Remove, since we assume C89.
109686         Include <stdint.h> if available, as per current Autoconf CVS advice.
109688 2004-03-31  Jim Meyering  <jim@meyering.net>
109690         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109691         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109692         * m4/xalloc.m4: Likewise.
109694 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109696         Merge from coreutils.
109698         * m4/inttostr.m4: New file.
109699         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109700         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109701         Require gl_CLOCK_TIME.
109702         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109704 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109706         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109707         not bool, to be more consistent with Unix conventions.
109708         Suggested by Bruno Haible.
109710         Merge from coreutils.
109712         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109713         * lib/umaxtostr.c: New files.
109715         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109716         the usual <time.h> dance.
109717         (get_date): Change signature to support fractional time stamps.
109718         All callers changed.
109719         * lib/getdate.y: Include "getdate.h" first, as we can now
109720         assume C89 and don't need to worry about 'const'.
109721         Similarly, include "unlocked-io.h" near start, not in middle.
109722         Include <limits.h>.
109723         (textint.value): Use long int rather than int.
109724         (textint.digits): Use size_t rather than int.
109725         (BILLION, LOG10_BILLION): New constants.
109726         (parser_control): New member rel_ns.  Members day_ordinal,
109727         time_zone, month, day, hour, minutes, rel_year, rel_month,
109728         rel_day, rel_hour, rel_minutes, rel_seconds
109729         are now long int, not int.  Member seconds is now struct timespec,
109730         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109731         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109732         not int.
109733         (%union.intval): Now long int, not int.
109734         New member timespec.
109735         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109736         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109737         (spec): Now is a timespec or an item list.
109738         (timespec, items): New nonterminals.
109739         (time, rel, relunit, number, get_date):
109740         Add support for fractional seconds.
109741         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109742         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109743         (to_hour): First arg is now long int, not int.
109744         (to_year): Returns long int, not int.
109745         Don't treat year -70 like 70.
109746         (tm_diff): Returns long int, not int.
109747         (lookup_word): Use bool instead of int when appropriate.
109748         (yylex): Use size_t for count, not int.
109749         Detect overflow when parsing large integer constants.
109750         Add support for fractions.
109751         (get_date): Make pointers 'const' if possible.
109752         Use more-portable code to detect integer overflow.
109753         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109754         Don't use ctime; it's not reliable if the year has >4 digits.
109756         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109757         This is for compatibility with BSD.
109759         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109760         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109761         From coreutils' system.h.
109763         * lib/userspec.c: Don't include "posixver.h".
109764         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109765         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109766         compatible extension.  Simplify code by removing a boolean int
109767         that was always nonzero if a string was nonnull.
109769 2004-03-30  Jim Meyering  <jim@meyering.net>
109771         Merge from coreutils.
109773         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109774         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109775         on some systems one must include <grp.h> before it.
109776         Reported by Christian Krackowizer.
109778 2004-03-30  Jim Meyering  <jim@meyering.net>
109780         Merge from coreutils.
109782         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109784         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109785         an empty input stream.
109787         * lib/readtokens.c: Include <stdbool.h>.
109788         (readtoken): Use `size_t' rather than int/long.
109789         All callers adjusted.
109790         Use `bool' rather than `int' where appropriate.
109791         Use memset rather than an explicit loop.
109792         Use x2nrealloc rather than xrealloc.
109793         Allow the use of `\0' as a delimiter.
109794         (readtokens): Likewise.
109795         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109797 2004-03-30  Jim Meyering  <jim@meyering.net>
109799         * m4/realloc.m4: Remove file, since now it does no more than
109800         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109801         the `configure.ac' section of module/realloc.
109802         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109804 2004-03-30  Bruno Haible  <bruno@clisp.org>
109806         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109807         nonnull.
109809 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109811         Merge changes to getloadavg.c from coreutils and Emacs.
109813         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109814         Define to an expression, not to the empty string.
109815         Include cloexec.h and xalloc.h.
109816         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109817         Use set_cloexec_flag rather than rolling our own.
109818         * lib/cloexec.c, lib/cloexec.h: New files.
109820 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109822         * m4/cloexec.m4: New file.
109824 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109826         * lib/getopt.h: Sync with libc CVS.
109828 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109829             Bruno Haible  <bruno@clisp.org>
109831         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109832         mbswidth.
109834 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109835             Bruno Haible  <bruno@clisp.org>
109837         * lib/mbswidth.h: Include <wchar.h> only if
109838         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109839         <wchar.h>.
109840         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109842 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109844         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109845         Sync with libc CVS.
109846         * lib/getopt_int.h: New file, also synced from libc.
109848 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109850         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109851         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109852         Bring back getopt.c, getopt.h, getopt1.c.
109854 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109856         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109857         All uses changed.  Check for sa_sigaction member; this fixes
109858         a bug first reported by Jason Andrade in
109859         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109861 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109863         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109864         '#if' expressions.  Unlike the code it replaces, it does not
109865         depend on (defined _SC_PAGESIZE).  However, it does depend on
109866         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109867         first reported by Jason Andrade in
109868         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109870 2004-02-25  Simon Josefsson  <jas@extundo.com>
109872         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109874 2004-02-25  Simon Josefsson  <jas@extundo.com>
109876         * lib/strdup.h: New file.
109877         * lib/strdup.c: Include it.
109878         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109879         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109881 2004-02-23  Karl Berry  <karl@gnu.org>
109883         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109884         (from fencepost.gnu.org:/gd/gnuorg).
109886 2004-02-23  Karl Berry  <karl@gnu.org>
109888         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109889         * config/srclist.txt: add maintain/standards documents.
109891 2004-02-18  Bruno Haible  <bruno@clisp.org>
109893         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109894         Reported by Derek Robert Price <derek@ximbiot.com>.
109896 2004-02-16  Karl Berry  <karl@gnu.org>
109898         * config/mkinstalldirs, install-sh: update from automake.
109900 2004-02-06  Karl Berry  <karl@gnu.org>
109902         * m4/po.m4: update from gettext 0.14.1.
109904 2004-02-06  Karl Berry  <karl@gnu.org>
109906         * lib/config.charset: update from gettext 0.14.1.
109908 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109910         Add comments and code, prompted by suggestions from Bruno Haible
109911         for sh-quote.
109912         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109913         describing the enum quoting_style values.
109914         * lib/quotearg.c (quotearg_alloc): New function.
109915         (quotearg_buffer_restyled): Treat lone { and } as special.
109916         Treat = as special.  Work around bug with older shells
109917         that "see" a '\' that is really the 2nd byte of a multibyte char.
109918         Quote empty string with shell_quoting_style.
109920 2004-02-03  Bruno Haible  <bruno@clisp.org>
109922         * m4/pipe.m4: New file, from GNU gettext.
109924 2004-02-03  Bruno Haible  <bruno@clisp.org>
109926         * lib/pipe.h: New file, from GNU gettext.
109927         * lib/pipe.c: New file, from GNU gettext.
109929 2004-01-27  Bruno Haible  <bruno@clisp.org>
109931         * m4/execute.m4: New file, from GNU gettext.
109933 2004-01-27  Bruno Haible  <bruno@clisp.org>
109935         * lib/execute.h: New file, from GNU gettext.
109936         * lib/execute.c: New file, from GNU gettext.
109937         * lib/w32spawn.h: New file, from GNU gettext.
109939 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109941         Merge from diffutils.
109943         * lib/file-type.c (file_type): Add typed memory objects.
109944         * lib/file-type.h (S_TYPEISTMO): New macro.
109946         * lib/c-stack.h (c_stack_action): Remove argv argument.
109947         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109948         (die): Don't calculate message unless segv_action returns.
109949         (get_stack_location, min_address_from_argv, max_address_from_argv,
109950         volatile stack_base, volatile_stack_size): Remove.
109951         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109952         that every segmentation violation is a stack overflow.  (Ouch!)
109953         See Debian bug 136249 (still outstanding) for more info about why
109954         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109956 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109958         Exit-status fix from coreutils.
109960         Use exit_failure consistently in place of EXIT_FAILURE,
109961         so that program exit statuses are consistent on failure.
109963         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109964         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109965         * lib/argmatch.h: Comment fix to match the above.
109966         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109967         Now a macro referring to exit_failure, instead of a separate
109968         variable.  Include "exitfail.h" to get it.
109969         * lib/xstrtol.h: Include "exitfail.h".
109970         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109972         * lib/long-options.c (parse_long_options): Use prototype
109973         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109974         for clarity.
109976 2004-01-21  Jim Meyering  <jim@meyering.net>
109978         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109979         so as not to conflict with a different-sized __mktime_internal
109980         function in GNU libc.
109981         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109982         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109984 2004-01-20  Karl Berry  <karl@gnu.org>
109986         * config/config.guess: update from config.
109988         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109990 2004-01-20  Bruno Haible  <bruno@clisp.org>
109992         Safer stack allocation.
109993         * lib/setenv.c: Include allocsa.h.
109994         (alloca): Remove fallback definition.
109995         (freea): Remove macro.
109996         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109997         instead of freea.
109999 2004-01-20  Bruno Haible  <bruno@clisp.org>
110001         * m4/eealloc.m4: New file, from GNU gettext.
110003 2004-01-20  Bruno Haible  <bruno@clisp.org>
110005         * m4/allocsa.m4: New file, from GNU gettext.
110007 2004-01-20  Bruno Haible  <bruno@clisp.org>
110009         * lib/xallocsa.h: New file, from GNU gettext.
110010         * lib/xallocsa.c: New file, from GNU gettext.
110012 2004-01-20  Bruno Haible  <bruno@clisp.org>
110014         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
110016 2004-01-20  Bruno Haible  <bruno@clisp.org>
110018         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
110019         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
110020         specially.
110022 2004-01-20  Bruno Haible  <bruno@clisp.org>
110024         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
110025         patch.
110027 2004-01-20  Bruno Haible  <bruno@clisp.org>
110029         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
110031 2004-01-20  Bruno Haible  <bruno@clisp.org>
110033         * lib/eealloc.h: New file.
110035 2004-01-20  Bruno Haible  <bruno@clisp.org>
110037         * lib/binary-io.h: Avoid warnings on Cygwin.
110039 2004-01-20  Bruno Haible  <bruno@clisp.org>
110041         * lib/allocsa.h: New file, from GNU gettext.
110042         * lib/allocsa.c: New file, from GNU gettext.
110044 2004-01-18  Karl Berry  <karl@gnu.org>
110046         * doc/gpl.texi, doc/lgpl.texi: new files.
110048 2004-01-18  Karl Berry  <karl@gnu.org>
110050         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
110051         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
110053 2004-01-15  Paul Eggert  <eggert@twinsun.com>
110055         Merge from coreutils.
110057         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
110058         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
110059         (gl_DEFAULT_POSIX2_VERSION): Move
110060         the documentation from 'configure' into 'config.hin',
110061         so that 'configure --help' isn't burdened by it and
110062         we don't have to worry about its formatting there.
110063         Reword the documentation so that it's more succinct
110064         and can be run together into a single paragraph.
110065         * m4/same.m4 (gl_SAME): Check for pathconf.
110067 2004-01-15  Paul Eggert  <eggert@twinsun.com>
110069         Merge from coreutils.
110071         * lib/posixver.c: Include posixver.h.
110073         * lib/same.c: Include <stdbool.h>, <limits.h>.
110074         (_POSIX_NAME_MAX): Define if not defined.
110075         (MIN): New macro.
110076         (same_name): If file names are silently truncated, report
110077         that the file names are the same if they are the same after
110078         the silent truncation.
110080         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
110081         conversion function.
110082         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
110083         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
110084         longer needed.
110086 2004-01-15  Jim Meyering  <jim@meyering.net>
110088         Merge from coreutils.
110090         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
110091         if no library is required.
110092         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
110093         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
110094         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
110095         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
110096         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
110097         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
110098         value, $ac_cv_search_crypt, if it's "none required".
110099         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
110100         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
110101         not gl_FUNC_GETLOADAVG.
110102         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
110103         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
110105 2004-01-15  Jim Meyering  <jim@meyering.net>
110107         Merge from coreutils.
110109         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
110110         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
110111         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
110113         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
110114         optional configure-time default.
110116         * lib/version-etc.c (version_etc_copyright): Update copyright date.
110118         * lib/xreadlink.c (xreadlink): Correct outdated comment.
110120 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
110122         Merge from coreutils.
110124         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
110125         value, $ac_cv_search_nanosleep, if it's "none required".
110127 2004-01-14  Paul Eggert  <eggert@twinsun.com>
110129         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
110130         with like-named macro in fnmatch.c.
110131         (EXT): Use an internal constant instead.
110133         Merge fnmatch patches from glibc.
110134         * lib/fnmatch.c (mbsinit): Remove define.
110135         Add libc_hidden_ver (__fnmatch, fnmatch).
110136         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
110137         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
110139 2004-01-14  Karl Berry  <karl@gnu.org>
110141         * config/install-sh: update from automake.
110143 2004-01-13  Karl Berry  <karl@gnu.org>
110145         * config/install-sh: update from automake.
110147 2004-01-09  Karl Berry  <karl@gnu.org>
110149         * config/install-sh: update from automake.
110151 2004-01-05  Karl Berry  <karl@gnu.org>
110153         * config/config.{sub,guess}: update from config.
110155 2003-12-31  Karl Berry  <karl@gnu.org>
110157         * config/depcomp: update from automake.
110159 2003-12-14  Karl Berry  <karl@gnu.org>
110161         * lib/config.charset: update from gettext-runtime.
110163 2003-12-03  Paul Eggert  <eggert@twinsun.com>
110165         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
110166         Bug reported by Alfred M. Szmidt.
110168 2003-12-03  Bruno Haible  <bruno@clisp.org>
110170         * m4/gettext.m4: Upgrade from gettext-0.13.
110171         * m4/po.m4: Upgrade from gettext-0.13.
110172         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
110173         * m4/intmax.m4: New file, from gettext-0.13.
110174         * m4/printf-posix.m4: New file, from gettext-0.13.
110176 2003-11-29  Karl Berry  <karl@gnu.org>
110178         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
110180 2003-11-25  Paul Eggert  <eggert@twinsun.com>
110181             Bruno Haible  <bruno@clisp.org>
110183         * lib/printf-parse.h: Don't include sys/types.h.
110184         (ARG_NONE): New macro.
110185         (char_directive): Change type of *arg_index fields to size_t.
110186         * lib/printf-parse.c: Don't include sys/types.h.
110187         (SSIZE_MAX): Remove macro.
110188         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
110189         Remove unnecessary overflow check.
110190         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
110191         fields.
110193 2003-11-25  Bruno Haible  <bruno@clisp.org>
110195         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
110197 2003-11-25  Bruno Haible  <bruno@clisp.org>
110199         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
110200         gt_TYPE_SSIZE_T.
110202 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110204         * modules/alloca: Remove dependency on xalloc.
110206 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110208         * lib/alloca.c: Remove dependency on xalloc module.
110209         (xalloc_die): Remove.
110210         (memory_full) [!defined emacs]: New macro.
110211         [!defined emacs]: Don't include xalloc.h.
110212         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
110213         address arithmetic overflows.  Change datatypes a bit to avoid
110214         unnecessary casts.
110216 2003-11-22  Jim Meyering  <jim@meyering.net>
110218         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
110219         s/size/size_t/.
110221 2003-11-21  Karl Berry  <karl@gnu.org>
110223         * config/config.{sub,guess}: update from config.
110225 2003-11-18  Karl Berry  <karl@gnu.org>
110227         * config/config.{sub,guess}: update from config.
110229         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
110231 2003-11-17  Paul Eggert  <eggert@twinsun.com>
110233         * README: Mention that S+T cannot overflow if S is the size of
110234         an existing object and T is sufficiently small.
110236 2003-11-17  Jim Meyering  <jim@meyering.net>
110238         On systems without utime and without a utimes function capable of
110239         dealing with a NULL struct utimbuf* argument, this utime replacement
110240         could -- in unusual circumstances -- leak a file descriptor.
110241         * lib/utime.c: Include <unistd.h> and <errno.h>.
110242         (utime_null): Be sure to close `fd' and to preserve errno.
110243         Reported by Geoff Collyer via Arnold Robbins.
110245 2003-11-17  Bruno Haible  <bruno@clisp.org>
110247         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
110248         (Depends-on): Add xsize.
110250 2003-11-17  Bruno Haible  <bruno@clisp.org>
110252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
110254 2003-11-17  Bruno Haible  <bruno@clisp.org>
110256         * lib/vasnprintf.c (alloca): Remove fallback definition.
110257         (freea): Remove definition.
110258         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
110259         Reported by Paul Eggert.
110261 2003-11-16  Paul Eggert  <eggert@twinsun.com>
110262             Bruno Haible  <bruno@clisp.org>
110264         Protect against address arithmetic overflow.
110265         * lib/printf-args.h: Include stddef.h.
110266         (arguments): Change type of field 'count' to size_t.
110267         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
110268         'unsigned int' where appropriate.
110269         * lib/printf-parse.h: Include sys/types.h.
110270         (char_directive): Change type of *arg_index fields to ssize_t.
110271         (char_directives): Change type of fields 'count', max_*_length to
110272         size_t.
110273         * lib/printf-parse.c: Include sys/types.h and xsize.h.
110274         (SSIZE_MAX): Define fallback value.
110275         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
110276         instead of 'int' where appropriate. Check a_allocated, d_allocated
110277         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
110278         * lib/vasnprintf.c: Include xsize.h.
110279         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
110280         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
110281         overflow. Avoid wraparound when converting a width or precision from
110282         decimal to binary.
110284 2003-11-16  Bruno Haible  <bruno@clisp.org>
110286         Update from GNU gettext.
110287         * lib/printf-parse.c: Generalize to it can be compiled for wide
110288         strings.
110289         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
110290         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
110291         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
110292         SNPRINTF): New macros.
110293         Don't include <alloca.h> if the file is used inside libintl.
110294         (local_wcslen): New function, for Solaris 2.5.1.
110295         (VASNPRINTF): Use it instead of wcslen.
110297 2003-11-16  Bruno Haible  <bruno@clisp.org>
110299         * lib/xsize.h (xmax): New function.
110300         (xsum, xsum3, xsum4): Declare as "pure" functions.
110302 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110304         * modules/xalloc (Files): Undo latest change, since xalloc.h
110305         no longer needs SIZE_MAX or PTRDIFF_MAX.
110307 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110309         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
110310         gl_PTRDIFF_MAX.
110312 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110314         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
110315         "return", to pacify some unknown compiler.  Problem reported
110316         by Joerg Schilling.
110318 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110320         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
110321         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
110322         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
110323         heuristic is just as accurate as far as we know, and it removes a
110324         dependency on size_max.m4 and ptrdiff_max.m4.
110326 2003-11-11  Bruno Haible  <bruno@clisp.org>
110328         * modules/xsize (Files): Add m4/size_max.m4.
110329         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
110331 2003-11-11  Bruno Haible  <bruno@clisp.org>
110333         * m4/size_max.m4: New file.
110334         * m4/ptrdiff_max.m4: New file.
110335         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
110336         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
110337         (gl_XALLOC): Invoke it.
110339 2003-11-11  Bruno Haible  <bruno@clisp.org>
110341         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
110342         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
110343         defined.
110345 2003-11-10  Paul Eggert  <eggert@twinsun.com>
110347         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
110348         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
110349         rejected some allocations of exactly SIZE_MAX - 2 bytes.
110350         From Bruno Haible.
110351         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
110352         not (size_t) -1, since it's defined here.
110354 2003-11-09  Karl Berry  <karl@gnu.org>
110356         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110358 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110360         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110361         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110362         Reject sizes of exactly SIZE_MAX bytes.
110363         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110364         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110366 2003-11-05  Bruno Haible  <bruno@clisp.org>
110368         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110369         SIZE_MAX defined in <limits.h> on Solaris.
110371 2003-11-04  Jim Meyering  <jim@meyering.net>
110373         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110374         variable names, rather than @VAR@.
110375         * modules/poll: Likewise.
110377 2003-11-04  Bruno Haible  <bruno@clisp.org>
110379         * modules/xsize: New file.
110380         * modules/linebreak: Depend on xsize.
110381         * MODULES.html.sh (func_all_modules): Add xsize.
110383 2003-11-04  Bruno Haible  <bruno@clisp.org>
110385         * m4/xsize.m4: New file.
110387 2003-11-04  Bruno Haible  <bruno@clisp.org>
110389         * lib/xsize.h: New file.
110390         * lib/linebreak.c: Include xsize.h.
110391         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110392         argument for overflow.
110393         Suggested by Paul Eggert.
110395 2003-11-03  Karl Berry  <karl@gnu.org>
110397         * config/config.{guess,sub}: update from config.
110399 2003-11-03  Jim Meyering  <jim@meyering.net>
110401         * modules/userspec (lib_SOURCES): Add userspec.h.
110402         (Include): Add "userspec.h".
110403         Improve description.
110405 2003-11-03  Jim Meyering  <jim@meyering.net>
110407         * lib/userspec.c: Include "userspec.h".
110408         * lib/userspec.h: New file.
110410 2003-11-03  Bruno Haible  <bruno@clisp.org>
110412         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110414 2003-11-03  Bruno Haible  <bruno@clisp.org>
110416         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110417         available, to avoid (extremely rare) race condition.
110418         Suggested by Paul Eggert.
110420 2003-11-02  Karl Berry  <karl@gnu.org>
110422         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110424 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110426         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110427         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110428         (read_filesystem_list): Set and use me_type_malloced.
110429         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110430         whatever the type happens to be), for brevity and consistency.
110431         Check for size calculation overflow on Alphas running OSF/1.
110433 2003-10-31  Jim Meyering  <jim@meyering.net>
110435         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110437         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110439 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110440             Bruno Haible  <bruno@clisp.org>
110442         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110443         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110445 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110447         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110448         netbsd*-gnu*.  Suggested by Robert Millan.
110450 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110452         * modules/group-member: Depend on stdbool.
110454 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110456         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110458 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110460         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110461         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110462         after the 'gnu' in these cases.  This fixes some bugs in the
110463         previous change, and is based on suggestions by Robert Millan.
110465 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110467         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110468         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110469         no longer needed.
110470         * lib/quotearg.c (quotearg_n_options): Use it.
110471         * lib/group-member.c: Include <stdbool.h>.
110472         (free_group_info): Arg is now const *; don't free arg.
110473         (get_group_info): Now returns bool and accepts struct group_info *,
110474         rather than returning a malloc'ed struct group_info *.
110475         All uses changed.  Check for overflow in internal size calculation.
110477         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110478         rather than xmalloc/xrealloc.
110479         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110480         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110481         conformance bug: the old code used a pointer after freeing the
110482         storage that it addressed.
110483         * lib/hash.c (hash_initialize): Simplify the code by using
110484         xalloc_oversized rather than doing it by hand.
110485         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110486         the buffer preserved.  Use free and xmalloc instead.
110487         * lib/quotearg.c (quotearg_n_options): Likewise.
110488         Use a simpler test for size overflow.  Don't use xalloc_oversized
110489         because unsigned int might be wider than size_t (!); this suggests
110490         that we should switch from unsigned int to size_t for slot numbers.
110492 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110494         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110495         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110496         NetBSD kernels.  Requested by Richard Stallman.
110498 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110500         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110501         to allocate the returned structure.  Do not allocate a subarray,
110502         as x2nrealloc will do that.
110503         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110504         instead of xnrealloc.
110505         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110507 2003-10-27  Bruno Haible  <bruno@clisp.org>
110509         * lib/stdbool_.h: Better support for BeOS.
110511 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110513         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110514         now uses inline.
110516 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110518         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110519         callers that want to do their own size-overflow checking.  Include
110520         <stdbool.h>, since xalloc_oversized returns bool.
110521         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110522         to use xalloc_oversized.
110524         Add two functions x2realloc, x2nrealloc, for programs that grow
110525         arrays dynamically by doubling their sizes.
110526         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110527         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110528         New functions.
110530         Port to C99 semantics for 'inline' of external functions.
110531         Bug reported by Bruno Haible.
110532         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110533         with the old contents of xnmalloc.
110534         (xnmalloc, xmalloc): Use it.
110535         (xnrealloc_inline): New static inline function,
110536         with the old contents of xnrealloc.
110537         (xnrealloc, xrealloc): Use it.
110539         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110540         that.
110542 2003-10-26  Karl Berry  <karl@gnu.org>
110544         * config/srclist.txt (COPYING.DOC): no longer available from
110545         /gd/gnuorg; don't know where the ultimate source is.
110547 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110549         Fix several address-calculation bugs in the hash modules,
110550         plus some minor code cleanup.
110552         * lib/hash.h: Include <stdbool.h>, for bool.
110553         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110554         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110555         hash_get_n_entries, hash_get_max_bucket_length,
110556         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110557         hash_rehash): Use size_t rather than unsigned.
110558         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110559         hash_get_n_buckets_used, hash_get_n_entries,
110560         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110561         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110562         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110563         Likewise.
110564         (SIZE_MAX): Define if not defined.
110565         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110566         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110567         hash_print):
110568         Use const * when possible.
110569         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110570         (check_tuning): Fix bug: if tuning parameters were very close to
110571         0 or 1, rounding errors could have caused subscript violations.
110572         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110573         (hash_initialize): Add 'fail:' label
110574         to free table and return NULL, and use it to simplify code.
110575         Use calloc rather than clearing the storage ourself.
110576         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110577         buffer size calculations.
110578         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110579         Include <stddef.h>, for size_t.
110580         * lib/hash-pjw.c (hash_pjw): Likewise.
110581         Switch to method described by Bruno Haible.
110582         Include <limits.h>, for CHAR_BIT.
110583         (SIZE_BITS): New macro.
110585 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110587         * m4/getline.m4 (AM_FUNC_GETLINE):
110588         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110589         hosts.  Problem reported by Derek Robert Price in
110590         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110591         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110592         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110594 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110596         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110597         ceiling the allocation at NMAX bytes rather than silently
110598         discarding input bytes before NMAX is reached.  This makes
110599         a difference only if NMAX exceeds SIZE_MAX / 2.
110601         * lib/obstack.c: Merge from glibc.
110602         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110603         Add libc_hidden_def (_obstack_newchunk).
110604         (_obstack_free) [! defined _LIBC]: Remove.
110605         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110606         a clone of the function body.
110607         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110608         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110610         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110611         glibc.
110612         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110613         arg to memcpy.
110615         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110616         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110617         Don't use lvalue casts, as GCC plans to remove support for them
110618         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110619         was also present in the non-GCC version, indicating that this
110620         code had always been buggy and had never been widely used.
110621         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110622         Use the fast variant of each macro, rather than copying the
110623         definiens of the fast variant; that way, we'll be more likely to
110624         catch future bugs in the fast variants.
110626 2003-10-20  Bruno Haible  <bruno@clisp.org>
110628         * modules/wait-process: New file.
110629         * MODULES.html.sh (func_all_modules): Add wait-process.
110631 2003-10-20  Bruno Haible  <bruno@clisp.org>
110633         * m4/wait-process.m4: New file.
110635 2003-10-20  Bruno Haible  <bruno@clisp.org>
110637         * lib/wait-process.h: New file, from GNU gettext.
110638         * lib/wait-process.c: New file, from GNU gettext.
110640 2003-10-19  Jim Meyering  <jim@meyering.net>
110642         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110643         HPUX 10.20.
110645 2003-10-18  Karl Berry  <karl@gnu.org>
110647         * config/config.guess: update from config.
110649 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110651         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110652         (getgroups): First arg is int, not size_t.
110653         Don't let 'free' mangle errno.
110655 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110657         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110659 2003-10-16  Karl Berry  <karl@gnu.org>
110661         * config/config.{guess,sub}: update from config.
110663 2003-10-16  Jim Meyering  <jim@meyering.net>
110665         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110666         memcpy.
110668 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110670         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110671         (SIZE_MAX): Remove.
110672         (new_exclude, add_exclude_file): Initial size no longer needs to
110673         be a power of 2.
110674         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110675         our own address arithmetic overflow checking.
110677         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110678         (fnmatch): Do not alloca more than 2000 wide characters;
110679         instead, use malloc for large buffers.
110680         Check for address arithmetic overflow, and return -1
110681         with errno set to ENOMEM in that case.
110682         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110683         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110684         instead, return -1.  Check for address arithmetic overflow.
110686 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110688         Handle invalid suffixes and overflow independently, so that
110689         callers can treat them independently as needed.  Fix some bugs in
110690         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110691         suffix for a human-readable blocksize.  The major caller-visible
110692         change is the addition of a new
110693         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110694         that both overflow and suffix chars were found.
110696         * lib/human.c (humblock): Don't check separately for invalid suffix
110697         char; that is xstrtoumax's job (now that its bug is fixed).
110698         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110699         INTMAX_MAX]: New macros.
110700         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110701         TYPE_MAXIMUM): New macros.
110702         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110703         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110704         if overflow occurs, as it's what __strtol does and it's more useful
110705         in practice.
110706         (__xstrtol): If __strtol reports some error other than ERANGE,
110707         reflect it to the caller as LONGINT_INVALID.  If it reports
110708         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110709         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110710         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110711         value.
110712         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110713         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110714         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110715         [defined UINTMAX_MAX]: New macros.
110717 2003-10-14  Bruno Haible  <bruno@clisp.org>
110719         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110721 2003-10-14  Bruno Haible  <bruno@clisp.org>
110723         * m4/sig_atomic_t: New file, from GNU gettext.
110724         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110726 2003-10-14  Bruno Haible  <bruno@clisp.org>
110728         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110729         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110730         Also use volatile where needed.
110732 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110734         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110735         Change maintainer from Bruno Haible to 'all'.
110737 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110739         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110741 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110743         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110744         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110745         and define in terms of the other primitives.
110746         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110747         (SIZE_MAX): Define if not already defined.
110748         (array_size_overflow): New function.
110749         (xalloc_die): Abort instead of exiting if 'error' returns.
110750         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110751         (xmalloc, xrealloc): Use them.
110752         (xcalloc): Check for address arithmetic overflow.
110753         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110754         a bit faster than strcpy.
110756 2003-10-10  Simon Josefsson  <jas@extundo.com>
110758         * modules/argp (Depends-on): Add restrict and strcase.
110760 2003-10-10  Simon Josefsson  <jas@extundo.com>
110762         * m4/argp.m4: Add AC_C_INLINE.
110764 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110766         Merge getpass from libc, plus a few fixes.
110768         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110769         Include <stdbool.h>.
110770         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110771         __fsetlocking to empty.
110772         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110773         do include <bits/libc-lock.h>.
110774         Do not include <fcntl.h>; not needed.
110775         [_LIBC]: Include <wchar.h>.
110776         (NOTCANCEL_MODE): New macro.
110777         (flockfile, funlockfile) [_LIBC]: New macros.
110778         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110779         [!_LIBC]: New macros.
110780         (call_fclose): New function.
110781         (getpass): Use it.  Save tty stream separately; this simplifies the
110782         code and makes it more reliable if stdin happens to equal stdout.
110783         Invoke __fsetlocking on tty.
110784         Handle thread cancellation if needed.
110785         Namespace cleanup (use __tcgetattr, __getline).
110786         Use bool for Booleans.
110787         [USE_IN_LIBIO]: Handle wide streams.
110788         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110789         stream might go where.
110791         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110792         doesn't have to include <stdio.h> before us.
110793         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110794         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110795         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110796         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110797         if not declared, so that we can use getpass.c code from libc without
110798         rewriting it.
110799         (flockfile, ftrylockfile, funlockfile): New macros.
110801 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110803         * modules/getpass: Depend on stdbool.
110805 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110807         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110809 2003-10-07  Karl Berry  <karl@gnu.org>
110811         * config/config.{guess,sub}: update from config.
110813 2003-10-06  Jim Meyering  <jim@meyering.net>
110814             Bruno Haible  <bruno@clisp.org>
110816         This lets translators provide better translations for the
110817         "Written by ..." part of --version output.
110818         * lib/version-etc.h: Include stdarg.h.
110819         (version_etc_copyright): Declare as readonly.
110820         (version_etc): Make this function variadic with a NULL-terminated list
110821         of author name strings.
110822         (version_etc_va): New declaration.
110823         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110824         (version_etc_copyright): Declare as readonly.
110825         (version_etc_va): New function. Provide a different translatable string
110826         for each possible number of authors < 10. Abbreviate when there are 10
110827         authors or more.
110828         (version_etc): Make this function variadic. Call version_etc_va.
110829         Suggestion from Gary V. Vaughan.
110831         * lib/long-options.h (parse_long_options): Change prototype: the
110832         authors string is moved to the end and becomes variadic.
110833         * lib/long-options.c: Include stdarg.h.
110834         (parse_long_options): Make this function variadic, too.
110835         Call version_etc_va, not version_etc.
110837 2003-10-06  Bruno Haible  <bruno@clisp.org>
110839         * modules/version-etc-2: Remove file.
110840         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110842 2003-10-06  Bruno Haible  <bruno@clisp.org>
110844         * modules/fatal-signal: New file.
110845         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110847 2003-10-06  Bruno Haible  <bruno@clisp.org>
110849         * m4/fatal-signal.m4: New file.
110850         * m4/signalblocking.m4: New file, from GNU gettext.
110852 2003-10-06  Bruno Haible  <bruno@clisp.org>
110854         * lib/version-etc-2.h: Remove file.
110855         * lib/version-etc-2.c: Remove file.
110857 2003-10-06  Bruno Haible  <bruno@clisp.org>
110859         * lib/fatal-signal.h: New file, from GNU gettext.
110860         * lib/fatal-signal.c: New file, from GNU gettext.
110862 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110864         * README: Rework advice for preventing empty .o files.
110865         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110866         not <sys/types.h>.
110868 2003-10-04  Karl Berry  <karl@gnu.org>
110870         * lib/argp*: update from libc.
110872 2003-10-04  Karl Berry  <karl@gnu.org>
110874         * config/config.{guess,sub}: update from config.
110876 2003-10-02  Bruno Haible  <bruno@clisp.org>
110878         * modules/lchown (Include): Add lchown.h.
110879         * modules/time_r (Include): Use "..." syntax.
110880         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110882 2003-10-01  Simon Josefsson  <jas@extundo.com>
110884         * MODULES.html.sh (func_all_modules): Move gethostname from section
110885         'based on' to section 'lacking' POSIX:2001.
110887 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110889         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110890         to output mode on the same stream.
110892 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110894         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110895         Fix arg typo in previous patch.
110897 2003-09-28  Jim Meyering  <jim@meyering.net>
110899         * lib/error.c: Correct cpp indentation.
110901 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110903         * modules/free: New file.
110905 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110907         * m4/free.m4: New file.
110909 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110911         * lib/minmax.h (MIN, MAX)
110912         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110913         Omit the special code that used __typeof__, since we worry that
110914         it could be more trouble than it's worth.  See:
110915         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110916         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110918         * lib/free.c: New file.
110920 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110922         Trivial fixes to Makefile.am parts of module listings.
110923         * modules/strstr: Append strstr.h to lib_SOURCES.
110924         * modules/strcase: Likewise, for strcase.h.
110926 2003-09-27  Karl Berry  <karl@gnu.org>
110928         * config/mkinstalldirs: update from automake.
110930 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110932         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110933         (error_tail): Do not loop, reallocating temporary buffer, since
110934         the output cannot contain more wide characters than the input
110935         contains bytes, the size must be big enough already.  This avoids
110936         one potential size overflow calculation.  Check for size overflow
110937         when calculating temporary buffer size.  Free temporary buffer
110938         when done, if it was allocated with malloc; this plugs a memory
110939         leak.  Remove casts from void * to pointers, that are no longer
110940         needed now that we're assuming C89 or better.
110942         Merge error changes from glibc.
110944         * lib/error.c, error.h: Update copyright notice header to match glibc.
110945         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110946         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110947         Disable cancellation while printing error.
110948         * lib/error.h: Prepend __ to parameter names.
110950 2003-09-26  Jim Meyering  <jim@meyering.net>
110952         * lib/error.c (error_tail): Move some declarations
110953         into inner scope where the local variables are used.
110955 2003-09-26  Bruno Haible  <bruno@clisp.org>
110957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110958         stpncpy().
110959         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110961 2003-09-26  Bruno Haible  <bruno@clisp.org>
110963         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110964         (stpncpy): Define as alias for gnu_stpncpy.
110965         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110967 2003-09-25  Simon Josefsson  <jas@extundo.com>
110969         * lib/xgetdomainname.h: New file.
110970         * lib/xgetdomainname.c: New file.
110972 2003-09-25  Simon Josefsson  <jas@extundo.com>
110973             Bruno Haible  <bruno@clisp.org>
110975         * modules/getdomainname: New file.
110976         * modules/xgetdomainname: New file.
110977         * MODULES.html.sh (func_all_modules): Add getdomainname,
110978         xgetdomainname.
110980 2003-09-25  Simon Josefsson  <jas@extundo.com>
110981             Bruno Haible  <bruno@clisp.org>
110983         * m4/getdomainname.m4: New file.
110985 2003-09-25  Simon Josefsson  <jas@extundo.com>
110986             Bruno Haible  <bruno@clisp.org>
110988         * lib/getdomainname.h: New file.
110989         * lib/getdomainname.c: New file.
110991 2003-09-25  Karl Berry  <karl@gnu.org>
110993         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110995 2003-09-25  Karl Berry  <karl@gnu.org>
110997         * config/install-sh: update from automake.
110999 2003-09-25  Bruno Haible  <bruno@clisp.org>
111001         * modules/version-etc-2: New file, from modules/version-etc with
111002         modifications.
111003         * MODULES.html.sh (func_all_modules): Add version-etc-2.
111005 2003-09-25  Bruno Haible  <bruno@clisp.org>
111007         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
111008         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
111010 2003-09-24  Simon Josefsson  <jas@extundo.com>
111012         * modules/xgethostname: Add xgethostname.h.
111014 2003-09-24  Paul Eggert  <eggert@twinsun.com>
111016         * lib/linebuffer.c (freebuffer): Don't free the argument, just
111017         the buffer associated with the argument.  Bug reported by
111018         Simon Josefsson.
111020 2003-09-24  Paul Eggert  <eggert@twinsun.com>
111022         * README: Document assumptions that 'int' is at least 32 bits
111023         wide, that integer arithmetic is 2's complement without overflow,
111024         that there are no holes in integer values, that adding sizes of
111025         two nonoverlapping objects can't overflow, and that all-bits-zero
111026         yields scalar zero.  Fix spelling and capitalization typos.
111028 2003-09-19  Karl Berry  <karl@gnu.org>
111030         * lib/argp.h: update from libc.
111032 2003-09-17  Paul Eggert  <eggert@twinsun.com>
111034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
111035         to avoid spurious warnings like "AC_RUN_IFELSE was called before
111036         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
111038 2003-09-17  Paul Eggert  <eggert@twinsun.com>
111040         * gnulib-tool: Use "test -h", not "test -L", for portability
111041         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
111042         (tags_regexp): Remove, since \| doesn't conform to POSIX.
111043         (sed_extract_prog): Issue s commands one-by-one, rather than
111044         using \| in one s command.
111046 2003-09-16  Paul Eggert  <eggert@twinsun.com>
111048         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
111049         input error, instead of returning NULL the next time we are called
111050         (and therefore losing track of errno).
111052 2003-09-16  Bruno Haible  <bruno@clisp.org>
111054         * gnulib-tool (func_create_testdir): Warn about duplicated
111055         dependencies.
111057 2003-09-15  Paul Eggert  <eggert@twinsun.com>
111059         * modules/argmatch, modules/fatal, modules/obstack,
111060         modules/xalloc, modules/xgethostname: Sort dependencies by
111061         importance, not alphabetically.
111063 2003-09-15  Paul Eggert  <eggert@twinsun.com>
111065         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
111066         fails, so that the caller gets the proper errno.
111068         * lib/readutmp.c (read_utmp): Likewise.
111069         Check for fstat error.  Close stream and free storage
111070         when failing.
111072 2003-09-14  Karl Berry  <karl@gnu.org>
111074         * config/srclist.txt (strdup.c): disable for c89 changes.
111076 2003-09-14  Jim Meyering  <jim@meyering.net>
111078         * lib/getloadavg.c: Correct cpp indentation.
111079         * lib/strdup.c: Likewise.
111080         * lib/vasnprintf.c: Likewise.
111082 2003-09-14  Bruno Haible  <bruno@clisp.org>
111084         * modules/fwriteerror: New file.
111085         * MODULES.html.sh (func_all_modules): Add fwriteerror.
111087 2003-09-14  Bruno Haible  <bruno@clisp.org>
111089         * lib/fwriteerror.h: New file.
111090         * lib/fwriteerror.c: New file.
111092 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111094         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
111095         modules/xgethostname, modules/xalloc: Depend on exit.
111097 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111099         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
111101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
111102         and AC_MINIX, too, so that their extensions are available.
111104         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
111105         This macro has been superseded by gl_BACKUPFILE.
111107         More patches to assume C89 or better.
111109         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
111111         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
111112         unconditionally.
111113         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
111114         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
111115         Include <string.h>, <stdlib.h> unconditionally.
111116         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
111117         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
111118         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
111119         headers or for string.h.
111120         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
111121         or strtoul.
111123         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
111124         headers.
111125         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
111126         * m4/userspec.m4 (gl_USERSPEC): Likewise.
111127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
111128         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
111129         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111130         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
111131         memcpy, memset.
111132         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
111133         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
111134         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
111135         strtol.
111136         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
111137         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
111138         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
111139         strtoul.
111141 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111143         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
111144         * lib/obstack.c [!defined _LIBC]: Likewise.
111145         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
111146         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
111147         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
111149         More changes to assume C89 or better.
111151         * lib/error.c (error_tail): Assume vprintf.
111153         * lib/argmatch.c (getenv): Remove decl.
111154         * lib/progreloc.c (get_full_program_name): Define via prototype.
111155         * lib/setenv.c (clearenv): Likewise.
111156         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
111157         needed.
111158         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
111159         (malloc, memcpy): Remove decls.
111160         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
111161         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
111162         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111163         (memcpy): Remove macro.
111164         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
111165         (__P): Remove.  All uses removed.
111166         (PTR): Remove.  All uses changed to void *.
111167         (CHAR_BIT, NULL): Remove.
111168         (spaces, zeros, memset_space, memset_zero)
111169         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
111170         Remove.
111171         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
111172         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
111173         Define with prototype.
111174         Remove now-unnecessary prototype decl.
111175         (extra_args_spec): Assume ANSI C.  All uses changed.
111176         (extra_args_spec_iso): Remove.
111177         (my_strftime, emacs_strftimeu): Define via prototype.
111178         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
111179         unconditionally.
111180         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
111181         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
111182         (strtoul, strtol): Remove decls.
111183         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
111184         LONG_MAX): Remove.
111185         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111186         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
111187         (LOCALE_PARAM_PROTO): New macro.
111188         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
111189         (INTERNAL (strtol), strtol): Define with a prototype.
111190         (PARAMS): Remove.  All uses removed.
111191         * lib/tempname.c: Include <string.h> unconditionally.
111192         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
111193         * lib/xgethostname.c (main): Define with a prototype.
111194         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
111195         Include <stdlib.h> unconditionally.
111196         (calloc, malloc, realloc, free): Remove decls.
111197         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
111198         Include <stdlib.h> unconditionally.  Sort include file names.
111199         (strtod): Remove.
111200         (xstrtod): Define with a prototype.
111201         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
111202         (strtol, strtoul): Remove decls.
111204 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111206         More patches to assume C89 or better.
111207         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
111208         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
111209         string.h, memchr, STDC_HEADERS.
111211 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111213         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
111214         Include <stdlib.h>, <string.h> unconditionally.
111215         Remove now-unnecessary cast to char *.
111216         * lib/strnlen.c: Include <string.h> unconditionally.
111217         * lib/yesno.c (yesno): Define with a prototype.
111219 2003-09-11  Bruno Haible  <bruno@clisp.org>
111221         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
111223 2003-09-10  Jim Meyering  <jim@meyering.net>
111225         * lib/error.c: Correct indentation of cpp directives.
111227 2003-09-10  Bruno Haible  <bruno@clisp.org>
111229         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
111230         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
111231         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
111232         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
111233         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
111234         <stdlib.h> and <string.h> checks.
111235         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
111236         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
111238 2003-09-10  Bruno Haible  <bruno@clisp.org>
111240         * lib/strcspn.c: Include <string.h> unconditionally.
111241         * lib/strpbrk.c: Include <string.h> unconditionally.
111242         * lib/strstr.c: Include <string.h> unconditionally.
111243         * lib/unicodeio.c: Include <string.h> unconditionally.
111244         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
111245         * lib/unsetenv.c: Likewise.
111246         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
111247         * lib/yesno.c: Include <stdlib.h> unconditionally.
111248         (rpmatch): Add prototype.
111250 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111252         More patches to assume C89 or better.
111253         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
111254         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
111255         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
111256         or for string.h.
111257         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
111258         stdlib.h.
111259         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
111260         C headers.
111261         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
111262         string.h.
111263         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
111264         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
111265         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
111266         or for string.h.
111267         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
111268         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
111269         C headers.
111270         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
111271         memcpy.
111272         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
111273         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
111274         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
111275         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
111276         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
111277         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
111278         string.h, free.
111279         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
111280         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
111281         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
111282         C headers, or for string.h.
111283         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
111284         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
111285         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
111286         headers, memory.h, stdlib.h, string.h, strings.h.
111287         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
111288         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
111289         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
111290         strchr.
111291         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
111292         headers, memory.h, string.h.
111293         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
111294         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
111295         free.
111296         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
111297         headers.
111298         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
111299         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
111300         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
111301         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
111302         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
111304 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111306         More K&R removal.
111308         * lib/acosl.c (main): Use a prototype.
111309         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
111310         tanl.c: Likewise.
111312         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
111314         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
111315         (getopt, etopt_long, getopt_long_only, _getopt_internal)
111316         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
111317         with a prototype.
111318         * lib/getopt.c (const): Remove macro.
111319         Include <string.h> unconditionally.
111320         (my_index): Remove; all uses changed to strchr.
111321         (strlen): Remove decl.
111322         (exchange): Remove forward decl; no longer needed.
111323         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
111324         Define with prototype.
111325         * lib/getopt1.c (const): Remove macro.
111326         (getopt_long, getopt_long_only, main): Define with prototype.
111328         * lib/getugroups.c: Include <string.h> unconditionally.
111330         * lib/getusershell.c: Include <stdlib.h> unconditionally.
111331         (getusershell, setusershell, endusershell, readname, main):
111332         Define with prototypes.
111334         * lib/group-member.c: Include group-member.h first.
111335         Include <stdlib.h> unconditionally.
111337         * lib/hard-locale.c: Include hard-locale.h first.
111338         Include <stdlib.h>, <string.h> unconditionally.
111340         * lib/hash.c (free, malloc): Remove decls.
111341         Include <stdlib.h> unconditionally.
111343         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
111344         (getenv): Do not declare.
111346         * lib/idcache.c: Include <string.h> unconditionally.
111348         * lib/long-options.c: Include long-options.h first, to test interface.
111349         Include <stdlib.h> unconditionally.
111351         * lib/makepath.c: Include makepath.h first, to test interface.
111352         Include <stdlib.h> and <string.h> unconditionally.
111354         * lib/linebuffer.c: Include <stdlib.h>.
111355         (free): Remove decl.
111357         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111358         stddef.h. rpl_malloc returns void *, not char *.
111359         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111360         prototype.
111362         * lib/md5.h: Include <limits.h> unconditionally.
111363         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111364         (__P): Remove; all uses removed.
111365         * lib/md5.c: Include "md5.h" first.
111366         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111367         md5_buffer, md5_process_bytes, md5_process_block):
111368         Define with prototypes.
111369         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111370         * lib/sha.c: Include "sha.h" first.
111371         Include <stdlib.h>, <string.h> unconditionally.
111373         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111374         * lib/memcmp.c (__ptr_t): Likewise.
111375         * lib/memrchr.c (__ptr_t): Likewise.
111376         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111377         Include <string.h> unconditionally.
111378         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111379         * lib/memchr.c: Include <stdlib.h> unconditionally.
111380         * lib/memchr.c (LONG_MAX): Remove.
111381         * lib/memrchr.c (LONG_MAX): Likewise.
111382         * lib/memchr.c (__memchr): Define via a prototype.
111383         * lib/memrchr.c (__memrchr): Likewise.
111384         * lib/memcmp.c (__P): Remove, and remove all uses.
111385         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111386         Remove forward decls; no longer needed.
111387         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111388         Use types required by C89 in prototype.
111390         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111391         * lib/savedir.c: Likewise.
111392         * lib/mkdir.c (free): Remove decl.
111393         * lib/rmdir.c (rmdir): Define with a prototype.
111394         * lib/savedir.c: Include savedir.h first, to test interface.
111396         * lib/mktime.c (STDC_HEADERS): Remove.
111397         Include <stdlib.h>, <string.h> unconditionally.
111399         * lib/modechange.c: Include <stdlib.h> unconditionally.
111400         (malloc): Remove decl.
111402         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111403         (free): Remove decl.
111405         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111406         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111407         (This type really should be intptr_t, but that's a C99ism.)
111408         (_obstack_memcpy): Remove: all uses changed to memcpy.
111409         Include <string.h> unconditionally.
111410         (struct obstack): Assume __STDC__ for types of members
111411         chunkfun, freefun, extra_arg.
111412         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111413         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111414         obstack_begin, obstack_specify_allocation,
111415         obstack_specify_allocation_with_arg, obstack_chunkfun,
111416         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111417         Remove unprototyped decls and the macros that use them.
111418         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111419         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111420         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111421         (defined __STDC__ && __STDC__)]:
111422         Remove nonprototyped code.
111423         Include <stdlib.h> unconditionally.
111424         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111425         _obstack_allocated_p, _obstack_free, obstack_free,
111426         _obstack_memory_used, print_and_abort):
111427         Define using prototypes.
111428         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111429         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111430         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111431         obstack_next_free, obstack_object_size, obstack_room) [0]:
111432         Remove unused, unprototyped code.
111434         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111436         * lib/physmem.c (physmem_total, physmem_available, main): Define
111437         with prototypes.
111439         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111440         (main): Define with a prototype.
111442         * lib/posixver.c (getenv): Remove decl.
111444         * lib/putenv.c (malloc): Returns void *, not char *.
111445         Include <string.h> unconditionally.
111446         (strchr, memcpy, NULL): Do not define.
111448         * lib/readtokens.c: Include readtokens.h first, to test interface.
111449         Include <stdlib.h>, <string.h> unconditionally.
111450         (init_tokenbuffer): Define with a prototype.
111452         * lib/regex.c (PARAMS): Remove.  All uses removed.
111453         All uses of _RE_ARGS removed, too.
111454         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111455         unconditionally.
111456         (bzero): Assume memset exists.
111457         (memcmp, memcpy, NULL): Remove.
111458         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111459         char, or assignments to local vars of type signed char.
111460         (init_syntax_once, PREFIX(extract_number_and_incr),
111461         PREFIX(print_partial_compiled_pattern),
111462         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111463         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111464         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111465         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111466         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111467         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111468         wcs_compile_range, byte_compile_range, truncate_wchar,
111469         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111470         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111471         count_mbs_length, wcs_re_match_2_internal,
111472         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111473         PREFIX(alt_match_null_string_p),
111474         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111475         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111476         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111477         now-unnecessary declaration, if any.
111478         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111479         regcomp, regexec):
111480         Remove now-unnecessary casts among pointer types.
111481         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111483         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111484         (free): Remove decl.
111486         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111488         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111489         (free): Remove decl.
111491         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111492         * lib/xgetcwd.c: Likewise.
111494         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111495         (free): Remove decl.
111497         * lib/strchrnul.c (strchrnul): Define with a prototype.
111498         Fix bug: c_in was not converted to char before searching.
111500         The following changes are not K&R related:
111502         * lib/group-member.h: Include <sys/types.h>, so that this file is
111503         self-contained.
111504         * lib/makepath.h: Likewise.
111506         * lib/getusershell.c (readname, default_index, line_size, readname):
111507         Use size_t, not int, for sizes.
111508         (readname): If the size overflows, report an error instead of
111509         looping forever.
111511 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111513         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111514         libc.
111516 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111518         * README: New section: portability guidelines.
111520 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111522         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111523         C89 spec.
111525 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111527         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111529 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111531         Assume C89 or better; remove K&R cruft.
111532         A few of these changes were first proposed by Derek Robert Price
111533         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111535         * lib/addext.c: Include <string.h> unconditionally.
111536         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111537         Don't declare getenv or malloc.
111539         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111540         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111541         (NULL): Remove.
111542         (find_stack_direction, alloca): Use prototypes.
111544         * lib/atexit.c (atexit): Define using a prototype.
111546         * lib/basename.c, dirname.c, stripslash.c:
111547         Include <string.h> unconditionally.
111549         * lib/bcopy.c: Include <stddef.h>.
111550         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111552         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111554         * lib/error.h (error, error_at_line, error_print_progname)
111555         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111556         * lib/error.c: Include error.h first, to check interface.
111557         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111558         (VA_START): Remove; all uses changeed to va_start.
111559         (exit, strerror): Remove decls.
111560         (error_print_progname): Prototype uncondionally.
111561         Don't include <errno.h>; no longer needed.
111562         (private_strerror): Remove.
111563         (error_tail): Always define.
111564         (error, error_at_line): Assume C89 or better; always use prototypes.
111565         * lib/fatal.c: Include "fatal.h" first, to test interface.
111566         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111567         (VA_START): Remove; all uses changed to va_start.
111568         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111569         this case.
111570         (exit): Remove decl.
111571         (fatal): Prototype unconditionally.  Assume va_start works.
111572         Abort at end, to pacify gcc.
111574         * lib/euidaccess.c (main): Define with a prototype.
111576         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111578         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111580         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111581         prototypes.
111582         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111583         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111584         (getenv): Remove decl.
111585         (fnmatch): Define using a prototype.
111586         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111587         (FCT): Define using a prototype.
111589         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111591         * lib/gethostname.c: Include <stddef.h>.
111592         (gethostname): Define with prototype.  Length is size_t, not int.
111594 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111596         Assume C89 or better; remove K&R cruft.
111597         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111598         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111599         string.h, getenv, malloc.
111600         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111601         headers.
111602         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111603         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111604         do not check for strerror.
111605         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111606         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111607         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111608         do not check for doprnt or vprintf.
111609         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111610         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111612 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111614         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111615         getversion.c should have been removed then, but was accidentally
111616         preserved.
111618         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111619         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111621 2003-09-08  Karl Berry  <karl@gnu.org>
111623         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111624                 config, forget about prep.
111626         * config/depcomp, missing: update from automake.
111628 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111630         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111631         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111633 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111635         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111636         copy_tm_result.  Bug reported by Simon Josefsson in
111637         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111639 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111641         * m4/time_r.m4: New file.
111642         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111643         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111644         is. Check for timegm declaration.
111645         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111646         Do not check for gmtime_r.
111647         Replace mktime if __mktime_internal does not exist and if mktime
111648         hasn't been replaced already.
111650 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111652         * lib/time_r.c, lib/time_r.h: New files.
111654         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111655         __localtime_r.
111656         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111657         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111659         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111660         __gmtime_r.
111661         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111662         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111663         Include <time_r.h>.
111665         * lib/timegm.c: Switch to glibc implementation, with the following
111666         changes:
111667         [defined HAVE_CONFIG_H]: Include <config.h>.
111668         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111669         (__mktime_internal) [!defined _LIBC]: New decl.
111670         (__gmtime_r) [!defined _LIBC]: New macro and function.
111671         (timegm): Use a prototype, since gnulib assumes C89.
111672         Do not bother declaring tmp to be const, as it's not really usefu.
111673         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111674         (timegm): Declare only if HAVE_DECL_TIMEGM.
111676 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111678         * MODULES.html.sh (func_all_modules): Add time_r.
111679         * modules/time_r: New file.
111680         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111681         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111683 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111685         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111686         Bug reported by Lute Kamstra in
111687         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111689         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111690         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111691         course with correspondingly smaller numbers for tomorrow and
111692         yesterday.  From Tadayoshi Funaba.  Originally installed into
111693         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111694         coreutils merge?).
111696 2003-08-31  Simon Josefsson  <jas@extundo.com>
111698         * modules/timegm: New file.
111699         * MODULES.html.sh (func_all_modules): Add timegm.
111701 2003-08-31  Simon Josefsson  <jas@extundo.com>
111703         * m4/timegm.m4: New file.
111705 2003-08-31  Simon Josefsson  <jas@extundo.com>
111707         * lib/timegm.h: New file.
111708         * lib/timegm.c: New file.  Based on
111709         wget-1.8.2/src/http.c:mktime_from_utc.
111711 2003-08-31  Karl Berry  <karl@gnu.org>
111713         * lib/argp.h: update from libc.
111715 2003-08-28  Bruno Haible  <bruno@clisp.org>
111717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111718         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111719         followed by '#define fnmatch fnmatch_posix' gives an error.
111721 2003-08-28  Bruno Haible  <bruno@clisp.org>
111723         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111724         warning on QNX, which defines O_BINARY to 000000.
111726 2003-08-27  Jim Meyering  <jim@meyering.net>
111728         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111729         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111730         would fail after 32.  Reported by Danny Levinson.  Details here:
111731         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111733 2003-08-24  Bruno Haible  <bruno@clisp.org>
111735         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111736         MSVC7 <stdio.h> is included later.
111738 2003-08-22  Simon Josefsson  <jas@extundo.com>
111740         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111742 2003-08-20  Karl Berry  <karl@gnu.org>
111744         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111746 2003-08-20  Bruno Haible  <bruno@clisp.org>
111748         * modules/progname: New file.
111749         * MODULES.html.sh (func_all_modules): Add progname.
111751 2003-08-20  Bruno Haible  <bruno@clisp.org>
111753         * lib/progname.h: New file, from GNU gettext.
111754         * lib/progname.c: New file, from GNU gettext.
111755         * lib/progreloc.c: New file, from GNU gettext.
111757 2003-08-19  Jim Meyering  <jim@meyering.net>
111759         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111760         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111762 2003-08-19  Bruno Haible  <bruno@clisp.org>
111764         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111765         more.
111767 2003-08-19  Bruno Haible  <bruno@clisp.org>
111769         * lib/xstrdup.c: Assume <string.h> exists.
111771 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111773         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111774         in makefile rules.
111776 2003-08-18  Jim Meyering  <jim@meyering.net>
111778         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111779         * m4/lib-ld.m4: Likewise.
111781 2003-08-18  Jim Meyering  <jim@meyering.net>
111783         * lib/setenv.h: Indent nested cpp directive.
111784         * lib/vasnprintf.c: Remove trailing blanks.
111786 2003-08-17  Simon Josefsson  <jas@extundo.com>
111788         * modules/xstrndup: New file.
111789         * MODULES.html.sh (func_all_modules): Add xstrndup.
111791 2003-08-17  Simon Josefsson  <jas@extundo.com>
111793         * modules/argp: Fix autoconf macro name. Add more dependencies.
111795 2003-08-17  Simon Josefsson  <jas@extundo.com>
111797         * m4/xstrndup.m4: New file.
111799 2003-08-17  Simon Josefsson  <jas@extundo.com>
111801         * m4/argp.m4: New file.
111803 2003-08-17  Simon Josefsson  <jas@extundo.com>
111804             Bruno Haible  <bruno@clisp.org>
111806         * lib/xstrndup.h: New file.
111807         * lib/xstrndup.c: New file.
111809 2003-08-17  Bruno Haible  <bruno@clisp.org>
111811         * modules/strndup (Files, Include): Add lib/strndup.h.
111813 2003-08-17  Bruno Haible  <bruno@clisp.org>
111815         * modules/euidaccess (Files): Add lib/euidaccess.h.
111817 2003-08-17  Bruno Haible  <bruno@clisp.org>
111819         * lib/strndup.h: New file.
111821 2003-08-17  Bruno Haible  <bruno@clisp.org>
111823         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111824         like AC_GNU_SOURCE.
111825         * modules/extensions (configure.ac): Comment out the invocation of
111826         gl_USE_SYSTEM_EXTENSIONS.
111828 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111830         Merges from coreutils, etc.
111831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111832         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111833         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111834         fixing a typo.
111835         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111836         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111840         Document merge from coreutils.
111841         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111842         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111843         * modules/utime: Add m4/utimes-null.m4.
111845 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111847         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111848         space, undoing this 2003-08-12 change:
111849         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111851 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111853         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111854         strtoul.c from libc, undoing this 2003-08-12 change:
111855         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111857 2003-08-16  Jim Meyering  <jim@meyering.net>
111859         Merges from coreutils.
111860         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111861         prefix.  Adjust cache variables similarly.  Create 500 rather than
111862         just 300 files, to exercise bug on Darwin6.5, too.
111863         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111864         $missing_dir.
111865         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111866         AM_SYS_POSIX_TERMIOS.
111867         Reported by mkc@mathdogs.com.
111868         Also change use of $am_cv_sys_posix_termios
111869         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111870         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111871         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111872         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111873         in /proc/mounts until it finds one with matching device number.  This
111874         is unnecessary when the FILE argument *is* a mount point.  No stat call
111875         is necessary in that case.  So, disable the statvfs-testing code on
111876         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111877         as RedHat bug# 84846.
111878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111879         to 1MB, so as not to render systems with no stack size limit (e.g.,
111880         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111881         Include <unistd.h>.  On some systems,
111882         it is required for the definition of _SC_PAGESIZE.
111884 2003-08-16  Jim Meyering  <jim@meyering.net>
111886         Merge from coreutils.
111887         * lib/xstrtoimax.c: #else #if -> #elif.
111888         * lib/xstrtoumax.c: Likewise.
111890 2003-08-16  Jim Meyering  <jim@meyering.net>
111892         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111893         * m4/utimes.m4: Removed.
111894         * m4/utimes-null.m4: Renamed from utimes.m4.
111896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111897         to 1MB, so as not to render systems with no stack size limit (e.g.,
111898         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111899         Include <unistd.h>.  On some systems,
111900         it is required for the definition of _SC_PAGESIZE.
111902 2003-08-16  Jim Meyering  <jim@meyering.net>
111903         and Paul Eggert  <eggert@cs.ucla.edu>
111905         Merges from coreutils, etc.
111907         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111908         using the latest version from cvs.  This avoids problems with #line
111909         directives using a vendor (Sun) compiler.
111910         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111911         Don't set GETGROUPS_LIB here; now it's
111912         done via getgroups.m4's wrapper function.
111913         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111914         rather than just in sh-util/configure.in, so that the
111915         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111916         same.
111917         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111918         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111919         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111920         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111921         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111922         Remove code that is now done by the newly-required macros.
111923         Append $(EXEEXT) to DF_PROG.
111924         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111925         Do not invoke or require the following here,
111926         since prereq.m4 or some gnulib .m4 now does this for us:
111927         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111928         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111929         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111930         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111931         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111932         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111933         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111934         AC_FUNC_OBSTACK.
111935         Do not replace the following functions, as this is now the job
111936         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111937         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111938         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111939         atexit getpass, strdup, getpagesize.
111940         Replace 'raise'.
111941         Do not check for the following functions, as this is now the job
111942         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111943         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111944         setregid.
111945         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111946         Check for sys/sysctl.h.
111947         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111948         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111949         of checking for ssize_t ourselves.
111951         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111952         Require every macro that gnulib/modules/* suggests for us.
111953         (jm_PREREQ_ADDEXT): New macro.
111954         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111955         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111957         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111958         (gl_PHYSMEM): Use it.
111959         Also check for `table' function.
111960         Check for new headers and functions.
111961         Add check for sys/sysmp.h.
111962         With suggestions from Kaveh Ghazi.
111963         Ignore headers that are present but cannot be compiled.  This
111964         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111965         C 5.4.
111967 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111969         Document merge from coreutils.
111970         * modules/userspec: Depend on posixver.
111971         * modules/strftime: Depend on tzset.
111973 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111975         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111976         rather than tab, after '#' in shell-script copyright notices.
111977         Suggested by Bruno Haible.
111979 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111981         * config/srclist-update: Use three spaces, rather than tab, after '#'
111982         in shell-script copyright notices.  Suggested by Bruno Haible.
111983         Remove unnecessary parenthesization in regular expression.
111985 2003-08-15  Jim Meyering  <jim@meyering.net>
111987         Merge from coreutils.
111988         * lib/xgethostname.c: Include <stdlib.h>.
111989         (xghostname): Don't exit for anything other than memory-related
111990         failure; just return NULL.
111991         * lib/userspec.c: Include "posixver.h".
111992         (parse_user_spec): Accept `.' as a separator only
111993         in pre-POSIX-200112 mode.
111994         * lib/strtoimax.c: Use #elif rather than #else #if.
111995         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111996         Remove function, now that we can rely on a working tzset function.
111997         [!_LIBC]: Ensure that the required autoconf test has been run.
111998         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111999         Use underlying_strftime for %r.
112000         * lib/sha.c: Merge in some clean-up and optimization changes from
112001         glibc.
112002         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
112003         Ensure that it is a multiple of 64.
112004         Rearrange loop exit tests so as to avoid performing an
112005         additional fread after encountering an error or EOF.
112006         * lib/realloc.c: Update copyright date.
112008 2003-08-15  Jim Meyering  <jim@meyering.net>
112009         and Paul Eggert  <eggert@twinsun.com>
112011         Merge from coreutils.
112012         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
112013         member but strut utmpx does not.  Needed for AIX 4.3.3.
112014         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
112016 2003-08-15  Jim Meyering  <jim@meyering.net>
112017         and Paul Eggert  <eggert@cs.ucla.edu>
112019         Merges from coreutils, etc.
112020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
112021         Require gl_FUNC_TZSET_CLOBBER.
112022         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
112023         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
112024         members.
112026 2003-08-14  Paul Eggert  <eggert@twinsun.com>
112028         Help the merge from coreutils.
112029         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
112030         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
112031         * m4/tzset.m4: Use it too.
112033 2003-08-14  Paul Eggert  <eggert@twinsun.com>
112035         * modules/tzset: New file.
112037 2003-08-14  Jim Meyering  <jim@meyering.net>
112039         Merges from coreutils.
112040         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
112041         variable names, rather than @FNMATCH_H@.
112042         * modules/alloca: Likewise for $(ALLOCA_H).
112044         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
112045         the three copies of the literal target, `fnmatch.h'.
112046         * modules/alloca (alloca.h): Likewise.
112048 2003-08-14  Jim Meyering  <jim@meyering.net>
112050         Merge from coreutils.
112051         * m4/tzset.m4: New file.
112052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
112053         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
112054         otherwise, AIX 5.1 systems would end up using the latter.
112055         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
112056         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
112057         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
112058         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
112060 2003-08-14  Jim Meyering  <jim@meyering.net>
112062         Merge from coreutils.
112063         * lib/obstack.h: Whitespace changes.
112064         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
112065         and xcalloc return values.
112066         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
112067         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
112068         hang on OSF/1 5.1 for DIR on both local and remote file systems.
112069         Reported by (and fix confirmed by) Nelson H. F. Beebe.
112070         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112071         error from mntctl.
112072         Use mntctl's return value to drive the entry-processing loop, since
112073         we can't rely on the value of the vmt_length member in the last
112074         entry.  On some systems doing so could result in exhausting
112075         virtual memory.  Based in part on a patch from Mike Jetzer.
112077 2003-08-14  Jim Meyering  <jim@meyering.net>
112078         and Paul Eggert  <eggert@twinsun.com>
112080         Merges from coreutils, plus other fixes.
112081         * lib/physmem.c: Merge in portability changes from gcc/libiberty
112082         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
112083         for credits and details.  Thanks to Kaveh Ghazi for helping
112084         to keep these files in sync.
112085         (ARRAY_SIZE): Define it.
112086         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
112087         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
112088         (memcasecmp): Don't assume size_t fits in unsigned int.
112089         Remove casts and duplicate code.
112090         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
112091         (memcpy): Remove definition.
112092         Merge in some clean-up and optimization changes from glibc.
112093         [BLOCKSIZE]: Move definition to top of file.
112094         Ensure that it is a multiple of 64.
112095         Rearrange loop exit tests so as to avoid performing an
112096         additional fread after encountering an error or EOF.
112097         * lib/md5.h (md5_uintptr): Define.
112098         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
112099         return to the initial working directory.  Preserve errno
112100         for caller.
112101         * lib/idcache.c: Include "xalloc.h".
112102         (xmalloc, xrealloc): Remove decls.
112103         (getuser): Remove casts no longer required in C89.
112104         * lib/human.c: Include stdio.h, for sprintf.
112105         * lib/group-member.c: Include "xalloc.h".
112106         (xmalloc, xrealloc): Remove decls.
112107         (get_group_info): Remove casts no longer required in C89.
112108         * lib/getusershell.c (readname): Remove casts no longer required in
112109         C89.
112110         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
112111         * lib/getline.c: Whitespace fix, from coreutils.
112113 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112115         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
112116         Check for isascii.
112118         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
112119         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112120         Undo previous (whitespace-only) change.
112122 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112124         * lib/exclude.c: Include <ctype.h>
112125         (IN_CTYPE_DOMAIN): New macro.
112126         (is_space): New fn.
112127         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
112128         and empty lines.
112130         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112131         Undo previous (whitespace-only) change.
112133 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112135         * config/srclist-update: Change update back to the old behavior,
112136         leaving whitespace alone.  Use one 'sed' command rather than a
112137         pipeline.
112138         (fixlicense): Now a variable, not a function.
112139         (remove_trailing_blanks): Remove.
112140         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
112141         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112142         Undo previous (whitespace-only) change.
112144 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112146         Merge from coreutils.
112147         * modules/euidaccess: Add lib_SOURCES, include for new
112148         file euidaccess.h
112150 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112152         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
112153         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112154         Normalize leading white space and remove trailing white space.
112156         Merge from coreutils
112157         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
112159         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
112160         0.12.1.  These files are now being upgraded automatically by
112161         ../config/srclist-update.
112163 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112165         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112166         Normalize leading white space and remove trailing white space.
112167         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
112168         notice, as per ../config/srclist-update.
112170         Merge from coreutils.
112171         * lib/euidaccess.h: New file.
112172         * lib/euidaccess.c: Include it.
112173         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
112174         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
112175         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
112177 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112179         * config/srclist-update: Add copyright notice.
112180         (remove_id_lines, remove_trailing_blanks): New constants.
112181         (fixfile): Use them to normalize spacing a bit in copied files.
112182         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112183         Normalize leading white space and remove trailing white space.
112185         * config/texinfo.tex: Sync with texinfo.
112187         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
112188         strtoul.c from libc, to merge coreutils whitespace changes.
112190         * config/srclist.txt: Get the following m4 files from gettext:
112191         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
112192         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
112193         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
112194         wint_t.m4.
112196 2003-08-12  Karl Berry  <karl@gnu.org>
112198         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
112199         been made.
112201 2003-08-11  Paul Eggert  <eggert@twinsun.com>
112203         * modules/gnu-source, m4/gnu-source.m4:
112204         Remove; we're assuming Autoconf 2.54 or later now.
112205         Suggested by Bruno Haible.
112206         * MODULES.html.sh (func_all_modules): Remove gnu-source.
112208 2003-08-11  Bruno Haible  <bruno@clisp.org>
112210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
112212 2003-08-11  Bruno Haible  <bruno@clisp.org>
112214         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
112215         (vasnprintf): Use it instead of wcslen.
112217 2003-08-11  Bruno Haible  <bruno@clisp.org>
112219         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
112220         value to ensure that _Bool promotes to int. Use #define for _Bool when
112221         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
112223 2003-08-10  Karl Berry  <karl@gnu.org>
112225         * lib/regex.h: update from libc (whitespace fix).
112227 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112229         Merge some files from coreutils.  These changes were
112230         originally made by Jim Meyering.
112231         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
112232         many older Unixes require this.
112233         * lib/alloca.c (alloca): Remove cast to argument of free;
112234         no longer needed in C89.
112235         * lib/alloca_.h, regex.h: Fix white space to match
112236         what GNU indent does.
112238 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112240         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
112241         apparently Emacs's Unicode mode got confused before my 2003-08-05
112242         checkin.
112244 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112246         * m4/extensions.m4: New file.
112247         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
112248         Require gl_USE_SYSTEM_EXTENSIONS.
112249         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
112250         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
112252 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112254         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
112255         * modules/extensions, modules/gnu-source: New files.
112256         * modules/timespec, modules/unlocked-io: Depend on extensions.
112258 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112260         * modules/restrict: New file.
112261         * MODULES.html.sh (func_all_modules): Add restrict.
112262         * modules/regex: Depend on restrict.
112264 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112266         * m4/restrict.m4: New file.
112267         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
112269 2003-08-07  Bruno Haible  <bruno@clisp.org>
112271         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
112272         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
112274 2003-08-07  Bruno Haible  <bruno@clisp.org>
112276         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
112277         makes the module 'getndelim2' compatible with the module 'getline'.
112279 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112281         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
112282         byte with "\201" to avoid glitches when editing that source file
112283         with multi-gnome-terminal.
112285 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112287         * lib/bumpalloc.h: Remove.
112289 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112291         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
112292         * modules/bumpalloc: Remove.
112294 2003-08-04  Paul Eggert  <eggert@twinsun.com>
112296         * lib/getloadavg.c: Change copyright notice and spacing to conform to
112297         GNU coding style.
112299         Merge from coreutils.
112300         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
112301         1. From glibc.
112302         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
112303         from Karl Berry, implemented by Jim Meyering.
112304         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
112305         from Dmitry V. Levin.
112306         Remove anachronistic cast of xrealloc.
112307         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
112308         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
112309         type. Otherwise, it wouldn't compile with at least /bin/cc on
112310         ymp-cray-unicos9.0.2.X.
112311         Combine two mostly-identical uses of alloca into one.
112312         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
112314 2003-08-04  Dave Love  <d.love@dl.ac.uk>
112316         [From Emacs.]
112318         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
112319         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
112320         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
112321         obsolete NLIST_NAME_UNION.
112322         [__GNU__]: Undef BSD and FSCALE.
112323         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
112325 2003-08-03  Paul Eggert  <eggert@twinsun.com>
112327         * lib/stdbool_.h (_Bool): Make it signed char, instead of
112328         an enum type, so that it's guaranteed to promote to int.  See:
112329         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
112331 2003-08-03  Karl Berry  <karl@gnu.org>
112333         * config/depcomp: update from automake.
112335 2003-07-31  Paul Eggert  <eggert@twinsun.com>
112337         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
112338         (strerror): Don't assume that a printable int fits in 14 bytes.
112340 2003-07-31  Bruno Haible  <bruno@clisp.org>
112342         * modules/getpass-gnu: New file.
112343         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
112345 2003-07-31  Bruno Haible  <bruno@clisp.org>
112347         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
112349 2003-07-24  Karl Berry  <karl@gnu.org>
112351         * config/missing: update from automake.
112353 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
112354             Bruno Haible  <bruno@clisp.org>
112356         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112357         * lib/getline.c (getline, getdelim): Likewise.
112358         Remove _GNU_SOURCE define; now it's defined in config.h through
112359         m4/getline.m4.
112361 2003-07-23  Karl Berry  <karl@gnu.org>
112363         * config/config.sub: update from prep.
112365 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112367         * modules/xalloc (Depends-on): Add exitfail.
112368         * modules/xmemcoll: Likewise.
112370 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112372         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112373         over-parenthesization in macros.
112375         Sync with coreutils.
112377         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112378         required by C99.
112380         Use `exit_failure' for xalloc and xmemcoll instead of their own
112381         private exit-failure variables.
112382         * lib/xalloc.h (xalloc_exit_failure): Remove.
112383         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112384         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112385         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112386         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112387         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112389 2003-07-20  Jim Meyering  <jim@meyering.net>
112391         * modules/closeout (Depends-on): Add exitfail.
112392         Suggestion from Bruno Haible.
112394 2003-07-19  Karl Berry  <karl@gnu.org>
112396         * config/config.sub: update from prep.
112398 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112400         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112401         Remove.
112402         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112403         to test that it can stand by itself.  Include "exitfail.h".
112404         Clients should set exit_failure instead.
112405         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112407 2003-07-18  Bruno Haible  <bruno@clisp.org>
112409         * modules/getndelim2: New file.
112410         * modules/getline: Share files with module getndelim2.
112411         * modules/getnline: Depend on getndelim2 instead of sharing files with
112412         it. Add getnline.c to lib_SOURCES.
112413         * MODULES.html.sh (func_all_modules): Add getndelim2.
112415 2003-07-18  Bruno Haible  <bruno@clisp.org>
112417         * m4/getndelim2.m4: New file.
112418         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112419         invoke gl_PREREQ_GETNDELIM2.
112420         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112421         gl_PREREQ_GETNDELIM2.
112422         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112423         gl_GETNDELIM2.
112425 2003-07-18  Bruno Haible  <bruno@clisp.org>
112427         * lib/getndelim2.h: New file.
112428         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112429         getndelim2.h.
112430         (getndelim2): Make non-static. Change return type to ssize_t.
112431         * lib/getline.h: Change argument names.
112432         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112433         * lib/getnline.c: Include getndelim2.h.
112435 2003-07-18  Andreas Schwab  <schwab@suse.de>
112437         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112439 2003-07-17  Karl Berry  <karl@gnu.org>
112441         * config/config.sub: update from prep.
112443 2003-07-17  Bruno Haible  <bruno@clisp.org>
112445         * modules/getnline: New file.
112446         * modules/getline: Add lib/getndelim2.c to source file list.
112447         * MODULES.html.sh (func_all_modules): Add getnline.
112449 2003-07-17  Bruno Haible  <bruno@clisp.org>
112451         * m4/getnline.m4: New file.
112453 2003-07-17  Bruno Haible  <bruno@clisp.org>
112455         * m4/Makefile.am.in: Remove file.
112456         * m4/Makefile.am: Remove file.
112457         * m4/Makefile.in: Remove file.
112459 2003-07-17  Bruno Haible  <bruno@clisp.org>
112461         * lib/getnline.h: New file.
112462         * lib/getnline.c: New file.
112463         * lib/getndelim2.c: New file, extracted from getline.c.
112464         (getndelim2): Renamed from getdelim2, with added nmax argument.
112465         * lib/getline.c: Include getndelim2.c.
112466         (getdelim2): Moved out to getndelim2.c.
112467         (getline, getdelim): Update.
112469 2003-07-17  Bruno Haible  <bruno@clisp.org>
112471         * lib/Makefile.am: Remove file.
112472         * lib/Makefile.in: Remove file.
112474 2003-07-17  Bruno Haible  <bruno@clisp.org>
112476         * configure.in: Remove file.
112477         * Makefile.in: Remove file.
112479 2003-07-17  Bruno Haible  <bruno@clisp.org>
112481         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112483 2003-07-16  Karl Berry  <karl@gnu.org>
112485         * config/srclist-update: was running fixlicense twice, which caused
112486                 texinfo.tex to be nullified for some reason.  Simplify,
112487                 $gplsrc is no longer needed as far as I can see?
112489 2003-07-16  Jim Meyering  <jim@meyering.net>
112491         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112493 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112495         * config/srclist.txt: Get the following files from gettext-runtime/intl
112496         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112497         ref-del.sin.  From Bruno Haible.
112498         * config/srclist-update (fixfile): Change grep pattern again, since the
112499         previous fix didn't work (there was another trailing $).  Use
112500         '[$]' to escape the $s.
112502 2003-07-15  Karl Berry  <karl@gnu.org>
112504         * lib/vasnprintf.c: update from gettext.
112506 2003-07-15  Karl Berry  <karl@gnu.org>
112508         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112509         gets expanded when surrounded by '$'.
112511 2003-07-15  Jim Meyering  <jim@meyering.net>
112513         * modules/save-cwd: Don't depend on error.  From Derek Price.
112515 2003-07-15  Jim Meyering  <jim@meyering.net>
112517         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112519 2003-07-14  Simon Josefsson  <jas@extundo.com>
112521         * modules/mempcpy: New file.
112522         * MODULES.html.sh (func_all_modules): Add mempcpy.
112524 2003-07-14  Simon Josefsson  <jas@extundo.com>
112526         * m4/mempcpy.m4: New file.
112528 2003-07-14  Simon Josefsson  <jas@extundo.com>
112530         * lib/mempcpy.h: New file.
112531         * lib/mempcpy.c: New file.
112533 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112535         * modules/getdate, modules/posixtm: Depend on mktime.
112537 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112539         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112540         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112541         unicodeio.c, unicodeio.h, unlocked-io.h:
112542         Switch from LGPL to GPL.
112544 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112546         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112547         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112548         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112549         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112550         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112551         updated automatically by ../config/srclist-update.  This changes
112552         their license from LPGL to GPL.
112554 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112556         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112557         assumed to refer to the root of the most recent stable gettext version.
112558         * config/srclistvars.sh: Add defaults for eggert.
112559         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112560         Match "This program" as well as "The program".  This is needed
112561         for gettext.
112563 2003-07-14  Jim Meyering  <jim@meyering.net>
112565         Don't emit diagnostics.  Let callers do that.
112566         * lib/save-cwd.c: Don't include "error.h".
112567         (save_cwd): Don't call error.  Ensure that errno is valid
112568         when returning nonzero.
112570         * lib/save-cwd.h (restore_cwd): Update prototype.
112571         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112572         Simplify.  Don't call error upon failure.  Let callers do that.
112573         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112574         when auditing is enabled.  But don't bother updating the #if.
112576 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112578         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112579         it breaks C++ compilation.
112580         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112582 2003-07-10  Simon Josefsson  <jas@extundo.com>
112584         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112586 2003-07-10  Jim Meyering  <jim@meyering.net>
112588         * m4/clock_time.m4: Remove trailing blank.
112589         * m4/intmax_t.m4: Likewise.
112591 2003-07-10  Jim Meyering  <jim@meyering.net>
112593         * lib/vasnprintf.c: Remove trailing blanks.
112594         Make cpp indentation consistent.
112596 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112598         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112599         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112600         Switch from LGPL to GPL.
112602 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112604         * config/srclist.txt: Sort sublists.  Add
112605         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112606         that differ from gnulib for one reason or another; we'd like this list
112607         to be smaller but for now let's document what we have.
112609 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112611         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112612         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112613         and sweeter "eval x=$x".
112614         * config/srclist.txt: Get lib/argp* from glibc.
112616 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112618         * lib/mktime.c: Fix some boundary cases and remove need for floating
112619         point.
112621         Issue a compile-time diagnostic if time_t is floating point, or if
112622         two's complement arithmetic is not in effect, or if arithmetic
112623         right shift does not propagate the sign.  These assumptions were
112624         all in the original code but they weren't checked.
112626         (TIME_T_MIDPOINT, verify): New macros.
112627         (__isleap): Remove; it has integer overflow problems.
112628         (leapyear): New function, without those problems.
112629         (ydhms_tm_diff): Remove; splitting into two parts.
112630         (ydhms_diff): New function, containing the arithmetic part of
112631         the old ydhms_tm_diff function.  Issue a compile-time
112632         diagnostic if we are not using C99 integer division.
112633         Avoid casts when possible.
112634         (guess_time_tm): New function, containing the checking part of
112635         the old ydhms_tm_diff function.  Return the new value, rather than
112636         the difference between it and the old.  Accept a new argument T
112637         so that *T specifies the old value.  Check for overflow in the result.
112639         (__mktime_internal): Use a time_t offset, not a long int offset.
112640         This undoes the 2003-06-04 change, which is no longer needed now
112641         that we have better overflow checking.
112642         (localtime_offset): Likewise.
112644         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112645         and long are 64-bit but int is only 32-bit.
112646         (ydhms_diff): Use long int to store year1 and yday1.
112647         Issue a compile-time diagnostic if long int is not wide enough.
112649         (__mktime_internal): Use long int to store adjusted year and yday.
112650         Use plain C rather than preprocessor commands, if that doesn't
112651         affect efficiency.
112652         Check for overflow (and try to repair) after each probe
112653         rather than checking only at the very end.  This avoids some bugs
112654         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112655         does not equal GMT offset at maximum time).
112656         Use integer to check for overflow rather than floating point; this
112657         is more portable to non-IEEE hosts, and is a tad faster.
112658         When we detect that we are oscillating between two values,
112659         don't check whether tm_isdst has the requested value, since
112660         we already know the answer.  When tm_isdst has the wrong value,
112661         use a different heuristic to find the right one, based on the
112662         extreme values actually observed in practice in tz2003a,
112663         rather than the (overly optimistic) "previous 3 calendar quarters".
112665         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112666         "T const" to accommodate glibc style.
112667         (check_result): Use less-confusing report format.  "long" -> "long int.
112668         (main): Likewise.
112669         Don't loop if the iteration overflows time_t.
112670         Allow a negative step in the iteration.
112672 2003-07-06  Karl Berry  <karl@gnu.org>
112674         * config/depcomp: update from automake.
112675         * config/config.sub: update from prep.
112677 2003-07-03  Karl Berry  <karl@gnu.org>
112679         * config/config.guess: update from prep.
112681 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112683         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112684         xreadlink.c now includes it unconditionally.
112686 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112688         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112689         having it depend on HAVE_SYS_TYPES_H.
112691 2003-07-01  Bruno Haible  <bruno@clisp.org>
112693         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112694         <sys/types.h> should be sufficient.
112695         Reported by Paul Eggert.
112697 2003-06-26  Karl Berry  <karl@gnu.org>
112699         * config/depcomp: update from automake.
112701 2003-06-26  Bruno Haible  <bruno@clisp.org>
112703         * modules/human: Depend on module stdbool.
112705 2003-06-25  Bruno Haible  <bruno@clisp.org>
112707         * modules/readlink: New file.
112708         * modules/xreadlink: Depend on it.
112709         * MODULES.html.sh (func_all_modules): Add readlink.
112711 2003-06-25  Bruno Haible  <bruno@clisp.org>
112713         * m4/readlink.m4: New file.
112715 2003-06-25  Bruno Haible  <bruno@clisp.org>
112717         * lib/readlink.c: New file.
112719 2003-06-22  Karl Berry  <karl@gnu.org>
112721         * config/srclist.txt: update mkinstalldirs from automake.
112722         * config/mkinstalldirs: update.
112724 2003-06-22  Bruno Haible  <bruno@clisp.org>
112726         Portability to mingw32.
112727         * m4/ssize_t.m4: New file, from GNU gettext.
112728         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112729         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112731 2003-06-22  Bruno Haible  <bruno@clisp.org>
112733         * modules/safe-read: Add m4/ssize_t.m4.
112734         * modules/xreadlink: Add m4/ssize_t.m4.
112736 2003-06-20  Bruno Haible  <bruno@clisp.org>
112738         Assume C89, so PARAMS isn't needed.
112739         * lib/unicodeio.h (PARAMS): Remove.
112740         * lib/unicodeio.c: Don't use PARAMS.
112742 2003-06-18  Karl Berry  <karl@gnu.org>
112744         * config/config.{guess,sub}: update from prep.
112746 2003-06-18  Jim Meyering  <jim@meyering.net>
112748         Merge changes from coreutils.
112749         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112750         Remove explicit declarations of xmalloc and realloc.
112751         Include xalloc.h.
112752         (read_utmp): Remove anachronistic cast of xmalloc.
112754 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112756         Assume C89, so PARAMS isn't needed.
112757         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112758         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112759         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112760         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112761         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112762         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112763         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112764         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112765         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112766         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112767         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112768         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112769         no longer needed. Anyway, config.h should always be included before any
112770         other file.
112772 2003-06-11  Simon Josefsson  <jas@extundo.com>
112774         * modules/sysexits: New file.
112775         * MODULES.html.sh (func_all_modules): Add sysexits.
112777 2003-06-11  Simon Josefsson  <jas@extundo.com>
112779         * lib/sysexit_.h: New file.
112781 2003-06-11  Derek Price  <derek@ximbiot.com>
112783         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112784         necessary.
112786 2003-06-11  Bruno Haible  <bruno@clisp.org>
112788         * m4/sysexits.m4: New file.
112790 2003-06-10  Simon Josefsson  <jas@extundo.com>
112792         * lib/argp.h: New file, from glibc.
112793         * lib/argp-ba.c: New file, from glibc.
112794         * lib/argp-eexst.c: New file, from glibc.
112795         * lib/argp-fmtstream.c: New file, from glibc.
112796         * lib/argp-fmtstream.h: New file, from glibc.
112797         * lib/argp-fs-xinl.c: New file, from glibc.
112798         * lib/argp-help.c: New file, from glibc.
112799         * lib/argp-namefrob.h: New file, from glibc.
112800         * lib/argp-parse.c: New file, from glibc.
112801         * lib/argp-pv.c: New file, from glibc.
112802         * lib/argp-pvh.c: New file, from glibc.
112803         * lib/argp-xinl.c: New file, from glibc.
112805 2003-06-10  Simon Josefsson  <jas@extundo.com>
112807         * modules/strchrnul: New file.
112809 2003-06-10  Simon Josefsson  <jas@extundo.com>
112811         * modules/argp: New file.
112813 2003-06-10  Simon Josefsson  <jas@extundo.com>
112815         * m4/strchrnul.m4: New file.
112817 2003-06-10  Simon Josefsson  <jas@extundo.com>
112819         * lib/strchrnul.h: New file.
112820         * lib/strchrnul.c: New file.
112822 2003-06-10  Bruno Haible  <bruno@clisp.org>
112824         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112826 2003-06-07  Karl Berry  <karl@gnu.org>
112828         * config/config.{guess,sub}: update from prep.
112830 2003-06-07  Jim Meyering  <jim@meyering.net>
112832         * modules/strtod: Use $(...) notation, not @...@ for
112833         AC_REPLACE'd variables.
112834         * modules/localcharset: Likewise.
112836 2003-06-07  Jim Meyering  <jim@meyering.net>
112838         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112839         in place of my name in the copyright comment.
112840         Remove definition and uses of __P.
112842         From coreutils.
112843         * lib/stat.c: Don't declare xmalloc explicitly.
112844         Instead, include "xalloc.h".
112845         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112846         xrealloc, and xcalloc return values.
112847         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112848         Improve comment.
112849         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112851 2003-06-07  Bruno Haible  <bruno@clisp.org>
112853         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112854         avoid AC_CONFIG_LINKS.
112855         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112856         fnmatch.h, to avoid AC_CONFIG_LINKS.
112857         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112859 2003-06-07  Bruno Haible  <bruno@clisp.org>
112861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112862         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112863         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112864         directory.
112865         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112866         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112867         directory.
112869 2003-06-06  Jim Meyering  <jim@meyering.net>
112871         Merge from coreutils.
112872         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112873         Consolidate declarations and initializations of *_base* locals.
112875         Merge from coreutils.
112876         This avoids a core dump on systems without GNU putenv,
112877         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112878         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112879         (unsetenv): New static function, from GNU libc.
112880         (rpl_putenv): Use it.
112882         * lib/modechange.c: Remove trailing blanks.
112884         Merge from coreutils.
112885         * lib/fsusage.c: Remove declaration of statfs.
112886         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112888         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112890 2003-06-06  Jim Meyering  <jim@meyering.net>
112892         * lib/stdbool_.h: Renamed from stdbool.h.in.
112894 2003-06-06  Jim Meyering  <jim@meyering.net>
112895             Bruno Haible  <bruno@clisp.org>
112897         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112898         Adjust Makefile.am snippet not to redirect directly to target.
112899         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112901 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112903         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112904         mismatch, look in future quarters as well as past.  This fixes a
112905         bug when processing fall-backwards gaps immediately after a long
112906         period of daylight-saving time.
112908         * lib/mktime.c: Assume freestanding C89 or better.
112909         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112910         (__P): Remove; not used.
112911         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112912         (mktime, not_equal_tm, print_tm, check_result,
112913         main): Use prototypes.  Use const * where appropriate.
112914         (main): Fix typo in testing code that uncovered by above changes.
112915         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112917 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112919         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112920         locale.h, localeconv.  This merges changes from coreutils.
112922         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112923         It can be removed after the next Autoconf is released.
112924         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112925         needed.
112927 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112929         * lib/mktime.c: Fix Debian bug 177940
112930         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112931         (localtime_offset): Now long int, not time_t, because we want it
112932         to be guaranteed to be signed.  All uses changed.
112933         (__mktime_internal): If overflow would occur when adding offset,
112934         don't add it.
112936         Merge 'human' changes from coreutils.  Rewrite to support
112937         locale-specific notations like thousands separators.
112938         * lib/human.c: Simplify authorship notice.
112939         Include human.h immediately after config.h.
112940         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112941         <limits.h>: Do not include, since human.h does.
112942         (SIZE_MAX, UINTMAX_MAX): New macros.
112943         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112944         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112945         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112946         (power_letter): Renamed from suffixes.
112947         (generate_suffix_backwards): Remove.
112948         (adjust_value): Now takes int style (because of human.h changes)
112949         and long double value (for greater precision on some platforms).
112950         (group_number): New function.
112951         (human_readable): Use it.  Use integer options, not enum.
112952         Put the options before the sizes in the arg list.
112953         Support all the new options.
112954         The old human_readable function has been removed;
112955         use inttostr.h instead.
112956         (human_readable, default_block_size, humblock):
112957         Use uintmax_t, not int, for block sizes.
112958         (human_readable_inexact, block_size_types): Remove.
112959         (block_size_opts): New constant.
112960         (human_options): Renamed from human_block_size, with new signature
112961         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112962         * lib/human.h: Add copyright and authorship notice.
112963         Include <limits.h> and <stdbool.h> unconditionally.
112964         (PARAMS): Remove.  All uses removed.
112965         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112966         (enum human_inexact_style): Remove tag; now a nameless enum.
112967         (human_floor, human_ceiling, human_round_to_even): Now have
112968         values 2, 0, 1 rather than -1, 1, 0.
112969         (human_group_digits, human_suppress_point_zero, human_autoscale,
112970         human_base_1024, human_SI, human_B): New constants.
112971         (human_readable_inexact, human_block_size): Remove.
112972         (human_readable): Size args are now uintmax_t, not int.
112973         (human_options): New decl.
112975         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112976         unnecessary now that we assume C89 or better.  This change
112977         imported from coreutils.
112979         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112980         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112981         in the 2003-05-30 sync from glibc.
112983         .h files should stand alone, but we shouldn't include <sys/types.h>
112984         if we can get away with just <stddef.h>.
112986         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112987         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112988         rather than <sys/types.h>, as we merely need size_t.
112989         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112990         to get size_t.
112991         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112992         Include <stdio.h>, to get FILE.
112993         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112994         memcasecmp.h has included <stddef.h> and all we need is size_t.
112995         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112996         our interface, instead of including <sys/types.h>
112998 2003-06-04  Paul Eggert  <eggert@twinsun.com>
113000         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
113001         now, as glibc mktime is buggy on non-glibc systems.
113003 2003-06-03  Karl Berry  <karl@gnu.org>
113005         * config/config.sub: update from prep.
113007 2003-06-02  Paul Eggert  <eggert@twinsun.com>
113009         [from coreutils]
113010         Fix some minor time-related bugs with POSIX time arguments.
113011         Some valid time stamps were being rejected (notably -1, and
113012         time stamps before 1900 on 64-bit hosts).  And some invalid
113013         time stamps were being accepted, e.g. September 31.
113015         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
113016         that we can return (time_t) -1 successfully.
113017         * lib/posixtm.c: Likewise.
113018         [HAVE_STDBOOL_H]: Include <stdbool.h>.
113019         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
113020         (t): Remove static var.
113021         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
113022         of static var.  All uses changed.
113023         (year): Do not reject years before 1900; they can occur with
113024         64-bit time_t.
113025         (posix_time_parse): Do not check for out-of-range components;
113026         that is now the caller's responsibility, since our checks were
113027         only approximations.
113028         (posixtime): Use mktime to check for out-of-range components,
113029         since it knows them exactly.
113030         If mktime returns (time_t) -1, check whether an error actually occurred
113031         by invoking localtime on -1.
113032         (main) [TEST_POSIXTIME]: Check for input data errors, and report
113033         posixtime failures better.
113034         Improve the test data (in comments only).
113036 2003-06-02  Karl Berry  <karl@gnu.org>
113038         * config/mkinstalldirs (version): new variable.
113039         (--version): new option.
113040         (usage): improve message.
113042 2003-05-30  Karl Berry  <karl@gnu.org>
113044         * lib/mktime.c: update from libc.
113046 2003-05-30  Bruno Haible  <bruno@clisp.org>
113048         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
113049         * config/config.rpath: Upgrade to gettext-0.12.1.
113051 2003-05-30  Bruno Haible  <bruno@clisp.org>
113053         * m4/gettext.m4: Upgrade to gettext-0.12.1.
113054         * m4/nls.m4: New file, from gettext-0.12.1.
113055         * m4/po.m4: New file, from gettext-0.12.1.
113056         * m4/progtest.m4: Upgrade to gettext-0.12.1.
113058 2003-05-30  Bruno Haible  <bruno@clisp.org>
113060         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
113061         * lib/localcharset.h: Likewise.
113062         * lib/localcharset.c: Likewise.
113064 2003-05-29  Karl Berry  <karl@gnu.org>
113066         * config/config.rpath: update from gettext.
113068 2003-05-28  Paul Eggert  <eggert@twinsun.com>
113070         Assume the headers required for C89 freestanding compilers.
113071         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
113072         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
113073         * m4/human.m4 (gl_HUMAN): Likewise.
113074         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
113075         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
113076         * m4/userspec.m4 (gl_USERSPEC): Likewise.
113077         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
113078         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
113079         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
113081 2003-05-28  Paul Eggert  <eggert@twinsun.com>
113083         Assume the headers required for C89 freestanding compilers.
113084         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
113085         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
113086         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
113087         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
113088         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
113089         define, since <limits.h> is guaranteed to do that.
113090         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
113091         * lib/exclude.c: Include <stdbool.h> unconditionally.
113092         * lib/tempname.c: Include <stddef.h> unconditionally.
113093         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
113094         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
113095         <stddef.h> does that.
113096         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
113097         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
113098         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
113099         needed.
113100         * lib/xstrtol.c: Likewise.
113101         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
113102         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
113104         * lib/addext.c (addext): Use assignment rather than cast, to avoid
113105         warnings on some platforms.
113107         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
113108         arbitrarily.
113110 2003-05-26  Jim Meyering  <jim@meyering.net>
113112         Merge in a change from coreutils:
113113         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
113114         that is guaranteed to be `no'.  Use `no_such_member' to indicate
113115         that condition, rather than `-1' which is slightly misleading.
113116         Change the name of the cache variable to have the gl_ prefix.
113117         Prompted by a patch from Richard Dawe for DJGPP.
113119 2003-05-24  Karl Berry  <karl@gnu.org>
113121         * config/config.guess: update from prep.
113123 2003-05-22  Karl Berry  <karl@gnu.org>
113125         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
113127 2003-05-20  Karl Berry  <karl@gnu.org>
113129         * config/config.guess: update from prep.
113131 2003-05-18  Karl Berry  <karl@gnu.org>
113133         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
113134         might actually be set by the user.
113136         * config/depcomp, install-sh, mdate-sh: update from automake.
113138 2003-05-17  Bruno Haible  <bruno@clisp.org>
113140         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
113141         invalid expansion for AC_EGREP_CPP.
113142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
113143         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
113144         Suggested by Akim Demaille <akim@epita.fr> in
113145         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
113147 2003-05-12  Jim Meyering  <jim@meyering.net>
113149         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
113150         the space-padded-by-default conversion specifiers, %e, %k, %l.
113152 2003-05-12  Bruno Haible  <bruno@clisp.org>
113154         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
113155         the string is longer than 4 KB.
113157 2003-05-11  Karl Berry  <karl@gnu.org>
113159         * config/config.{guess,sub}: update from prep.
113161 2003-05-09  Bruno Haible  <bruno@clisp.org>
113163         * modules/error: Add m4/strerror_r.m4 to file list.
113165 2003-05-03  Bruno Haible  <bruno@clisp.org>
113167         Upgrade to Unicode-4.0.
113168         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
113169         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
113170         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
113171         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
113172         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
113173         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
113174         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
113175         Change width of U+E0100..U+E01EF from 1 to 0.
113177 2003-04-25  Jim Meyering  <jim@meyering.net>
113179         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
113180         of type size_t, not int.
113182 2003-04-25  Bruno Haible  <bruno@clisp.org>
113184         * lib/copy-file.c: Include <stddef.h>, for size_t.
113186 2003-04-21  Paul Eggert  <eggert@twinsun.com>
113188         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
113189         code which expansion is under static control.  Patch imported from
113190         Akim Demaille's patch to Bison; see
113191         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
113193 2003-04-14  Bruno Haible  <bruno@clisp.org>
113195         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
113197 2003-04-11  Jim Meyering  <jim@meyering.net>
113199         Merge changes from Coreutils.
113201         2003-03-22  Jim Meyering  <jim@meyering.net>
113203         * lib/strftime.c (widen): Cast alloca return value to proper type.
113205         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
113207         From GNU libc.
113208         * lib/strftime.c (my_strftime): Handle very large width
113209         specifications for numeric values correctly.  Improve checks for
113210         overflow.
113212         2003-01-19  Jim Meyering  <jim@meyering.net>
113214         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
113215         definitions.
113216         (nl_get_alt_digit) [! defined my_strftime]: Define.
113217         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
113218         _nl_get_alt_digit and _nl_get_walt_digit.
113220         * lib/strftime.c (my_strftime): Merge in locale-related changes from
113221         libc. These changes have no effect outside of _LIBC.
113223 2003-04-10  Bruno Haible  <bruno@clisp.org>
113225         * modules/findprog: New file.
113226         * MODULES.html.sh (func_all_modules): Add it.
113228 2003-04-10  Bruno Haible  <bruno@clisp.org>
113230         * m4/findprog.m4: New file.
113231         * m4/eaccess.m4: New file.
113233 2003-04-10  Bruno Haible  <bruno@clisp.org>
113235         * lib/findprog.h: New file, from GNU gettext.
113236         * lib/findprog.c: New file, from GNU gettext.
113238 2003-04-05  Jim Meyering  <jim@meyering.net>
113240         Merge changes from Coreutils.
113242         * lib/exclude.h (PARAMS): Remove definition and uses.
113243         * lib/exclude.c: Remove uses of `PARAMS'.
113245         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
113246         Add test-cases for DOS filenames. Declare program_name.
113247         (main): Set up program_name.  Patch by Rich Dawe.
113249         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
113250         error from mntctl.
113251         Use mntctl's return value to drive the entry-processing loop, since
113252         we can't rely on the value of the vmt_length member in the last
113253         entry.  On some systems doing so could result in exhausting
113254         virtual memory.  Based in part on a patch from Mike Jetzer.
113256 2003-04-04  Bruno Haible  <bruno@clisp.org>
113258         * modules/linebreak: New file.
113259         * MODULES.html.sh (func_all_modules): Add it.
113261 2003-04-04  Bruno Haible  <bruno@clisp.org>
113263         * m4/linebreak.m4: New file.
113265 2003-04-04  Bruno Haible  <bruno@clisp.org>
113267         * lib/linebreak.h: New file, from GNU gettext.
113268         * lib/linebreak.c: New file, from GNU gettext with slight
113269         modifications.
113270         * lib/lbrkprop.h: New file, from GNU gettext.
113272 2003-04-03  Bruno Haible  <bruno@clisp.org>
113274         * modules/utf8-ucs4: New file.
113275         * modules/utf16-ucs4: New file.
113276         * modules/ucs4-utf8: New file.
113277         * modules/ucs4-utf16: New file.
113278         * MODULES.html.sh (func_all_modules): Add them.
113280 2003-04-03  Bruno Haible  <bruno@clisp.org>
113282         * m4/utf-ucs4.m4: New file.
113283         * m4/ucs4-utf.m4: New file.
113285 2003-04-03  Bruno Haible  <bruno@clisp.org>
113287         * lib/utf8-ucs4.h: New file, from GNU gettext.
113288         * lib/utf16-ucs4.h: New file, from GNU gettext.
113289         * lib/ucs4-utf8.h: New file, from GNU gettext.
113290         * lib/ucs4-utf16.h: New file, from GNU gettext.
113292 2003-04-02  Bruno Haible  <bruno@clisp.org>
113294         * modules/binary-io: New file.
113295         * MODULES.html.sh (func_all_modules): Add it.
113297 2003-04-02  Bruno Haible  <bruno@clisp.org>
113299         * lib/binary-io.h: New file, from GNU gettext.
113301 2003-04-01  Bruno Haible  <bruno@clisp.org>
113303         * modules/pathname: New file.
113304         * MODULES.html.sh (func_all_modules): Add it.
113306 2003-04-01  Bruno Haible  <bruno@clisp.org>
113308         * lib/pathname.h: New file, from GNU gettext.
113309         * lib/concatpath.c: New file, from GNU gettext.
113311 2003-03-30  Bruno Haible  <bruno@clisp.org>
113313         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
113315 2003-03-30  Bruno Haible  <bruno@clisp.org>
113317         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
113318         function chown() doesn't exist.
113320 2003-03-28  Bruno Haible  <bruno@clisp.org>
113322         * modules/copy-file: New file.
113323         * MODULES.html.sh (func_all_modules): Add it.
113325 2003-03-28  Bruno Haible  <bruno@clisp.org>
113327         * m4/copy-file.m4: New file.
113329 2003-03-28  Bruno Haible  <bruno@clisp.org>
113331         * lib/copy-file.h: New file, from GNU gettext.
113332         * lib/copy-file.c: New file, from GNU gettext.
113334 2003-03-18  Jim Meyering  <jim@meyering.net>
113336         * lib/quote.c (quote_n): Fix typo in comment.
113338 2003-03-18  Bruno Haible  <bruno@clisp.org>
113340         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
113341         checking.
113342         * m4/onceonly_2_57.m4: Likewise.
113344 2003-03-17  Bruno Haible  <bruno@clisp.org>
113346         * m4/onceonly.m4: Require autoconf 2.54 or newer.
113347         (m4_quote): Remove macro.
113348         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
113350 2003-03-14  Jim Meyering  <jim@meyering.net>
113352         Merge changes from Coreutils.
113353         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
113354         to be const, in order to avoid warnings.
113355         (obstack_room): Likewise.
113356         (obstack_empty_p): Likewise.
113358 2003-03-14  Bruno Haible  <bruno@clisp.org>
113360         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113361         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113363 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113365         Merge changes from Bison.
113366         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113367         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113368         when compiling Bison 1.875's `bitset bset = obstack_alloc
113369         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113370         * lib/hash.c: Include <stdbool.h> unconditionally.
113372 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113374         * m4/onceonly.m4 (m4_quote): New macro.
113375         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113376         Quote AC_FOREACH variable-expansions properly.
113378 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113380         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113382 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113384         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113385         Reported by Bruce Becker; see:
113386         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113388 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113389             Bruno Haible  <bruno@clisp.org>
113391         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113392         Reported by John Hughes, see
113393         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113395 2003-02-20  Bruno Haible  <bruno@clisp.org>
113397         * MODULES.html.sh (func_all_modules): Add poll.
113399 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113401         * modules/poll: New file.
113403 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113405         * lib/poll_.h: New file.
113406         * lib/poll.c: New file.
113408 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113410         * m4/poll.m4: New file.
113412 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113414         * modules/mathl: New file.
113416 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113418         * lib/mathl.h: New file.
113419         * lib/acosl.c: New file.
113420         * lib/asinl.c: New file.
113421         * lib/atanl.c: New file.
113422         * lib/ceill.c: New file.
113423         * lib/cosl.c: New file.
113424         * lib/expl.c: New file.
113425         * lib/floorl.c: New file.
113426         * lib/frexpl.c: New file.
113427         * lib/ldexpl.c: New file.
113428         * lib/logl.c: New file.
113429         * lib/sincosl.c: New file.
113430         * lib/sinl.c: New file.
113431         * lib/sqrtl.c: New file.
113432         * lib/tanl.c: New file.
113433         * lib/trigl.c: New file.
113434         * lib/trigl.h: New file.
113436 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113438         * m4/mathl.m4: New file.
113440 2003-02-18  Bruno Haible  <bruno@clisp.org>
113442         * MODULES.html.sh (func_all_modules): Add mathl.
113444 2003-02-17  Bruno Haible  <bruno@clisp.org>
113446         * modules/mkdtemp: New module.
113447         * MODULES.html.sh (func_all_modules): Add it.
113449 2003-02-17  Bruno Haible  <bruno@clisp.org>
113451         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113453 2003-02-17  Bruno Haible  <bruno@clisp.org>
113455         * lib/mkdtemp.h: New file, from GNU gettext.
113456         * lib/mkdtemp.c: New file, from GNU gettext.
113458 2003-02-02  Jim Meyering  <jim@meyering.net>
113460         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113461         e.g. glibc-2.2.93.
113463 2003-01-31  Bruno Haible  <bruno@clisp.org>
113465         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113466         'rpl_rename'.
113467         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113468         'rpl_strnlen'.
113469         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113470         'rpl_strtod'.
113471         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113472         'rpl_utime'.
113474 2003-01-31  Bruno Haible  <bruno@clisp.org>
113476         * lib/rename.c: #undef rename before defining rpl_rename.
113477         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113479 2003-01-30  Bruno Haible  <bruno@clisp.org>
113481         * modules/vasnprintf, modules/vasprintf: New modules.
113482         * MODULES.html.sh (func_all_modules): Add them.
113484 2003-01-30  Bruno Haible  <bruno@clisp.org>
113486         * m4/signed.m4: New file, from GNU gettext.
113487         * m4/longdouble.m4: New file, from GNU gettext.
113488         * m4/wchar_t.m4: New file, from GNU gettext.
113489         * m4/wint_t.m4: New file, from GNU gettext.
113490         * m4/vasnprintf.m4: New file.
113491         * m4/vasprintf.m4: New file.
113493 2003-01-30  Bruno Haible  <bruno@clisp.org>
113495         * lib/printf-args.h: New file, from GNU gettext.
113496         * lib/printf-args.c: New file, from GNU gettext.
113497         * lib/printf-parse.h: New file, from GNU gettext.
113498         * lib/printf-parse.c: New file, from GNU gettext.
113499         * lib/vasnprintf.h: New file, from GNU gettext.
113500         * lib/vasnprintf.c: New file, from GNU gettext.
113501         * lib/asnprintf.c: New file, from GNU gettext.
113502         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113503         * lib/vasprintf.c: New file, from GNU gettext.
113504         * lib/asprintf.c: New file, from GNU gettext.
113506 2003-01-29  Bruno Haible  <bruno@clisp.org>
113508         * modules/stpncpy: New module.
113509         * MODULES.html.sh (func_all_modules): Add it.
113511 2003-01-29  Bruno Haible  <bruno@clisp.org>
113513         * m4/stpncpy.m4: New file.
113515 2003-01-29  Bruno Haible  <bruno@clisp.org>
113517         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113518         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113520 2003-01-28  Bruno Haible  <bruno@clisp.org>
113522         * modules/c-ctype: New module.
113523         * MODULES.html.sh (func_all_modules): Add it.
113525 2003-01-28  Bruno Haible  <bruno@clisp.org>
113527         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113528         Paul Eggert.
113529         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113530         Paul Eggert.
113532 2003-01-27  Bruno Haible  <bruno@clisp.org>
113534         * modules/xsetenv: New module.
113535         * MODULES.html.sh (func_all_modules): Add it.
113537 2003-01-27  Bruno Haible  <bruno@clisp.org>
113539         * lib/xsetenv.h: New file, from GNU gettext.
113540         * lib/xsetenv.c: New file, from GNU gettext.
113542 2003-01-23  Jim Meyering  <jim@meyering.net>
113544         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113545         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113547 2003-01-23  Bruno Haible  <bruno@clisp.org>
113549         * modules/minmax: New module.
113550         * MODULES.html.sh (func_all_modules): Add it.
113552 2003-01-23  Bruno Haible  <bruno@clisp.org>
113554         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113555         Eggert.
113557 2003-01-22  Bruno Haible  <bruno@clisp.org>
113559         * modules/exit: New module.
113560         * MODULES.html.sh (func_all_modules): Add it.
113562 2003-01-22  Bruno Haible  <bruno@clisp.org>
113564         * lib/exit.h: New file, from GNU gettext.
113566 2003-01-19  Bruno Haible  <bruno@clisp.org>
113568         * gnulib-tool: Recognize option --extract-maintainer.
113569         (func_get_maintainer): New function.
113570         * modules/*: Add Maintainer entry.
113572 2003-01-16  Jim Meyering  <jim@meyering.net>
113574         * m4/regex.m4: The `regex' struct is both input and output.
113575         Initialize it before each use.  Patch by Tim Waugh.
113577 2003-01-16  Bruno Haible  <bruno@clisp.org>
113579         * MODULES.html.sh: Add a table of contents. Add the module name as
113580         leftmost column. Add hyperlinks.
113582 2003-01-15  Bruno Haible  <bruno@clisp.org>
113584         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113586 2003-01-15  Bruno Haible  <bruno@clisp.org>
113588         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113589         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113590         suffix.
113592 2003-01-15  Bruno Haible  <bruno@clisp.org>
113594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113596 2003-01-15  Bruno Haible  <bruno@clisp.org>
113598         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113599         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113601 2003-01-14  Jim Meyering  <jim@meyering.net>
113603         * lib/same.c (same_name): Tweak a comment.
113605 2003-01-14  Bruno Haible  <bruno@clisp.org>
113607         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113608         when a string comparison is sufficient.
113610 2003-01-14  Bruno Haible  <bruno@clisp.org>
113612         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113613         'unsigned int'.
113615 2003-01-14  Bruno Haible  <bruno@clisp.org>
113617         * lib/hash-pjw.c: Add comment about low quality of this function.
113619 2003-01-13  Bruno Haible  <bruno@clisp.org>
113621         * modules/stpcpy: Distribute lib/stpcpy.h.
113622         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113624 2003-01-13  Bruno Haible  <bruno@clisp.org>
113626         * modules/*: Add a description.
113627         * modules/strpbrk: Fix Makefile.am snippet.
113628         * modules/strtoimax: Fix dependencies.
113629         * modules/strtoumax: Likewise.
113631 2003-01-13  Bruno Haible  <bruno@clisp.org>
113633         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113634         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113635         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113637 2003-01-13  Bruno Haible  <bruno@clisp.org>
113639         * gnulib-tool (func_create_testdir): Store config/* files in the main
113640         directory.
113641         * config.rpath: Move to ...
113642         * config/config.rpath: ... here.
113643         * modules/gettext: Contains config/config.rpath, not config.rpath.
113644         * modules/iconv: Likewise.
113646 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113648         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113649         to avoid collisions with libcurses and libreadline.
113651         * m4/getstr.m4: Remove.
113652         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113654 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113656         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113657         to avoid collisions with libcurses and libreadline.
113659         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113660         * lib/getstr.h, getstr.c: Remove.
113661         * lib/getline.c: Include "getline.h", to check interface.
113662         Move body of old getstr.c here: this defines MIN_CHUNK and
113663         declares getdelim2, which is renamed from getstr.
113664         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113666         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113667         All uses changed.
113668         * lib/linebuffer.h: Likewise.
113669         (readline): Remove backward-compatibility macro.
113671 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113673         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113674         to avoid collisions with libcurses and libreadline.
113675         * getstr: Remove.
113676         * MODULES.html.sh: Remove getstr.
113677         * modules/getline: Depend on unlocked-io, not getstr.
113679 2003-01-12  Jim Meyering  <jim@meyering.net>
113681         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113683 2003-01-10  Bruno Haible  <bruno@clisp.org>
113685         * modules/alloca: Change Makefile.am requirements. Simplify Include
113686         requirements. Add lib/alloca_.h to file list.
113688 2003-01-10  Bruno Haible  <bruno@clisp.org>
113690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113692 2003-01-10  Bruno Haible  <bruno@clisp.org>
113694         * lib/alloca_.h: New file.
113695         * lib/getdate.y: Unconditionally include alloca.h.
113696         * lib/makepath.c: Likewise.
113697         * lib/setenv.c: Likewise.
113698         * lib/userspec.c: Likewise.
113700 2003-01-09  Karl Berry  <karl@gnu.org>
113702         * MODULES.html.sh: include `dirname $0` in PATH, to find
113703         gnulib-tool.
113705 2003-01-09  Bruno Haible  <bruno@clisp.org>
113707         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113708         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113710 2003-01-09  Bruno Haible  <bruno@clisp.org>
113712         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113714 2003-01-09  Bruno Haible  <bruno@clisp.org>
113716         * lib/stdbool.h.in: New file.
113718 2003-01-09  Bruno Haible  <bruno@clisp.org>
113720         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113721         * MODULES.html.sh: Likewise.
113723 2003-01-08  Jim Meyering  <jim@meyering.net>
113725         * lib/full-write.c: Undefine and define-away `const' after inclusion
113726         of errno.h, not before.  Suggestion from Bruno Haible.
113728 2003-01-08  Bruno Haible  <bruno@clisp.org>
113730         * modules/full-read: Depend on full-write.
113732 2003-01-08  Bruno Haible  <bruno@clisp.org>
113734         * lib/safe-read.c: Include specification header first, to ensure its
113735         selfcontainedness.
113736         * lib/full-write.c: Likewise.
113738 2003-01-07  Jim Meyering  <jim@meyering.net>
113740         * lib/full-write.c: Rework so that it may serve to define full_read,
113741         too.
113742         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113744 2003-01-07  Bruno Haible  <bruno@clisp.org>
113746         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113747         <inttypes.h>.
113748         * lib/xstrtol.h: Likewise.
113749         * lib/xstrtoimax.c: Likewise.
113750         * lib/xstrtoumax.c: Likewise.
113751         * lib/human.h: Likewise.
113753         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113754         on systems that have <inttypes.h> but not <stdint.h>.
113756 2003-01-07  Bruno Haible  <bruno@clisp.org>
113758         * MODULES.html.sh: Add copyright notice.
113759         (missed_files): Omit CVS directory entries.
113760         (func_module): Make it work with sed-3.02.
113761         * MODULES.txt: Remove file.
113763 2003-01-06  Jim Meyering  <jim@meyering.net>
113765         * lib/version-etc.c: Update year in translatable copyright string.
113767 2003-01-03  Karl Berry  <karl@gnu.org>
113769         * config/config.{guess,sub}: update from prep.
113771 2003-01-02  Karl Berry  <karl@gnu.org>
113773         * doc/COPYING.DOC: belatedly updated to 1.2.
113775 2003-01-01  Karl Berry  <karl@gnu.org>
113777         * gnulib-tool (func_verify_module): report module name $module in
113778         error message, not $1.
113779         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113780         be created, only if it doesn't exist.
113781         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113783 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113785         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113787 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113789         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113790         memcmp if strcoll doesn't work.
113792 2002-12-31  Bruno Haible  <bruno@clisp.org>
113794         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113795         nonempty.
113797 2002-12-31  Bruno Haible  <bruno@clisp.org>
113799         * lib/memcoll.c (STRCOLL): New macro.
113800         (memcoll): Use it.
113802 2002-12-31  Bruno Haible  <bruno@clisp.org>
113804         * lib/localcharset.h: New file.
113805         * lib/localcharset.c: Include it.
113806         * lib/unicodeio.c: Likewise.
113808 2002-12-31  Bruno Haible  <bruno@clisp.org>
113810         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113811         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113813 2002-12-31  Bruno Haible  <bruno@clisp.org>
113815         * lib/getline.h: Include <stddef.h>, for size_t.
113817         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113818         * lib/unicodeio.c: Don't include <stddef.h>.
113820 2002-12-31  Bruno Haible  <bruno@clisp.org>
113822         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113823         HAVE_TM_ZONE.
113825 2002-12-24  Karl Berry  <karl@gnu.org>
113827         * config/config.guess: update from prep.
113829 2002-12-24  Bruno Haible  <bruno@clisp.org>
113831         General infrasructure.
113832         * m4/README: Rewritten.
113833         * m4/onceonly.m4: New file.
113834         * m4/onceonly_2_57.m4: New file.
113836         Module atexit.
113837         * m4/atexit.m4: New file.
113839         Module strtod.
113840         * m4/strtod.m4: New file.
113842         Module strtol.
113843         * m4/strtol.m4: New file.
113845         Module strtoul.
113846         * m4/strtoul.m4: New file.
113848         Module memchr.
113849         * m4/memchr.m4: New file.
113851         Module memcmp.
113852         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113853         (jm_FUNC_MEMCMP): Invoke it.
113855         Module memcpy.
113856         * m4/memcpy.m4: New file.
113858         Module memmove.
113859         * m4/memmove.m4: New file.
113861         Module memset.
113862         * m4/memset.m4: New file.
113864         Module strcspn.
113865         * m4/strcspn.m4: New file.
113867         Module strpbrk.
113868         * m4/strpbrk.m4: New file.
113870         Module strstr.
113871         * m4/strstr.m4: New file.
113873         Module strerror.
113874         * m4/strerror.m4: New file.
113876         Module mktime.
113877         * m4/mktime.m4: Renamed from jm-mktime.m4.
113878         (gl_PREREQ_MKTIME): New macro.
113879         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113881         Module malloc.
113882         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113883         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113884         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113886         Module realloc.
113887         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113888         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113889         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113891         Module strftime.
113892         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113893         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113894         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113895         gl_TM_GMTOFF.
113896         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113898         Module xalloc.
113899         * m4/xalloc.m4: New file.
113901         Module alloca.
113902         * m4/alloca.m4: New file.
113904         Module putenv.
113905         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113906         (jm_FUNC_PUTENV): Invoke it.
113908         Module setenv.
113909         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113910         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113911         when invoked twice.
113912         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113913         gt_FUNC_SETENV.
113915         Module memrchr.
113916         * m4/memrchr.m4: New file.
113918         Module stpcpy.
113919         * m4/stpcpy.m4: New file.
113921         Module strcase.
113922         * m4/strcase.m4: New file.
113924         Module strdup.
113925         * m4/strdup.m4: New file.
113927         Module strnlen.
113928         * m4/strnlen.m4: New file.
113930         Module strndup.
113931         * m4/strndup.m4: New file.
113933         Module xstrtod.
113934         * m4/xstrtod.m4: New file.
113936         Module xstrtol.
113937         * m4/xstrtol.m4: New file.
113939         Module getdate.
113940         * m4/getdate.m4: New file.
113942         Module unlocked-io.
113943         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113944         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113945         * m4/jm-glibc-io.m4n: Remove file.
113947         Module long-options.
113948         * m4/long-options.m4: New file.
113950         Module md5.
113951         * m4/md5.m4: New file.
113953         Module sha.
113954         * m4/sha.m4: New file.
113956         Module getstr.
113957         * m4/getstr.m4: New file.
113959         Module getline.
113960         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113961         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113962         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113963         simply getline. Infoke gl_PREREQ_GETLINE.
113965         Module obstack.
113966         * m4/obstack.m4: New file.
113968         Module hash.
113969         * m4/hash.m4: New file.
113971         Module readtokens.
113972         * m4/readtokens.m4: New file.
113974         Module strverscmp.
113975         * m4/strverscmp.m4: New file.
113977         Module stdbool.
113978         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113979         OSF/1.
113981         Module strtoll.
113982         * m4/strtoll.m4: New file.
113984         Module strtoull.
113985         * m4/strtoull.m4: New file.
113987         Module strtoimax.
113988         * m4/strtoimax.m4: New file.
113990         Module strtoumax.
113991         * m4/strtoumax.m4: New file.
113993         Module xstrtoimax.
113994         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113995         jm_AC_PREREQ_XSTRTOIMAX.
113996         Moved the strtol prerequisites to strtol.m4.
113997         Moved the strtoll prerequisites to strtoll.m4.
113998         Moved the strtoimax prerequisites to strtoimax.m4.
114000         Module xstrtoumax.
114001         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
114002         jm_AC_PREREQ_XSTRTOUMAX.
114003         Moved the strtoul prerequisites to strtoul.m4.
114004         Moved the strtoull prerequisites to strtoull.m4.
114005         Moved the strtoumax prerequisites to strtoumax.m4.
114007         Module chown.
114008         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
114009         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
114011         Module dup2.
114012         * m4/dup2.m4: New file.
114014         Module ftruncate.
114015         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
114016         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
114018         Module getgroups.
114019         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
114020         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
114022         Module gettimeofday.
114023         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
114024         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
114025         gl_PREREQ_GETTIMEOFDAY.
114027         Module mkdir.
114028         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
114029         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
114031         Module mkstemp.
114032         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
114033         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
114034         jm_AC_TYPE_UINTMAX_T.
114035         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
114037         Module stat.
114038         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
114039         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
114041         Module lstat.
114042         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
114043         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
114045         Module timespec.
114046         * m4/timespec.m4 (gl_TIMESPEC): New macro.
114047         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
114048         * m4/st_mtim.m4: Indentation.
114050         Module nanosleep.
114051         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
114052         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
114053         gl_PREREQ_NANOSLEEP.
114055         Module regex.
114056         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
114057         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
114058         (gl_REGEX): New macro.
114060         Module rename.
114061         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
114062         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
114064         Module rmdir.
114065         * m4/rmdir.m4: New file.
114067         Module utime.
114068         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
114069         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
114070         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
114072         Module dirname.
114073         * m4/dirname.m4: New file.
114075         Module getopt.
114076         * m4/getopt.m4: New file.
114078         Module unistd-safer.
114079         * m4/unistd-safer.m4: New file.
114081         Module fnmatch.
114082         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
114083         declaration.
114084         (gl_PREREQ_FNMATCH_EXTRA): New macro.
114085         (gl_FUNC_FNMATCH_POSIX): New macro.
114086         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
114087         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
114088         simply fnmatch.
114090         Module exclude.
114091         * m4/exclude.m4: New file.
114093         Module human.
114094         * m4/human.m4: New file.
114096         Module acl.
114097         * m4/acl.m4: Nop.
114099         Module backupfile.
114100         * m4/backupfile.m4: New file.
114101         * m4/d-ino.m4: Indentation.
114103         Module fsusage.
114104         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
114105         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
114106         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
114108         Module dirfd.
114109         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
114110         requirements.
114112         Module euidaccess.
114113         * m4/euidaccess.m4: New file.
114115         Module file-type.
114116         * m4/file-type.m4: New file.
114118         Module fileblocks.
114119         * m4/fileblocks.m4: New file.
114121         Module filemode.
114122         * m4/filemode.m4: New file.
114124         Module isdir.
114125         * m4/isdir.m4: New file.
114127         Module lchown.
114128         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
114129         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
114131         Module makepath.
114132         * m4/makepath.m4: New file.
114134         Module modechange.
114135         * m4/modechange.m4: New file.
114137         Module mountlist.
114138         * m4/mountlist.m4: New file.
114139         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
114140         Indentation.
114142         Module path-concat.
114143         * m4/path-concat.m4: New file.
114145         Module pathmax.
114146         * m4/pathmax.m4: New file.
114148         Module same.
114149         * m4/same.m4: New file.
114151         Module save-cwd.
114152         * m4/save-cwd.m4: New file.
114154         Module savedir.
114155         * m4/savedir.m4: New file.
114157         Module xgetcwd.
114158         * m4/xgetcwd.m4: New file.
114159         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
114161         Module xreadlink.
114162         * m4/xreadlink.m4: New file.
114164         Module safe-read.
114165         * m4/safe-read.m4: New file.
114167         Module safe-write.
114168         * m4/safe-write.m4: New file.
114170         Module closeout.
114171         * m4/closeout.m4: New file.
114173         Module stdio-safer.
114174         * m4/stdio-safer.m4: New file.
114176         Module getpass.
114177         * m4/getpass.m4: New file.
114179         Module getugroups.
114180         * m4/getugroups.m4: New file.
114182         Module group-member.
114183         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
114184         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
114186         Module idcache.
114187         * m4/idcache.m4: New file.
114189         Module userspec.
114190         * m4/userspec.m4: New file.
114192         Module gettime.
114193         * m4/clock_time.m4: New file.
114194         * m4/gettime.m4: New file.
114196         Module settime.
114197         * m4/settime.m4: New file.
114199         Module posixtm.
114200         * m4/posixtm.m4: New file.
114202         Module gethostname.
114203         * m4/gethostname.m4: New file.
114205         Module canon-host.
114206         * m4/canon-host.m4: New file.
114208         Module gettext.
114209         * m4/codeset.m4: New file, from gettext-0.11.5.
114210         * m4/gettext.m4: New file, from gettext-0.11.5.
114211         * m4/glibc21.m4: New file, from gettext-0.11.5.
114212         * m4/iconv.m4: New file, from gettext-0.11.5.
114213         * m4/intdiv0.m4: New file, from gettext-0.11.5.
114214         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
114215         * m4/inttypes.m4: New file, from gettext-0.11.5.
114216         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
114217         * m4/isc-posix.m4: New file, from gettext-0.11.5.
114218         * m4/lcmessage.m4: New file, from gettext-0.11.5.
114219         * m4/lib-ld.m4: New file, from gettext-0.11.5.
114220         * m4/lib-link.m4: New file, from gettext-0.11.5.
114221         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
114222         * m4/progtest.m4: New file, from gettext-0.11.5.
114223         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
114224         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
114225         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
114227         Module localcharset.
114228         * m4/localcharset.m4: New file.
114230         Module hard-locale.
114231         * m4/hard-locale.m4: New file.
114233         Module mbswidth.
114234         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
114235         onceonly macros.
114236         * m4/mbrtowc.m4: Add comment.
114238         Module memcasecmp.
114239         * m4/memcasecmp.m4: New file.
114241         Module memcoll.
114242         * m4/memcoll.m4: New file.
114244         Module unicodeio.
114245         * m4/unicodeio.m4: New file.
114247         Module rpmatch.
114248         * m4/rpmatch.m4: New file.
114250         Module yesno.
114251         * m4/yesno.m4: New file.
114253         Module exitfail.
114254         * m4/exitfail.m4: New file.
114256         Module c-stack.
114257         * m4/c-stack.m4 (gl_C_STACK): New macro.
114258         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
114260         Module error.
114261         * m4/error.m4 (gl_ERROR): New macro.
114262         (jm_PREREQ_ERROR): Use onceonly macros.
114264         Module fatal.
114265         * m4/fatal.m4: New file.
114267         Module getloadavg.
114268         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
114269         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
114271         Module getpagesize.
114272         * m4/getpagesize.m4: New file.
114274         Module getusershell.
114275         * m4/getusershell.m4: New file.
114277         Module physmem.
114278         * m4/physmem.m4: New file.
114280         Module posixver.
114281         * m4/posixver.m4: New file.
114283         Module quotearg.
114284         * m4/quotearg.m4: New file.
114286         Module quote.
114287         * m4/quote.m4: New file.
114289         Module readutmp.
114290         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
114292         Module sig2str.
114293         * m4/sig2str.m4: New file.
114295         Other.
114296         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
114297         ulonglong.m4.
114298         * m4/intmax_t.m4: New file.
114299         * m4/d-type.m4: Indentation.
114300         * m4/jm-macros.m4: Update.
114301         * m4/prereq.m4 (jm_PREREQ): Update.
114302         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
114303         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
114304         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
114305         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
114306         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
114307         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
114308         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
114309         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
114310         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
114311         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
114312         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
114313         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
114314         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
114315         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
114316         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
114317         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
114318         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
114319         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
114320         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
114322 2002-12-24  Bruno Haible  <bruno@clisp.org>
114324         * MODULES.txt: Update according to m4/ changes.
114326         Module gettext.
114327         * config.rpath: New file, from gettext-0.11.5.
114329         * modules/*: New module descriptions.
114330         * gnulib-tool: New file.
114331         * MODULES.html.sh: New file.
114333 2002-12-21  Karl Berry  <karl@gnu.org>
114335         * doc/fdl.texi: update to version 1.2.
114337 2002-12-19  Karl Berry  <karl@gnu.org>
114339         * config/config.guess: update from prep.
114341 2002-12-18  Bruno Haible  <bruno@clisp.org>
114343         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
114344         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
114346 2002-12-17  Bruno Haible  <bruno@clisp.org>
114348         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
114349         stdlib.h, string.h.
114351 2002-12-17  Bruno Haible  <bruno@clisp.org>
114353         * lib/canon-host.c (strdup): Remove unused declaration.
114355         * lib/fsusage.c: Include full_read.h.
114356         (get_fs_usage): Use full_read instead of safe_read.
114358         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114360 2002-12-12  Karl Berry  <karl@gnu.org>
114362         * config/config.guess: update from prep.
114364 2002-12-11  Bruno Haible  <bruno@clisp.org>
114366         * m4/setenv.m4: New file, from gettext-0.11.5.
114368 2002-12-11  Bruno Haible  <bruno@clisp.org>
114370         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114371         not unsetenv().
114372         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114373         modifications:
114375         2002-12-11  Bruno Haible  <bruno@clisp.org>
114377                 * setenv.c (alloca): Fall back to malloc.
114378                 (freea): New macro.
114379                 (setenv): Use freea() to free memory allocated with alloca().
114381         2002-11-13  Bruno Haible  <bruno@clisp.org>
114383                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114384                 function declarations.
114385                 * unsetenv.c (unsetenv): Likewise.
114387         2002-03-04  Bruno Haible  <bruno@clisp.org>
114389                 Portability to AIX 4.3.3.
114390                 * unsetenv.c: New file, extracted from setenv.c.
114391                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114393         2001-12-20  Bruno Haible  <bruno@clisp.org>
114395                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114396                 use malloc instead. For SunOS 4.
114398         2001-12-11  Bruno Haible  <bruno@clisp.org>
114400                 * setenv.c: Declare alloca.
114401                 (compar_fn_t): New typedef.
114402                 (KNOWN_VALUE, STORE_VALUE): Use it.
114404         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114405         setenv.h.
114407 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114409         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114410         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114411         Choose values that are less likely to collide with system fnmatch
114412         options.
114413         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114414         defined (e.g., a pure POSIX system).
114415         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114416         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114418 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114420         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114421         a pain in practice to deal with generated m4 files.  This change
114422         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114424         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114425         and jm-glibc-io.m4, as they are no longer a special case.
114426         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114427         kludge and the auto-generation stuff.  Check only whether the
114428         functions are declared, not whether they exist, since older hosts
114429         that don't declare the functions can't use the optimization anyway.
114431 2002-12-06  Jim Meyering  <jim@meyering.net>
114433         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114435         Merge in changes from libc's misc/error.c, in preparation
114436         for the merge of gnulib's changes back into libc.
114438         * lib/error.c (_): Define only if not already defined.
114439         Move definition to follow all #include directives.
114440         Include unlocked-io.h only if !_LIBC.
114441         [_LIBC]: Include <libio/libioP.h>.
114442         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114443         (fflush): Tweak definition to use INTUSE.
114444         (putc): Define.
114446 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114448         * lib/alloca.c [defined emacs]: Include "lisp.h".
114449         (xalloc_die) [defined emacs]: New macro.
114450         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114451         [! defined emacs]: Include <xalloc.h>.
114452         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114453         (pointer): Typedef to POINTER_TYPE *.
114454         (malloc): Remove decl; we now always use xmalloc.
114455         (alloca): Use old-style definition, since Emacs needs this.
114456         Check for arithmetic overflow when computing combined size.
114458 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114460         Do not generate unlocked-io.h automatically, since it's easier to
114461         maintain it by hand.
114463         * lib/unlocked-io.h: New file, from GNU diffutils,
114464         but with proper copyright notice and attribution.
114465         * lib/gen-uio: Remove.
114466         * lib/Makefile.am: Add copyright notice.
114467         (libfetish_a_SOURCES): Add unlocked-io.h.
114468         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114469         (DISTCLEANFILES, io_functions): Remove macros.
114470         (EXTRA_DIST): Remove gen_uio.
114471         (unlocked-io.h): Remove rule.
114473 2002-12-04  Jim Meyering  <jim@meyering.net>
114475         Reflect the fact that stat.c and lstat.c are no longer generated.
114476         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114477         (DISTCLEANFILES): Likewise.
114478         (EXTRA_DIST): Likewise.
114479         (all_local): Don't depend on stat.c or lstat.c.
114480         (stat.c, lstat.c): Remove rules.
114481         (EXTRA_DIST): Remove xstat.in.
114483         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114484         * lib/stat.c: New file.  Contents mostly from xstat.in.
114485         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114486         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114488         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114489         too.
114490         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114492 2002-12-03  Jim Meyering  <jim@meyering.net>
114494         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114495         but not semantics, to minimize the differences between these two files.
114496         (safe_read): Change comment to mention SAFE_READ_ERROR.
114498         * lib/safe-read.c (IS_EINTR): Define.
114499         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114501 2002-12-02  Jim Meyering  <jim@meyering.net>
114503         * lib/safe-read.c (EINTR): Define.
114504         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114505         (INT_MAX): Provide fallback.
114506         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114508         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114510 2002-12-02  Bruno Haible  <bruno@clisp.org>
114512         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114513         Define, taken from safe-read.c.
114514         (INT_MAX): Provide fallback.
114515         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114516         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114518         * lib/safe-read.c (EINTR): Remove definition.
114519         (safe_read): Don't use EINTR if it is absent.
114521 2002-12-01  Jim Meyering  <jim@meyering.net>
114523         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114524         zero.
114525         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114527 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114529         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114530         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114531         with `if (! (value < limit)) abort ();', for readability.
114533 2002-11-26  Karl Berry  <karl@gnu.org>
114535         * lib/strdup.c: copy from libc again, with jim's ok.
114536         * lib/.cppi-disable: re-add strdup.c
114538 2002-11-25  Karl Berry  <karl@gnu.org>
114540         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114541         instead of "strtol.c".
114543 2002-11-25  Karl Berry  <karl@gnu.org>
114545         * config/install-sh: update from automake for variable quoting, $0 in
114546         error msgs, etc.
114548         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114549         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114550         entry.
114552 2002-11-25  Jim Meyering  <jim@meyering.net>
114554         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114556 2002-11-24  Karl Berry  <karl@gnu.org>
114558         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114559         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114561 2002-11-24  Jim Meyering  <jim@meyering.net>
114563         Update from coreutils:
114565         * lib/mktime.c: Merge in changes from libc.
114567         Avoid a link-time failure on some Linux systems.
114568         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114569         (otherwise).
114570         (__mon_yday): Declare with the STATIC attribute.
114571         (__mktime_internal): Likewise.
114572         Based on a report from Greg Schafer.
114574 2002-11-23  Jim Meyering  <jim@meyering.net>
114576         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114577         Use `unsigned', not `int', as type of index.
114579         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114581         * lib/fsusage.c: Remove unneeded parentheses around operands of
114582         `defined'.
114584 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114586         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114587         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114588         so that we can be included first.
114589         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114590         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114591         No need to include stddef.h or sys/types.h any more.
114592         Surround local include files with "", not "<>".
114593         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114594         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114595         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114596         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114597         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114598         (ISPRINT): Remove; no longer needed now that we assume C89.
114600         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114601         Preserve errno.
114603         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114604         quotearg_char): Use SIZE_MAX rather than
114605         (size_t) -1 when we are talking about "infinity".
114607         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114609 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114611         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114612         hint that one should use `if (! x) abort ();' rather than `assert
114613         (x);', and anyway it's one less thing to worry about configuring.
114614         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114615         hash_rehash, hash_insert): Use abort rather than assert.
114617 2002-11-22  Bruno Haible  <bruno@clisp.org>
114619         * lib/safe-read.h: Assume C89. Add comments.
114620         (safe_read): Change return type to size_t.
114621         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114622         byte counts > SSIZE_MAX correctly.
114623         * lib/safe-write.h: New file.
114624         * lib/safe-write.c: New file.
114625         * lib/full-read.h: New file.
114626         * lib/full-read.c: New file.
114627         * lib/full-write.h: Assume C89. Add comments.
114628         * lib/full-write.c: Include safe-write.h.
114629         (full_write): Rewritten to use safe_write.
114630         Suggested by Jim Meyering and Paul Eggert.
114632 2002-11-21  Jim Meyering  <jim@meyering.net>
114634         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114636         Merge in changes from the coreutils.
114638         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114639         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114640         <stdint.h>.
114641         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114642         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114643         int.  Work more efficiently if X is the same width as uintmax_t.
114644         Do not compare X to -1, to avoid bogus compiler warning.
114645         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114646         Don't assume that f_frsize and f_bsize are the same type.
114648         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114649         warning on FreeBSD.
114651         * lib/makepath.c (make_path): Restore umask *before* creating the final
114652         component.
114653         (make_path): Minor reformatting.
114655         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114656         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114657         HAVE_MALLOC/HAVE_REALLOC.
114659         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114660         dummy ones.  At least on GNU/Linux systems, `auto' means something
114661         else.
114662         From Michael Stone.
114664 2002-11-21  Bruno Haible  <bruno@clisp.org>
114666         Remove case insensitive option matching.
114667         * lib/argmatch.h (argcasematch): Remove declaration.
114668         (ARGCASEMATCH): Remove macro.
114669         (__xargmatch_internal): Remove case_sensitive argument.
114670         (XARGMATCH): Update.
114671         (XARGCASEMATCH): Remove macro.
114672         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114673         case_sensitive argument.
114674         (argcasematch): Remove function.
114675         (__xargmatch_internal): Remove case_sensitive argument.
114676         (main): Use XARGMATCH instead of XARGCASEMATCH.
114678         * lib/xmalloc.c: Change compile-time error message. Add comment about
114679         required autoconf version.
114681 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114683         Merge argmatch cleanups from Bison.  Assume C89.
114685         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114686         Include stdlib.h, for EXIT_FAILURE.
114687         Always include <string.h>, since we assume C89.
114688         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114689         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114690         Include <stddef.h> instead, since it's all we need for size_t.
114691         (PARAMS): Remove.  All uses removed.
114692         (ARRAY_CARDINALITY): Do not bother to #undef.
114693         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114694         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114695         Remove unnecessary parentheses.
114696         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114697         Insert necessary parentheses.
114698         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114699         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114701 2002-11-19  Bruno Haible  <bruno@clisp.org>
114703         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114704         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114706         * lib/mbswidth.h (PARAMS): Remove macro.
114707         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114708         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114710         * lib/gcd.h (PARAMS): Remove macro.
114711         (gcd): Use ANSI C function declarations.
114712         * lib/gcd.c (gcd): Likewise.
114714 2002-11-15  Bruno Haible  <bruno@clisp.org>
114716         * lib/strcspn.c: Include <stddef.h>.
114717         (strcspn): Use ANSI C function declaration. Change return type to
114718         size_t. Use NULL.
114719         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114720         (strpbrk): Use NULL.
114721         * lib/strpbrk.h (PARAMS): Remove macro.
114722         (strpbrk): Use ANSI C function declaration.
114723         * lib/strstr.c: Don't include <sys/types.h>.
114724         * lib/strstr.h (PARAMS): Remove macro.
114725         (strstr): Use ANSI C function declarations.
114727 2002-11-14  Karl Berry  <karl@gnu.org>
114729         * config/mkinstalldirs: `do' on separate line, instead of
114730         `for var; do'.
114732 2002-11-06  Bruno Haible  <bruno@clisp.org>
114734         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114735         * lib/gcd.c (gcd): Likewise.
114737 2002-11-05  Bruno Haible  <bruno@clisp.org>
114739         * lib/gcd.h: New file, from gettext-0.11.5.
114740         * lib/gcd.c: New file, from gettext-0.11.5.
114742 2002-11-05  Bruno Haible  <bruno@clisp.org>
114744         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114745         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114746         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114747         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114749         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114750         <libintl.h>.
114751         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114752         <libintl.h>.
114754         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114755         * lib/human.c: Include gettext.h instead of <libintl.h>.
114756         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114757         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114758         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114759         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114760         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114761         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114762         (textdomain): Remove definition.
114763         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114765         * lib/long-options.c: Remove include of <libintl.h> and definition of
114766         _.
114767         * lib/same.c: Remove include of <libintl.h> and definition of _.
114769 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114771         * lib/config.charset: A few additions for Solaris.
114773 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114775         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114776         * lib/localcharset.c (locale_charset): Declare as extern "C".
114778 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114780         * lib/config.charset: msdos in uk_UA uses CP1125.
114782 2002-11-04  Bruno Haible  <bruno@clisp.org>
114784         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114785         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114786         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114787         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114788         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114790 2002-11-04  Bruno Haible  <bruno@clisp.org>
114792         * lib/localcharset.c (locale_charset): Don't return an empty string.
114794 2002-11-04  Bruno Haible  <bruno@clisp.org>
114796         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114797         aliases.
114799 2002-11-04  Bruno Haible  <bruno@clisp.org>
114801         * lib/config.charset: Update for newest glibc. Add canonical names
114802         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114804 2002-11-04  Bruno Haible  <bruno@clisp.org>
114806         * lib/config.charset: Add support for NetBSD.
114808 2002-11-04  Bruno Haible  <bruno@clisp.org>
114810         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114812 2002-11-01  Bruno Haible  <bruno@clisp.org>
114814         * configure.in: Add AC_CONFIG_AUX_DIR call.
114815         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114816         test/Makefile.
114817         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114819 2002-09-28  Karl Berry  <karl@gnu.org>
114821         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114822         installed automake until the next release, since changes have been
114823         made.
114825 2002-09-25  Karl Berry  <karl@gnu.org>
114827         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114828         * lib/getopt*: copy from libc/posix.
114829         * lib/gettext.h: copy from gettext.
114830         * lib/.cppi-disable: add strdup.c, gettext.h.
114832 2002-09-25  Karl Berry  <karl@gnu.org>
114834         * config/srclist.txt: enable gettext.h check.
114835         * config/config.{guess,sub}: update from prep.
114836         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114837                 from automake 1.6.3.
114838         See srclist*.
114840 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114842         * regex.c (PATFETCH): Remove the translating fetch.
114843         (PATFETCH_RAW): Rename to PATFETCH.
114844         (set_image_of_range): New fun.
114845         (SET_RANGE_TABLE_WORK_AREA): Use it.
114846         (regex_compile): Don't translate the pattern chars so eagerly.
114847         Only do it when inserting an `exactn' bytecode or when handling
114848         a char-range.
114849         (mutually_exclusive_p): Avoid empty statement.
114851 2002-07-06  Jim Meyering  <meyering@lucent.com>
114853         * m4/README: Don't mention Makefile.am.in.
114854         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114856 2002-07-01  Jim Meyering  <meyering@lucent.com>
114858         * lib/c-stack.c: Include sys/time.h.
114859         From Volker Borchert.
114861 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114865 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114867         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114868         New macro.  Use it uniformly instead of
114869         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114870         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114871         reported by Vin Shelton.
114873 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114875         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114876         Do not assume SA_SIGINFO behavior.
114877         Bug reported by Jim Meyering on NetBSD 1.5.2.
114879 2002-06-22  Jim Meyering  <meyering@lucent.com>
114881         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114885         now that configure.ac uses AC_GNU_SOURCE.
114886         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114887         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114889         Update to latest tools.  Suggestions from Paul Eggert.
114890         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114891         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114892         * m4/fnmatch.m4: Likewise.
114893         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114894         to AC_HEADER_STDBOOL
114896 2002-06-22  Jim Meyering  <meyering@lucent.com>
114898         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114899         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114901 2002-06-22  Jim Meyering  <meyering@lucent.com>
114903         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114905         * lib/exitfail.c, exitfail.h: Likewise.
114906         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114908         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114909         of fnmatch.h.
114910         (EXTRA_DIST): Add fnmatch_loop.c.
114911         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114913         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114914         * lib/fnmatch.c: Update from diffutils-2.8.2.
114915         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114916         * lib/fnmatch.h: Remove file.
114918 2002-06-21  Jim Meyering  <meyering@lucent.com>
114920         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114921         * m4/mbrtowc.m4: Likewise.
114923         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114924         * m4/mbswidth.m4: Reflect name change:
114925         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114926         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114928         * m4/lib-link.m4: Update from gettext-0.11.2.
114929         * m4/gettext.m4: Likewise.
114931         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114932         From Alfred M. Szmidt.
114934 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114936         * lib/file-type.h: Report an error if neither S_ISREG nor
114937         S_IFREG is defined, instead of using a test specific to glibc
114938         2.2.  This should be safe, since POSIX requires S_ISREG and
114939         Unix Version 7 had S_IFREG.  We don't need to check for
114940         <sys/types.h> since we don't use any symbols that it defines.
114942 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114944         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114945         $@-t, so that each temporary file name is unique and valid in the first
114946         8 characters, for operation under DOS.
114948 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114952 2002-06-15  Jim Meyering  <meyering@lucent.com>
114954         Work even with DJGPP 2.03, which lacks support for symlinks.
114955         From Richard Dawe.
114956         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114957         is defined.
114958         * lib/lchown.c (S_ISLNK): Likewise.
114960 2002-06-15  Jim Meyering  <meyering@lucent.com>
114962         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114963         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114964         have been included before this file.
114966 2002-06-14  Jim Meyering  <meyering@lucent.com>
114968         * lib/file-type.h: Use the version from diffutils-2.8.2.
114969         * lib/file-type.c: Likewise.
114971 2002-06-07  Jim Meyering  <meyering@lucent.com>
114973         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114974         They're needed at least for NetBSD 1.5.2.
114975         ($statxfs_includes): Include those same headers.
114976         ($statxfs_includes): Include sys/vfs.h if available.
114977         ($statxfs_includes): Likewise for sys/statvfs.h.
114978         Check for the following members in both structs statfs and statvfs:
114979         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114981 2002-06-01  Jim Meyering  <meyering@lucent.com>
114983         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114984         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114986 2002-05-28  Jim Meyering  <meyering@lucent.com>
114988         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114989         Reported by Volker Borchert.
114991 2002-05-27  Jim Meyering  <meyering@lucent.com>
114993         Fix a problem seen only on nonconforming systems whereby ls.c's
114994         use of localtime, and then of gettimeofday would cause trouble:
114995         the localtime call used to initialize rpl_gettimeofday's save
114996         mechanism would clobber ls's current local time information so
114997         that in any long listing the first file would always be listed
114998         with date 1970-01-01.  Analysis by Volker Borchert.
115000         * lib/gettimeofday.c (localtime): Undefine.
115001         (rpl_localtime): New function.
115003 2002-05-27  Jim Meyering  <meyering@lucent.com>
115005         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
115006         localtime.
115008         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
115009         use the replacement function; it wouldn't resolve at link time.
115010         Reported by Volker Borchert.
115012 2002-05-22  Jim Meyering  <meyering@lucent.com>
115014         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
115015         file-type.h.
115016         * lib/file-type.h: New file.
115017         * lib/file-type.c (file_type): New file/function.  Extracted from
115018         diffutils.
115020 2002-04-30  Jim Meyering  <meyering@lucent.com>
115022         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
115024 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115026         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
115028 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115030         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
115031         Do not check for alloca.h (no longer used) or stdbool.h (was never
115032         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
115034 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115036         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
115038 2002-04-29  Jim Meyering  <meyering@lucent.com>
115040         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
115041         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
115042         Use AC_FUNC_STRNLEN here instead.
115044         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
115045         With autoconf-2.53a, it's part of AC_PROG_CC.
115047 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115049         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
115050         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
115052 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115054         * lib/sig2str.h, lib/sig2str.c: New files.
115055         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
115057 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115059         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
115060         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
115061         of 127, since 64 is the largest conceivable number for ancient
115062         nonstandard hosts.
115063         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
115065 2002-04-28  Jim Meyering  <meyering@lucent.com>
115067         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
115069 2002-04-24  Jim Meyering  <meyering@lucent.com>
115071         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
115072         (jm_PREREQ): Use it.
115074         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
115075         mach/mach.h fcntl.h.
115076         Check for this function: setlocale.
115078 2002-04-24  Jim Meyering  <meyering@lucent.com>
115080         * lib/gettext.h: New file, from Gettext.
115081         * lib/Makefile.am (INCLUDES): Remove -I../intl.
115082         (libfetish_a_SOURCES): Add gettext.h.
115084 2002-04-16  Jim Meyering  <meyering@lucent.com>
115086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
115087         ut_pid, ut_id, ut_exit.
115089 2002-04-16  Jim Meyering  <meyering@lucent.com>
115091         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
115092         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
115093         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
115095 2002-04-12  Jim Meyering  <meyering@lucent.com>
115097         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
115098         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
115099         existence of the getmntinfo function.  Needed for Darwin 5.3.
115101         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
115102         This is necessary at least on Darwin 5.3.
115104         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
115105         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
115106         strnlen.o in the library, and that makes some versions of ranlib
115107         object.
115109 2002-04-12  Jim Meyering  <meyering@lucent.com>
115111         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
115113 2002-04-09  Jim Meyering  <meyering@lucent.com>
115115         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
115116         to be more precise.  Rather than saying we're checking whether the
115117         function `works', say what we're testing.
115118         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
115119         Reported by Bruno Haible.
115121 2002-03-10  Jim Meyering  <meyering@lucent.com>
115123         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
115124         Suggestion from Santiago Vila.
115126 2002-03-08  Jim Meyering  <meyering@lucent.com>
115128         * lib/rename.c: Mention that this wrapper is needed also on
115129         mips-dec-ultrix4.4 systems.
115131 2002-03-02  Jim Meyering  <meyering@lucent.com>
115133         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
115134         not HAVE_CLOCK_SETTIME.
115136 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115138         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
115139         Check for clock_settime.
115141 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115143         * lib/nanosleep.h: Rename to....
115144         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
115146         * lib/gettime.c: New file.
115147         * lib/settime.c: New file.
115148         * lib/stime.c: Remove.
115150         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
115151         timespec.h.  Remove nanosleep.h.
115153 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115155         * m4/acl.m4: New file.
115156         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
115157         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
115159 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115161         * lib/acl.c, lib/acl.h: New files.
115162         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
115164 2002-02-24  Jim Meyering  <meyering@lucent.com>
115166         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
115167         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
115168         cause trouble.  Reported by Nelson Beebe.
115170 2002-02-23  Paul Eggert  <eggert@twinsun.com>
115172         * lib/path-concat.c (xpath_concat): Reorder code to pacify
115173         compilers that don't know that xalloc_die never returns.
115175 2002-02-20  Jim Meyering  <meyering@lucent.com>
115177         * lib/getdate.c: Regenerate using bison-1.33.
115179 2002-02-17  Jim Meyering  <meyering@lucent.com>
115181         * config/config.guess (main): Don't use `head -1'; it's no longer
115182         portable. Use `sed 1q' instead.
115184 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
115186         * m4/codeset.m4: Upgrade to gettext-0.11.
115187         * m4/gettext.m4: Upgrade to gettext-0.11.
115188         * m4/glibc21.m4: Upgrade to gettext-0.11.
115189         * m4/iconv.m4: Upgrade to gettext-0.11.
115190         * m4/isc-posix.m4: Upgrade to gettext-0.11.
115191         * m4/lcmessage.m4: Upgrade to gettext-0.11.
115192         * m4/lib-ld.m4: New file, from gettext-0.11.
115193         * m4/lib-link.m4: New file, from gettext-0.11.
115194         * m4/lib-prefix.m4: New file, from gettext-0.11.
115195         * m4/progtest.m4: Upgrade to gettext-0.11.
115197 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115199         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
115200         (jm_PREREQ): Use it.
115202 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115204         * lib/posixver.c, lib/posixver.h: New files.
115205         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115207 2002-02-02  Paul Eggert  <eggert@twinsun.com>
115208             Bruno Haible  <bruno@clisp.org>
115210         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
115211         (fwrite_success_callback): New declaration.
115212         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
115213         print_unicode_char. Call failure callback instead of error.
115214         (fwrite_success_callback): New function.
115215         (exit_failure_callback): New function.
115216         (fallback_failure_callback): New function.
115217         (print_unicode_char): Call unicode_to_mb.
115219 2002-01-26  Jim Meyering  <meyering@lucent.com>
115221         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
115222         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
115224 2002-01-26  Jim Meyering  <meyering@lucent.com>
115226         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
115228 2002-01-22  Paul Eggert  <eggert@twinsun.com>
115230         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
115232 2002-01-22  Jim Meyering  <meyering@lucent.com>
115234         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
115235         Otherwise, some versions of automake would omit the rule that makes
115236         Makefile from Makefile.in.
115238 2002-01-21  Paul Eggert  <eggert@twinsun.com>
115240         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
115241         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115242         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
115243         (memcoll): Set errno to zero if there is no error.
115245         * lib/quotearg.c (quotearg_buffer_restyled):
115246         Fix bug with quoting buffers containing NUL when backslashing escapes.
115247         This bug was exposed by the other changes in this patch.
115248         (quotearg_n_options): New arg ARGSIZE.
115249         All callers changed.
115250         (quoting_options_from_style): New function.
115251         (quotearg_n_style): Use it.
115252         (quotearg_n_style_mem): New function.
115254         * lib/quotearg.h (quotearg_n_style_mem): New function.
115256 2002-01-19  Jim Meyering  <meyering@lucent.com>
115258         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
115259         Remove useless quotes: DF_PROG="df".
115260         * m4/strnlen.m4: New file.
115262 2002-01-16  Paul Eggert  <eggert@twinsun.com>
115264         * lib/backupfile.c (ISDIGIT): Comment fix.
115265         * lib/getdate.y (ISDIGIT): Likewise.
115266         * lib/posixtm.c (ISDIGIT, year): Likewise.
115267         * lib/strverscmp.c (ISDIGIT): Likewise.
115268         * lib/userspec.c (ISDIGIT): Likewise.
115270 2002-01-16  Jim Meyering  <meyering@lucent.com>
115272         * lib/getdate.y: Add three semicolons, each just before a closing
115273         brace. Bison (as of version 1.31) no longer papers over that mistake.
115275 2002-01-05  Jim Meyering  <meyering@lucent.com>
115277         * lib/version-etc.c (version_etc_copyright): Update copyright year.
115279 2001-12-19  Paul Eggert  <eggert@twinsun.com>
115281         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
115282         not silently exit merely because the output buffer happens to
115283         have nothing pending.
115285 2001-12-18  Paul Eggert  <eggert@twinsun.com>
115287         See the big note in ../ChangeLog.
115288         * lib/human.c (suffixes): Prefer K to k for 1024.
115289         (generate_suffix_backwards): New function.
115290         (human_readable_inexact): Use it.
115291         * lib/xstrtol.c (__xstrtol): If there is no number but there
115292         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
115293         Accept 'K' as well as 'k'.
115295 2001-12-15  Jim Meyering  <meyering@lucent.com>
115297         * lib/regex.h (__restrict_arr): Update from libc.
115299         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
115300         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
115301         (STREQ): Define.
115303 2001-12-14  Jim Meyering  <meyering@lucent.com>
115305         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
115306         Suggestion from Bruno Haible.
115308 2001-12-10  Jim Meyering  <meyering@lucent.com>
115310         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
115311         xrealloc, Instead, include "xalloc.h".
115312         (initbuffer): Don't cast xmalloc return value to char*.
115313         (readline): Reword comment.
115314         Don't cast xrealloc return value to char*
115315         Return NULL, not 0.
115317 2001-12-09  Jim Meyering  <meyering@lucent.com>
115319         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
115320         about `signed and unsigned type in conditional expression'.
115321         * lib/posixtm.c (posix_time_parse): Likewise.
115323         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
115325         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
115326         to avoid a pedantic warning.
115328         * lib/getstr.c: Don't include assert.h.
115329         (getstr): Remove warning-evoking assertions.
115330         Return -1 if offset parameter is out of bounds.
115331         Change the type of a local from int to size_t.
115333         * lib/strftime.c (my_strftime_localtime_r): Include this function
115334         definition in the `#if ! HAVE_TM_GMTOFF' block.
115336         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
115337         Include xalloc.h instead.
115339 2001-12-02  Jim Meyering  <meyering@lucent.com>
115341         * lib/tempname.c: Don't declare getenv, thus reverting the change of
115342         2001-11-18.  It's no longer necessary, now that stdlib.h is always
115343         included.
115345         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
115346         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
115348 2001-11-30  Akim Demaille  <akim@epita.fr>
115350         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
115351         before being defined.
115353 2001-11-27  Paul Eggert  <eggert@twinsun.com>
115355         * lib/quotearg.h (quotearg_n, quotearg_n_style):
115356         First arg is int, not unsigned.
115357         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115358         (SIZE_MAX, UINT_MAX): New macros.
115359         (quotearg_n_options): Abort if N is negative.
115360         Avoid overflow check on hosts where size_t is 64 bits and int
115361         is 32 bits, as overflow is impossible there.
115362         Fix off-by-one typo that caused unnecessary reallocation.
115364 2001-11-27  Jim Meyering  <meyering@lucent.com>
115366         * lib/tempname.c: Merge with version from libc.
115367         * lib/regex.c: Likewise.
115369         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115370         systems for which STDC_HEADERS is 0, it was not included, resulting in
115371         a warning about an integer-to-pointer conversion problem with getenv.
115372         Reported by Volker Borchert.
115374 2001-11-26  Jim Meyering  <meyering@lucent.com>
115376         * lib/gtod.h: Remove file.
115377         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115378         * lib/gettimeofday.c: Don't include gtod.h.
115379         (GTOD_init): Remove function.
115380         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115381         Suggestion from Volker Borchert.
115383 2001-11-23  Jim Meyering  <meyering@lucent.com>
115385         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115386         it.
115387         * lib/hash.c (struct hash_table): Define it here instead.
115389 2001-11-22  Jim Meyering  <meyering@lucent.com>
115391         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115393 2001-11-20  Jim Meyering  <meyering@lucent.com>
115395         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115396         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115398 2001-11-19  Jim Meyering  <meyering@lucent.com>
115400         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115401         directory.  Use "conftestXXXXXX" as the template.
115402         Suggestion from Paul Eggert.
115404         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115405         immediately, so the test doesn't mistakenly hit the max-open-files
115406         limit.
115408 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115410         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115411         (TEMPORARIES): New macro.
115412         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115413         removes an artificial limitation (e.g. HP-UX 10.20, where
115414         TMP_MAX is 17576).
115416 2001-11-18  Jim Meyering  <meyering@lucent.com>
115418         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115420 2001-11-18  Jim Meyering  <meyering@lucent.com>
115422         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115423         on SunOS 4.
115425         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115426         files will be created before anything else.
115428 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115430         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115431         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115433 2001-11-17  Jim Meyering  <meyering@lucent.com>
115435         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115436         Prompted by a report from Bob Proulx.
115438         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115439         Instead, require UTILS_FUNC_MKSTEMP.
115441 2001-11-17  Jim Meyering  <meyering@lucent.com>
115443         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115444         Now, that's done as part of AC_FUNC_STRTOD.
115446 2001-11-17  Jim Meyering  <meyering@lucent.com>
115448         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115449         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115450         rather than group writable.  Patch by Juan F. Codagnone.
115452         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115453         xrealloc, Instead, include "xalloc.h".
115455         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115456         Remove explicit declarations of xmalloc, xrealloc,
115457         and xstrdup.  Instead, include "xalloc.h".
115459         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115460         unlocked-io.h.
115461         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115462         Likewise.
115463         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115465         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115466         Reported by Padraig Brady.
115468         * lib/mkstemp.c: #undef mkstemp.
115469         Include config.h.
115470         (rpl_mkstemp): Rename from mkstemp.
115471         Protoize.
115473 2001-11-16  Jim Meyering  <meyering@lucent.com>
115475         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115476         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115477         determine the amount of total physical memory, use pstat_getstatic.
115478         HPUX-11 doesn't define _SC_PHYS_PAGES.
115479         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115480         If sysconf couldn't be used to determine the amount of available
115481         physical memory, use both pstat_getstatic and pstat_getdynamic.
115482         Based on a patch from Bob Proulx.
115484 2001-11-10  Jim Meyering  <meyering@lucent.com>
115486         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115487         (jm_PREREQ): Use it.
115489 2001-11-09  Jim Meyering  <meyering@lucent.com>
115491         * m4/jm-macros.m4: Require autoconf-2.52f.
115492         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115493         Use these AC_-prefixed names, not the AM_-prefixed ones.
115495         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115497 2001-11-05  Jim Meyering  <meyering@lucent.com>
115499         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115501 2001-11-04  Jim Meyering  <meyering@lucent.com>
115503         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115504         $DEFS.
115506 2001-11-03  Jim Meyering  <meyering@lucent.com>
115508         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115509         of AC_DEFUN.
115511         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115512         know the name of the variable in the macro definition.
115514 2001-11-03  Jim Meyering  <meyering@lucent.com>
115516         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115517         in argmatch_to_argument call.
115519         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115520         argument.
115522         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115523         e.g., a fault due to an attempt to free a NULL pointer.
115525 2001-11-01  Jim Meyering  <meyering@lucent.com>
115527         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115528         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115530 2001-11-01  Jim Meyering  <meyering@lucent.com>
115532         * lib/dirfd.c, lib/dirfd.h: New files.
115533         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115535         * lib/hash.c (hash_print) [TESTING]: Clean up.
115537 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115539         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115540         to avoid a warning if -Wall.
115542 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115544         * README: New file
115545         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115546         (per RMS's instructions, this is now the canonical source)
115547         * lgpl/, gpl/: New directories.
115549 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115551         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115553 2001-10-21  Jim Meyering  <meyering@lucent.com>
115555         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115556         this code would end up calling gettext even in packages built
115557         with --disable-nls.
115558         * lib/getopt.c (_): Likewise.
115559         * lib/regex.c (_): Likewise.
115561 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115563         * m4/error.m4 (jm_PREREQ_ERROR):
115564         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115565         AC_FUNC_STRERROR_R does that.
115566         Check for strerror declaration.
115568         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115569         are supposed to have them these days.
115570         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115571         Merge changes from latest Autoconf CVS.
115572         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115573         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115574         POSIX decided to standardize on the int flavor of strerror_r.
115576 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115578         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115579         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115580         Use strerror_r that is only a macro, even if it is not a function.
115581         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115582         (private_strerror): Use prototypes, not old-style function definition.
115583         (print_errno_message): New function.
115584         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115585         char*-flavored one.
115586         (error_tail, error, error_at_line): Use it.
115588 2001-10-11  Jim Meyering  <meyering@lucent.com>
115590         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115591         and quote_n (1, ... to avoid clobbering a buffer.
115593 2001-10-05  Jim Meyering  <meyering@lucent.com>
115595         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115596         hash-pjw.h.
115597         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115598         * lib/hash-pjw.h: New file.
115600 2001-09-30  Jim Meyering  <meyering@lucent.com>
115602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115603         `struct fsstat' has the `f_fstypename' member.
115604         Use that to define FS_TYPE, which is now used to make
115605         the getfsstat link test tighter.
115607 2001-09-30  Jim Meyering  <meyering@lucent.com>
115609         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115610         Include <sys/ucred.h>, for Apple Darwin.
115611         Include sys/mount.h and sys/fs_types.h only if available.
115612         (FS_TYPE): Define.
115613         (read_filesystem_list): Use FS_TYPE.
115615 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115617         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115618         a boolean context.
115620 2001-09-29  Jim Meyering  <meyering@lucent.com>
115622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115623         [one-argument getmntent function]): Include stdio.h before mntent.h.
115624         SunOS 4.1.x needs it for the declaration of `FILE'.
115625         Patch by Volker Borchert.
115627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115628         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115629         sys/fs_types.h, and make the link-test for getfsstat guard #include
115630         directives with appropriate #if HAVE_*_H tests so that we can
115631         detect getfsstat on Apple Darwin1.3.7 systems.
115632         Reported by Nelson Beebe.
115633         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115635 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115637         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115638         #defines strtoimax.  Also treat the other strto* functions
115639         like strtoimax.
115641         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115642         Check for strtoul and strtoumax,
115643         as those declarations are made even in the signed case.
115644         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115645         Likewise, for strtol and strtoimax.
115647 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115649         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115650         #defines strtoimax.  Also treat the other strto* functions
115651         like strtoimax.
115653         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115654         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115655         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115657 2001-09-26  Jim Meyering  <meyering@lucent.com>
115659         Most macros in unlocked-io.h had the wrong number of arguments.
115660         * lib/gen-uio: New script.
115661         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115662         * lib/unlocked-io.hin: Remove file.
115663         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115664         rather than trying to embed it here.
115665         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115666         Reported by Padraig Brady.
115668 2001-09-25  Volker Borchert  <bt@teknon.de>
115670         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115671         `result'.
115673 2001-09-24  Jim Meyering  <meyering@lucent.com>
115675         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115677 2001-09-23  Jim Meyering  <meyering@lucent.com>
115679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115680         instead of the mere test for existence of mntent.h.  The latter
115681         would get a false-positive on AIX 3.4 systems.
115682         In the outer getmntent if-block, don't die if neither of the getmntent
115683         tests succeeds.  Instead, just fall through and continue with the
115684         remaining tests.
115686 2001-09-23  Jim Meyering  <meyering@lucent.com>
115688         * lib/mountlist.c: Remove useless parentheses in #if directives.
115689         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115690         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115692 2001-09-22  Jim Meyering  <meyering@lucent.com>
115694         * m4/gettext.m4: New file.  From gettext.
115695         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115696         * m4/progtest.m4: Likewise
115697         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115698         * m4/glibc21.m4: Likewise.
115700         * m4/libintl.m4: Remove.  No longer used.
115702 2001-09-22  Jim Meyering  <meyering@lucent.com>
115704         * lib/localcharset.c: Update from latest gettext.
115705         * lib/config.charset: Likewise.
115707 2001-09-20  Jim Meyering  <meyering@lucent.com>
115709         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115710         strtoimax.
115711         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115712         strtoumax.
115714 2001-09-20  Jim Meyering  <meyering@lucent.com>
115716         * lib/xstrtol.c (strtoimax): Guard declaration with
115717         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115718         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115719         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115720         (strtoumax): Likewise, for completeness (it wasn't necessary).
115722 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115724         * lib/strtoimax.c (HAVE_LONG_LONG):
115725         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115726         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115727         to work around bug in IBM C compiler.
115729 2001-09-17  Jim Meyering  <meyering@lucent.com>
115731         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115732         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115733         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115734         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115735         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115736         whenever the right hand side need not be expanded by the shell.
115738 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115740         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115741         library.  It's not correct, as some older glibcs are buggy.
115742         fnmatch wasn't fixed until glibc 2.2.
115744         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115745         special shell magic here.
115747 2001-09-16  Jim Meyering  <meyering@lucent.com>
115749         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115750         * m4/jm-macros.m4: Require it.
115752 2001-09-16  Jim Meyering  <meyering@lucent.com>
115754         * lib/mkdir.c: New file.
115756 2001-09-15  Jim Meyering  <meyering@lucent.com>
115758         * m4/jm-macros.m4: Check for help2man.
115760 2001-09-11  Jim Meyering  <meyering@lucent.com>
115762         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115763         The body, by Paul Eggert, was moved here from configure.in.
115764         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115766 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115768         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115769         (jm_PREREQ): Use it.
115771 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115773         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115774         Use ssize_t, not int, to store result of readlink.
115775         Check for ssize_t overflow as well as size_t overflow,
115776         as POSIX says the result of readlink is implementation-defined
115777         when ssize_t overflows.
115778         Remove unnecessary cast to char*.
115779         Use free+malloc instead of realloc, as the storage doesn't need
115780         to be preserved and it's clearer and can be more efficient that way.
115781         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115782         * lib/xreadlink.h (xreadlink): Update prototype.
115784 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115786         * lib/xgetcwd.c: Revert some of the previous change; intead,
115787         fix the HAVE_GETCWD_NULL code to behave more like the
115788         !HAVE_GETCWD_NULL code used to.
115790         Include "xalloc.h".
115791         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115792         invoke xalloc_die.
115794 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115796         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115797         sys/param.h, as pathmax.h includes them.
115799 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115801         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115802         (jm_PREREQ_XGETCWD): New macro.
115804         * m4/getcwd.m4: New file.
115806 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115808         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115809         like the HAVE_GETCWD_NULL code.
115810         Include pathmax.h if not HAVE_GETCWD.
115811         Do not include xalloc.h.
115812         (INITIAL_BUFFER_SIZE): New symbol.
115813         Do not use xmalloc / xrealloc, since the caller is responsible for
115814         handling errors.  Preserve errno around `free' during failure.
115815         Do not overrun buffer when using getwd.
115817 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115819         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115820         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115821         getcwd (NULL, 0).
115823 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115825         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115826         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115827         spotted by Jim Meyering.
115829 2001-09-03  Jim Meyering  <meyering@lucent.com>
115831         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115832         failure.
115834 2001-09-02  Jim Meyering  <meyering@lucent.com>
115836         * lib/error.c: Update from GNU libc.
115838 2001-09-01  Jim Meyering  <meyering@lucent.com>
115840         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115841         Used by df.
115843 2001-09-01  Jim Meyering  <meyering@lucent.com>
115845         * lib/xreadlink.c: New file.
115846         * lib/xreadlink.h: New file.
115847         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115848         xreadlink.h.
115850         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115851         doesn't conflict with sparc Solaris 7's definition in
115852         /usr/include/sys/int_types.h.
115854         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115855         files.
115856         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115857         and strncasecmp as r-values.  Unixware didn't have declarations.
115859 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115861         * lib/xstrtol.h: Add copyright notice.
115862         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115863         LONGINT_INVALID_SUFFIX_CHAR.
115865 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115867         * lib/xstrtol.c (strtoimax): New decl.
115869 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115871         * lib/xgetcwd.c: Don't include pathmax.h.
115872         Include stdlib.h and unistd.h if available.
115873         Include xalloc.h.
115874         (xmalloc, xstrdup, free): Remove decls.
115875         (xgetcwd): Don't assume sizes fit in unsigned.
115876         Check for overflow when computing sizes.
115877         Simplify reallocation code.
115879 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115881         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115882         a directory's st_size can have an arbitrary value, so the old
115883         usage could waste an arbitrary amount of memory.  All uses
115884         changed.
115885         * lib/savedir.h: Update prototype.
115887 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115889         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115891         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115892         old strtoimax.c.
115894         Also, make the following further changes to make this file's
115895         configuration more similar to that of strtol.c:
115896         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115897         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115898         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115899         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115900         changed to signed values.
115902         And make the following changes as well:
115903         Fix copyright notice, as 1999 was missing.
115904         (verify): New macro.
115905         (strtoimax): Check sizes at compile-time, not run-time.
115906         Prefer strtol to strtoll if both work.
115907         (main): Remove; it was not that useful and was a pain to maintain.
115909         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115911 2001-08-31  Jim Meyering  <meyering@lucent.com>
115913         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115914         Use an initial, malloc'd, buffer of length 128 rather than
115915         a statically allocated one of length 1024.
115917 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115919         Simplify code, partly by assuming autoconf 2.52 semantics.
115921         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115923         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115924         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115925         All uses removed.
115926         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115927         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115928         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115929         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115930         jm_AC_HEADER_INTTYPES_H.
115931         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115933         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115935         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115936         Quote first arg of AC_DEFUN.
115937         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115938         since they are needed to parse the include file even if we need
115939         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115941         but with opposite signedness.
115943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115945         Merge 'exclude' changes from tar 1.13.22.
115946         This fixes one or two unlikely storage allocation overflow bugs,
115947         but doesn't change user-visible behavior otherwise.
115949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115951         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115952         (jm_PREREQ_EXCLUDE): New macro.
115954 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115956         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115957         tm to be declared.
115959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115961         * lib/hash.c: Remove '2001' from copyright notice.
115963 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115965         * lib/full-write.h: New file.
115966         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115967         * lib/full-write.c: Correct credits, as cccp.c no longer
115968         exists and anyway it was so heavily changed from the old cccp
115969         code as to be unrecognizable.  Include full-write.h.
115970         (full_write): Return size_t, with short writes meaning failure.
115971         All callers changed.  This fixes a bug with large buffers
115972         on 64-bit hosts.
115973         * lib/utime.c: Include full-write.h.
115975 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115977         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115978         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115979         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115980         Include if available.
115981         (<xalloc.h>): Include
115982         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115983         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115984         collide with FNM macros.
115985         (struct patopts): New struct.
115986         (struct exclude): Use it, as exclude patterns now come with options.
115987         (new_exclude): Support above changes.
115988         (new_exclude, add_exclude_file):
115989         Initial size must now be a power of two to simplify overflow checking.
115990         (free_exclude, fnmatch_no_wildcards): New function.
115991         (excluded_filename): No longer requires options arg, as the options
115992         are determined by add_exclude.  Now returns bool, not int.
115993         (excluded_filename, add_exclude):
115994         Add support for the fancy new exclusion options.
115995         (add_exclude, add_exclude_file): Now takes int options arg.
115996         Check for arithmetic overflow when computing sizes.
115997         (add_exclude_file): xrealloc might modify errno, so don't
115998         realloc until after errno might be used.
116000         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
116001         New macros.
116002         (free_exclude): New decl.
116003         (add_exclude, add_exclude_file): Now takes int options arg.
116004         (excluded_filename): No longer requires options arg, as the options
116005         are determined by add_exclude.  Now returns bool, not int.
116007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116009         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
116011 2001-08-27  Jim Meyering  <meyering@lucent.com>
116013         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
116015         * lib/version-etc.c (N_): Remove definition.
116016         Revert most of last change.
116017         Instead, simply don't mark the `Copyright...' string for translation.
116018         Based on advice from Paul Eggert.
116020         * lib/strtoxmax.c: Tweak comment.
116022 2001-08-26  Jim Meyering  <meyering@lucent.com>
116024         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
116026         * m4/xstrtoimax.m4: New file.
116027         * m4/xstrtoumax.m4: Add comments explaining why we
116028         AC_REPLACE_FUNCS(strtol).
116030 2001-08-26  Jim Meyering  <meyering@lucent.com>
116032         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
116033         of copyright with `%s' so translators don't get an untranslated
116034         message in 2002.
116035         (COPYRIGHT_YEAR): Define.
116036         (version_etc): Use fprintf rather than fputs.
116037         Suggestion from Ulrich Drepper.
116039         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
116041         * lib/strtoll.c: New file, from GNU libc.
116042         * lib/xstrtoimax.c: New file.
116044         * lib/xstrtol.h: Add xstrtoimax.
116045         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
116046         * lib/strtoimax.c: New file.  Likewise, but first define
116047         STRTOUXMAX_SIGNED.
116049         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
116050         ...
116051         * lib/strtoxmax.c: ... then renamed to this.
116053 2001-08-18  Paul Eggert  <eggert@twinsun.com>
116055         * m4/inttypes.m4: Add AC_PREREQ(2.13).
116056         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
116057         (jm_AC_TYPE_INTMAX_T): New macro.
116058         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
116060         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
116062         * m4/longlong.m4: Renamed from ulonglong.m4.
116063         * m4/inttypes.m4: Renamed from inttypes_h.m4.
116064         * m4/uintmax_t.m4: Removed.
116066 2001-08-13  Paul Eggert  <eggert@twinsun.com>
116068         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
116069         Port to Solaris 8, where 'sed' requires a space after the 'r'
116070         command, and where sh dislikes "$/".  Clean up the spacing a bit.
116071         Redirect output to $tmp just once.
116073 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
116075         * lib/addext.c (<errno.h>): Include.
116076         (errno): Declare if not defined.
116077         (addext): Work correctly when pathconf returns -1 and leaves
116078         errno alone because there is no limit.  Also, work even if
116079         pathconf returns a value greater than SIZE_MAX.
116081 2001-08-12  Jim Meyering  <meyering@lucent.com>
116083         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
116084         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
116085         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
116086         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
116087         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
116088         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
116089         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
116090         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
116091         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
116092         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
116093         utime.m4, utimes.m4, xstrtoumax.m4:
116094         Quote the first argument in each use of AC_DEFUN.
116096 2001-08-12  Jim Meyering  <meyering@lucent.com>
116098         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
116099         Simply `return getcwd (NULL, 0);'.
116100         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
116101         Use 1300 as initial value for length, not PATH_MAX.
116103         * lib/pathmax.h: Clean up cpp syntax.
116105 2001-08-12  Jim Meyering  <meyering@lucent.com>
116107         * lib/gettimeofday.c: New file.
116108         * lib/gtod.h: New file.
116109         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
116111 2001-08-05  Jim Meyering  <meyering@lucent.com>
116113         * m4/jm-macros.m4: Require autoconf-2.52.
116115 2001-08-04  Jim Meyering  <meyering@lucent.com>
116117         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
116118         stmt, to get in sync with glibc.
116120 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116122         The following changes are from gettext 0.10.39 as maintained by
116123         Bruno Haible.
116125         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
116126         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
116127         with inverted sense.  All uses changed.
116129         * lib/mbswidth.c: Don't include <limits.h>.
116130         Include <stdlib.h> and <string.h> unconditionally.
116131         (iswcntrl, mbsinit, ISCNTRL): New macros.
116132         (mbsnwidth): Use K&R style function declarations.
116133         Don't bother checking for MB_LEN_MAX == 1, since the compiler
116134         can optimize it when MB_CUR_MAX == 1.
116135         The width of control characters is zero, not 1.
116137 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116139         The following changes are from gettext 0.10.39 as maintained by
116140         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
116142         * m4/codeset.m4: Upgrade to serial AM1.
116143         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
116144         all uses changed.  Quote first arg of AC_DEFUN.
116145         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
116147         * m4/iconv.m4: Upgrade to serial AM2.
116148         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
116149         Add --with-libconv-prefix.
116150         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
116151         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
116152         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
116153         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
116154         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
116156         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
116157         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
116158         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
116159         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
116160         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
116161         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
116162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
116163         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
116164         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116166         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
116167         string.h any more.
116169         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
116170         not the default value.
116172         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
116173         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
116174         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
116175         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
116176         Also check for iswcntrl, used for wcwidth fallback.
116177         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
116178         to Autoconf 2.13.
116180 2001-08-03  Jim Meyering  <meyering@lucent.com>
116182         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
116183         as it was in the original.  Reported by Paul Eggert.
116185 2001-07-16  Jim Meyering  <meyering@lucent.com>
116187         * m4/gettimeofday.m4: New file.
116188         Prompted by a report from Bernhard Baehr.
116190 2001-07-15  Jim Meyering  <meyering@lucent.com>
116192         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
116193         stuff. Now it's in ../Makefile.cfg.
116195 2001-07-15  Jim Meyering  <meyering@lucent.com>
116197         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
116198         (BUILT_SOURCES): Add unlocked-io.h.
116199         (io_functions): Define.
116200         (unlocked-io.h): New rule.
116201         (DISTCLEANFILES): Add unlocked-io.h.
116202         (all-local): Depend on unlocked-io.h, to ensure it is created.
116204         * lib/unlocked-io.hin: New file
116206         * lib/regex.c: Update from glibc.
116208 2001-07-05  Jim Meyering  <meyering@lucent.com>
116210         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
116211         recommendation.
116212         (libfetish_a_SOURCES): Put all .h files here instead.
116213         Remove a thus-exposed (better checks in automake) duplicate and
116214         two unnecessary .h files.
116216 2001-07-04  Jim Meyering  <meyering@lucent.com>
116218         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
116219         that generates jm-glibc-io.m4 so that it doesn't trigger any make
116220         distcheck failure.
116222 2001-07-02  Jim Meyering  <meyering@lucent.com>
116224         The following changes were prompted by suggestions from Bruno Haible.
116226         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
116227         is now generated.
116228         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
116229         definition of EXTRA_DIST.
116230         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
116231         ensure that the generated file is created/updated whenever the list
116232         of $(unlocked_functions) is changed.
116233         (jm-glibc-io.m4): New rule.
116234         (unlocked-io.h): New rule -- currently unused.
116236 2001-06-24  Jim Meyering  <meyering@lucent.com>
116238         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
116239         unmatched right bracket, rather than kludging it with an extra,
116240         falsely-matching quote in a comment.  Patch by Akim Demaille.
116242 2001-06-11  Jim Meyering  <meyering@lucent.com>
116244         * lib/regex.c: Update from GNU libc.
116246 2001-05-27  Jim Meyering  <meyering@lucent.com>
116248         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
116249         Check for ut_type in struct utmp.
116251 2001-05-27  Jim Meyering  <meyering@lucent.com>
116253         * lib/readutmp.h (UT_TYPE): Define.
116255 2001-05-24  Jim Meyering  <meyering@lucent.com>
116257         * lib/argmatch.c: Include "quote.h".
116258         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
116259         quote function.  Reported by Göran Uddeborg.
116261 2001-05-22  Jim Meyering  <meyering@lucent.com>
116263         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
116264         now that we use the package-supplied version unconditionally.
116265         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
116267 2001-05-21  Jim Meyering  <meyering@lucent.com>
116269         * m4/regex.m4: Change a couple backticks to single quotes to avoid
116270         shell syntax errors.
116272 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116274         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
116276 2001-05-20  Paul Eggert  <eggert@twinsun.com>
116278         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
116279         Don't bother to check library strftime, since
116280         we'll be using our own my_strftime function anyway.
116281         Define my_strftime instead of strftime.
116283 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
116285         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
116286         which is not yet declared.
116288 2001-05-15  Jim Meyering  <meyering@lucent.com>
116290         * m4/regex.m4: Use proper quoting so brackets appear in the test
116291         program.
116292         Reported by, and with help from, Bruno Haible.
116294 2001-05-13  Jim Meyering  <meyering@lucent.com>
116296         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
116297         undefined.
116299 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116301         dirname code cleanup.  base_name now behaves more compatibly
116302         with POSIX basename when given file names that have trailing
116303         slashes, and similarly for dir_name.  Add new primitives
116304         base_len and dir_len.  Put the directory-name-related decls
116305         into dirname.h.
116307         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
116308         * lib/backupfile.c (base_name): Likewise.
116309         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
116310         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
116311         * lib/makepath.c (strip_trailing_slashes): Likewise.
116312         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
116313         ISSLASH): Likewise.
116314         * lib/rename.c (strip_trailing_slashes): Likewise.
116315         * lib/same.c (base_name): Likewise.
116316         * lib/stripslash.c (ISSLASH): Likewise.
116318         * lib/addext.c: Include <dirname.h> after size_t is defined.
116319         * lib/backupfile.c: Likewise.
116321         * lib/addext.c (addext): Use base_len to trim redundant
116322         trailing slashes instead of doing it ourselves.
116323         But do not trim the last slash if it is not redundant.
116325         * lib/backupfile.c (find_backup_file_name,
116326         max_backup_version): Use base_len instead of rolling it ourselves.
116327         Handle the case of "" and (on DOS) "C:" correctly.
116329         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
116330         needed. Include <string.h>, <dirname.h>.
116331         (base_name): Allow file names ending in slashes, other than names
116332         that are all slashes.  In this case, return the basename followed
116333         by the slashes.  This is more general, and can be used in places
116334         where the original base_name purposely had an assertion failure.
116335         (base_len): New function.
116337         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
116338         Do not include <assert.h>; no longer needed.
116339         Include xalloc.h.
116340         (memrchr): Remove decl.
116341         (dir_name_r): Remove.
116342         (dir_len): Renamed from dirlen.  All callers changed.
116343         Rewrite in terms of base_name, for simplicity and consistency.
116344         (dir_name): Never return NULL.  All callers changed.
116345         Do not include <stdlib.h> in test program; no longer needed.
116346         return 0; is fine for test program.
116348         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
116349         New macros.
116350         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
116352         * lib/path-concat.c (path_concat): Use base_len to compute
116353         base length, not strlen; this means we cannot rely on memcpy
116354         to null-terminate.
116356         * lib/same.c (STREQ): Remove.
116357         (same_name): Handle the case where the basename ends in trailing '/'.
116359         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116360         a slash was stripped.  Do not strip the last slash after a
116361         file system prefix.
116363 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116365         * lib/Makefile.am (libfetish_a_SOURCES):
116366         Add strftime.c, since we now compile it on all hosts.
116368         * lib/strftime.c (my_strftime):
116369         Define to nstrftime if emacs, but only if my_strftime is not defined.
116370         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116371         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116372         Add one more extra argument: a nanoseconds value.
116373         All uses changed.
116374         (ns): New macro.
116375         (my_strftime function): Add %N format.
116376         (emacs_strftimeu): Renamed from emacs_strftime,
116377         with extra ut argument.
116379 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116381         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116383 2001-04-21  Jim Meyering  <meyering@lucent.com>
116385         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116386         doesn't interfere.
116388 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116390         * m4/ftruncate.m4: Check for chsize.
116391         Link with ftruncate.o unconditionally if ftruncate is missing.
116392         This was required when cross-compiling to i586-mingw32msvc.
116394 2001-04-08  Jim Meyering  <meyering@lucent.com>
116396         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116397         recomputed; that's necessary when the offset spans a DST transition.
116398         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116400 2001-04-02  Jim Meyering  <meyering@lucent.com>
116402         * lib/regex.h, regex.c: Update from GNU libc.
116404 2001-03-24  Jim Meyering  <meyering@lucent.com>
116406         * m4/jm-macros.m4: Require autoconf-2.49d.
116408 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116410         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116412 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116414         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116416 2001-03-17  Jim Meyering  <meyering@lucent.com>
116418         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116419         now that the version in autoconf is equivalent.
116420         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116422         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116423         Suggestion from Akim Demaille.
116425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116426         (jm_PREREQ_TEMPNAME): New function.
116428 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116430         * lib/tempname.c (uint64_t): Define to uintmax_t if
116431         not defined, and if UINT64_MAX is not defined.
116432         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116433         Reported by John David Anglin.
116435 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116437         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116438         resolve alias if codeset is empty.
116439         * lib/config.charset (BeOS): Use wildcard syntax.
116441 2001-03-13  Jim Meyering  <meyering@lucent.com>
116443         * lib/path-concat.c (path_concat)
116444         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116445         concatenating e.g., `C:' and `foo'.
116446         From Bruno Haible.
116448 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116450         * lib/localcharset.c (locale_charset): Don't use
116451         setlocale(LC_CTYPE,NULL). Don't return NULL.
116452         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116454 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116456         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116457         support for DOS/DJGPP.
116459 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116461         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116462         lacks mkstemp.  Compile our own tempname.c if we compile our own
116463         mkstemp.c, as mkstemp relies on tempname.
116465 2001-03-01  Jim Meyering  <meyering@lucent.com>
116467         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116468         AH_VERBATIM really does output its argument verbatim.
116470 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116472         * lib/Makefile.am (libfetish_a_SOURCES):
116473         Add dup-safer.c, fopen-safer.c.
116474         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116476         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116477         * lib/unistd-safer.h: New files.
116479 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116481         The mkstemp replacement is taken from glibc 2.2.2, with some
116482         portability fixes for use outside glibc, as follows:
116484         * lib/tempname.c (struct_stat64): New macro.
116485         (direxists, __gen_tempname): Use it.
116486         This avoids a portability problem with Solaris 8.
116488         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116489         (<stddef.h>, <stdint.h>, <string.h>):
116490         Include only if STDC_HEADERS || _LIBC.
116491         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116492         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116493         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116494         (__set_errno): Define this macro if <errno.h> doesn't.
116495         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116496         Define these macros if <stdio.h> doesn't.
116497         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116498         Define these macros if <sys/stat.h>
116499         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116500         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116501         __xstat64): Define if not _LIBC.
116502         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116503         (__gen_tempname): Invoke gettimeofday only if
116504         HAVE_GETTIMEOFDAY || _LIBC;
116505         otherwise, fall back on plain "time".
116506         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116508         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116510         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116512 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116514         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116516 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116518         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116519         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116520         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116521         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116523 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116525         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116526         Remove workaround macros for hosts that have mbrtowc but not
116527         mbstate_t, as we now insist on proper declarations for both
116528         before using mbrtowc.
116530 2001-02-17  Jim Meyering  <meyering@lucent.com>
116532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116533         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116534         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116535         UnixWare 7.1.1.
116537         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116538         rather than AC_CACHE_VAL.
116540 2001-02-17  Jim Meyering  <meyering@lucent.com>
116542         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116543         around included file name.
116545         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116547         * lib/strftime.c: Update from GNU libc (the only changes were to
116548         comments).
116550 2001-02-17  Jim Meyering  <meyering@lucent.com>
116552         * lib/regex.c: Update from libc.
116554 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116556         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116557         clash.
116559 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116561         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116562         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116563         Reported by Mark Hounschell via Paul Eggert.
116565 2001-02-07  Jim Meyering  <meyering@lucent.com>
116567         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116569 2001-02-05  Jim Meyering  <meyering@lucent.com>
116571         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116572         it includes the patch required for `large file' support with at least
116573         HP-UX's 10.20 /bin/cc.
116575 2001-02-03  Jim Meyering  <meyering@lucent.com>
116577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116578         AS_IF, now that it works once again (mysteriously).
116579         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116581 2001-01-30  Jim Meyering  <meyering@lucent.com>
116583         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116584         * m4/chown.m4: Rename conftestchown to conftest.chown.
116585         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116586         s/conftestdir2/conftest.d2/.
116587         * m4/utimes.m4: s/conftestdata/conftest.data/
116588         Inspired by Pavel Roskin's change in autoconf.
116590 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116592         * lib/config.charset: Update for FreeBSD 4.2.
116594 2001-01-27  Jim Meyering  <meyering@lucent.com>
116596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116597         a use of AS_IF.
116598         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116600 2001-01-26  Jim Meyering  <meyering@lucent.com>
116602         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116603         quotearg.c includes it.
116605 2001-01-26  Jim Meyering  <meyering@lucent.com>
116607         * lib/quotearg.c: Include stddef.h.
116608         * lib/quote.c: Include stddef.h.
116609         Reported by Axel Kittenberger.
116611         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116612         line in double quotes so that it evokes a better diagnostic.
116613         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116614         Reported by Axel Kittenberger.
116616 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116618         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116619         as if it was a `charset'.
116621 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116623         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116624         has const.
116626 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116628         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116629         to avoid a warning.  Add back 'const' to inptr.
116631 2001-01-20  Jim Meyering  <meyering@lucent.com>
116633         Be sure that headers are checked before used in code compiled
116634         for the type checks.
116635         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116636         In place of that, invoke jm_CHECK_ALL_TYPES.
116637         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116638         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116639         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116640         The check for ssize_t was mistakenly run before the test for unistd.h.
116642         The configure-time check for stdbool.h was missing.
116643         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116644         (jm_PREREQ_HASH): New function.
116646 2001-01-17  Jim Meyering  <meyering@lucent.com>
116648         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116649         for autoconf-2.49c.
116650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116652 2001-01-16  Jim Meyering  <meyering@lucent.com>
116654         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116655         From Bruno Haible.
116657 2001-01-14  Jim Meyering  <meyering@lucent.com>
116659         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116660         foo and bar.  Create conftestdir/ in the script, not in the C code.
116661         Remove directories in the script, not in the C code.
116662         Remove conftestdir{,2} before trying to create the directory.
116663         Make the entire configure script fail if the mkdir fails.
116665 2001-01-14  Jim Meyering  <meyering@lucent.com>
116667         * lib/rename.c: New file.  From Volker Borchert.
116668         Include stdlib.h, string.h or strings.h, and xalloc.h.
116669         Use strip_trailing_slashes rather than open-coding it.
116671 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116673         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116675 2001-01-03  Jim Meyering  <meyering@lucent.com>
116677         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116678         of local `inptr' to avoid warning with some system declarations of
116679         iconv.
116681 2001-01-02  Volker Borchert  <bt@teknon.de>
116683         * m4/rename.m4: New file.
116684         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116686 2001-01-01  Jim Meyering  <meyering@lucent.com>
116688         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116689         even on systems with utmpx.h.  It's necessary for the declaration of
116690         utmp's ut_user member.  Reported by Andreas Jaeger.
116692         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116693         available. They are required for the declarations of getgrgid and
116694         getpwuid resp.
116695         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116696         Reported by Andreas Jaeger.
116698 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116700         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116701         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116702         so `make install' also works in VPATH builds.
116704 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116706         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116707         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116708         can be used in subdirectories.
116710 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116712         * lib/modechange.c: Do not assume that mode_t uses the
116713         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116714         the other-execute bit of FOO even if S_IXOTH != 1.
116716         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116717         WOTH, XOTH, ALLM): New macros.
116718         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116719          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116720         Use them.
116721         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116722         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116723         (mode_compile):
116724         No need to use uintmax_t; unsigned long is long enough.
116725         Don't bother to get suffix since we don't use it.
116727 2000-12-26  Jim Meyering  <meyering@lucent.com>
116729         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116730         better with autoheader.
116732 2000-12-24  Jim Meyering  <meyering@lucent.com>
116734         * lib/hash.c (is_prime): Return explicit boolean values.
116735         (hash_get_first): Return NULL to appease Irix5.6's 89.
116736         Reported by Nelson Beebe.
116738 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116740         * lib/localcharset.c (locale_charset): Add support for Win32.
116742 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116744         * lib/physmem.h, lib/physmem.c: New files.
116746         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116747         (noinst_HEADERS): Add physmem.h.
116749         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116750         't' for compatibility with Solaris 8 sort.
116752 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116754         * lib/config.charset: Add support for BeOS.
116756 2000-12-17  Jim Meyering  <meyering@lucent.com>
116758         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116759         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116761 2000-12-16  Jim Meyering  <meyering@lucent.com>
116763         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116764         N and M) would have treated it like `chown N:N FILE'.
116766         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116768 2000-12-16  Jim Meyering  <meyering@lucent.com>
116770         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116771         SHELLS_FILE to a file name that's useful on djgpp systems.
116772         Include stdlib.h.
116773         (ADDITIONAL_DEFAULT_SHELLS): Define.
116774         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116775         Based mostly on a patch from Prashant TR.
116777 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116779         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116780         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116781         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116783 2000-12-08  Andreas Schwab  <schwab@suse.de>
116785         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116786         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116788 2000-12-07  Jim Meyering  <meyering@lucent.com>
116790         * lib/stripslash.c (ISSLASH): Define.
116791         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116792         `/'.
116793         From Prashant TR.
116795         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116796         (dir_name_r): Declare this function as static.
116797         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116798         manifest itself on a name containing a mix of slashes and
116799         backslashes.
116800         Make this function work with names starting with a DOS-style
116801         drive letter and colon prefix.
116802         (dir_name): Append `.' if necessary.
116803         Based mostly on patches from Prashant TR and Eli Zaretskii.
116805         * lib/dirname.h (dir_name_r): Remove prototype.
116807 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116809         * m4/off_t-format.m4: Remove this file.
116810         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116812 2000-12-06  Jim Meyering  <meyering@lucent.com>
116814         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116815         replacement strtoull, we may well need the replacement strtoul, too.
116816         Check for declarations of strtoul and strtoull.
116817         Check for strtol.  Mainly as a cue to cause automake to include
116818         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116819         Check for limits.h -- strtol.c needs it.
116821 2000-12-05  Jim Meyering  <meyering@lucent.com>
116823         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116825 2000-12-04  Jim Meyering  <meyering@lucent.com>
116827         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116828         Also include memory.h, stdlib.h, unistd.h if appropriate.
116829         Reported by Andreas Jaeger (conflicting declaration of malloc).
116831 2000-12-02  Jim Meyering  <meyering@lucent.com>
116833         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116834         * m4/jm-macros.m4 (jm_MACROS): require it.
116836 2000-12-02  Jim Meyering  <meyering@lucent.com>
116838         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116840 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116842         * lib/memrchr.c: Include <config.h> before any system include file.
116844 2000-11-30  Jim Meyering  <meyering@lucent.com>
116846         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116848 2000-11-30  Jim Meyering  <meyering@lucent.com>
116850         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116852 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116854         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116856 2000-11-26  Jim Meyering  <meyering@lucent.com>
116858         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116860 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116862         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116863         size of (size_t) -1; it's not portable.
116865 2000-11-17  Jim Meyering  <meyering@lucent.com>
116867         * lib/strstr.c: Update from GNU libc.
116869 2000-11-17  Akim Demaille  <akim@epita.fr>
116871         * lib/obstack.h: Formatting changes.
116872         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116873         prevent type checking.
116874         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116875         cast the value to (void *): assigning a `foo *' to a `void *'
116876         variable is valid.
116877         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116879 2000-11-16  Jim Meyering  <meyering@lucent.com>
116881         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116883 2000-11-11  Jim Meyering  <meyering@lucent.com>
116885         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116887 2000-11-10  Jim Meyering  <meyering@lucent.com>
116889         * lib/obstack.h: Update from GNU libc.
116890         * lib/obstack.c: Likewise.
116892 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116894         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116896 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116898         * lib/getusershell.c (setusershell): Use rewind rather than
116899         fseek/fseeko, to avoid configuration hassles with fseeko.
116900         Don't bother opening SHELLS_FILE if shellstream is NULL;
116901         it's not necessary.
116903 2000-11-05  Jim Meyering  <meyering@lucent.com>
116905         * lib/makepath.h (make_dir): Declare.
116906         * lib/makepath.c (make_dir): Remove `static' attribute.
116907         Tweak a comment.
116909 2000-11-04  Jim Meyering  <meyering@lucent.com>
116911         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116913 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116915         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116916         last one in a bucket, advance to the next bucket.
116918 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116920         * lib/fnmatch.c: Do not comment out all the code if we are using
116921         the GNU C library, because in some cases we are replacing buggy
116922         code in the GNU C library itself.
116924 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116926         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116927         (regex_compile): Catch bogus \(\1\).
116929 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116931         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116932         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116933         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116935 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116937         * lib/error.h, getline.h, modechange.h:
116938         Remove "2000" from Copyright line, as the file hasn't been
116939         changed this year other than in the copyright notice.
116941         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116942         was changed this year.
116944 2000-10-29  Jim Meyering  <meyering@lucent.com>
116946         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116947         renaming.
116948         * m4/ls-mntd-fs.m4: Likewise
116950 2000-10-29  Jim Meyering  <meyering@lucent.com>
116952         * lib/xstat.in: Fix grammar in comment.
116954 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116956         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116957         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116958         doesn't define __restrict_arr.
116960 2000-10-28  Jim Meyering  <meyering@lucent.com>
116962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116963         (jm_PREREQ_MEMCHR): New function.
116965 2000-10-28  Jim Meyering  <meyering@lucent.com>
116967         * lib/memchr.c: Update from libc.
116968         Adjust for portability:
116969         [HAVE_STDLIB_H]: Include stdlib.h.
116970         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116971         Undef __memchr, too.
116972         [!weak_alias]: Define __memchr to memchr.
116974         * lib/regex.c: Update from libc.
116975         * lib/regex.h: Likewise.
116976         * lib/getopt1.c: Likewise.
116977         * lib/memcmp.c: Likewise.
116979         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116980         Avoid using fseek, when possible -- it's broken by design.
116981         Patch by Ulrich Drepper.
116983 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116985         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116986         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116987         Giving in to popular pressure to shut up the compiler with casts.
116989 2000-10-26  Jim Meyering  <meyering@lucent.com>
116991         * lib/strftime.c: Update from libc.
116993 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116995         * regex.c: More `unsigned char' -> `re_char' changes.
116996         Also change several `int' into `re_wchar_t'.
116997         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116998         (PUSH_FAILURE_POINTER): Don't cast any more.
116999         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
117000         We want GCC to complain, since this piece of code makes
117001         re_match non-reentrant, which *should* be fixed.
117002         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
117003         (EXTEND_BUFFER): Use RETALLOC.
117004         (SET_LIST_BIT): Don't cast.
117005         (re_wchar_t): New type.
117006         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
117007         that those two functions will always properly return.
117008         (IMMEDIATE_QUIT_CHECK): Cast to void.
117009         (analyse_first): Use recursion rather than an explicit stack.
117010         (re_compile_fastmap): Can't fail anymore.
117011         (re_search_2): Don't check re_compile_fastmap for failure.
117012         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
117013         Now also sets the new value (passed in a new argument).
117014         (re_match_2_internal): Use it.
117015         Also, use a new var `reg' of type size_t when looping through regs
117016         rather than reuse the inappropriate `mcnt'.
117018 2000-10-25  Jim Meyering  <meyering@lucent.com>
117020         * lib/obstack.c: Update from libc.
117022 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
117024         * regex.c (regex_compile): Change the way of handling a range from
117025         a char less than 256 to a char not less than 256.
117027 2000-10-24  Andrew Innes  <andrewi@gnu.org>
117029         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
117030         NT-Emacs only.
117031         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
117032         so that re_search functions only quit when callers expect them to.
117034 2000-10-23  Jim Meyering  <meyering@lucent.com>
117036         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
117037         wrong.  That set_locale call must not have any side effects.
117038         From Paul Eggert.
117040 2000-10-22  Jim Meyering  <meyering@lucent.com>
117042         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
117043         [CYCLIC]: Remove now-unused definition.
117045         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
117046         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
117047         Suggestion from Ulrich Drepper.
117049 2000-10-21  Jim Meyering  <meyering@lucent.com>
117051         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
117052         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
117053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
117055 2000-10-21  Jim Meyering  <meyering@lucent.com>
117057         * lib/dirname.c (memrchr): Declare if necessary.
117058         (dir_name): Remove the restriction that there be no
117059         trailing slashes.  Now, this code skips past them, effectively
117060         ignoring them.
117061         [TEST_DIRNAME] (main): New unit tests.
117063         * lib/memrchr.c: New file from GNU libc.
117064         Undef __memrchr, too.
117065         [!weak_alias]: Define __memrchr to memrchr.
117066         Guard weak_alias use with `#ifdef weak_alias'.
117068 2000-10-21  Jim Meyering  <meyering@lucent.com>
117070         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
117071         (dir_name): Use dir_name_r.
117072         * lib/dirname.h (dir_name_r): Declare it.
117074 2000-10-17  Jim Meyering  <meyering@lucent.com>
117076         * lib/quote.h (PARAMS): Define and use.
117077         Reported by Akim Demaille.
117079         * lib/getopt.c: Update from libc.
117081 2000-10-16  Jim Meyering  <meyering@lucent.com>
117083         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
117084         setlocale.
117085         From Jan Fedak.
117087 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
117089         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
117091 2000-09-25  Jim Meyering  <meyering@lucent.com>
117093         * lib/md5.h (rol): Define (from GnuPG).
117095         * lib/sha.c: Give credit (GnuPG) where due.
117096         (M): Use rol rather than open-coding it.
117097         Add a FIXME comment.
117099 2000-09-21  Jim Meyering  <meyering@lucent.com>
117101         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
117102         Reported by Michael Stone.
117104 2000-09-20  Jim Meyering  <meyering@lucent.com>
117106         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
117107         (noinst_HEADERS): Add sha.h.
117108         Based on code from Scott G. Miller and from GnuPG.
117110 2000-09-18  Jim Meyering  <meyering@lucent.com>
117112         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
117113         LIBS. Otherwise, everyone ends up linking with -lelf for some
117114         configurations.
117115         Reported by Mike Stone.
117117 2000-09-15  Jim Meyering  <meyering@lucent.com>
117119         * lib/regex.c: Update from libc.
117121 2000-09-10  Jim Meyering  <meyering@lucent.com>
117123         * lib/getopt.c (_getopt_internal): Update from glibc.
117125 2000-09-09  Jim Meyering  <meyering@lucent.com>
117127         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
117128         think it should be used as a general replacement for isascii.
117129         * lib/fnmatch.c: Likewise.
117130         * lib/mbswidth.c: Likewise
117131         * lib/regex.c: Likewise.
117133         Don't use atoi.
117134         * lib/userspec.c: Include sys/param.h and limits.h.
117135         Include xstrtol.h.
117136         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
117137         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
117138         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
117139         UID, GID.  Check range.
117141 2000-09-06  Jim Meyering  <meyering@lucent.com>
117143         * lib/getopt.c (_getopt_internal): Update from glibc.
117145 2000-08-30  Jim Meyering  <meyering@lucent.com>
117147         * lib/strftime.c: Merge in changes from GNU libc.
117149 2000-08-26  Jim Meyering  <meyering@lucent.com>
117151         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
117152         * m4/fpending.m4: New file.
117154 2000-08-26  Jim Meyering  <meyering@lucent.com>
117156         * lib/closeout.c: Include "__fpending.h".
117157         (close_stdout_status): Return right away if there's nothing to flush.
117159         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
117160         * lib/__fpending.c: New file.
117161         * lib/__fpending.h: New file.
117163 2000-08-20  Jim Meyering  <meyering@lucent.com>
117165         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
117166         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
117167         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
117169 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
117171         Improve fileutils installation on systems where running
117172         programs (like install) can't be unlinked.
117173         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
117174         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
117176 2000-08-07  Paul Eggert  <eggert@twinsun.com>
117178         Standardize on "memory exhausted" instead of "Memory exhausted"
117179         or "virtual memory exhausted".
117180         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
117181         "virtual memory exhausted".
117182         * lib/same.c (same_name): Invoke xalloc_die instead of printing
117183         our own message.
117184         * lib/userspec.c (parse_user_spec): Likewise.
117185         * lib/bumpalloc.h: comment fix
117186         * lib/same.c, userspec.c: Include xalloc.h.
117188         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
117189         not char *const and pointing to a constant array.
117190         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
117191         (xrealloc): Comment fix.
117193         * lib/userspec.c (parse_user_spec):
117194         Don't translate a message until just before returning,
117195         to avoid unnecessary translation.
117197 2000-08-07  Jim Meyering  <meyering@lucent.com>
117199         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
117200         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
117201         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
117202         getgroups.c, gethostname.c, getopt.h, group-member.c,
117203         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
117204         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
117205         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
117206         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
117207         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
117208         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
117209         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
117210         yesno.c: Back out Copyright date changes for each file with no change
117211         this year.  This eases coordination with other programs using the same
117212         source code modules.  From Paul Eggert.
117214 2000-08-06  Paul Eggert  <eggert@twinsun.com>
117216         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
117217         not char, for compatibility with glibc 2.1.3 strftime.c.
117219 2000-08-03  Greg McGary  <greg@mcgary.org>
117221         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
117222         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
117223         (EXTEND_BUFFER): Use them.
117225 2000-08-01  Jim Meyering  <meyering@lucent.com>
117227         * lib/dirname.c (ISSLASH): Define.
117228         (BACKSLASH_IS_PATH_SEPARATOR): Define.
117229         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
117230         both `\' and `/' may be use as path separators.
117231         Based on a patch from Prashant TR.
117233 2000-07-31  Paul Eggert  <eggert@twinsun.com>
117235         * lib/quotearg.c (quotearg_n_options): Don't make the initial
117236         slot vector a constant, since it might get modified.
117238 2000-07-31  Jim Meyering  <meyering@lucent.com>
117240         * lib/xmalloc.c: Use `virtual memory exhausted', not
117241         `Memory exhausted'.
117242         * lib/obstack.c (print_and_abort): Likewise.
117244 2000-07-30  Paul Eggert  <eggert@twinsun.com>
117246         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
117247         buffer, so that the caller can always quote one small
117248         component of a "memory exhausted" message in slot 0.
117249         From a suggestion by Jim Meyering.
117251 2000-07-30  Jim Meyering  <meyering@lucent.com>
117253         * lib/makepath.c (make_path): Quote the other instance, too.
117255         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
117256         (STATIC_BUF_SIZE): Define.
117257         (quotearg_n_options): Use only statically allocated storage when
117258         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
117259         than STATIC_BUF_SIZE.
117261 2000-07-29  Jim Meyering  <meyering@lucent.com>
117263         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
117264         * lib/dirname.c (dir_name): Likewise.
117266         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
117267         `/'.
117269         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
117270         (dir_name): Assert that there are no trailing slashes.
117272 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
117274         * lib/mbswidth.h (mbswidth): Add a flags argument.
117275         (mbswidth): New declaration.
117276         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
117277         * lib/mbswidth.c (mbswidth): Add a flags argument.
117278         (mbsnwidth): New function.
117280 2000-07-24  Jim Meyering  <meyering@lucent.com>
117282         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
117284 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117286         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
117288 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117290         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
117291         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
117292         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
117293         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
117294         invoke multibyte primitives.
117296 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117298         * lib/quotearg.c:
117299         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
117300         so that mbstate_t is always defined.
117302         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
117303         be 1 in at least one GCC installation, and this configuration
117304         error is likely to be common.  Ignoring MB_LEN_MAX hurts
117305         performance on hosts that have mbrtowc but have only unibyte
117306         locales, but I assume these hosts are rare.
117308 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117310         * lib/mbswidth.c (_XOPEN_SOURCE):
117311         Don't define; this causes problems on Solaris 7.
117312         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
117314 2000-07-23  Jim Meyering  <meyering@lucent.com>
117316         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
117317         too: getgrgid, getpwuid, getuid.
117319 2000-07-23  Jim Meyering  <meyering@lucent.com>
117321         * lib/basename.c (base_name): Add an assertion.
117323 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
117325         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
117326         shadow its mbsinit function.
117328 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117330         * lib/mbswidth.h: New file.
117331         * lib/mbswidth.c: New file.
117332         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
117333         (noinst_HEADERS): Add mbswidth.h.
117335 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117337         * lib/config.charset: Add support for FreeBSD. Improve support for
117338         HP-UX and IRIX 6.
117340 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
117342         * m4/mbswidth.m4: New file.
117343         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
117345 2000-07-15  Jim Meyering  <meyering@lucent.com>
117347         * lib/makepath.c: Include quote.h.
117348         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
117349         corresponding argument in a `quote (...)' call.
117350         Give better diagnostics.
117352         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
117353         (noinst_HEADERS): Add quote.h.
117355         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
117356         from tar's src/misc.c.
117357         * lib/quote.h: New file.  Prototypes for same.
117359 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117361         From a suggestion by Bruno Haible.
117362         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117363         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117364         to decide whether to define the BeOS workaround macro;
117365         this adjusts to the change to AC_MBSTATE_T.
117367 2000-07-14  Jim Meyering  <meyering@lucent.com>
117369         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117370         jm_AC_TYPE_UINTMAX_T.
117372 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117374         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117376         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117377         quotearg_buffer_restyled): Add support for
117378         clocale_quoting_style.  Undo previous change to
117379         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117380         and "{RIGHT QUOTATION MARK}" msgids.
117382 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117384         From a suggestion by Bruno Haible.
117385         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117386         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117387         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117388         and mbstate_t, to a single-part test that simply defines mbstate_t.
117389         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117390         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117392 2000-07-10  Jim Meyering  <meyering@lucent.com>
117394         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117396         * m4/gnu-source.m4: Output to confdefs.h directly.
117397         Suggestion from Akim Demaille.
117399 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117401         The old behavior of quoting `like this' doesn't look good with
117402         newer, ISO-style fonts.  See:
117403         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117405         Instead, quote "like this" by default.  Let the translator
117406         tailor the locale-specific quoting behavior by providing
117407         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117409         * lib/quotearg.c (N_): New macro.
117410         (gettext_default): New function.
117411         (quotearg_buffer_restyled): Use
117412         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117413         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117415 2000-07-09  Jim Meyering  <meyering@lucent.com>
117417         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117418         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117420         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117423 2000-07-09  Jim Meyering  <meyering@lucent.com>
117425         * lib/Most files: Update copyright dates to include 2000.
117427 2000-07-08  Jim Meyering  <meyering@lucent.com>
117429         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117430         if not defined.
117431         (xgethostname): Remove now-unnecessary #ifdef.
117432         Move declaration of `err' into loop where it's used.
117434 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117435         and Bruno Haible  <haible@clisp.cons.org>
117437         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117438         only if the test for an object-type mbstate_t fails.  This
117439         prevents us from mistakenly reporting that mbstate_t is a
117440         system object type after we "#define mbstate_t int" to work
117441         around its lack.
117443 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117444         and Bruno Haible  <haible@clisp.cons.org>
117446         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117448 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117450         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117451         to strerror_r.
117452         Include <ctype.h> for use of isalpha.
117454 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117456         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117457         by allocating a larger buffer. Test the gethostname return value for
117458         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117459         returns an error and ENAMETOOLONG isn't defined.
117461 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117463         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117464         dimension.
117466 2000-07-04  Jim Meyering  <meyering@lucent.com>
117468         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117469         of the deprecated AC_CHECKING.
117471 2000-07-04  Jim Meyering  <meyering@lucent.com>
117473         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117474         Reported by Bruno Haible.
117476 2000-07-04  Jim Meyering  <meyering@lucent.com>
117478         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117479         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117480         lacks mbrtowc.
117482 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117484         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117485         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117487 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117488         and Bruno Haible  <haible@clisp.cons.org>
117490         * lib/quotearg.c (mbrtowc):
117491         Assign to *pwc, and return 1 only if result is nonzero.
117492         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117494 2000-07-03  Jim Meyering  <meyering@lucent.com>
117496         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117498 2000-07-03  Jim Meyering  <meyering@lucent.com>
117500         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117501         This is necessary to get a definition of e.g., UTMP_FILE on
117502         HP-UX 10.20.
117503         From Bob Proulx.
117505 2000-07-02  Jim Meyering  <meyering@lucent.com>
117507         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117509         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117510         AC_LIBOBJ(function_name).
117511         * m4/chown.m4: Likewise.
117512         * m4/fnmatch.m4: Likewise.
117513         * m4/ftruncate.m4: Likewise.
117514         * m4/getgroups.m4: Likewise.
117515         * m4/getline.m4: Likewise.
117516         * m4/group-member.m4: Likewise.
117517         * m4/jm-macros.m4: Likewise.
117518         * m4/lstat.m4: Likewise.
117519         * m4/malloc.m4: Likewise.
117520         * m4/memcmp.m4: Likewise.
117521         * m4/nanosleep.m4: Likewise.
117522         * m4/putenv.m4: Likewise.
117523         * m4/realloc.m4: Likewise.
117524         * m4/regex.m4: Likewise.
117525         * m4/stat.m4: Likewise.
117526         * m4/strftime.m4: Likewise.
117528 2000-07-02  Jim Meyering  <meyering@lucent.com>
117530         * lib/quotearg.c (mbstate_t): Don't define here.
117532 2000-07-02  Jim Meyering  <meyering@lucent.com>
117534         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117536 2000-07-01  Jim Meyering  <meyering@lucent.com>
117538         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117540 2000-07-01  Jim Meyering  <meyering@lucent.com>
117542         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117543         problem.
117545 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117548         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117550 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117552         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117553         per change in ../m4/ls-mntd-fs.m4.
117554         (read_filesystem_list): Ignore symbolic links.
117556 2000-06-29  Jim Meyering  <meyering@lucent.com>
117558         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117559         for declaration of strcmp.
117561         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117563         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117564         Avoid warning by casting result to `char *' to remove `const'.
117566 2000-06-28  Jim Meyering  <meyering@lucent.com>
117568         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117569         included by quotearg.c, for which we perform this test.  From
117570         Bruno Haible.
117572 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117574         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117575         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117576         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117578 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117580         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117582 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117584         savedir now sets errno on failure and invokes xmalloc to get memory.
117585         Fix a couple of other minor bugs while we're at it.
117587         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117588         (NAMLEN): Remove macro.
117589         (malloc, realloc): Remove decls.
117590         (stpcpy): Likewise.
117591         ("xalloc.h"): Include.
117592         (NAME_SIZE_DEFAULT): New macro.
117593         (savedir): Use xmalloc / xrealloc to allocate memory.
117594         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117595         Skip "" directory entries.
117596         Use strlen to calculate directory entry length, since the old method
117597         is rarely used these days and isn't worth supporting.
117598         Don't use a pointer after freeing it.
117599         Check for integer overflow when calculating allocation size.
117600         Use memcpy to copy entries, instead of stpcpy.
117601         Set errno properly when returning NULL.
117602         Check for readdir error.
117604 2000-06-26  Jim Meyering  <meyering@lucent.com>
117606         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117608 2000-06-25  Jim Meyering  <meyering@lucent.com>
117610         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117611         Linux header bug when _XOPEN_SOURCE is defined to 500.
117613 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117615         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117616         deficiency.
117618 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117620         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117621         Include xalloc.h.
117622         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117624 2000-06-24  Jim Meyering  <meyering@lucent.com>
117626         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117627         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117628         for which strerror does return char*, but which lacks a conveniently
117629         accessible declaration of the function.  If the compile-test says
117630         strerror_r doesn't work, then resort to a `run'-test that works on
117631         BeOS and segfaults on DEC Unix.
117633 2000-06-24  Jim Meyering  <meyering@lucent.com>
117635         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117637 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117639         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117640         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117642 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117644         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117645         (mbrtowc, mbstate_t): Define substitutes if
117646         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117647         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117648         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117650 2000-06-23  Jim Meyering  <meyering@lucent.com>
117652         * m4/afs.m4: Add missing AC_MSG_RESULT.
117653         Reported by Bruno Haible.
117655         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117656         Suggestion from Bruno Haible.
117658 2000-06-23  Jim Meyering  <meyering@lucent.com>
117660         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117662 2000-06-21  Jim Meyering  <meyering@lucent.com>
117664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117666 2000-06-21  Jim Meyering  <meyering@lucent.com>
117668         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117669         (noinst_HEADERS): Add getstr.h.
117671         * lib/getline.c (getstr): Move into a separate file.
117672         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117673         the following changes: new parameter, delim2; both delim[12]
117674         parameters have type `int', not `char'.  The latter would lose
117675         with 8-bit delimiters.
117676         * lib/getstr.h: New file.
117678 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117680         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117681         than 1024, return a memory chunk of least possible size, instead
117682         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117683         Use free/xmalloc instead of xrealloc to avoid copying for very long
117684         paths.
117686 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117688         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117689         the empty string.
117691 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117693         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117694         address, not strdup.  Include <stdlib.h> and don't declare free().
117696 2000-06-19  Jim Meyering  <meyering@lucent.com>
117698         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117700 2000-06-18  Jim Meyering  <meyering@lucent.com>
117702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117704         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117705         `checking whether...' message to be consistent with that of the
117706         lstat test.
117708 2000-06-18  Jim Meyering  <meyering@lucent.com>
117710         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117711         Besides, these days every porting target provides a mkdir function.
117713         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117714         needed. (this snippet comes from src/system.h).
117716 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117718         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117720 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117722         * lib/human.c (adjust_value): New function.
117723         (human_readable_inexact): Apply rounding style even when
117724         printing approximate values.
117726 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117728         * lib/human.c (human_readable_inexact): Allow an input block
117729         size that is not a multiple of the output block size, and vice versa.
117730         Reported by Piergiorgio Sartor.
117732 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117734         * lib/getdate.y (get_date): Apply relative times after time
117735         zone indicator, not before.  Reported by Todd A. Jacobs.
117737 2000-06-13  Jim Meyering  <meyering@lucent.com>
117739         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117741         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117743 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117745         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117747 2000-06-12  Jim Meyering  <meyering@lucent.com>
117749         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117750         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117751         optional argument.
117752         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117753         the optional argument, `lib'.
117755 2000-06-08  Jim Meyering  <meyering@lucent.com>
117757         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117759 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117761         Rewrite largefile configuration so that we don't need to run
117762         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117763         AC_CANONICAL_HOST in configure.in -- jmm]
117765         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117766         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117767         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117768         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117769         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117770         All uses changed.
117771         Instead of inspecting the output of getconf, try to compile the
117772         test program without and with the macro definition.
117773         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117774         for getconf.  Instead, check for the needed flags by compiling
117775         test programs.
117777 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117779         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117781 2000-06-04  Jim Meyering  <meyering@lucent.com>
117783         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117784         SunOS 4.1.4 for which gid_t is an unsigned type.
117786 2000-06-03  Jim Meyering  <meyering@lucent.com>
117788         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117789         now that autoconf requires that.
117791         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117792         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117793         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117795 2000-06-03  Jim Meyering  <meyering@lucent.com>
117797         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117799 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117801         * m4/glibc21.m4: New file.
117802         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117804 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117806         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117807         newer, don't install charset.alias.
117808         * lib/config.charset: Change the Linux/glibc rules so they become empty
117809         on glibc-2.1 or newer.
117811 2000-06-02  Jim Meyering  <meyering@lucent.com>
117813         * lib/mountlist.c: Back out last change.  Instead, do this...
117814         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117815         me_dummy member using the same `ignore'-testing code.
117816         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117817         fs_type strings.
117818         From Mark D. Roth.
117820 2000-05-29  Jim Meyering  <meyering@lucent.com>
117822         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117823         mounts with the `ignore' attribute.  Based on a patch from
117824         Mark D. Roth.
117826 2000-05-28  Jim Meyering  <meyering@lucent.com>
117828         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117829         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117830         * m4/stat.m4: Likewise.
117831         * m4/lstat.m4: Likewise.
117832         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117834         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117835         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117837 2000-05-26  Jim Meyering  <meyering@lucent.com>
117839         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117841 2000-05-24  Jim Meyering  <meyering@lucent.com>
117843         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117844         autoconf requires that.
117845         * m4/lib-check.m4: Likewise.
117846         * m4/jm-macros.m4: Likewise.
117847         * m4/strftime.m4: Likewise.
117849         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117850         AC_CHECK_DECLS, now that autoconf requires that.
117852 2000-05-22  Jim Meyering  <meyering@lucent.com>
117854         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117855         * m4/lstat.m4: Likewise.
117857 2000-05-22  Jim Meyering  <meyering@lucent.com>
117859         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117861 2000-05-20  Jim Meyering  <meyering@lucent.com>
117863         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117864         (jm_PREREQ): Use it.
117866 2000-05-18  Jim Meyering  <meyering@lucent.com>
117868         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117869         back, too, since it may have been modified by allocate_entry.
117870         (hash_delete): Rewrite to use neither the assignment operator
117871         nor the comma operator in an if-expression.
117873 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117875         * lib/closeout.c:
117876         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117877         Remove; no longer needed.
117878         "quotearg.h": Add include.
117879         (file_name): Do not bother to explicitly initialize to NULL; it's less
117880         efficient on some hosts.
117881         (close_stdout_status): Remove test as to whether stdout was already
117882         closed; it breaks for the case "echo x | sort >&-".
117883         Quote file name colons.
117884         Do not assume that _("write error") lacks format strings.
117886 2000-05-15  Jim Meyering  <meyering@lucent.com>
117888         * lib/version-etc.c (version_etc_copyright): Update the copyright
117889         string used in all --version output.
117891 2000-05-14  Jim Meyering  <meyering@lucent.com>
117893         * lib/closeout.c (close_stdout_set_file_name): New function.
117894         (close_stdout_status): Use new file-scoped global.
117895         Return right away if fstat says the stdout file descriptor is invalid.
117896         * lib/closeout.h (close_stdout_set_file_name): Declare.
117898 2000-05-10  Jim Meyering  <meyering@lucent.com>
117900         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117901         (close_stdout_set_status): New function.
117902         * lib/closeout.h (close_stdout_set_status): Declare.
117904 2000-05-09  Jim Meyering  <meyering@lucent.com>
117906         * m4/gettext.m4: Rename this...
117907         * m4/libintl.m4: ...to this.
117909 2000-05-08  Jim Meyering  <meyering@lucent.com>
117911         * lib/long-options.c: Don't include closeout.h.
117912         (parse_long_options): Don't call close_stdout for --version.
117914 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117916         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117917         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117918         2.1.3 bug.  This avoids a clash when files like regex.c define
117919         _GNU_SOURCE.
117921 2000-05-06  Jim Meyering  <meyering@lucent.com>
117923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117924         (AC_REPLACE_FUNCS): Add strnlen.
117926         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117927         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117929         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117930         AC_SEARCH_LIBS call for nanosleep.
117931         (LIB_NANOSLEEP): Set and AC_SUBST.
117933 2000-05-06  Jim Meyering  <meyering@lucent.com>
117935         * lib/strnlen.c: Undefine __strnlen and strnlen.
117936         [!weak_alias]: Define __strnlen to strnlen.
117938         * lib/atexit.c: New file, from libiberty.
117940 2000-05-06  Jim Meyering  <meyering@lucent.com>
117942         * lib/closeout.c (close_stdout_status): Also check for errors on the
117943         stderr stream.
117945 2000-05-05  Jim Meyering  <meyering@lucent.com>
117947         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117948         AC_SEARCH_LIBS call for clock_gettime.
117949         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117951         * m4/search-libs.m4: Update from autoconf.
117953         su doesn't work on Solaris 2.6.
117954         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117955         <shadow.h>.  Reported by Dragos Harabor.
117957 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117959         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117960         memcpy instead of xmalloc, xrealloc, path_concat.
117961         (locale_charset): Treat empty environment variables as absent.
117962         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117964 2000-05-04  Jim Meyering  <meyering@lucent.com>
117966         * lib/getopt.c: Update from glibc.
117967         * lib/obstack.c: Likewise.
117968         * lib/obstack.h: Likewise.
117969         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117970         file
117972         * lib/regex.h: Likewise.
117973         * lib/strndup.c: Likewise.
117974         * lib/strnlen.c: New file, from glibc.
117976 2000-05-03  Jim Meyering  <meyering@lucent.com>
117978         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117980 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117982         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117983         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117984         compile-time test, rather than inspecting host and OS, to
117985         decide whether to define _LARGEFILE_SOURCE.
117987 2000-05-01  Jim Meyering  <meyering@lucent.com>
117989         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117992         Based on a patch from Bruno Haible.
117994 2000-05-01  Jim Meyering  <meyering@lucent.com>
117996         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117998 2000-04-29  Jim Meyering  <meyering@lucent.com>
118000         * lib/path-concat.c: Declare strdup only if it's not defined.
118001         * lib/canon-host.c: Likewise.
118003 2000-04-28  Jim Meyering  <meyering@lucent.com>
118005         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
118006         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
118007         is included first, then limits.h is included by locale.h by libintl.h.
118008         From John David Anglin.
118010 2000-04-25  Jim Meyering  <meyering@lucent.com>
118012         * lib/makepath.c (S_IRWXUGO): Define.
118013         (make_path): Always perform explicit chmod if MODE specifies any
118014         of the `special' permission bits.  Prompted by a bug report against
118015         install from Mate Wierdl and Joost van Baal.
118017 2000-04-18  Jim Meyering  <meyering@lucent.com>
118019         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
118020         (jm_PREREQ): Use it.
118022 2000-04-18  Jim Meyering  <meyering@lucent.com>
118024         * lib/README: New file.
118026         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
118027         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
118029 2000-04-17  Jim Meyering  <meyering@lucent.com>
118031         Get it right :-)
118032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
118033         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
118034         Suggestion from Akim Demaille.
118036 2000-04-17  Jim Meyering  <meyering@lucent.com>
118038         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
118039         the definition of it to rpl_strftime also defined-away the system's
118040         declaration.
118042 2000-04-15  Jim Meyering  <meyering@lucent.com>
118044         Use `C' to denote so-called `contiguous' files, the same way
118045         that tar does.
118046         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
118047         (ftypelet): Use S_ISCTG.
118048         From Michael Deutschmann.
118050 2000-04-14  Jim Meyering  <meyering@lucent.com>
118052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
118053         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
118054         clobbered.
118056 2000-04-14  Jim Meyering  <meyering@lucent.com>
118058         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
118060 2000-04-13  Jim Meyering  <meyering@lucent.com>
118062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
118063         AH_VERBATIM to insert required #ifndef into config.h.in.
118064         Suggestion from Akim Demaille.
118066 2000-04-12  Jim Meyering  <meyering@lucent.com>
118068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
118069         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
118070         Christian Krackowizer.
118072         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
118073         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
118074         (AC_SYS_LARGEFILE): Require.
118075         (AM_C_PROTOTYPES): Require.
118077 2000-04-08  Jim Meyering  <meyering@lucent.com>
118079         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
118080         names don't conflict.  Reported by Eli Zaretskii.
118082 2000-04-07  Jim Meyering  <meyering@lucent.com>
118084         * lib/putenv.c: Move inclusion of errno.h so it follows that of
118085         sys/types.h, to work around system header problems on AIX 3.2.5.
118086         From Bruno Haible.
118088 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
118090         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
118091         bug.  Deal with the different error behavior of Irix iconv.
118093 2000-04-05  Paul Eggert  <eggert@twinsun.com>
118095         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
118096         IRIX if the installer said otherwise.
118098 2000-04-05  Jim Meyering  <meyering@lucent.com>
118100         Portability tweaks required for ultrix4.3.
118101         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
118102         (jm_CHECK_DECLS): Add getutent to the list of functions.
118103         (_jm_DECL_HEADERS): Add utmpx.h.
118104         From John David Anglin.
118106         * m4/strftime.m4: Back out the 2000-04-02 change.
118107         Instead of that change, simply undefine putenv in the test program.
118109 2000-04-05  Jim Meyering  <meyering@lucent.com>
118111         Portability tweaks required for ultrix4.3.
118112         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
118113         getutent.
118114         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
118115         * lib/canon-host.c: Declare strdup.
118116         * lib/path-concat.c: Likewise.
118117         From John David Anglin.
118119 2000-04-04  Jim Meyering  <meyering@lucent.com>
118121         Be more DOS 8.3-friendly.
118122         * lib/ref-add.sin: Renamed from ref-add.sed.in.
118123         * lib/ref-del.sin: Renamed from ref-del.sed.in.
118124         * lib/Makefile.am: Reflect renaming.
118125         Reported by Eli Zaretskii.
118127         Use a temporary file name that won't clash with `charset.alias'
118128         in the DOS 8.3 name space.
118129         * lib/Makefile.am (charset_tmp): Define.
118130         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
118131         (uninstall-local): Likewise.
118132         Reported by Eli Zaretskii.
118134 2000-04-03  Jim Meyering  <meyering@lucent.com>
118136         * m4/gettext.m4: Fix typo in comment.
118138         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
118139         textutils/configure.in).  Suggestion from Paul Eggert.
118140         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
118142 2000-04-02  Paul Eggert  <eggert@twinsun.com>
118144         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
118145         variable in the shell rather than using putenv, which isn't
118146         portable.  This avoids the configure-time inter-test dependency
118147         on the potentially-renamed putenv function.
118149 2000-03-30  Paul Eggert  <eggert@twinsun.com>
118151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
118152         before checking struct stat.st_blksize, so that
118153         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
118155 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118157         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
118158         since strftime.c uses HAVE_STRFTIME to decide whether to use
118159         the underlying strftime.
118161 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118163         * lib/time/strftime.c (my_strftime): Make sure we call the system
118164         strftime, not ourselves, when invoking the underlying strftime.
118166 2000-03-24  Jim Meyering  <meyering@lucent.com>
118168         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
118169         (charset_alias): Define.
118170         (install-exec-local): Factor out common code.
118171         (uninstall-local): Split lines longer than 80.
118172         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
118173         (SUFFIXES): Define.
118174         (.sed.in.sed): New rule.  Don't redirect directly to $@.
118175         (CLEANFILES): Add ref-add.sed and ref-del.sed.
118177 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
118179         * lib/config.charset: Output a line containing "Packages using this
118180         file".
118181         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
118182         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
118183         ref-del.sed): New rules.
118185 2000-03-17  Jim Meyering  <meyering@lucent.com>
118187         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
118188         Otherwise, include <strings.h>
118190 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
118192         * lib/unicodeio.c (utf8_wctomb): New function.
118193         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
118194         format instead of in UCS-4 with platform dependent endianness.
118196 2000-03-10  Jim Meyering  <meyering@lucent.com>
118198         * m4/lib-check.m4: Look for getspnam in -lgen, too.
118199         From Marco Franzen.
118201 2000-03-07  Paul Eggert  <eggert@twinsun.com>
118203         * lib/savedir.c (savedir): Work even if directory size is
118204         negative; this can happen with some screwy NFS configurations.
118206 2000-03-06  Jim Meyering  <meyering@lucent.com>
118208         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
118209         if it's NULL (because we ran out of memory).  From Bruno Haible.
118211 2000-03-05  Jim Meyering  <meyering@lucent.com>
118213         * lib/localcharset.c ("path-concat.h"): Include.
118214         (get_charset_aliases): Use path_concat instead of ANSI string
118215         concatenation.
118217         * lib/unicodeio.h (PARAMS): Define.
118218         Use it to guard prototype.
118220 2000-03-04  Jim Meyering  <meyering@lucent.com>
118222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
118223         for lib/localcharset.c.
118225 2000-03-04  Jim Meyering  <meyering@lucent.com>
118227         * lib/Makefile.am (install-exec-local): Create $(libdir) before
118228         installing into it.
118229         (uninstall-local): Uncomment this rule so `make distcheck' works
118230         once again.
118232         * lib/unicodeio.c (<errno.h>): Include it.
118233         (errno): Declare if not defined.
118235         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
118237         * lib/config.charset: New version, incorporating remarks from a linux
118238         i18n mailing list.  From Bruno Haible.
118240 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
118242         * m4/codeset.m4: New file.
118243         * m4/iconv.m4: New file.
118244         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
118246 2000-03-03  Jim Meyering  <meyering@lucent.com>
118248         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
118250 2000-03-02  Jim Meyering  <meyering@lucent.com>
118252         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
118253         the messages come out on separate lines.
118255         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
118256         rather than jm_CHECK_DECLARATIONS.
118257         * m4/decl.m4: Remove now-unused file.
118259         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
118260         geteuid.
118262 2000-03-02  Jim Meyering  <meyering@lucent.com>
118264         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
118266 2000-03-01  Jim Meyering  <meyering@lucent.com>
118268         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
118269         * lib/unicodeio.c: Likewise.
118271 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
118273         * lib/config.charset: New file.
118274         * lib/localcharset.c: New file.
118275         * lib/unicodeio.h, lib/unicodeio.c: New files.
118276         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
118277         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
118278         (noinst_HEADERS): Add unicodeio.h.
118279         (all-local, install-exec-local, charset.alias): New targets.
118281 2000-02-28  Paul Eggert  <eggert@twinsun.com>
118283         * lib/quotearg.c (ALERT_CHAR): New macro.
118284         (quotearg_buffer_restyled): Use it.
118286 2000-02-27  Jim Meyering  <meyering@lucent.com>
118288         * m4/check-decl.m4: Add getenv to the list.
118290 2000-02-27  Jim Meyering  <meyering@lucent.com>
118292         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
118293         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
118295         * lib/backupfile.c: Guard inclusion of stdlib.h with
118296         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
118297         Declare malloc if needed.
118299         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
118300         `#ifndef HAVE_DECL..'
118301         now that autoconf always defines the HAVE_DECL_ symbols.
118302         * lib/human.c: Likewise.
118303         * lib/same.c: Likewise.
118304         * lib/strtoumax.c: Likewise.
118306         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
118307         declaration check was not run.
118308         * lib/hash.c: Likewise.
118309         * lib/human.c: Likewise.
118310         * lib/same.c: Likewise.
118311         * lib/strtoumax.c: Likewise.
118313         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
118314         `.', then first look up the entire `.'-containing string as a login
118315         name.
118317 2000-02-23  Jim Meyering  <meyering@lucent.com>
118319         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
118320         in place of my hack.
118322 2000-02-18  Paul Eggert  <eggert@twinsun.com>
118324         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
118325         (textint): New typedef.
118326         (parser_control): Member year changed from int to textint.
118327         All uses changed.
118328         (YYSTYPE): Removed; replaced by %union with int and textint members.
118329         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
118330         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
118331         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
118332         (tSNUMBER, tUNUMBER): Now of type <textintval>.
118333         (date, number, to_year): Use width of number in digits, not its value,
118334         to determine whether it's a 2-digit year, or a 2-digit time.
118335         (yylex): Store number of digits of numeric tokens.
118336         Reported by John Kendall.
118338         (parser_control): Changed from struct parser_control to typedef (for
118339         consistency).  All uses changed.
118341         (tID): Removed; not used.
118342         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
118344 2000-02-14  Paul Eggert  <eggert@twinsun.com>
118346         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
118347         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
118349 2000-02-12  Jim Meyering  <meyering@lucent.com>
118351         * lib/userspec.c (ISDIGIT): Define it.
118352         (isdigit): Remove definition.
118353         (is_number): Use ISDIGIT, not isdigit.
118354         <libintl.h>: Include.
118355         (_ and N_): Define.
118356         (parse_user_spec): Mark translatable strings.
118358 2000-02-10  Jim Meyering  <meyering@lucent.com>
118360         With these changes, nanosleep.[ch] are finally enough like the other
118361         lib/* replacement files to compile on a few more losing systems.
118363         * lib/nanosleep.h: Don't include config.h.
118364         Remove prototype from declaration of nanosleep.
118365         (PARAMS): Remove now-unneeded definition.
118366         * lib/nanosleep.c: #undef nanosleep.
118367         (rpl_nanosleep): Rename from nanosleep.
118369 2000-02-10  Jim Meyering  <meyering@lucent.com>
118371         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118372         gnu_nanosleep to rpl_nanosleep.
118374 2000-02-09  Jim Meyering  <meyering@lucent.com>
118376         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118377         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118379 2000-02-08  Akim Demaille  <akim@epita.fr>
118381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118382         `[' and `]' and remove uses of `changequote'.
118383         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118384         (AC_SYS_LARGEFILE): Likewise.
118385         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118386         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118387         of changequote.
118388         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118389         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118390         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118391         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118393 2000-02-05  Jim Meyering  <meyering@lucent.com>
118395         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118396         Remove explicit use of AC_HEADER_TIME.  It is required by
118397         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118398         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118399         in autoconf whereby the expansion of the latter ended up preceding
118400         the expansion of its prerequisite, AC_HEADER_TIME.
118401         Reported by Volker Borchert.
118403 2000-02-03  Jim Meyering  <meyering@lucent.com>
118405         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118407 2000-02-03  Jim Meyering  <meyering@lucent.com>
118409         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118410         rather than with `#if HAVE_UTMPNAME'.
118412 2000-02-02  Jim Meyering  <meyering@lucent.com>
118414         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118415         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118416         Reported by Eli Zaretskii.
118418 2000-02-01  Jim Meyering  <meyering@lucent.com>
118420         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118422 2000-01-31  Jim Meyering  <meyering@lucent.com>
118424         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118425         functions.  Add the time.h and sys/time.h headers along with the
118426         AC_REQUIRE'ment of AC_HEADER_TIME.
118428 2000-01-31  Jim Meyering  <meyering@lucent.com>
118430         * lib/nanosleep.h (nanosleep): Guard declaration with
118431         `#if ! HAVE_DECL_NANOSLEEP'.
118432         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118433         the declaration in that vendor's sys/timers.h.
118434         Reported by Christian Krackowizer.
118436         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118437         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118438         (ISPRINT): Likewise.
118439         Reported by Tom Tromey.
118441 2000-01-30  Jim Meyering  <meyering@lucent.com>
118443         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118445         * m4/prereq.m4 (utmp_includes): Define.
118446         Check for ut_user and ut_name members in both struct utmpx
118447         and struct utmp.
118449 2000-01-30  Jim Meyering  <meyering@lucent.com>
118451         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118452         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118453         header files where only utmpx.ut_user is declared.
118455         * lib/readutmp.h (UT_USER): Define.
118457 2000-01-29  Jim Meyering  <meyering@lucent.com>
118459         * m4/lib-check.m4: New file containing library-related checks from
118460         fileutils and sh-utils (textutils had none).
118462 2000-01-28  Jim Meyering  <meyering@lucent.com>
118464         * m4/perl.m4: Change format of warning message to look more like that
118465         from the missing script.  Suggestion from François Pinard.
118467 2000-01-25  Jim Meyering  <meyering@lucent.com>
118469         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118470         well as time.h in the compile check.
118471         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118472         Fix typo in cross-compiling case: s/yes/no/.
118474 2000-01-23  Jim Meyering  <meyering@lucent.com>
118476         * m4/jm-macros.m4: Move df-related tests here from
118477         fileutils/configure.in
118479         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118480         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118482         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118483         s/space/ac_fsusage_space/.
118484         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118486         * m4/ftruncate.m4: New file (derived from part of
118487         fileutils/configure.in).
118488         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118489         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118491         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118492         AC_SUBST these here, rather than just in sh-util/configure.in, so
118493         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118494         all the same.
118495         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118496         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118497         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118498         (AC_SUBST(POW_LIBM)): Likewise.
118499         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118501 2000-01-23  Jim Meyering  <meyering@lucent.com>
118503         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118504         obstack.c.
118506 2000-01-22  Jim Meyering  <meyering@lucent.com>
118508         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118512         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118513         configure.in
118514         (AC_CHECK_HEADERS): Likewise for sh-utils.
118515         (AC_CHECK_HEADERS): Likewise for textutils.
118516         Merge the three lists of headers.
118518         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118519         from fileutils' configure.in.
118521         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118522         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118523         check-decl.m4.
118525         * m4/check-decl.m4: Use #if rather than #ifdef.
118526         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118527         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118528         (_jm_DECL_HEADERS): Define new function.
118529         (jm_CHECK_DECLARATIONS): Require it.
118531 2000-01-22  Jim Meyering  <meyering@lucent.com>
118533         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118534         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118535         Required for some AIX systems.  Reported by Christian Krackowizer.
118536         [TESTING] (main): New function.
118538         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118539         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118540         letters.
118542         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118543         iswprint.
118545         * lib/strverscmp.c (ISDIGIT): Define.
118546         (strverscmp): Use ISDIGIT, not isdigit.
118548 2000-01-19  Jim Meyering  <meyering@lucent.com>
118550         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118551         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118552         defines `struct timespec' in <sys/time.h>
118554         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118555         Thanks to Akim for explaining.
118557 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118559         * lib/nanosleep.c (nanosleep):
118560         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118561         POSIX.1 doesn't require SA_INTERRUPT and some systems
118562         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118563         it's been part of POSIX.1 since day 1 (in 1988).
118565 2000-01-17  Jim Meyering  <meyering@lucent.com>
118567         * lib/interlock: Remove unused file.  Reported by François Pinard.
118569 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118571         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118572         alert, backslash, formfeed, and vertical tab unnecessarily in
118573         shell quoting style.
118575 2000-01-16  Jim Meyering  <meyering@lucent.com>
118577         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118578         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118579         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118580         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118582 2000-01-16  Jim Meyering  <meyering@lucent.com>
118584         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118585         because the latter didn't work.
118587 2000-01-15  Jim Meyering  <meyering@lucent.com>
118589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118590         (AC_REPLACE_FUNCS): Add memcpy and memset.
118591         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118592         Add strpbrk.
118593         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118595 2000-01-12  Jim Meyering  <meyering@lucent.com>
118597         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118598         (jm_PREREQ): Use it.
118599         (jm_PREREQ_READUTMP): New macro.
118600         (jm_PREREQ): Use it.
118602 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118604         Quote multibyte characters correctly.
118605         * m4/c-bs-a.m4: New file.
118606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118607         (jm_PREREQ): Use it.
118609 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118611         * m4/uintmax_t.m4: Port to autoconf 2.13.
118613 2000-01-08  Jim Meyering  <meyering@ascend.com>
118615         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118616         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118618 2000-01-04  Jim Meyering  <meyering@ascend.com>
118620         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118621         jm_STRUCT_DIRENT_D_TYPE.
118622         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118623         jm_STRUCT_DIRENT_D_INO.
118624         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118625         jm_STRUCT_UTIMBUF.
118626         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118627         renamings.
118628         * m4/utime.m4: Likewise.
118630         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118631         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118633 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118636         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118638 2000-01-02  Jim Meyering  <meyering@ascend.com>
118640         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118641         remember if this is necessary.
118643 1999-12-26  Jim Meyering  <meyering@ascend.com>
118645         * m4/jm-macros.m4: Use it here.
118646         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118648 1999-12-23  Jim Meyering  <meyering@ascend.com>
118650         * m4/jm-macros.m4: Check for clock_gettime (moved from
118651         fileutils/configure.in)
118652         Check for gettimeofday.
118654 1999-12-20  Jim Meyering  <meyering@ascend.com>
118656         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118657         autoconf-2.14a-1999-12-20.
118659 1999-12-19  Jim Meyering  <meyering@ascend.com>
118661         * m4/lstat-slash.m4: New file.
118662         * m4/jm-macros.m4: Use the new macro:
118663         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118665 1999-12-07  Jim Meyering  <meyering@ascend.com>
118667         * m4/perl.m4: Require that File::Compare be available, too.
118668         Too many systems seem to lack it.
118670         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118671         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118673 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118675         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118676         problem with the QNX 4.25 shell, which doesn't propagate exit
118677         status of failed commands inside shell assignments.
118679 1999-11-17  Jim Meyering  <meyering@ascend.com>
118681         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118683 1999-11-07  Jim Meyering  <meyering@ascend.com>
118685         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118687 1999-11-06  Jim Meyering  <meyering@ascend.com>
118689         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118690         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118692 1999-11-05  Jim Meyering  <meyering@ascend.com>
118694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118695         configure.in of textutils, fileutils, and sh-utils into this one
118696         (shared between those packages) file.
118697         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118698         AC_STRUCT_ST_BLKSIZE.
118700 1999-11-03  Jim Meyering  <meyering@ascend.com>
118702         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118703         of AC_CHECK_TYPE checks includes unistd.h.
118704         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118705         Suggestion from Akim Demaille.
118707 1999-10-30  Jim Meyering  <meyering@ascend.com>
118709         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118710         m4-quoted string.
118711         * m4/ls-mntd-fs.m4: Likewise.
118712         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118713         * m4/jm-winsz1.m4: Likewise.
118715         * m4/const.m4: Remove file, since the fix made it into the experimental
118716         version of autoconf.
118717         * m4/mktime.m4: Likewise.
118719         * m4/check-type.m4: Remove file, now that the latest version of
118720         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118722         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118723         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118724         AC_CHECK_TYPE.
118726 1999-10-04  Jim Meyering  <meyering@ascend.com>
118728         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118730 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118732         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118733         2.95.1 bug with HP-UX 10.20.
118735 1999-09-17  Jim Meyering  <meyering@ascend.com>
118737         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118738         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118739         due to missing strdup (against sh-utils-2.0).
118741 1999-08-29  Jim Meyering  <meyering@ascend.com>
118743         * m4/jm-macros.m4: Require jm_BISON.
118744         * m4/bison.m4: New file.
118746 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118748         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118749         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118751 1999-08-05  Jim Meyering  <meyering@ascend.com>
118753         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118754         to avoid conflicts with `conftest' on 8+3 filesystems.
118755         Suggestion from Eli Zaretskii.
118757 1999-08-04  Jim Meyering  <meyering@ascend.com>
118759         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118760         fileutils and sh-utils (textutils's getline test was inadequate).
118761         (AM_FUNC_GETLINE): Run this test.
118762         (AC_CHECK_FUNCS): Check for getdelim.
118763         Reported by Bob Proulx.
118765 1999-08-02  Jim Meyering  <meyering@ascend.com>
118767         * m4/jm-macros.m4: Add a comment.
118769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118771         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118772         <inttypes.h> defines strtoumax as a macro (and not as a
118773         function).
118775 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118777         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118778         that we can shift, multiply and divide unsigned long long
118779         values; Ultrix cc can't do it.
118781 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118783         * m4/mktime.m4: New file, which is a preview of what should appear
118784         in the next public autoconf release.
118786 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118788         * m4/lfs.m4: Remove this file.
118789         * m4/largefile.m4: New file.  It contains the old contents of
118790         lfs.m4, except that all names with prefix AC_LFS have been
118791         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118792         compatible with future autoconf versions.  Also, some minor m4
118793         quoting problems have been fixed.
118795 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118797         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118798         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118799         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118800         and simplify the shell code.
118802 1999-08-01  Jim Meyering  <meyering@ascend.com>
118804         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118805         m4.
118807 1999-07-20  Jim Meyering  <meyering@ascend.com>
118809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118811 1999-07-15  Jim Meyering  <meyering@ascend.com>
118813         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118815 1999-05-22  Jim Meyering  <meyering@ascend.com>
118817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118819 1999-05-20  Jim Meyering  <meyering@ascend.com>
118821         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118822         Add a colon after each `then' in case $4 is empty.
118824 1999-05-16  Jim Meyering  <meyering@ascend.com>
118826         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118828 1999-05-10  Jim Meyering  <meyering@ascend.com>
118830         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118832         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118833         AC_FUNC_MKTIME.
118835 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118837         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118839 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118841         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118842         not CPPFLAGS, so that linking works correctly in IRIX.
118844 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118848 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118850         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118851         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118852         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118853         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118854         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118856         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118858 1999-04-20  Jim Meyering  <meyering@ascend.com>
118860         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118861         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118862         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118864 1999-04-18  Jim Meyering  <meyering@ascend.com>
118866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118867         * m4/jm-macros.m4: Use it.
118869 1999-04-06  Jim Meyering  <meyering@ascend.com>
118871         * m4/strftime.m4: Remove test for %f.
118873 1999-03-29  Jim Meyering  <meyering@ascend.com>
118875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118876         superset of the AC_TYPE_* checks in the textutils, fileutils,
118877         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118878         AC_TYPE_PID_T.
118880 1999-03-28  Jim Meyering  <meyering@ascend.com>
118882         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118883         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118884         replaced e.g., in the *.sh files of the sh-utils.
118886 1999-03-20  Jim Meyering  <meyering@ascend.com>
118888         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118889         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118890         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118892 1999-03-19  Jim Meyering  <meyering@ascend.com>
118894         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118896 1999-03-12  Jim Meyering  <meyering@ascend.com>
118898         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118900 1999-03-07  Jim Meyering  <meyering@ascend.com>
118902         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118903         declared.
118905 1999-02-17  Jim Meyering  <meyering@ascend.com>
118907         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118908         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118910 1999-02-07  Jim Meyering  <meyering@ascend.com>
118912         * m4/group-member.m4: New file -- extracted from sh-utils'
118913         configure.in.
118915         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118916         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118918 1999-02-06  Jim Meyering  <meyering@ascend.com>
118920         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118921         * m4/fnmatch.m4: Likewise.
118922         * m4/getgroups.m4: Likewise.
118923         * m4/lstat.m4: Likewise.
118924         * m4/malloc.m4: Likewise.
118925         * m4/putenv.m4: Likewise.
118926         * m4/realloc.m4: Likewise.
118927         * m4/regex.m4: Likewise.
118928         * m4/stat.m4: Likewise.
118929         * m4/strftime.m4: Likewise.
118930         Suggestion from Alain Magloire.
118932         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118933         * m4/fnmatch.m4: Likewise.
118934         * m4/getgroups.m4: Likewise.
118935         * m4/getline.m4: Likewise.
118936         * m4/lstat.m4: Likewise.
118937         * m4/malloc.m4: Likewise.
118938         * m4/memcmp.m4: Likewise.
118939         * m4/putenv.m4: Likewise.
118940         * m4/realloc.m4: Likewise.
118941         * m4/regex.m4: Likewise.
118942         * m4/stat.m4: Likewise.
118943         * m4/strftime.m4: Likewise.
118944         Suggestion from Alain Magloire.
118946         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118947         an argument.
118949         * m4/regex.m4: Add a run-time Test for proper operation of
118950         re_compile_pattern.
118952 1999-01-31  Jim Meyering  <meyering@ascend.com>
118954         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118956 1999-01-30  Jim Meyering  <meyering@ascend.com>
118958         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118960         * m4/jm-mktime.m4: Make this a wrapper around the official
118961         AM_FUNC_MKTIME rather than my private copy, now that the official one
118962         is up to date.
118963         * m4/mktime.m4: Remove file.
118965         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118966         * m4/uptime.m4: Likewise.
118967         * m4/uintmax_t.m4: Likewise.
118969 1999-01-28  Jim Meyering  <meyering@ascend.com>
118971         * m4/jm-macros.m4: Use jm_AFS.
118972         * m4/afs.m4: New file (from fileutils' configure.in).
118974         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118975         * m4/chown.m4: Likewise.
118976         * m4/d-ino.m4: Likewise.
118977         * m4/d-type.m4: Likewise.
118978         * m4/fnmatch.m4: Likewise.
118979         * m4/getgroups.m4: Likewise.
118980         * m4/gettext.m4: Likewise.
118981         * m4/jm-mktime.m4: Likewise.
118982         * m4/jm-winsz2.m4: Likewise.
118983         * m4/lcmessage.m4: Likewise.
118984         * m4/ls-mntd-fs.m4: Likewise.
118985         * m4/malloc.m4: Likewise.
118986         * m4/memcmp.m4: Likewise.
118987         * m4/putenv.m4: Likewise.
118988         * m4/realloc.m4: Likewise.
118989         * m4/st_mtim.m4: Likewise.
118990         * m4/strftime.m4: Likewise.
118992 1999-01-16  Jim Meyering  <meyering@ascend.com>
118994         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118995         (ARGMATCH_DIE_DECL): Define.
118997 1999-01-12  Jim Meyering  <meyering@ascend.com>
118999         * m4/Makefile.am.in: Rewrite to avoid using fmt.
119000         Reported by Lars Hecking.
119002 1999-01-10  Jim Meyering  <meyering@ascend.com>
119004         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
119005         gross kludge.
119006         * m4/inttypes_h.m4: Likewise.
119007         * m4/lstat.m4: Likewise.
119008         * m4/malloc.m4: Likewise.
119009         * m4/readdir.m4: Likewise.
119010         * m4/realloc.m4: Likewise.
119011         * m4/st_dm_mode.m4: Likewise.
119012         * m4/stat.m4: Likewise.
119013         * m4/utimbuf.m4: Likewise.
119014         * m4/utimes.m4: Likewise.
119016         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
119017         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
119018         comments in config.h.in are meaningful.
119020         * m4/jm-macros.m4: Require autoconf-2.13 here.
119022         * m4/regex.m4: By default, don't use the included regex.c on systems
119023         with glibc 2.  Suggestion from Uli Drepper.
119025 1999-01-02  Jim Meyering  <meyering@ascend.com>
119027         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
119029 1998-12-18  Jim Meyering  <meyering@ascend.com>
119031         * m4/Makefile.am.in (Makefile.am): Simplify rule.
119032         Based on a suggestion from Lars Hecking.
119034 1998-11-16  Paul Eggert  <eggert@twinsun.com>
119036         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
119038 1998-11-16  Jim Meyering  <meyering@ascend.com>
119040         * m4/lfs.m4: Double-quote the `uname...` expression.
119042 1998-11-14  Jim Meyering  <meyering@ascend.com>
119044         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
119045         * m4/stat.m4: Likewise.
119047 1998-11-03  Jim Meyering  <meyering@ascend.com>
119049         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
119050         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
119052 1998-10-18  Jim Meyering  <meyering@ascend.com>
119054         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
119056 1998-10-17  Jim Meyering  <meyering@ascend.com>
119058         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
119059         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
119060         calls for those previously hard-coded headers.  Instead, take a new
119061         parameter.
119062         (jm_CHECK_DECLARATIONS): Reflect interface change.
119063         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
119064         (jm_CHECK_DECL_LOCALTIME_R): New macro.
119066         * m4/mktime.m4: Test for spring-forward gap before long-running test.
119068 1998-10-14  Jim Meyering  <meyering@ascend.com>
119070         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
119071         instead of "TZ=America/Vancouver".  From Paul Eggert.
119073 1998-10-11  Jim Meyering  <meyering@ascend.com>
119075         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
119076         This adds a test for a recently added compatibility fix for mktime.c.
119077         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
119079 1998-09-27  Jim Meyering  <meyering@ascend.com>
119081         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
119083         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
119084         ../configure.in, including a change from Gordon Matzigkeit to allow
119085         cross-compiling for the Hurd.
119087         * m4/glibc.m4: New file/macro to test for the GNU C Library
119088         versions 1 and 2.  From Gordon Matzigkeit.
119089         Indent.
119091 1998-09-21  Jim Meyering  <meyering@ascend.com>
119093         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
119095 1998-08-18  Paul Eggert  <eggert@twinsun.com>
119097         Port nanosecond-resolution times to UnixWare 2.1.2 and
119098         pedantic Solaris 2.6.
119100         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
119101         AC_STRUCT_ST_MTIM.
119102         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
119103         Generate name of ns member, instead of just 1 or undef.
119104         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
119106 1998-08-15  Jim Meyering  <meyering@ascend.com>
119108         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
119109         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
119110         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
119111         instead of jm_TYPE_SSIZE_T.
119113 1998-08-12  Jim Meyering  <meyering@ascend.com>
119115         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
119117 1998-08-02  Jim Meyering  <meyering@ascend.com>
119119         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
119120         in acconfig.h manually.
119122 1998-07-31  Paul Eggert  <eggert@twinsun.com>
119124         * m4/st_mtim.m4: New file.
119126 1998-07-28  Jim Meyering  <meyering@ascend.com>
119128         * m4/utimes.m4: Undef stat.
119130 1998-07-25  Jim Meyering  <meyering@ascend.com>
119132         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
119133         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
119135 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
119137         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
119138         uid and gid actually remain unchanged.
119140 1998-07-07  Jim Meyering  <meyering@ascend.com>
119142         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
119144 1998-07-04  Jim Meyering  <meyering@ascend.com>
119146         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
119147         to prove that this macro can be used in packages without regex.c.
119149 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
119151         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
119152         is to be used.
119154 1998-07-03  Jim Meyering  <meyering@ascend.com>
119156         * m4/gettext.m4: Add -lintl if it's found to be necessary.
119158         * m4/gettext.m4: New file -- from gettext-0.10.35.
119159         * m4/lcmessage.m4: Likewise.
119160         * m4/progtest.m4: Likewise.
119162         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
119163         * m4/jm-macros.m4: Require the new macro.
119165 1998-06-29  Jim Meyering  <meyering@ascend.com>
119167         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
119168         for the definition of NGROUPS (used in a system header included
119169         by sys/mount.h).
119171 1998-06-28  Jim Meyering  <meyering@ascend.com>
119173         * m4/ls-mntd-fs.m4: New file.
119174         * m4/fstypename.m4: New file.
119176         * m4/jm-macros.m4: Require the new macro.
119177         * m4/jm-glibc-io.m4: New file.
119179 1998-05-19  Jim Meyering  <meyering@ascend.com>
119181         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
119182         * m4/lchown.m4: New file.
119184         * m4/Makefile.am.in: New file.
119185         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
119187 1998-05-14  Jim Meyering  <meyering@ascend.com>
119189         * m4/Makefile.am (EXTRA_DIST): Add them.
119190         * m4/jm-macros.m4: New file.
119191         * m4/utimbuf.m4: New file.
119193 1998-05-12  Jim Meyering  <meyering@ascend.com>
119195         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
119197 1998-05-11  Jim Meyering  <meyering@ascend.com>
119199         * m4/isc-posix.m4: New file.
119201 1998-05-10  Jim Meyering  <meyering@ascend.com>
119203         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
119205 1998-05-09  Jim Meyering  <meyering@ascend.com>
119207         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
119208         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
119209         with automake.
119211         * m4/ssize_t.m4: New file.
119212         * m4/mktime.m4: Remove file -- the new automake has this now.
119214 1998-04-26  Jim Meyering  <meyering@ascend.com>
119216         * m4/assert.m4: New file.
119217         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
119219 1998-04-05  Jim Meyering  <meyering@ascend.com>
119221         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
119222         (jm_PREREQ): Use it here.
119224 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
119226         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
119227         in acconfig.h.
119229 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
119231         * m4/prereq.m4: New file.
119232         * m4/error.m4: New file.
119233         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
119235 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
119237         * m4/getline.m4: Don't set am_cv_func_working_getline before the
119238         cache-check for the same variable -- that defeated the purpose of
119239         the test; the test program was never run.  This was a problem only
119240         on systems with losing getline functions -- HP-UX 10.20 is one.
119241         Reported by Bjorn Helgaas.
119243 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
119245         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
119247 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
119249         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
119251         * m4/const.m4: New file.  Use an initializer in this declaration
119252         typedef int charset[2]; const charset x;
119253         Reported by Bob Glickstein.
119255 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
119257         * m4/chown.m4: Fix reversed types on -1 args to chown.
119258         From Kaveh Ghazi.
119260 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
119262         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
119263         Add lseek and memchr.
119265         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
119266         T.E.Dickey <dickey@clark.net> said that some older preprocessors
119267         have a 20-character limit on names.
119269 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
119271         * m4/inttypes_h.m4: New file.
119272         * m4/uintmax_t.m4: New file.
119273         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
119276         -----
119278         Local Variables:
119279         coding: utf-8
119280         End:
119282         Copyright (C) 1997-2019 Free Software Foundation, Inc.
119284         Copying and distribution of this file, with or without
119285         modification, are permitted provided the copyright notice
119286         and this notice are preserved.